]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #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_wxEventBlocker swig_types[54]
2521 #define SWIGTYPE_p_wxEvtHandler swig_types[55]
2522 #define SWIGTYPE_p_wxFSFile swig_types[56]
2523 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57]
2524 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[58]
2525 #define SWIGTYPE_p_wxFileSystem swig_types[59]
2526 #define SWIGTYPE_p_wxFlexGridSizer swig_types[60]
2527 #define SWIGTYPE_p_wxFocusEvent swig_types[61]
2528 #define SWIGTYPE_p_wxFont swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[63]
2530 #define SWIGTYPE_p_wxFontPickerEvent swig_types[64]
2531 #define SWIGTYPE_p_wxGBSizerItem swig_types[65]
2532 #define SWIGTYPE_p_wxGIFHandler swig_types[66]
2533 #define SWIGTYPE_p_wxGauge swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[68]
2535 #define SWIGTYPE_p_wxGenericDragImage swig_types[69]
2536 #define SWIGTYPE_p_wxGridBagSizer swig_types[70]
2537 #define SWIGTYPE_p_wxGridSizer swig_types[71]
2538 #define SWIGTYPE_p_wxHelpEvent swig_types[72]
2539 #define SWIGTYPE_p_wxHelpProvider swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74]
2541 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[75]
2542 #define SWIGTYPE_p_wxICOHandler swig_types[76]
2543 #define SWIGTYPE_p_wxIcon swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxItemContainer swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxListBox swig_types[89]
2556 #define SWIGTYPE_p_wxListEvent swig_types[90]
2557 #define SWIGTYPE_p_wxListItem swig_types[91]
2558 #define SWIGTYPE_p_wxListItemAttr swig_types[92]
2559 #define SWIGTYPE_p_wxListView swig_types[93]
2560 #define SWIGTYPE_p_wxListbook swig_types[94]
2561 #define SWIGTYPE_p_wxListbookEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMaximizeEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMemoryDC swig_types[97]
2564 #define SWIGTYPE_p_wxMenu swig_types[98]
2565 #define SWIGTYPE_p_wxMenuBar swig_types[99]
2566 #define SWIGTYPE_p_wxMenuEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMenuItem swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMouseEvent swig_types[104]
2571 #define SWIGTYPE_p_wxMoveEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNcPaintEvent swig_types[107]
2574 #define SWIGTYPE_p_wxNotebook swig_types[108]
2575 #define SWIGTYPE_p_wxNotebookEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxPCXHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNGHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNMHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPaintEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116]
2583 #define SWIGTYPE_p_wxPaperSize swig_types[117]
2584 #define SWIGTYPE_p_wxPickerBase swig_types[118]
2585 #define SWIGTYPE_p_wxPoint swig_types[119]
2586 #define SWIGTYPE_p_wxPyApp swig_types[120]
2587 #define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyControl swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591 #define SWIGTYPE_p_wxPyListCtrl swig_types[125]
2592 #define SWIGTYPE_p_wxPySizer swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[127]
2594 #define SWIGTYPE_p_wxPyTreeItemData swig_types[128]
2595 #define SWIGTYPE_p_wxPyValidator swig_types[129]
2596 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130]
2597 #define SWIGTYPE_p_wxRadioBox swig_types[131]
2598 #define SWIGTYPE_p_wxRadioButton swig_types[132]
2599 #define SWIGTYPE_p_wxRect swig_types[133]
2600 #define SWIGTYPE_p_wxScrollBar swig_types[134]
2601 #define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602 #define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSearchCtrl swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140]
2607 #define SWIGTYPE_p_wxSize swig_types[141]
2608 #define SWIGTYPE_p_wxSizeEvent swig_types[142]
2609 #define SWIGTYPE_p_wxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxSizerItem swig_types[144]
2611 #define SWIGTYPE_p_wxSlider swig_types[145]
2612 #define SWIGTYPE_p_wxSpinButton swig_types[146]
2613 #define SWIGTYPE_p_wxSpinCtrl swig_types[147]
2614 #define SWIGTYPE_p_wxSpinEvent swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBitmap swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBox swig_types[150]
2617 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[151]
2618 #define SWIGTYPE_p_wxStaticLine swig_types[152]
2619 #define SWIGTYPE_p_wxStaticText swig_types[153]
2620 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154]
2621 #define SWIGTYPE_p_wxString swig_types[155]
2622 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156]
2623 #define SWIGTYPE_p_wxTGAHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTIFFHandler swig_types[158]
2625 #define SWIGTYPE_p_wxTextAttr swig_types[159]
2626 #define SWIGTYPE_p_wxTextCtrl swig_types[160]
2627 #define SWIGTYPE_p_wxTextUrlEvent swig_types[161]
2628 #define SWIGTYPE_p_wxToggleButton swig_types[162]
2629 #define SWIGTYPE_p_wxToolBar swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolBarToolBase swig_types[165]
2632 #define SWIGTYPE_p_wxToolbook swig_types[166]
2633 #define SWIGTYPE_p_wxToolbookEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeEvent swig_types[168]
2635 #define SWIGTYPE_p_wxTreeItemId swig_types[169]
2636 #define SWIGTYPE_p_wxTreebook swig_types[170]
2637 #define SWIGTYPE_p_wxTreebookEvent swig_types[171]
2638 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[172]
2639 #define SWIGTYPE_p_wxValidator swig_types[173]
2640 #define SWIGTYPE_p_wxVisualAttributes swig_types[174]
2641 #define SWIGTYPE_p_wxWindow swig_types[175]
2642 #define SWIGTYPE_p_wxWindowBase swig_types[176]
2643 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[177]
2644 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178]
2645 #define SWIGTYPE_p_wxXPMHandler swig_types[179]
2646 static swig_type_info *swig_types[181];
2647 static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0};
2648 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2649 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2650
2651 /* -------- TYPES TABLE (END) -------- */
2652
2653 #if (PY_VERSION_HEX <= 0x02000000)
2654 # if !defined(SWIG_PYTHON_CLASSIC)
2655 # error "This python version requires to use swig with the '-classic' option"
2656 # endif
2657 #endif
2658 #if (PY_VERSION_HEX <= 0x02020000)
2659 # error "This python version requires to use swig with the '-nomodern' option"
2660 #endif
2661 #if (PY_VERSION_HEX <= 0x02020000)
2662 # error "This python version requires to use swig with the '-nomodernargs' option"
2663 #endif
2664 #ifndef METH_O
2665 # error "This python version requires to use swig with the '-nofastunpack' option"
2666 #endif
2667
2668 /*-----------------------------------------------
2669 @(target):= _controls_.so
2670 ------------------------------------------------*/
2671 #define SWIG_init init_controls_
2672
2673 #define SWIG_name "_controls_"
2674
2675 #define SWIGVERSION 0x010329
2676
2677
2678 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2679 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2680
2681
2682 #include <stdexcept>
2683
2684
2685 namespace swig {
2686 class PyObject_ptr {
2687 protected:
2688 PyObject *_obj;
2689
2690 public:
2691 PyObject_ptr() :_obj(0)
2692 {
2693 }
2694
2695 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2696 {
2697 Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2701 {
2702 if (initial_ref) Py_XINCREF(_obj);
2703 }
2704
2705 PyObject_ptr & operator=(const PyObject_ptr& item)
2706 {
2707 Py_XINCREF(item._obj);
2708 Py_XDECREF(_obj);
2709 _obj = item._obj;
2710 return *this;
2711 }
2712
2713 ~PyObject_ptr()
2714 {
2715 Py_XDECREF(_obj);
2716 }
2717
2718 operator PyObject *() const
2719 {
2720 return _obj;
2721 }
2722
2723 PyObject *operator->() const
2724 {
2725 return _obj;
2726 }
2727 };
2728 }
2729
2730
2731 namespace swig {
2732 struct PyObject_var : PyObject_ptr {
2733 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2734
2735 PyObject_var & operator = (PyObject* obj)
2736 {
2737 Py_XDECREF(_obj);
2738 _obj = obj;
2739 return *this;
2740 }
2741 };
2742 }
2743
2744
2745 #include "wx/wxPython/wxPython.h"
2746 #include "wx/wxPython/pyclasses.h"
2747
2748 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2749 static const wxString wxPyEmptyString(wxEmptyString);
2750 static const wxString wxPyControlNameStr(wxControlNameStr);
2751
2752 const wxArrayString wxPyEmptyStringArray;
2753
2754 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject *
2760 SWIG_From_int (int value)
2761 {
2762 return SWIG_From_long (value);
2763 }
2764
2765
2766 #include <limits.h>
2767 #ifndef LLONG_MIN
2768 # define LLONG_MIN LONG_LONG_MIN
2769 #endif
2770 #ifndef LLONG_MAX
2771 # define LLONG_MAX LONG_LONG_MAX
2772 #endif
2773 #ifndef ULLONG_MAX
2774 # define ULLONG_MAX ULONG_LONG_MAX
2775 #endif
2776
2777
2778 SWIGINTERN int
2779 SWIG_AsVal_long (PyObject* obj, long* val)
2780 {
2781 if (PyNumber_Check(obj)) {
2782 if (val) *val = PyInt_AsLong(obj);
2783 return SWIG_OK;
2784 }
2785 return SWIG_TypeError;
2786 }
2787
2788
2789 SWIGINTERN int
2790 SWIG_AsVal_int (PyObject * obj, int *val)
2791 {
2792 long v;
2793 int res = SWIG_AsVal_long (obj, &v);
2794 if (SWIG_IsOK(res)) {
2795 if ((v < INT_MIN || v > INT_MAX)) {
2796 return SWIG_OverflowError;
2797 } else {
2798 if (val) *val = static_cast< int >(v);
2799 }
2800 }
2801 return res;
2802 }
2803
2804 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2805
2806 SWIGINTERN int
2807 SWIG_AsVal_bool (PyObject *obj, bool *val)
2808 {
2809 if (obj == Py_True) {
2810 if (val) *val = true;
2811 return SWIG_OK;
2812 } else if (obj == Py_False) {
2813 if (val) *val = false;
2814 return SWIG_OK;
2815 } else {
2816 long v = 0;
2817 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2818 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2819 return res;
2820 }
2821 }
2822
2823 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2824 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2825 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2826 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2827 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2828 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2829 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2830
2831 #include <wx/checklst.h>
2832
2833 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2834 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2835 if (clientData)
2836 {
2837 wxPyClientData* data = new wxPyClientData(clientData);
2838 self->Insert(item, pos, data);
2839 }
2840 else
2841 self->Insert(item, pos);
2842 }
2843
2844 SWIGINTERN int
2845 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2846 {
2847 long v = 0;
2848 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2849 return SWIG_TypeError;
2850 }
2851 else if (val)
2852 *val = (unsigned long)v;
2853 return SWIG_OK;
2854 }
2855
2856
2857 SWIGINTERN int
2858 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2859 {
2860 unsigned long v;
2861 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2862 if (SWIG_IsOK(res)) {
2863 if ((v > UINT_MAX)) {
2864 return SWIG_OverflowError;
2865 } else {
2866 if (val) *val = static_cast< unsigned int >(v);
2867 }
2868 }
2869 return res;
2870 }
2871
2872 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2874 wxArrayInt lst;
2875 self->GetSelections(lst);
2876 PyObject *tup = PyTuple_New(lst.GetCount());
2877 for (size_t i=0; i<lst.GetCount(); i++)
2878 {
2879 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2880 }
2881 wxPyEndBlockThreads(blocked);
2882 return tup;
2883 }
2884 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetTextColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetBackgroundColour(c);
2894 #endif
2895 }
2896 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2897 #ifdef __WXMSW__
2898 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2899 self->GetItem(item)->SetFont(f);
2900 #endif
2901 }
2902 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2903 SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
2904 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2905 self->AppendText(text);
2906 }
2907 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2908 return self->GetValue().Mid(from, to - from);
2909 }
2910 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2911 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2912 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2913 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2914 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2915
2916 SWIGINTERNINLINE PyObject*
2917 SWIG_From_unsigned_SS_long (unsigned long value)
2918 {
2919 return (value > LONG_MAX) ?
2920 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_size_t (size_t value)
2926 {
2927 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2928 }
2929
2930
2931 SWIGINTERNINLINE PyObject *
2932 SWIG_From_unsigned_SS_int (unsigned int value)
2933 {
2934 return SWIG_From_unsigned_SS_long (value);
2935 }
2936
2937
2938 #include <wx/slider.h>
2939
2940
2941 static const wxString wxPySliderNameStr(wxSliderNameStr);
2942 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2943
2944 #if !wxUSE_TOGGLEBTN
2945 // implement dummy items for platforms that don't have this class
2946
2947 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2948
2949 class wxToggleButton : public wxControl
2950 {
2951 public:
2952 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2953 const wxPoint&, const wxSize&, long,
2954 const wxValidator&, const wxString&)
2955 { wxPyRaiseNotImplemented(); }
2956
2957 wxToggleButton()
2958 { wxPyRaiseNotImplemented(); }
2959 };
2960 #endif
2961
2962 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2963
2964 SWIGINTERNINLINE int
2965 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2966 {
2967 unsigned long v;
2968 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2969 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2970 return res;
2971 }
2972
2973 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2974 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2975 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2976 if (udata) {
2977 Py_INCREF(udata->m_obj);
2978 return udata->m_obj;
2979 } else {
2980 Py_INCREF(Py_None);
2981 return Py_None;
2982 }
2983 }
2984 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2985 self->SetClientData(new wxPyUserData(clientData));
2986 }
2987 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){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 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){
2995 wxPyUserData* udata = NULL;
2996 if (clientData && clientData != Py_None)
2997 udata = new wxPyUserData(clientData);
2998 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2999 shortHelp, longHelp, udata);
3000 }
3001 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3002 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3003 if (udata) {
3004 Py_INCREF(udata->m_obj);
3005 return udata->m_obj;
3006 } else {
3007 Py_INCREF(Py_None);
3008 return Py_None;
3009 }
3010 }
3011 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3012 self->SetToolClientData(id, new wxPyUserData(clientData));
3013 }
3014
3015 #include <wx/listctrl.h>
3016
3017 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3018 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3019 // Python aware sorting function for wxPyListCtrl
3020 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3021 int retval = 0;
3022 PyObject* func = (PyObject*)funcPtr;
3023 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3024
3025 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3026 PyObject* result = PyEval_CallObject(func, args);
3027 Py_DECREF(args);
3028 if (result) {
3029 retval = PyInt_AsLong(result);
3030 Py_DECREF(result);
3031 }
3032
3033 wxPyEndBlockThreads(blocked);
3034 return retval;
3035 }
3036
3037 // C++ Version of a Python aware class
3038 class wxPyListCtrl : public wxListCtrl {
3039 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3040 public:
3041 wxPyListCtrl() : wxListCtrl() {}
3042 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3043 const wxPoint& pos,
3044 const wxSize& size,
3045 long style,
3046 const wxValidator& validator,
3047 const wxString& name) :
3048 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3049
3050 bool Create(wxWindow* parent, wxWindowID id,
3051 const wxPoint& pos,
3052 const wxSize& size,
3053 long style,
3054 const wxValidator& validator,
3055 const wxString& name) {
3056 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3057 }
3058
3059 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3060 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3061
3062 // use the virtual version to avoid a confusing assert in the base class
3063 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3064 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3065
3066 PYPRIVATE;
3067 };
3068
3069 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3070
3071 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3072 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3073 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3074 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3075
3076
3077 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3078 wxListItem item;
3079 item.SetMask( wxLIST_MASK_STATE |
3080 wxLIST_MASK_TEXT |
3081 wxLIST_MASK_IMAGE |
3082 wxLIST_MASK_DATA |
3083 wxLIST_SET_ITEM |
3084 wxLIST_MASK_WIDTH |
3085 wxLIST_MASK_FORMAT
3086 );
3087 if (self->GetColumn(col, item))
3088 return new wxListItem(item);
3089 else
3090 return NULL;
3091 }
3092 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3093 wxListItem* info = new wxListItem;
3094 info->m_itemId = itemId;
3095 info->m_col = col;
3096 info->m_mask = 0xFFFF;
3097 self->GetItem(*info);
3098 return info;
3099 }
3100 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3101 wxPoint pos;
3102 self->GetItemPosition(item, pos);
3103 return pos;
3104 }
3105 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3106 wxRect rect;
3107 self->GetItemRect(item, rect, code);
3108 return rect;
3109 }
3110 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3111 if (!PyCallable_Check(func))
3112 return false;
3113 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3114 }
3115 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3116
3117
3118
3119 return (wxWindow*)self->m_mainWin;
3120
3121 }
3122
3123 #include <wx/treectrl.h>
3124 #include "wx/wxPython/pytree.h"
3125
3126 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3127 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3128 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3129 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3130
3131 static wxTreeItemId wxNullTreeItemId;
3132
3133 // C++ version of Python aware wxTreeCtrl
3134 class wxPyTreeCtrl : public wxTreeCtrl {
3135 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3136 public:
3137 wxPyTreeCtrl() : wxTreeCtrl() {}
3138 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3139 const wxPoint& pos,
3140 const wxSize& size,
3141 long style,
3142 const wxValidator& validator,
3143 const wxString& name) :
3144 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3145
3146 bool Create(wxWindow *parent, wxWindowID id,
3147 const wxPoint& pos,
3148 const wxSize& size,
3149 long style,
3150 const wxValidator& validator,
3151 const wxString& name) {
3152 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3153 }
3154
3155
3156 int OnCompareItems(const wxTreeItemId& item1,
3157 const wxTreeItemId& item2) {
3158 int rval = 0;
3159 bool found;
3160 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3161 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3162 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3163 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3164 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3165 Py_DECREF(o1);
3166 Py_DECREF(o2);
3167 }
3168 wxPyEndBlockThreads(blocked);
3169 if (! found)
3170 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3171 return rval;
3172 }
3173 PYPRIVATE;
3174 };
3175
3176 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3177
3178
3179 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3180 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3181 if (data == NULL) {
3182 data = new wxPyTreeItemData();
3183 data->SetId(item); // set the id
3184 self->SetItemData(item, data);
3185 }
3186 return data;
3187 }
3188 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3189 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3190 if (data == NULL) {
3191 data = new wxPyTreeItemData();
3192 data->SetId(item); // set the id
3193 self->SetItemData(item, data);
3194 }
3195 return data->GetData();
3196 }
3197 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 }
3201 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3202 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3203 if (data == NULL) {
3204 data = new wxPyTreeItemData(obj);
3205 data->SetId(item); // set the id
3206 self->SetItemData(item, data);
3207 } else
3208 data->SetData(obj);
3209 }
3210 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3212 PyObject* rval = PyList_New(0);
3213 wxArrayTreeItemIds array;
3214 size_t num, x;
3215 num = self->GetSelections(array);
3216 for (x=0; x < num; x++) {
3217 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3218 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3219 PyList_Append(rval, item);
3220 Py_DECREF(item);
3221 }
3222 wxPyEndBlockThreads(blocked);
3223 return rval;
3224 }
3225 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3226 void* cookie = 0;
3227 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3228 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3229 PyObject* tup = PyTuple_New(2);
3230 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3231 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3232 wxPyEndBlockThreads(blocked);
3233 return tup;
3234 }
3235 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3236 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3237 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3238 PyObject* tup = PyTuple_New(2);
3239 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3240 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3241 wxPyEndBlockThreads(blocked);
3242 return tup;
3243 }
3244 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3245 wxRect rect;
3246 if (self->GetBoundingRect(item, rect, textOnly)) {
3247 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3248 wxRect* r = new wxRect(rect);
3249 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3250 wxPyEndBlockThreads(blocked);
3251 return val;
3252 }
3253 else
3254 RETURN_NONE();
3255 }
3256 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3257
3258 SWIGINTERNINLINE PyObject*
3259 SWIG_From_bool (bool value)
3260 {
3261 return PyBool_FromLong(value ? 1 : 0);
3262 }
3263
3264 // C++ version of Python aware wxControl
3265 class wxPyControl : public wxControl
3266 {
3267 DECLARE_DYNAMIC_CLASS(wxPyControl)
3268 public:
3269 wxPyControl() : wxControl() {}
3270 wxPyControl(wxWindow* parent, const wxWindowID id,
3271 const wxPoint& pos = wxDefaultPosition,
3272 const wxSize& size = wxDefaultSize,
3273 long style = 0,
3274 const wxValidator& validator=wxDefaultValidator,
3275 const wxString& name = wxPyControlNameStr)
3276 : wxControl(parent, id, pos, size, style, validator, name) {}
3277
3278
3279 bool DoEraseBackground(wxDC* dc) {
3280 #ifdef __WXMSW__
3281 return wxWindow::DoEraseBackground(dc->GetHDC());
3282 #else
3283 dc->SetBackground(wxBrush(GetBackgroundColour()));
3284 dc->Clear();
3285 return true;
3286 #endif
3287 }
3288
3289 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3290 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3292 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3293
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3296 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3297
3298 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3299 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3300
3301 DEC_PYCALLBACK__(InitDialog);
3302 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3303 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3304 DEC_PYCALLBACK_BOOL_(Validate);
3305
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3307 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3308 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3309
3310 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3311 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3312
3313 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3314 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3315
3316 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3317
3318 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3319
3320 PYPRIVATE;
3321 };
3322
3323 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3324
3325 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3326 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3328 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3329
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3332 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3333
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3335 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3336
3337 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3340 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3341
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3344 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3345
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3347 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3348
3349 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3350 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3351
3352 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3353
3354 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3355
3356
3357
3358 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3359
3360 #include <wx/generic/dragimgg.h>
3361
3362 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3363 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3364 wxDateTime rv;
3365 self->GetRange(&rv, NULL);
3366 return rv;
3367 }
3368 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3369 wxDateTime rv;
3370 self->GetRange(NULL, &rv);
3371 return rv;
3372 }
3373 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3374 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3375 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3376 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3377 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3378 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3379 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3380 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3381 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3382 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3383
3384 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3385 // define a dummy class for builds that don't have wxSearchCtrl
3386
3387 enum {
3388 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3389 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3390 };
3391
3392 class wxSearchCtrl : public wxTextCtrl
3393 {
3394 public:
3395 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3396 wxSearchCtrl(wxWindow*, wxWindowID,
3397 const wxString&,
3398 const wxPoint&,
3399 const wxSize&,
3400 long style,
3401 const wxValidator&,
3402 const wxString& name)
3403 { wxPyRaiseNotImplemented(); }
3404
3405 bool Create( wxWindow*, wxWindowID,
3406 const wxString&,
3407 const wxPoint&,
3408 const wxSize&,
3409 long style,
3410 const wxValidator&,
3411 const wxString& name) {}
3412
3413 virtual void SetMenu( wxMenu* ) {}
3414 virtual wxMenu* GetMenu() { return NULL; }
3415
3416 // get/set search options
3417 // ----------------------
3418 virtual void ShowSearchButton( bool ) {}
3419 virtual bool IsSearchButtonVisible() const { return false; }
3420
3421 virtual void ShowCancelButton( bool ) {}
3422 virtual bool IsCancelButtonVisible() const { return false; }
3423
3424 virtual void SetDescriptiveText(const wxString& text);
3425 virtual wxString GetDescriptiveText() const;
3426 };
3427 #endif
3428
3429 #ifdef __cplusplus
3430 extern "C" {
3431 #endif
3432 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3433 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3434 return 1;
3435 }
3436
3437
3438 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3439 PyObject *pyobj = 0;
3440
3441 {
3442 #if wxUSE_UNICODE
3443 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3444 #else
3445 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3446 #endif
3447 }
3448 return pyobj;
3449 }
3450
3451
3452 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3453 PyObject *resultobj = 0;
3454 wxWindow *arg1 = (wxWindow *) 0 ;
3455 int arg2 = (int) -1 ;
3456 wxString const &arg3_defvalue = wxPyEmptyString ;
3457 wxString *arg3 = (wxString *) &arg3_defvalue ;
3458 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3459 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3460 wxSize const &arg5_defvalue = wxDefaultSize ;
3461 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3462 long arg6 = (long) 0 ;
3463 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3464 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3465 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3466 wxString *arg8 = (wxString *) &arg8_defvalue ;
3467 wxButton *result = 0 ;
3468 void *argp1 = 0 ;
3469 int res1 = 0 ;
3470 int val2 ;
3471 int ecode2 = 0 ;
3472 bool temp3 = false ;
3473 wxPoint temp4 ;
3474 wxSize temp5 ;
3475 long val6 ;
3476 int ecode6 = 0 ;
3477 void *argp7 = 0 ;
3478 int res7 = 0 ;
3479 bool temp8 = false ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 PyObject * obj2 = 0 ;
3483 PyObject * obj3 = 0 ;
3484 PyObject * obj4 = 0 ;
3485 PyObject * obj5 = 0 ;
3486 PyObject * obj6 = 0 ;
3487 PyObject * obj7 = 0 ;
3488 char * kwnames[] = {
3489 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3490 };
3491
3492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3494 if (!SWIG_IsOK(res1)) {
3495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3496 }
3497 arg1 = reinterpret_cast< wxWindow * >(argp1);
3498 if (obj1) {
3499 ecode2 = SWIG_AsVal_int(obj1, &val2);
3500 if (!SWIG_IsOK(ecode2)) {
3501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3502 }
3503 arg2 = static_cast< int >(val2);
3504 }
3505 if (obj2) {
3506 {
3507 arg3 = wxString_in_helper(obj2);
3508 if (arg3 == NULL) SWIG_fail;
3509 temp3 = true;
3510 }
3511 }
3512 if (obj3) {
3513 {
3514 arg4 = &temp4;
3515 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3516 }
3517 }
3518 if (obj4) {
3519 {
3520 arg5 = &temp5;
3521 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3522 }
3523 }
3524 if (obj5) {
3525 ecode6 = SWIG_AsVal_long(obj5, &val6);
3526 if (!SWIG_IsOK(ecode6)) {
3527 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3528 }
3529 arg6 = static_cast< long >(val6);
3530 }
3531 if (obj6) {
3532 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3533 if (!SWIG_IsOK(res7)) {
3534 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3535 }
3536 if (!argp7) {
3537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3538 }
3539 arg7 = reinterpret_cast< wxValidator * >(argp7);
3540 }
3541 if (obj7) {
3542 {
3543 arg8 = wxString_in_helper(obj7);
3544 if (arg8 == NULL) SWIG_fail;
3545 temp8 = true;
3546 }
3547 }
3548 {
3549 if (!wxPyCheckForApp()) SWIG_fail;
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3552 wxPyEndAllowThreads(__tstate);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 }
3555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3556 {
3557 if (temp3)
3558 delete arg3;
3559 }
3560 {
3561 if (temp8)
3562 delete arg8;
3563 }
3564 return resultobj;
3565 fail:
3566 {
3567 if (temp3)
3568 delete arg3;
3569 }
3570 {
3571 if (temp8)
3572 delete arg8;
3573 }
3574 return NULL;
3575 }
3576
3577
3578 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3579 PyObject *resultobj = 0;
3580 wxButton *result = 0 ;
3581
3582 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3583 {
3584 if (!wxPyCheckForApp()) SWIG_fail;
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (wxButton *)new wxButton();
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3591 return resultobj;
3592 fail:
3593 return NULL;
3594 }
3595
3596
3597 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3598 PyObject *resultobj = 0;
3599 wxButton *arg1 = (wxButton *) 0 ;
3600 wxWindow *arg2 = (wxWindow *) 0 ;
3601 int arg3 = (int) -1 ;
3602 wxString const &arg4_defvalue = wxPyEmptyString ;
3603 wxString *arg4 = (wxString *) &arg4_defvalue ;
3604 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3605 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3606 wxSize const &arg6_defvalue = wxDefaultSize ;
3607 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3608 long arg7 = (long) 0 ;
3609 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3610 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3611 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3612 wxString *arg9 = (wxString *) &arg9_defvalue ;
3613 bool result;
3614 void *argp1 = 0 ;
3615 int res1 = 0 ;
3616 void *argp2 = 0 ;
3617 int res2 = 0 ;
3618 int val3 ;
3619 int ecode3 = 0 ;
3620 bool temp4 = false ;
3621 wxPoint temp5 ;
3622 wxSize temp6 ;
3623 long val7 ;
3624 int ecode7 = 0 ;
3625 void *argp8 = 0 ;
3626 int res8 = 0 ;
3627 bool temp9 = false ;
3628 PyObject * obj0 = 0 ;
3629 PyObject * obj1 = 0 ;
3630 PyObject * obj2 = 0 ;
3631 PyObject * obj3 = 0 ;
3632 PyObject * obj4 = 0 ;
3633 PyObject * obj5 = 0 ;
3634 PyObject * obj6 = 0 ;
3635 PyObject * obj7 = 0 ;
3636 PyObject * obj8 = 0 ;
3637 char * kwnames[] = {
3638 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3639 };
3640
3641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3643 if (!SWIG_IsOK(res1)) {
3644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3645 }
3646 arg1 = reinterpret_cast< wxButton * >(argp1);
3647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3648 if (!SWIG_IsOK(res2)) {
3649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3650 }
3651 arg2 = reinterpret_cast< wxWindow * >(argp2);
3652 if (obj2) {
3653 ecode3 = SWIG_AsVal_int(obj2, &val3);
3654 if (!SWIG_IsOK(ecode3)) {
3655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3656 }
3657 arg3 = static_cast< int >(val3);
3658 }
3659 if (obj3) {
3660 {
3661 arg4 = wxString_in_helper(obj3);
3662 if (arg4 == NULL) SWIG_fail;
3663 temp4 = true;
3664 }
3665 }
3666 if (obj4) {
3667 {
3668 arg5 = &temp5;
3669 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3670 }
3671 }
3672 if (obj5) {
3673 {
3674 arg6 = &temp6;
3675 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3676 }
3677 }
3678 if (obj6) {
3679 ecode7 = SWIG_AsVal_long(obj6, &val7);
3680 if (!SWIG_IsOK(ecode7)) {
3681 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3682 }
3683 arg7 = static_cast< long >(val7);
3684 }
3685 if (obj7) {
3686 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3687 if (!SWIG_IsOK(res8)) {
3688 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3689 }
3690 if (!argp8) {
3691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3692 }
3693 arg8 = reinterpret_cast< wxValidator * >(argp8);
3694 }
3695 if (obj8) {
3696 {
3697 arg9 = wxString_in_helper(obj8);
3698 if (arg9 == NULL) SWIG_fail;
3699 temp9 = true;
3700 }
3701 }
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 {
3709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3710 }
3711 {
3712 if (temp4)
3713 delete arg4;
3714 }
3715 {
3716 if (temp9)
3717 delete arg9;
3718 }
3719 return resultobj;
3720 fail:
3721 {
3722 if (temp4)
3723 delete arg4;
3724 }
3725 {
3726 if (temp9)
3727 delete arg9;
3728 }
3729 return NULL;
3730 }
3731
3732
3733 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 PyObject *resultobj = 0;
3735 wxButton *arg1 = (wxButton *) 0 ;
3736 void *argp1 = 0 ;
3737 int res1 = 0 ;
3738 PyObject *swig_obj[1] ;
3739
3740 if (!args) SWIG_fail;
3741 swig_obj[0] = args;
3742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3743 if (!SWIG_IsOK(res1)) {
3744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3745 }
3746 arg1 = reinterpret_cast< wxButton * >(argp1);
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 (arg1)->SetDefault();
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_Py_Void();
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *resultobj = 0;
3762 wxSize result;
3763
3764 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 result = wxButton::GetDefaultSize();
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj = 0;
3780 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3781 SwigValueWrapper<wxVisualAttributes > result;
3782 int val1 ;
3783 int ecode1 = 0 ;
3784 PyObject * obj0 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "variant", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3790 if (obj0) {
3791 ecode1 = SWIG_AsVal_int(obj0, &val1);
3792 if (!SWIG_IsOK(ecode1)) {
3793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3794 }
3795 arg1 = static_cast< wxWindowVariant >(val1);
3796 }
3797 {
3798 if (!wxPyCheckForApp()) SWIG_fail;
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = wxButton::GetClassDefaultAttributes(arg1);
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3805 return resultobj;
3806 fail:
3807 return NULL;
3808 }
3809
3810
3811 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3812 PyObject *obj;
3813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3814 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3815 return SWIG_Py_Void();
3816 }
3817
3818 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3819 return SWIG_Python_InitShadowInstance(args);
3820 }
3821
3822 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj = 0;
3824 wxWindow *arg1 = (wxWindow *) 0 ;
3825 int arg2 = (int) -1 ;
3826 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3827 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3830 wxSize const &arg5_defvalue = wxDefaultSize ;
3831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3832 long arg6 = (long) wxBU_AUTODRAW ;
3833 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3834 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3835 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3836 wxString *arg8 = (wxString *) &arg8_defvalue ;
3837 wxBitmapButton *result = 0 ;
3838 void *argp1 = 0 ;
3839 int res1 = 0 ;
3840 int val2 ;
3841 int ecode2 = 0 ;
3842 void *argp3 = 0 ;
3843 int res3 = 0 ;
3844 wxPoint temp4 ;
3845 wxSize temp5 ;
3846 long val6 ;
3847 int ecode6 = 0 ;
3848 void *argp7 = 0 ;
3849 int res7 = 0 ;
3850 bool temp8 = false ;
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 PyObject * obj2 = 0 ;
3854 PyObject * obj3 = 0 ;
3855 PyObject * obj4 = 0 ;
3856 PyObject * obj5 = 0 ;
3857 PyObject * obj6 = 0 ;
3858 PyObject * obj7 = 0 ;
3859 char * kwnames[] = {
3860 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3861 };
3862
3863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3865 if (!SWIG_IsOK(res1)) {
3866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3867 }
3868 arg1 = reinterpret_cast< wxWindow * >(argp1);
3869 if (obj1) {
3870 ecode2 = SWIG_AsVal_int(obj1, &val2);
3871 if (!SWIG_IsOK(ecode2)) {
3872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3873 }
3874 arg2 = static_cast< int >(val2);
3875 }
3876 if (obj2) {
3877 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3878 if (!SWIG_IsOK(res3)) {
3879 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3880 }
3881 if (!argp3) {
3882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3883 }
3884 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3885 }
3886 if (obj3) {
3887 {
3888 arg4 = &temp4;
3889 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3890 }
3891 }
3892 if (obj4) {
3893 {
3894 arg5 = &temp5;
3895 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3896 }
3897 }
3898 if (obj5) {
3899 ecode6 = SWIG_AsVal_long(obj5, &val6);
3900 if (!SWIG_IsOK(ecode6)) {
3901 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3902 }
3903 arg6 = static_cast< long >(val6);
3904 }
3905 if (obj6) {
3906 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3907 if (!SWIG_IsOK(res7)) {
3908 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3909 }
3910 if (!argp7) {
3911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3912 }
3913 arg7 = reinterpret_cast< wxValidator * >(argp7);
3914 }
3915 if (obj7) {
3916 {
3917 arg8 = wxString_in_helper(obj7);
3918 if (arg8 == NULL) SWIG_fail;
3919 temp8 = true;
3920 }
3921 }
3922 {
3923 if (!wxPyCheckForApp()) SWIG_fail;
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3926 wxPyEndAllowThreads(__tstate);
3927 if (PyErr_Occurred()) SWIG_fail;
3928 }
3929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3930 {
3931 if (temp8)
3932 delete arg8;
3933 }
3934 return resultobj;
3935 fail:
3936 {
3937 if (temp8)
3938 delete arg8;
3939 }
3940 return NULL;
3941 }
3942
3943
3944 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *resultobj = 0;
3946 wxBitmapButton *result = 0 ;
3947
3948 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3949 {
3950 if (!wxPyCheckForApp()) SWIG_fail;
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (wxBitmapButton *)new wxBitmapButton();
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3957 return resultobj;
3958 fail:
3959 return NULL;
3960 }
3961
3962
3963 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj = 0;
3965 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3966 wxWindow *arg2 = (wxWindow *) 0 ;
3967 int arg3 = (int) -1 ;
3968 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3969 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3970 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3971 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3972 wxSize const &arg6_defvalue = wxDefaultSize ;
3973 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3974 long arg7 = (long) wxBU_AUTODRAW ;
3975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3977 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3978 wxString *arg9 = (wxString *) &arg9_defvalue ;
3979 bool result;
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 void *argp2 = 0 ;
3983 int res2 = 0 ;
3984 int val3 ;
3985 int ecode3 = 0 ;
3986 void *argp4 = 0 ;
3987 int res4 = 0 ;
3988 wxPoint temp5 ;
3989 wxSize temp6 ;
3990 long val7 ;
3991 int ecode7 = 0 ;
3992 void *argp8 = 0 ;
3993 int res8 = 0 ;
3994 bool temp9 = false ;
3995 PyObject * obj0 = 0 ;
3996 PyObject * obj1 = 0 ;
3997 PyObject * obj2 = 0 ;
3998 PyObject * obj3 = 0 ;
3999 PyObject * obj4 = 0 ;
4000 PyObject * obj5 = 0 ;
4001 PyObject * obj6 = 0 ;
4002 PyObject * obj7 = 0 ;
4003 PyObject * obj8 = 0 ;
4004 char * kwnames[] = {
4005 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4006 };
4007
4008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4010 if (!SWIG_IsOK(res1)) {
4011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4012 }
4013 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4015 if (!SWIG_IsOK(res2)) {
4016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4017 }
4018 arg2 = reinterpret_cast< wxWindow * >(argp2);
4019 if (obj2) {
4020 ecode3 = SWIG_AsVal_int(obj2, &val3);
4021 if (!SWIG_IsOK(ecode3)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4023 }
4024 arg3 = static_cast< int >(val3);
4025 }
4026 if (obj3) {
4027 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4028 if (!SWIG_IsOK(res4)) {
4029 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4030 }
4031 if (!argp4) {
4032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4033 }
4034 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4035 }
4036 if (obj4) {
4037 {
4038 arg5 = &temp5;
4039 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4040 }
4041 }
4042 if (obj5) {
4043 {
4044 arg6 = &temp6;
4045 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4046 }
4047 }
4048 if (obj6) {
4049 ecode7 = SWIG_AsVal_long(obj6, &val7);
4050 if (!SWIG_IsOK(ecode7)) {
4051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4052 }
4053 arg7 = static_cast< long >(val7);
4054 }
4055 if (obj7) {
4056 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4057 if (!SWIG_IsOK(res8)) {
4058 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4059 }
4060 if (!argp8) {
4061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4062 }
4063 arg8 = reinterpret_cast< wxValidator * >(argp8);
4064 }
4065 if (obj8) {
4066 {
4067 arg9 = wxString_in_helper(obj8);
4068 if (arg9 == NULL) SWIG_fail;
4069 temp9 = true;
4070 }
4071 }
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 {
4079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4080 }
4081 {
4082 if (temp9)
4083 delete arg9;
4084 }
4085 return resultobj;
4086 fail:
4087 {
4088 if (temp9)
4089 delete arg9;
4090 }
4091 return NULL;
4092 }
4093
4094
4095 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4096 PyObject *resultobj = 0;
4097 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4098 wxBitmap result;
4099 void *argp1 = 0 ;
4100 int res1 = 0 ;
4101 PyObject *swig_obj[1] ;
4102
4103 if (!args) SWIG_fail;
4104 swig_obj[0] = args;
4105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4106 if (!SWIG_IsOK(res1)) {
4107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4108 }
4109 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 result = (arg1)->GetBitmapLabel();
4113 wxPyEndAllowThreads(__tstate);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 }
4116 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4117 return resultobj;
4118 fail:
4119 return NULL;
4120 }
4121
4122
4123 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4124 PyObject *resultobj = 0;
4125 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4126 wxBitmap result;
4127 void *argp1 = 0 ;
4128 int res1 = 0 ;
4129 PyObject *swig_obj[1] ;
4130
4131 if (!args) SWIG_fail;
4132 swig_obj[0] = args;
4133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4134 if (!SWIG_IsOK(res1)) {
4135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4136 }
4137 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4138 {
4139 PyThreadState* __tstate = wxPyBeginAllowThreads();
4140 result = (arg1)->GetBitmapDisabled();
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4145 return resultobj;
4146 fail:
4147 return NULL;
4148 }
4149
4150
4151 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4152 PyObject *resultobj = 0;
4153 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4154 wxBitmap result;
4155 void *argp1 = 0 ;
4156 int res1 = 0 ;
4157 PyObject *swig_obj[1] ;
4158
4159 if (!args) SWIG_fail;
4160 swig_obj[0] = args;
4161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4162 if (!SWIG_IsOK(res1)) {
4163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4164 }
4165 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (arg1)->GetBitmapFocus();
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4173 return resultobj;
4174 fail:
4175 return NULL;
4176 }
4177
4178
4179 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4180 PyObject *resultobj = 0;
4181 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4182 wxBitmap result;
4183 void *argp1 = 0 ;
4184 int res1 = 0 ;
4185 PyObject *swig_obj[1] ;
4186
4187 if (!args) SWIG_fail;
4188 swig_obj[0] = args;
4189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4190 if (!SWIG_IsOK(res1)) {
4191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4192 }
4193 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 result = (arg1)->GetBitmapSelected();
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4208 PyObject *resultobj = 0;
4209 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4210 wxBitmap result;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 PyObject *swig_obj[1] ;
4214
4215 if (!args) SWIG_fail;
4216 swig_obj[0] = args;
4217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4220 }
4221 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (arg1)->GetBitmapHover();
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = 0;
4237 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4238 wxBitmap *arg2 = 0 ;
4239 void *argp1 = 0 ;
4240 int res1 = 0 ;
4241 void *argp2 = 0 ;
4242 int res2 = 0 ;
4243 PyObject * obj0 = 0 ;
4244 PyObject * obj1 = 0 ;
4245 char * kwnames[] = {
4246 (char *) "self",(char *) "bitmap", NULL
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4251 if (!SWIG_IsOK(res1)) {
4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4253 }
4254 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4256 if (!SWIG_IsOK(res2)) {
4257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 if (!argp2) {
4260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4261 }
4262 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_Py_Void();
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj = 0;
4278 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4279 wxBitmap *arg2 = 0 ;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 void *argp2 = 0 ;
4283 int res2 = 0 ;
4284 PyObject * obj0 = 0 ;
4285 PyObject * obj1 = 0 ;
4286 char * kwnames[] = {
4287 (char *) "self",(char *) "bitmap", NULL
4288 };
4289
4290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4294 }
4295 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4297 if (!SWIG_IsOK(res2)) {
4298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 if (!argp2) {
4301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4302 }
4303 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4304 {
4305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4306 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 resultobj = SWIG_Py_Void();
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4318 PyObject *resultobj = 0;
4319 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4320 wxBitmap *arg2 = 0 ;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 void *argp2 = 0 ;
4324 int res2 = 0 ;
4325 PyObject * obj0 = 0 ;
4326 PyObject * obj1 = 0 ;
4327 char * kwnames[] = {
4328 (char *) "self",(char *) "bitmap", NULL
4329 };
4330
4331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4335 }
4336 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4338 if (!SWIG_IsOK(res2)) {
4339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 if (!argp2) {
4342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4343 }
4344 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_Py_Void();
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj = 0;
4360 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4361 wxBitmap *arg2 = 0 ;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 void *argp2 = 0 ;
4365 int res2 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 char * kwnames[] = {
4369 (char *) "self",(char *) "bitmap", NULL
4370 };
4371
4372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4374 if (!SWIG_IsOK(res1)) {
4375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4376 }
4377 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4379 if (!SWIG_IsOK(res2)) {
4380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4381 }
4382 if (!argp2) {
4383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4384 }
4385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4386 {
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 resultobj = SWIG_Py_Void();
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj = 0;
4401 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4402 wxBitmap *arg2 = 0 ;
4403 void *argp1 = 0 ;
4404 int res1 = 0 ;
4405 void *argp2 = 0 ;
4406 int res2 = 0 ;
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 char * kwnames[] = {
4410 (char *) "self",(char *) "hover", NULL
4411 };
4412
4413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4417 }
4418 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4420 if (!SWIG_IsOK(res2)) {
4421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4422 }
4423 if (!argp2) {
4424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4425 }
4426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4427 {
4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
4429 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = SWIG_Py_Void();
4434 return resultobj;
4435 fail:
4436 return NULL;
4437 }
4438
4439
4440 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj = 0;
4442 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4443 int arg2 ;
4444 int arg3 ;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
4447 int val2 ;
4448 int ecode2 = 0 ;
4449 int val3 ;
4450 int ecode3 = 0 ;
4451 PyObject * obj0 = 0 ;
4452 PyObject * obj1 = 0 ;
4453 PyObject * obj2 = 0 ;
4454 char * kwnames[] = {
4455 (char *) "self",(char *) "x",(char *) "y", NULL
4456 };
4457
4458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4460 if (!SWIG_IsOK(res1)) {
4461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4462 }
4463 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4464 ecode2 = SWIG_AsVal_int(obj1, &val2);
4465 if (!SWIG_IsOK(ecode2)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4467 }
4468 arg2 = static_cast< int >(val2);
4469 ecode3 = SWIG_AsVal_int(obj2, &val3);
4470 if (!SWIG_IsOK(ecode3)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4472 }
4473 arg3 = static_cast< int >(val3);
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 (arg1)->SetMargins(arg2,arg3);
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_Py_Void();
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4488 PyObject *resultobj = 0;
4489 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4490 int result;
4491 void *argp1 = 0 ;
4492 int res1 = 0 ;
4493 PyObject *swig_obj[1] ;
4494
4495 if (!args) SWIG_fail;
4496 swig_obj[0] = args;
4497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4498 if (!SWIG_IsOK(res1)) {
4499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4500 }
4501 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4502 {
4503 PyThreadState* __tstate = wxPyBeginAllowThreads();
4504 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4505 wxPyEndAllowThreads(__tstate);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 resultobj = SWIG_From_int(static_cast< int >(result));
4509 return resultobj;
4510 fail:
4511 return NULL;
4512 }
4513
4514
4515 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4516 PyObject *resultobj = 0;
4517 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4518 int result;
4519 void *argp1 = 0 ;
4520 int res1 = 0 ;
4521 PyObject *swig_obj[1] ;
4522
4523 if (!args) SWIG_fail;
4524 swig_obj[0] = args;
4525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4526 if (!SWIG_IsOK(res1)) {
4527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4528 }
4529 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4533 wxPyEndAllowThreads(__tstate);
4534 if (PyErr_Occurred()) SWIG_fail;
4535 }
4536 resultobj = SWIG_From_int(static_cast< int >(result));
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4544 PyObject *obj;
4545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4546 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4547 return SWIG_Py_Void();
4548 }
4549
4550 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4551 return SWIG_Python_InitShadowInstance(args);
4552 }
4553
4554 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4555 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4556 return 1;
4557 }
4558
4559
4560 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4561 PyObject *pyobj = 0;
4562
4563 {
4564 #if wxUSE_UNICODE
4565 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4566 #else
4567 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4568 #endif
4569 }
4570 return pyobj;
4571 }
4572
4573
4574 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = 0;
4576 wxWindow *arg1 = (wxWindow *) 0 ;
4577 int arg2 = (int) -1 ;
4578 wxString const &arg3_defvalue = wxPyEmptyString ;
4579 wxString *arg3 = (wxString *) &arg3_defvalue ;
4580 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4581 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4582 wxSize const &arg5_defvalue = wxDefaultSize ;
4583 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4584 long arg6 = (long) 0 ;
4585 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4586 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4587 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4588 wxString *arg8 = (wxString *) &arg8_defvalue ;
4589 wxCheckBox *result = 0 ;
4590 void *argp1 = 0 ;
4591 int res1 = 0 ;
4592 int val2 ;
4593 int ecode2 = 0 ;
4594 bool temp3 = false ;
4595 wxPoint temp4 ;
4596 wxSize temp5 ;
4597 long val6 ;
4598 int ecode6 = 0 ;
4599 void *argp7 = 0 ;
4600 int res7 = 0 ;
4601 bool temp8 = false ;
4602 PyObject * obj0 = 0 ;
4603 PyObject * obj1 = 0 ;
4604 PyObject * obj2 = 0 ;
4605 PyObject * obj3 = 0 ;
4606 PyObject * obj4 = 0 ;
4607 PyObject * obj5 = 0 ;
4608 PyObject * obj6 = 0 ;
4609 PyObject * obj7 = 0 ;
4610 char * kwnames[] = {
4611 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4612 };
4613
4614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4618 }
4619 arg1 = reinterpret_cast< wxWindow * >(argp1);
4620 if (obj1) {
4621 ecode2 = SWIG_AsVal_int(obj1, &val2);
4622 if (!SWIG_IsOK(ecode2)) {
4623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4624 }
4625 arg2 = static_cast< int >(val2);
4626 }
4627 if (obj2) {
4628 {
4629 arg3 = wxString_in_helper(obj2);
4630 if (arg3 == NULL) SWIG_fail;
4631 temp3 = true;
4632 }
4633 }
4634 if (obj3) {
4635 {
4636 arg4 = &temp4;
4637 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4638 }
4639 }
4640 if (obj4) {
4641 {
4642 arg5 = &temp5;
4643 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4644 }
4645 }
4646 if (obj5) {
4647 ecode6 = SWIG_AsVal_long(obj5, &val6);
4648 if (!SWIG_IsOK(ecode6)) {
4649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4650 }
4651 arg6 = static_cast< long >(val6);
4652 }
4653 if (obj6) {
4654 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4655 if (!SWIG_IsOK(res7)) {
4656 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4657 }
4658 if (!argp7) {
4659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4660 }
4661 arg7 = reinterpret_cast< wxValidator * >(argp7);
4662 }
4663 if (obj7) {
4664 {
4665 arg8 = wxString_in_helper(obj7);
4666 if (arg8 == NULL) SWIG_fail;
4667 temp8 = true;
4668 }
4669 }
4670 {
4671 if (!wxPyCheckForApp()) SWIG_fail;
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4678 {
4679 if (temp3)
4680 delete arg3;
4681 }
4682 {
4683 if (temp8)
4684 delete arg8;
4685 }
4686 return resultobj;
4687 fail:
4688 {
4689 if (temp3)
4690 delete arg3;
4691 }
4692 {
4693 if (temp8)
4694 delete arg8;
4695 }
4696 return NULL;
4697 }
4698
4699
4700 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4701 PyObject *resultobj = 0;
4702 wxCheckBox *result = 0 ;
4703
4704 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4705 {
4706 if (!wxPyCheckForApp()) SWIG_fail;
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 result = (wxCheckBox *)new wxCheckBox();
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4713 return resultobj;
4714 fail:
4715 return NULL;
4716 }
4717
4718
4719 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj = 0;
4721 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4722 wxWindow *arg2 = (wxWindow *) 0 ;
4723 int arg3 = (int) -1 ;
4724 wxString const &arg4_defvalue = wxPyEmptyString ;
4725 wxString *arg4 = (wxString *) &arg4_defvalue ;
4726 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4727 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4728 wxSize const &arg6_defvalue = wxDefaultSize ;
4729 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4730 long arg7 = (long) 0 ;
4731 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4732 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4733 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4734 wxString *arg9 = (wxString *) &arg9_defvalue ;
4735 bool result;
4736 void *argp1 = 0 ;
4737 int res1 = 0 ;
4738 void *argp2 = 0 ;
4739 int res2 = 0 ;
4740 int val3 ;
4741 int ecode3 = 0 ;
4742 bool temp4 = false ;
4743 wxPoint temp5 ;
4744 wxSize temp6 ;
4745 long val7 ;
4746 int ecode7 = 0 ;
4747 void *argp8 = 0 ;
4748 int res8 = 0 ;
4749 bool temp9 = false ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 PyObject * obj2 = 0 ;
4753 PyObject * obj3 = 0 ;
4754 PyObject * obj4 = 0 ;
4755 PyObject * obj5 = 0 ;
4756 PyObject * obj6 = 0 ;
4757 PyObject * obj7 = 0 ;
4758 PyObject * obj8 = 0 ;
4759 char * kwnames[] = {
4760 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4761 };
4762
4763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4765 if (!SWIG_IsOK(res1)) {
4766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4767 }
4768 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4769 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4770 if (!SWIG_IsOK(res2)) {
4771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4772 }
4773 arg2 = reinterpret_cast< wxWindow * >(argp2);
4774 if (obj2) {
4775 ecode3 = SWIG_AsVal_int(obj2, &val3);
4776 if (!SWIG_IsOK(ecode3)) {
4777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4778 }
4779 arg3 = static_cast< int >(val3);
4780 }
4781 if (obj3) {
4782 {
4783 arg4 = wxString_in_helper(obj3);
4784 if (arg4 == NULL) SWIG_fail;
4785 temp4 = true;
4786 }
4787 }
4788 if (obj4) {
4789 {
4790 arg5 = &temp5;
4791 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4792 }
4793 }
4794 if (obj5) {
4795 {
4796 arg6 = &temp6;
4797 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4798 }
4799 }
4800 if (obj6) {
4801 ecode7 = SWIG_AsVal_long(obj6, &val7);
4802 if (!SWIG_IsOK(ecode7)) {
4803 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4804 }
4805 arg7 = static_cast< long >(val7);
4806 }
4807 if (obj7) {
4808 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4809 if (!SWIG_IsOK(res8)) {
4810 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4811 }
4812 if (!argp8) {
4813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4814 }
4815 arg8 = reinterpret_cast< wxValidator * >(argp8);
4816 }
4817 if (obj8) {
4818 {
4819 arg9 = wxString_in_helper(obj8);
4820 if (arg9 == NULL) SWIG_fail;
4821 temp9 = true;
4822 }
4823 }
4824 {
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 {
4831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4832 }
4833 {
4834 if (temp4)
4835 delete arg4;
4836 }
4837 {
4838 if (temp9)
4839 delete arg9;
4840 }
4841 return resultobj;
4842 fail:
4843 {
4844 if (temp4)
4845 delete arg4;
4846 }
4847 {
4848 if (temp9)
4849 delete arg9;
4850 }
4851 return NULL;
4852 }
4853
4854
4855 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4856 PyObject *resultobj = 0;
4857 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4858 bool result;
4859 void *argp1 = 0 ;
4860 int res1 = 0 ;
4861 PyObject *swig_obj[1] ;
4862
4863 if (!args) SWIG_fail;
4864 swig_obj[0] = args;
4865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4866 if (!SWIG_IsOK(res1)) {
4867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4868 }
4869 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (bool)(arg1)->GetValue();
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 {
4877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4878 }
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 PyObject *resultobj = 0;
4887 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4888 bool result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 PyObject *swig_obj[1] ;
4892
4893 if (!args) SWIG_fail;
4894 swig_obj[0] = args;
4895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4896 if (!SWIG_IsOK(res1)) {
4897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4898 }
4899 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (bool)(arg1)->IsChecked();
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 {
4907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4908 }
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj = 0;
4917 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4918 bool arg2 ;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 bool val2 ;
4922 int ecode2 = 0 ;
4923 PyObject * obj0 = 0 ;
4924 PyObject * obj1 = 0 ;
4925 char * kwnames[] = {
4926 (char *) "self",(char *) "state", NULL
4927 };
4928
4929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4931 if (!SWIG_IsOK(res1)) {
4932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4933 }
4934 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4935 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4936 if (!SWIG_IsOK(ecode2)) {
4937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4938 }
4939 arg2 = static_cast< bool >(val2);
4940 {
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 (arg1)->SetValue(arg2);
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 resultobj = SWIG_Py_Void();
4947 return resultobj;
4948 fail:
4949 return NULL;
4950 }
4951
4952
4953 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4954 PyObject *resultobj = 0;
4955 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4956 wxCheckBoxState result;
4957 void *argp1 = 0 ;
4958 int res1 = 0 ;
4959 PyObject *swig_obj[1] ;
4960
4961 if (!args) SWIG_fail;
4962 swig_obj[0] = args;
4963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4964 if (!SWIG_IsOK(res1)) {
4965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4966 }
4967 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 resultobj = SWIG_From_int(static_cast< int >(result));
4975 return resultobj;
4976 fail:
4977 return NULL;
4978 }
4979
4980
4981 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj = 0;
4983 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4984 wxCheckBoxState arg2 ;
4985 void *argp1 = 0 ;
4986 int res1 = 0 ;
4987 int val2 ;
4988 int ecode2 = 0 ;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 char * kwnames[] = {
4992 (char *) "self",(char *) "state", NULL
4993 };
4994
4995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4997 if (!SWIG_IsOK(res1)) {
4998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4999 }
5000 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5001 ecode2 = SWIG_AsVal_int(obj1, &val2);
5002 if (!SWIG_IsOK(ecode2)) {
5003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5004 }
5005 arg2 = static_cast< wxCheckBoxState >(val2);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 (arg1)->Set3StateValue(arg2);
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_Py_Void();
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5020 PyObject *resultobj = 0;
5021 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5022 bool result;
5023 void *argp1 = 0 ;
5024 int res1 = 0 ;
5025 PyObject *swig_obj[1] ;
5026
5027 if (!args) SWIG_fail;
5028 swig_obj[0] = args;
5029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5032 }
5033 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5034 {
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5042 }
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5050 PyObject *resultobj = 0;
5051 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5052 bool result;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 PyObject *swig_obj[1] ;
5056
5057 if (!args) SWIG_fail;
5058 swig_obj[0] = args;
5059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5060 if (!SWIG_IsOK(res1)) {
5061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5062 }
5063 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 {
5071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5072 }
5073 return resultobj;
5074 fail:
5075 return NULL;
5076 }
5077
5078
5079 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5080 PyObject *resultobj = 0;
5081 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5082 SwigValueWrapper<wxVisualAttributes > result;
5083 int val1 ;
5084 int ecode1 = 0 ;
5085 PyObject * obj0 = 0 ;
5086 char * kwnames[] = {
5087 (char *) "variant", NULL
5088 };
5089
5090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5091 if (obj0) {
5092 ecode1 = SWIG_AsVal_int(obj0, &val1);
5093 if (!SWIG_IsOK(ecode1)) {
5094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5095 }
5096 arg1 = static_cast< wxWindowVariant >(val1);
5097 }
5098 {
5099 if (!wxPyCheckForApp()) SWIG_fail;
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5102 wxPyEndAllowThreads(__tstate);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5106 return resultobj;
5107 fail:
5108 return NULL;
5109 }
5110
5111
5112 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5113 PyObject *obj;
5114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5115 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5116 return SWIG_Py_Void();
5117 }
5118
5119 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5120 return SWIG_Python_InitShadowInstance(args);
5121 }
5122
5123 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5124 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5125 return 1;
5126 }
5127
5128
5129 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5130 PyObject *pyobj = 0;
5131
5132 {
5133 #if wxUSE_UNICODE
5134 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5135 #else
5136 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5137 #endif
5138 }
5139 return pyobj;
5140 }
5141
5142
5143 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj = 0;
5145 wxWindow *arg1 = (wxWindow *) 0 ;
5146 int arg2 = (int) -1 ;
5147 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5148 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5149 wxSize const &arg4_defvalue = wxDefaultSize ;
5150 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5151 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5152 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5153 long arg6 = (long) 0 ;
5154 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5155 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5156 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5157 wxString *arg8 = (wxString *) &arg8_defvalue ;
5158 wxChoice *result = 0 ;
5159 void *argp1 = 0 ;
5160 int res1 = 0 ;
5161 int val2 ;
5162 int ecode2 = 0 ;
5163 wxPoint temp3 ;
5164 wxSize temp4 ;
5165 bool temp5 = false ;
5166 long val6 ;
5167 int ecode6 = 0 ;
5168 void *argp7 = 0 ;
5169 int res7 = 0 ;
5170 bool temp8 = false ;
5171 PyObject * obj0 = 0 ;
5172 PyObject * obj1 = 0 ;
5173 PyObject * obj2 = 0 ;
5174 PyObject * obj3 = 0 ;
5175 PyObject * obj4 = 0 ;
5176 PyObject * obj5 = 0 ;
5177 PyObject * obj6 = 0 ;
5178 PyObject * obj7 = 0 ;
5179 char * kwnames[] = {
5180 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5181 };
5182
5183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5185 if (!SWIG_IsOK(res1)) {
5186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5187 }
5188 arg1 = reinterpret_cast< wxWindow * >(argp1);
5189 if (obj1) {
5190 ecode2 = SWIG_AsVal_int(obj1, &val2);
5191 if (!SWIG_IsOK(ecode2)) {
5192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5193 }
5194 arg2 = static_cast< int >(val2);
5195 }
5196 if (obj2) {
5197 {
5198 arg3 = &temp3;
5199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5200 }
5201 }
5202 if (obj3) {
5203 {
5204 arg4 = &temp4;
5205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5206 }
5207 }
5208 if (obj4) {
5209 {
5210 if (! PySequence_Check(obj4)) {
5211 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5212 SWIG_fail;
5213 }
5214 arg5 = new wxArrayString;
5215 temp5 = true;
5216 int i, len=PySequence_Length(obj4);
5217 for (i=0; i<len; i++) {
5218 PyObject* item = PySequence_GetItem(obj4, i);
5219 wxString* s = wxString_in_helper(item);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 arg5->Add(*s);
5222 delete s;
5223 Py_DECREF(item);
5224 }
5225 }
5226 }
5227 if (obj5) {
5228 ecode6 = SWIG_AsVal_long(obj5, &val6);
5229 if (!SWIG_IsOK(ecode6)) {
5230 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5231 }
5232 arg6 = static_cast< long >(val6);
5233 }
5234 if (obj6) {
5235 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5236 if (!SWIG_IsOK(res7)) {
5237 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5238 }
5239 if (!argp7) {
5240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5241 }
5242 arg7 = reinterpret_cast< wxValidator * >(argp7);
5243 }
5244 if (obj7) {
5245 {
5246 arg8 = wxString_in_helper(obj7);
5247 if (arg8 == NULL) SWIG_fail;
5248 temp8 = true;
5249 }
5250 }
5251 {
5252 if (!wxPyCheckForApp()) SWIG_fail;
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5259 {
5260 if (temp5) delete arg5;
5261 }
5262 {
5263 if (temp8)
5264 delete arg8;
5265 }
5266 return resultobj;
5267 fail:
5268 {
5269 if (temp5) delete arg5;
5270 }
5271 {
5272 if (temp8)
5273 delete arg8;
5274 }
5275 return NULL;
5276 }
5277
5278
5279 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 PyObject *resultobj = 0;
5281 wxChoice *result = 0 ;
5282
5283 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5284 {
5285 if (!wxPyCheckForApp()) SWIG_fail;
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 result = (wxChoice *)new wxChoice();
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj = 0;
5300 wxChoice *arg1 = (wxChoice *) 0 ;
5301 wxWindow *arg2 = (wxWindow *) 0 ;
5302 int arg3 = (int) -1 ;
5303 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5304 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5305 wxSize const &arg5_defvalue = wxDefaultSize ;
5306 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5307 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5308 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5309 long arg7 = (long) 0 ;
5310 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5311 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5312 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5313 wxString *arg9 = (wxString *) &arg9_defvalue ;
5314 bool result;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 void *argp2 = 0 ;
5318 int res2 = 0 ;
5319 int val3 ;
5320 int ecode3 = 0 ;
5321 wxPoint temp4 ;
5322 wxSize temp5 ;
5323 bool temp6 = false ;
5324 long val7 ;
5325 int ecode7 = 0 ;
5326 void *argp8 = 0 ;
5327 int res8 = 0 ;
5328 bool temp9 = false ;
5329 PyObject * obj0 = 0 ;
5330 PyObject * obj1 = 0 ;
5331 PyObject * obj2 = 0 ;
5332 PyObject * obj3 = 0 ;
5333 PyObject * obj4 = 0 ;
5334 PyObject * obj5 = 0 ;
5335 PyObject * obj6 = 0 ;
5336 PyObject * obj7 = 0 ;
5337 PyObject * obj8 = 0 ;
5338 char * kwnames[] = {
5339 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5340 };
5341
5342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5344 if (!SWIG_IsOK(res1)) {
5345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5346 }
5347 arg1 = reinterpret_cast< wxChoice * >(argp1);
5348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5349 if (!SWIG_IsOK(res2)) {
5350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5351 }
5352 arg2 = reinterpret_cast< wxWindow * >(argp2);
5353 if (obj2) {
5354 ecode3 = SWIG_AsVal_int(obj2, &val3);
5355 if (!SWIG_IsOK(ecode3)) {
5356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5357 }
5358 arg3 = static_cast< int >(val3);
5359 }
5360 if (obj3) {
5361 {
5362 arg4 = &temp4;
5363 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5364 }
5365 }
5366 if (obj4) {
5367 {
5368 arg5 = &temp5;
5369 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5370 }
5371 }
5372 if (obj5) {
5373 {
5374 if (! PySequence_Check(obj5)) {
5375 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5376 SWIG_fail;
5377 }
5378 arg6 = new wxArrayString;
5379 temp6 = true;
5380 int i, len=PySequence_Length(obj5);
5381 for (i=0; i<len; i++) {
5382 PyObject* item = PySequence_GetItem(obj5, i);
5383 wxString* s = wxString_in_helper(item);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 arg6->Add(*s);
5386 delete s;
5387 Py_DECREF(item);
5388 }
5389 }
5390 }
5391 if (obj6) {
5392 ecode7 = SWIG_AsVal_long(obj6, &val7);
5393 if (!SWIG_IsOK(ecode7)) {
5394 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5395 }
5396 arg7 = static_cast< long >(val7);
5397 }
5398 if (obj7) {
5399 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5400 if (!SWIG_IsOK(res8)) {
5401 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5402 }
5403 if (!argp8) {
5404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5405 }
5406 arg8 = reinterpret_cast< wxValidator * >(argp8);
5407 }
5408 if (obj8) {
5409 {
5410 arg9 = wxString_in_helper(obj8);
5411 if (arg9 == NULL) SWIG_fail;
5412 temp9 = true;
5413 }
5414 }
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 {
5422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5423 }
5424 {
5425 if (temp6) delete arg6;
5426 }
5427 {
5428 if (temp9)
5429 delete arg9;
5430 }
5431 return resultobj;
5432 fail:
5433 {
5434 if (temp6) delete arg6;
5435 }
5436 {
5437 if (temp9)
5438 delete arg9;
5439 }
5440 return NULL;
5441 }
5442
5443
5444 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5445 PyObject *resultobj = 0;
5446 wxChoice *arg1 = (wxChoice *) 0 ;
5447 int result;
5448 void *argp1 = 0 ;
5449 int res1 = 0 ;
5450 PyObject *swig_obj[1] ;
5451
5452 if (!args) SWIG_fail;
5453 swig_obj[0] = args;
5454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5457 }
5458 arg1 = reinterpret_cast< wxChoice * >(argp1);
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_From_int(static_cast< int >(result));
5466 return resultobj;
5467 fail:
5468 return NULL;
5469 }
5470
5471
5472 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj = 0;
5474 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5475 SwigValueWrapper<wxVisualAttributes > result;
5476 int val1 ;
5477 int ecode1 = 0 ;
5478 PyObject * obj0 = 0 ;
5479 char * kwnames[] = {
5480 (char *) "variant", NULL
5481 };
5482
5483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5484 if (obj0) {
5485 ecode1 = SWIG_AsVal_int(obj0, &val1);
5486 if (!SWIG_IsOK(ecode1)) {
5487 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5488 }
5489 arg1 = static_cast< wxWindowVariant >(val1);
5490 }
5491 {
5492 if (!wxPyCheckForApp()) SWIG_fail;
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = wxChoice::GetClassDefaultAttributes(arg1);
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5506 PyObject *obj;
5507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5508 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5509 return SWIG_Py_Void();
5510 }
5511
5512 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5513 return SWIG_Python_InitShadowInstance(args);
5514 }
5515
5516 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5517 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5518 return 1;
5519 }
5520
5521
5522 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5523 PyObject *pyobj = 0;
5524
5525 {
5526 #if wxUSE_UNICODE
5527 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5528 #else
5529 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5530 #endif
5531 }
5532 return pyobj;
5533 }
5534
5535
5536 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5537 PyObject *resultobj = 0;
5538 wxWindow *arg1 = (wxWindow *) 0 ;
5539 int arg2 = (int) -1 ;
5540 wxString const &arg3_defvalue = wxPyEmptyString ;
5541 wxString *arg3 = (wxString *) &arg3_defvalue ;
5542 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5543 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5544 wxSize const &arg5_defvalue = wxDefaultSize ;
5545 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5546 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5547 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5548 long arg7 = (long) 0 ;
5549 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5550 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5551 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5552 wxString *arg9 = (wxString *) &arg9_defvalue ;
5553 wxComboBox *result = 0 ;
5554 void *argp1 = 0 ;
5555 int res1 = 0 ;
5556 int val2 ;
5557 int ecode2 = 0 ;
5558 bool temp3 = false ;
5559 wxPoint temp4 ;
5560 wxSize temp5 ;
5561 bool temp6 = false ;
5562 long val7 ;
5563 int ecode7 = 0 ;
5564 void *argp8 = 0 ;
5565 int res8 = 0 ;
5566 bool temp9 = false ;
5567 PyObject * obj0 = 0 ;
5568 PyObject * obj1 = 0 ;
5569 PyObject * obj2 = 0 ;
5570 PyObject * obj3 = 0 ;
5571 PyObject * obj4 = 0 ;
5572 PyObject * obj5 = 0 ;
5573 PyObject * obj6 = 0 ;
5574 PyObject * obj7 = 0 ;
5575 PyObject * obj8 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5584 }
5585 arg1 = reinterpret_cast< wxWindow * >(argp1);
5586 if (obj1) {
5587 ecode2 = SWIG_AsVal_int(obj1, &val2);
5588 if (!SWIG_IsOK(ecode2)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5590 }
5591 arg2 = static_cast< int >(val2);
5592 }
5593 if (obj2) {
5594 {
5595 arg3 = wxString_in_helper(obj2);
5596 if (arg3 == NULL) SWIG_fail;
5597 temp3 = true;
5598 }
5599 }
5600 if (obj3) {
5601 {
5602 arg4 = &temp4;
5603 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5604 }
5605 }
5606 if (obj4) {
5607 {
5608 arg5 = &temp5;
5609 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5610 }
5611 }
5612 if (obj5) {
5613 {
5614 if (! PySequence_Check(obj5)) {
5615 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5616 SWIG_fail;
5617 }
5618 arg6 = new wxArrayString;
5619 temp6 = true;
5620 int i, len=PySequence_Length(obj5);
5621 for (i=0; i<len; i++) {
5622 PyObject* item = PySequence_GetItem(obj5, i);
5623 wxString* s = wxString_in_helper(item);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 arg6->Add(*s);
5626 delete s;
5627 Py_DECREF(item);
5628 }
5629 }
5630 }
5631 if (obj6) {
5632 ecode7 = SWIG_AsVal_long(obj6, &val7);
5633 if (!SWIG_IsOK(ecode7)) {
5634 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5635 }
5636 arg7 = static_cast< long >(val7);
5637 }
5638 if (obj7) {
5639 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5640 if (!SWIG_IsOK(res8)) {
5641 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5642 }
5643 if (!argp8) {
5644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5645 }
5646 arg8 = reinterpret_cast< wxValidator * >(argp8);
5647 }
5648 if (obj8) {
5649 {
5650 arg9 = wxString_in_helper(obj8);
5651 if (arg9 == NULL) SWIG_fail;
5652 temp9 = true;
5653 }
5654 }
5655 {
5656 if (!wxPyCheckForApp()) SWIG_fail;
5657 PyThreadState* __tstate = wxPyBeginAllowThreads();
5658 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);
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5663 {
5664 if (temp3)
5665 delete arg3;
5666 }
5667 {
5668 if (temp6) delete arg6;
5669 }
5670 {
5671 if (temp9)
5672 delete arg9;
5673 }
5674 return resultobj;
5675 fail:
5676 {
5677 if (temp3)
5678 delete arg3;
5679 }
5680 {
5681 if (temp6) delete arg6;
5682 }
5683 {
5684 if (temp9)
5685 delete arg9;
5686 }
5687 return NULL;
5688 }
5689
5690
5691 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *resultobj = 0;
5693 wxComboBox *result = 0 ;
5694
5695 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5696 {
5697 if (!wxPyCheckForApp()) SWIG_fail;
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (wxComboBox *)new wxComboBox();
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5704 return resultobj;
5705 fail:
5706 return NULL;
5707 }
5708
5709
5710 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj = 0;
5712 wxComboBox *arg1 = (wxComboBox *) 0 ;
5713 wxWindow *arg2 = (wxWindow *) 0 ;
5714 int arg3 = (int) -1 ;
5715 wxString const &arg4_defvalue = wxPyEmptyString ;
5716 wxString *arg4 = (wxString *) &arg4_defvalue ;
5717 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5718 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5719 wxSize const &arg6_defvalue = wxDefaultSize ;
5720 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5721 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5722 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5723 long arg8 = (long) 0 ;
5724 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5725 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5726 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5727 wxString *arg10 = (wxString *) &arg10_defvalue ;
5728 bool result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 void *argp2 = 0 ;
5732 int res2 = 0 ;
5733 int val3 ;
5734 int ecode3 = 0 ;
5735 bool temp4 = false ;
5736 wxPoint temp5 ;
5737 wxSize temp6 ;
5738 bool temp7 = false ;
5739 long val8 ;
5740 int ecode8 = 0 ;
5741 void *argp9 = 0 ;
5742 int res9 = 0 ;
5743 bool temp10 = false ;
5744 PyObject * obj0 = 0 ;
5745 PyObject * obj1 = 0 ;
5746 PyObject * obj2 = 0 ;
5747 PyObject * obj3 = 0 ;
5748 PyObject * obj4 = 0 ;
5749 PyObject * obj5 = 0 ;
5750 PyObject * obj6 = 0 ;
5751 PyObject * obj7 = 0 ;
5752 PyObject * obj8 = 0 ;
5753 PyObject * obj9 = 0 ;
5754 char * kwnames[] = {
5755 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5756 };
5757
5758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5760 if (!SWIG_IsOK(res1)) {
5761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5762 }
5763 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5764 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5765 if (!SWIG_IsOK(res2)) {
5766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5767 }
5768 arg2 = reinterpret_cast< wxWindow * >(argp2);
5769 if (obj2) {
5770 ecode3 = SWIG_AsVal_int(obj2, &val3);
5771 if (!SWIG_IsOK(ecode3)) {
5772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5773 }
5774 arg3 = static_cast< int >(val3);
5775 }
5776 if (obj3) {
5777 {
5778 arg4 = wxString_in_helper(obj3);
5779 if (arg4 == NULL) SWIG_fail;
5780 temp4 = true;
5781 }
5782 }
5783 if (obj4) {
5784 {
5785 arg5 = &temp5;
5786 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5787 }
5788 }
5789 if (obj5) {
5790 {
5791 arg6 = &temp6;
5792 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5793 }
5794 }
5795 if (obj6) {
5796 {
5797 if (! PySequence_Check(obj6)) {
5798 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5799 SWIG_fail;
5800 }
5801 arg7 = new wxArrayString;
5802 temp7 = true;
5803 int i, len=PySequence_Length(obj6);
5804 for (i=0; i<len; i++) {
5805 PyObject* item = PySequence_GetItem(obj6, i);
5806 wxString* s = wxString_in_helper(item);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 arg7->Add(*s);
5809 delete s;
5810 Py_DECREF(item);
5811 }
5812 }
5813 }
5814 if (obj7) {
5815 ecode8 = SWIG_AsVal_long(obj7, &val8);
5816 if (!SWIG_IsOK(ecode8)) {
5817 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5818 }
5819 arg8 = static_cast< long >(val8);
5820 }
5821 if (obj8) {
5822 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5823 if (!SWIG_IsOK(res9)) {
5824 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5825 }
5826 if (!argp9) {
5827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5828 }
5829 arg9 = reinterpret_cast< wxValidator * >(argp9);
5830 }
5831 if (obj9) {
5832 {
5833 arg10 = wxString_in_helper(obj9);
5834 if (arg10 == NULL) SWIG_fail;
5835 temp10 = true;
5836 }
5837 }
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 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);
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 {
5845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5846 }
5847 {
5848 if (temp4)
5849 delete arg4;
5850 }
5851 {
5852 if (temp7) delete arg7;
5853 }
5854 {
5855 if (temp10)
5856 delete arg10;
5857 }
5858 return resultobj;
5859 fail:
5860 {
5861 if (temp4)
5862 delete arg4;
5863 }
5864 {
5865 if (temp7) delete arg7;
5866 }
5867 {
5868 if (temp10)
5869 delete arg10;
5870 }
5871 return NULL;
5872 }
5873
5874
5875 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5876 PyObject *resultobj = 0;
5877 wxComboBox *arg1 = (wxComboBox *) 0 ;
5878 wxString result;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 PyObject *swig_obj[1] ;
5882
5883 if (!args) SWIG_fail;
5884 swig_obj[0] = args;
5885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5888 }
5889 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5890 {
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 result = ((wxComboBox const *)arg1)->GetValue();
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) SWIG_fail;
5895 }
5896 {
5897 #if wxUSE_UNICODE
5898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5899 #else
5900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5901 #endif
5902 }
5903 return resultobj;
5904 fail:
5905 return NULL;
5906 }
5907
5908
5909 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj = 0;
5911 wxComboBox *arg1 = (wxComboBox *) 0 ;
5912 wxString *arg2 = 0 ;
5913 void *argp1 = 0 ;
5914 int res1 = 0 ;
5915 bool temp2 = false ;
5916 PyObject * obj0 = 0 ;
5917 PyObject * obj1 = 0 ;
5918 char * kwnames[] = {
5919 (char *) "self",(char *) "value", NULL
5920 };
5921
5922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5926 }
5927 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5928 {
5929 arg2 = wxString_in_helper(obj1);
5930 if (arg2 == NULL) SWIG_fail;
5931 temp2 = true;
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->SetValue((wxString const &)*arg2);
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_Py_Void();
5940 {
5941 if (temp2)
5942 delete arg2;
5943 }
5944 return resultobj;
5945 fail:
5946 {
5947 if (temp2)
5948 delete arg2;
5949 }
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Copy();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 PyObject *swig_obj[1] ;
5987
5988 if (!args) SWIG_fail;
5989 swig_obj[0] = args;
5990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5991 if (!SWIG_IsOK(res1)) {
5992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5993 }
5994 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 (arg1)->Cut();
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 resultobj = SWIG_Py_Void();
6002 return resultobj;
6003 fail:
6004 return NULL;
6005 }
6006
6007
6008 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6009 PyObject *resultobj = 0;
6010 wxComboBox *arg1 = (wxComboBox *) 0 ;
6011 void *argp1 = 0 ;
6012 int res1 = 0 ;
6013 PyObject *swig_obj[1] ;
6014
6015 if (!args) SWIG_fail;
6016 swig_obj[0] = args;
6017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6018 if (!SWIG_IsOK(res1)) {
6019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6020 }
6021 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 (arg1)->Paste();
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 resultobj = SWIG_Py_Void();
6029 return resultobj;
6030 fail:
6031 return NULL;
6032 }
6033
6034
6035 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6036 PyObject *resultobj = 0;
6037 wxComboBox *arg1 = (wxComboBox *) 0 ;
6038 long arg2 ;
6039 void *argp1 = 0 ;
6040 int res1 = 0 ;
6041 long val2 ;
6042 int ecode2 = 0 ;
6043 PyObject * obj0 = 0 ;
6044 PyObject * obj1 = 0 ;
6045 char * kwnames[] = {
6046 (char *) "self",(char *) "pos", NULL
6047 };
6048
6049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6051 if (!SWIG_IsOK(res1)) {
6052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6053 }
6054 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6055 ecode2 = SWIG_AsVal_long(obj1, &val2);
6056 if (!SWIG_IsOK(ecode2)) {
6057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6058 }
6059 arg2 = static_cast< long >(val2);
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 (arg1)->SetInsertionPoint(arg2);
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_Py_Void();
6067 return resultobj;
6068 fail:
6069 return NULL;
6070 }
6071
6072
6073 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6074 PyObject *resultobj = 0;
6075 wxComboBox *arg1 = (wxComboBox *) 0 ;
6076 long result;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 PyObject *swig_obj[1] ;
6080
6081 if (!args) SWIG_fail;
6082 swig_obj[0] = args;
6083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6084 if (!SWIG_IsOK(res1)) {
6085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6086 }
6087 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6091 wxPyEndAllowThreads(__tstate);
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 resultobj = SWIG_From_long(static_cast< long >(result));
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6102 PyObject *resultobj = 0;
6103 wxComboBox *arg1 = (wxComboBox *) 0 ;
6104 long result;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6114 }
6115 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = SWIG_From_long(static_cast< long >(result));
6123 return resultobj;
6124 fail:
6125 return NULL;
6126 }
6127
6128
6129 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6130 PyObject *resultobj = 0;
6131 wxComboBox *arg1 = (wxComboBox *) 0 ;
6132 long arg2 ;
6133 long arg3 ;
6134 wxString *arg4 = 0 ;
6135 void *argp1 = 0 ;
6136 int res1 = 0 ;
6137 long val2 ;
6138 int ecode2 = 0 ;
6139 long val3 ;
6140 int ecode3 = 0 ;
6141 bool temp4 = false ;
6142 PyObject * obj0 = 0 ;
6143 PyObject * obj1 = 0 ;
6144 PyObject * obj2 = 0 ;
6145 PyObject * obj3 = 0 ;
6146 char * kwnames[] = {
6147 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6148 };
6149
6150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6154 }
6155 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6156 ecode2 = SWIG_AsVal_long(obj1, &val2);
6157 if (!SWIG_IsOK(ecode2)) {
6158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6159 }
6160 arg2 = static_cast< long >(val2);
6161 ecode3 = SWIG_AsVal_long(obj2, &val3);
6162 if (!SWIG_IsOK(ecode3)) {
6163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6164 }
6165 arg3 = static_cast< long >(val3);
6166 {
6167 arg4 = wxString_in_helper(obj3);
6168 if (arg4 == NULL) SWIG_fail;
6169 temp4 = true;
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_Py_Void();
6178 {
6179 if (temp4)
6180 delete arg4;
6181 }
6182 return resultobj;
6183 fail:
6184 {
6185 if (temp4)
6186 delete arg4;
6187 }
6188 return NULL;
6189 }
6190
6191
6192 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj = 0;
6194 wxComboBox *arg1 = (wxComboBox *) 0 ;
6195 long arg2 ;
6196 long arg3 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 long val2 ;
6200 int ecode2 = 0 ;
6201 long val3 ;
6202 int ecode3 = 0 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 PyObject * obj2 = 0 ;
6206 char * kwnames[] = {
6207 (char *) "self",(char *) "from",(char *) "to", NULL
6208 };
6209
6210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6214 }
6215 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6216 ecode2 = SWIG_AsVal_long(obj1, &val2);
6217 if (!SWIG_IsOK(ecode2)) {
6218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6219 }
6220 arg2 = static_cast< long >(val2);
6221 ecode3 = SWIG_AsVal_long(obj2, &val3);
6222 if (!SWIG_IsOK(ecode3)) {
6223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6224 }
6225 arg3 = static_cast< long >(val3);
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 (arg1)->SetSelection(arg2,arg3);
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 resultobj = SWIG_Py_Void();
6233 return resultobj;
6234 fail:
6235 return NULL;
6236 }
6237
6238
6239 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6240 PyObject *resultobj = 0;
6241 wxComboBox *arg1 = (wxComboBox *) 0 ;
6242 long *arg2 = (long *) 0 ;
6243 long *arg3 = (long *) 0 ;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 long temp2 ;
6247 int res2 = SWIG_TMPOBJ ;
6248 long temp3 ;
6249 int res3 = SWIG_TMPOBJ ;
6250 PyObject *swig_obj[1] ;
6251
6252 arg2 = &temp2;
6253 arg3 = &temp3;
6254 if (!args) SWIG_fail;
6255 swig_obj[0] = args;
6256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6257 if (!SWIG_IsOK(res1)) {
6258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6259 }
6260 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 (arg1)->GetSelection(arg2,arg3);
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_Py_Void();
6268 if (SWIG_IsTmpObj(res2)) {
6269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6270 } else {
6271 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6273 }
6274 if (SWIG_IsTmpObj(res3)) {
6275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6276 } else {
6277 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6279 }
6280 return resultobj;
6281 fail:
6282 return NULL;
6283 }
6284
6285
6286 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6287 PyObject *resultobj = 0;
6288 wxComboBox *arg1 = (wxComboBox *) 0 ;
6289 int result;
6290 void *argp1 = 0 ;
6291 int res1 = 0 ;
6292 PyObject *swig_obj[1] ;
6293
6294 if (!args) SWIG_fail;
6295 swig_obj[0] = args;
6296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6299 }
6300 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 resultobj = SWIG_From_int(static_cast< int >(result));
6308 return resultobj;
6309 fail:
6310 return NULL;
6311 }
6312
6313
6314 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj = 0;
6316 wxComboBox *arg1 = (wxComboBox *) 0 ;
6317 wxString *arg2 = 0 ;
6318 bool result;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool temp2 = false ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char * kwnames[] = {
6325 (char *) "self",(char *) "string", NULL
6326 };
6327
6328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6332 }
6333 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6334 {
6335 arg2 = wxString_in_helper(obj1);
6336 if (arg2 == NULL) SWIG_fail;
6337 temp2 = true;
6338 }
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 {
6346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6347 }
6348 {
6349 if (temp2)
6350 delete arg2;
6351 }
6352 return resultobj;
6353 fail:
6354 {
6355 if (temp2)
6356 delete arg2;
6357 }
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
6442 (char *) "self",(char *) "from",(char *) "to", NULL
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469 fail:
6470 return NULL;
6471 }
6472
6473
6474 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526 fail:
6527 return NULL;
6528 }
6529
6530
6531 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
6773 }
6774
6775 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777 }
6778
6779 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
6782 }
6783
6784
6785 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789 #if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791 #else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793 #endif
6794 }
6795 return pyobj;
6796 }
6797
6798
6799 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
6860 {
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6863 }
6864 }
6865 if (obj4) {
6866 {
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6869 }
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
6889 {
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
6893 }
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908 fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
7006 {
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7009 }
7010 }
7011 if (obj5) {
7012 {
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7015 }
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7028 }
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
7035 {
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
7039 }
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055 fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061 }
7062
7063
7064 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163 fail:
7164 return NULL;
7165 }
7166
7167
7168 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7208 }
7209 arg1 = reinterpret_cast< wxGauge * >(argp1);
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 (arg1)->Pulse();
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7224 PyObject *resultobj = 0;
7225 wxGauge *arg1 = (wxGauge *) 0 ;
7226 bool result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 PyObject *swig_obj[1] ;
7230
7231 if (!args) SWIG_fail;
7232 swig_obj[0] = args;
7233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7236 }
7237 arg1 = reinterpret_cast< wxGauge * >(argp1);
7238 {
7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
7240 result = (bool)((wxGauge const *)arg1)->IsVertical();
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7246 }
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj = 0;
7255 wxGauge *arg1 = (wxGauge *) 0 ;
7256 int arg2 ;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 int val2 ;
7260 int ecode2 = 0 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "self",(char *) "w", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7269 if (!SWIG_IsOK(res1)) {
7270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7271 }
7272 arg1 = reinterpret_cast< wxGauge * >(argp1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 (arg1)->SetShadowWidth(arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_Py_Void();
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7292 PyObject *resultobj = 0;
7293 wxGauge *arg1 = (wxGauge *) 0 ;
7294 int result;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 PyObject *swig_obj[1] ;
7298
7299 if (!args) SWIG_fail;
7300 swig_obj[0] = args;
7301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7302 if (!SWIG_IsOK(res1)) {
7303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7304 }
7305 arg1 = reinterpret_cast< wxGauge * >(argp1);
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_From_int(static_cast< int >(result));
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj = 0;
7321 wxGauge *arg1 = (wxGauge *) 0 ;
7322 int arg2 ;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 int val2 ;
7326 int ecode2 = 0 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 char * kwnames[] = {
7330 (char *) "self",(char *) "w", NULL
7331 };
7332
7333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7337 }
7338 arg1 = reinterpret_cast< wxGauge * >(argp1);
7339 ecode2 = SWIG_AsVal_int(obj1, &val2);
7340 if (!SWIG_IsOK(ecode2)) {
7341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7342 }
7343 arg2 = static_cast< int >(val2);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 (arg1)->SetBezelFace(arg2);
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_Py_Void();
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 wxGauge *arg1 = (wxGauge *) 0 ;
7360 int result;
7361 void *argp1 = 0 ;
7362 int res1 = 0 ;
7363 PyObject *swig_obj[1] ;
7364
7365 if (!args) SWIG_fail;
7366 swig_obj[0] = args;
7367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7368 if (!SWIG_IsOK(res1)) {
7369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7370 }
7371 arg1 = reinterpret_cast< wxGauge * >(argp1);
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_From_int(static_cast< int >(result));
7379 return resultobj;
7380 fail:
7381 return NULL;
7382 }
7383
7384
7385 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj = 0;
7387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7388 SwigValueWrapper<wxVisualAttributes > result;
7389 int val1 ;
7390 int ecode1 = 0 ;
7391 PyObject * obj0 = 0 ;
7392 char * kwnames[] = {
7393 (char *) "variant", NULL
7394 };
7395
7396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7397 if (obj0) {
7398 ecode1 = SWIG_AsVal_int(obj0, &val1);
7399 if (!SWIG_IsOK(ecode1)) {
7400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7401 }
7402 arg1 = static_cast< wxWindowVariant >(val1);
7403 }
7404 {
7405 if (!wxPyCheckForApp()) SWIG_fail;
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = wxGauge::GetClassDefaultAttributes(arg1);
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7412 return resultobj;
7413 fail:
7414 return NULL;
7415 }
7416
7417
7418 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *obj;
7420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7422 return SWIG_Py_Void();
7423 }
7424
7425 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7426 return SWIG_Python_InitShadowInstance(args);
7427 }
7428
7429 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7430 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7431 return 1;
7432 }
7433
7434
7435 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7436 PyObject *pyobj = 0;
7437
7438 {
7439 #if wxUSE_UNICODE
7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7441 #else
7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7443 #endif
7444 }
7445 return pyobj;
7446 }
7447
7448
7449 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
7452 }
7453
7454
7455 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7456 PyObject *pyobj = 0;
7457
7458 {
7459 #if wxUSE_UNICODE
7460 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7461 #else
7462 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7463 #endif
7464 }
7465 return pyobj;
7466 }
7467
7468
7469 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7470 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7471 return 1;
7472 }
7473
7474
7475 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7476 PyObject *pyobj = 0;
7477
7478 {
7479 #if wxUSE_UNICODE
7480 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7481 #else
7482 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7483 #endif
7484 }
7485 return pyobj;
7486 }
7487
7488
7489 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7490 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7491 return 1;
7492 }
7493
7494
7495 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7496 PyObject *pyobj = 0;
7497
7498 {
7499 #if wxUSE_UNICODE
7500 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7501 #else
7502 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7503 #endif
7504 }
7505 return pyobj;
7506 }
7507
7508
7509 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7510 PyObject *resultobj = 0;
7511 wxWindow *arg1 = (wxWindow *) 0 ;
7512 int arg2 = (int) -1 ;
7513 wxString const &arg3_defvalue = wxPyEmptyString ;
7514 wxString *arg3 = (wxString *) &arg3_defvalue ;
7515 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7516 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7517 wxSize const &arg5_defvalue = wxDefaultSize ;
7518 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7519 long arg6 = (long) 0 ;
7520 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7521 wxString *arg7 = (wxString *) &arg7_defvalue ;
7522 wxStaticBox *result = 0 ;
7523 void *argp1 = 0 ;
7524 int res1 = 0 ;
7525 int val2 ;
7526 int ecode2 = 0 ;
7527 bool temp3 = false ;
7528 wxPoint temp4 ;
7529 wxSize temp5 ;
7530 long val6 ;
7531 int ecode6 = 0 ;
7532 bool temp7 = false ;
7533 PyObject * obj0 = 0 ;
7534 PyObject * obj1 = 0 ;
7535 PyObject * obj2 = 0 ;
7536 PyObject * obj3 = 0 ;
7537 PyObject * obj4 = 0 ;
7538 PyObject * obj5 = 0 ;
7539 PyObject * obj6 = 0 ;
7540 char * kwnames[] = {
7541 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7542 };
7543
7544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7546 if (!SWIG_IsOK(res1)) {
7547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7548 }
7549 arg1 = reinterpret_cast< wxWindow * >(argp1);
7550 if (obj1) {
7551 ecode2 = SWIG_AsVal_int(obj1, &val2);
7552 if (!SWIG_IsOK(ecode2)) {
7553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7554 }
7555 arg2 = static_cast< int >(val2);
7556 }
7557 if (obj2) {
7558 {
7559 arg3 = wxString_in_helper(obj2);
7560 if (arg3 == NULL) SWIG_fail;
7561 temp3 = true;
7562 }
7563 }
7564 if (obj3) {
7565 {
7566 arg4 = &temp4;
7567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7568 }
7569 }
7570 if (obj4) {
7571 {
7572 arg5 = &temp5;
7573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7574 }
7575 }
7576 if (obj5) {
7577 ecode6 = SWIG_AsVal_long(obj5, &val6);
7578 if (!SWIG_IsOK(ecode6)) {
7579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7580 }
7581 arg6 = static_cast< long >(val6);
7582 }
7583 if (obj6) {
7584 {
7585 arg7 = wxString_in_helper(obj6);
7586 if (arg7 == NULL) SWIG_fail;
7587 temp7 = true;
7588 }
7589 }
7590 {
7591 if (!wxPyCheckForApp()) SWIG_fail;
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7598 {
7599 if (temp3)
7600 delete arg3;
7601 }
7602 {
7603 if (temp7)
7604 delete arg7;
7605 }
7606 return resultobj;
7607 fail:
7608 {
7609 if (temp3)
7610 delete arg3;
7611 }
7612 {
7613 if (temp7)
7614 delete arg7;
7615 }
7616 return NULL;
7617 }
7618
7619
7620 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7621 PyObject *resultobj = 0;
7622 wxStaticBox *result = 0 ;
7623
7624 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7625 {
7626 if (!wxPyCheckForApp()) SWIG_fail;
7627 PyThreadState* __tstate = wxPyBeginAllowThreads();
7628 result = (wxStaticBox *)new wxStaticBox();
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = 0;
7641 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7642 wxWindow *arg2 = (wxWindow *) 0 ;
7643 int arg3 = (int) -1 ;
7644 wxString const &arg4_defvalue = wxPyEmptyString ;
7645 wxString *arg4 = (wxString *) &arg4_defvalue ;
7646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7648 wxSize const &arg6_defvalue = wxDefaultSize ;
7649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7650 long arg7 = (long) 0 ;
7651 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7652 wxString *arg8 = (wxString *) &arg8_defvalue ;
7653 bool result;
7654 void *argp1 = 0 ;
7655 int res1 = 0 ;
7656 void *argp2 = 0 ;
7657 int res2 = 0 ;
7658 int val3 ;
7659 int ecode3 = 0 ;
7660 bool temp4 = false ;
7661 wxPoint temp5 ;
7662 wxSize temp6 ;
7663 long val7 ;
7664 int ecode7 = 0 ;
7665 bool temp8 = false ;
7666 PyObject * obj0 = 0 ;
7667 PyObject * obj1 = 0 ;
7668 PyObject * obj2 = 0 ;
7669 PyObject * obj3 = 0 ;
7670 PyObject * obj4 = 0 ;
7671 PyObject * obj5 = 0 ;
7672 PyObject * obj6 = 0 ;
7673 PyObject * obj7 = 0 ;
7674 char * kwnames[] = {
7675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7676 };
7677
7678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7680 if (!SWIG_IsOK(res1)) {
7681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7682 }
7683 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7685 if (!SWIG_IsOK(res2)) {
7686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7687 }
7688 arg2 = reinterpret_cast< wxWindow * >(argp2);
7689 if (obj2) {
7690 ecode3 = SWIG_AsVal_int(obj2, &val3);
7691 if (!SWIG_IsOK(ecode3)) {
7692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7693 }
7694 arg3 = static_cast< int >(val3);
7695 }
7696 if (obj3) {
7697 {
7698 arg4 = wxString_in_helper(obj3);
7699 if (arg4 == NULL) SWIG_fail;
7700 temp4 = true;
7701 }
7702 }
7703 if (obj4) {
7704 {
7705 arg5 = &temp5;
7706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7707 }
7708 }
7709 if (obj5) {
7710 {
7711 arg6 = &temp6;
7712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7713 }
7714 }
7715 if (obj6) {
7716 ecode7 = SWIG_AsVal_long(obj6, &val7);
7717 if (!SWIG_IsOK(ecode7)) {
7718 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7719 }
7720 arg7 = static_cast< long >(val7);
7721 }
7722 if (obj7) {
7723 {
7724 arg8 = wxString_in_helper(obj7);
7725 if (arg8 == NULL) SWIG_fail;
7726 temp8 = true;
7727 }
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 {
7736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7737 }
7738 {
7739 if (temp4)
7740 delete arg4;
7741 }
7742 {
7743 if (temp8)
7744 delete arg8;
7745 }
7746 return resultobj;
7747 fail:
7748 {
7749 if (temp4)
7750 delete arg4;
7751 }
7752 {
7753 if (temp8)
7754 delete arg8;
7755 }
7756 return NULL;
7757 }
7758
7759
7760 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj = 0;
7762 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7763 SwigValueWrapper<wxVisualAttributes > result;
7764 int val1 ;
7765 int ecode1 = 0 ;
7766 PyObject * obj0 = 0 ;
7767 char * kwnames[] = {
7768 (char *) "variant", NULL
7769 };
7770
7771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7772 if (obj0) {
7773 ecode1 = SWIG_AsVal_int(obj0, &val1);
7774 if (!SWIG_IsOK(ecode1)) {
7775 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7776 }
7777 arg1 = static_cast< wxWindowVariant >(val1);
7778 }
7779 {
7780 if (!wxPyCheckForApp()) SWIG_fail;
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7787 return resultobj;
7788 fail:
7789 return NULL;
7790 }
7791
7792
7793 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7794 PyObject *obj;
7795 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7796 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7797 return SWIG_Py_Void();
7798 }
7799
7800 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7801 return SWIG_Python_InitShadowInstance(args);
7802 }
7803
7804 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj = 0;
7806 wxWindow *arg1 = (wxWindow *) 0 ;
7807 int arg2 = (int) -1 ;
7808 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7809 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7810 wxSize const &arg4_defvalue = wxDefaultSize ;
7811 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7812 long arg5 = (long) wxLI_HORIZONTAL ;
7813 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7814 wxString *arg6 = (wxString *) &arg6_defvalue ;
7815 wxStaticLine *result = 0 ;
7816 void *argp1 = 0 ;
7817 int res1 = 0 ;
7818 int val2 ;
7819 int ecode2 = 0 ;
7820 wxPoint temp3 ;
7821 wxSize temp4 ;
7822 long val5 ;
7823 int ecode5 = 0 ;
7824 bool temp6 = false ;
7825 PyObject * obj0 = 0 ;
7826 PyObject * obj1 = 0 ;
7827 PyObject * obj2 = 0 ;
7828 PyObject * obj3 = 0 ;
7829 PyObject * obj4 = 0 ;
7830 PyObject * obj5 = 0 ;
7831 char * kwnames[] = {
7832 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7833 };
7834
7835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7837 if (!SWIG_IsOK(res1)) {
7838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7839 }
7840 arg1 = reinterpret_cast< wxWindow * >(argp1);
7841 if (obj1) {
7842 ecode2 = SWIG_AsVal_int(obj1, &val2);
7843 if (!SWIG_IsOK(ecode2)) {
7844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7845 }
7846 arg2 = static_cast< int >(val2);
7847 }
7848 if (obj2) {
7849 {
7850 arg3 = &temp3;
7851 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7852 }
7853 }
7854 if (obj3) {
7855 {
7856 arg4 = &temp4;
7857 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7858 }
7859 }
7860 if (obj4) {
7861 ecode5 = SWIG_AsVal_long(obj4, &val5);
7862 if (!SWIG_IsOK(ecode5)) {
7863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7864 }
7865 arg5 = static_cast< long >(val5);
7866 }
7867 if (obj5) {
7868 {
7869 arg6 = wxString_in_helper(obj5);
7870 if (arg6 == NULL) SWIG_fail;
7871 temp6 = true;
7872 }
7873 }
7874 {
7875 if (!wxPyCheckForApp()) SWIG_fail;
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7882 {
7883 if (temp6)
7884 delete arg6;
7885 }
7886 return resultobj;
7887 fail:
7888 {
7889 if (temp6)
7890 delete arg6;
7891 }
7892 return NULL;
7893 }
7894
7895
7896 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7897 PyObject *resultobj = 0;
7898 wxStaticLine *result = 0 ;
7899
7900 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7901 {
7902 if (!wxPyCheckForApp()) SWIG_fail;
7903 PyThreadState* __tstate = wxPyBeginAllowThreads();
7904 result = (wxStaticLine *)new wxStaticLine();
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7909 return resultobj;
7910 fail:
7911 return NULL;
7912 }
7913
7914
7915 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj = 0;
7917 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7918 wxWindow *arg2 = (wxWindow *) 0 ;
7919 int arg3 = (int) -1 ;
7920 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7921 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7922 wxSize const &arg5_defvalue = wxDefaultSize ;
7923 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7924 long arg6 = (long) wxLI_HORIZONTAL ;
7925 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7926 wxString *arg7 = (wxString *) &arg7_defvalue ;
7927 bool result;
7928 void *argp1 = 0 ;
7929 int res1 = 0 ;
7930 void *argp2 = 0 ;
7931 int res2 = 0 ;
7932 int val3 ;
7933 int ecode3 = 0 ;
7934 wxPoint temp4 ;
7935 wxSize temp5 ;
7936 long val6 ;
7937 int ecode6 = 0 ;
7938 bool temp7 = false ;
7939 PyObject * obj0 = 0 ;
7940 PyObject * obj1 = 0 ;
7941 PyObject * obj2 = 0 ;
7942 PyObject * obj3 = 0 ;
7943 PyObject * obj4 = 0 ;
7944 PyObject * obj5 = 0 ;
7945 PyObject * obj6 = 0 ;
7946 char * kwnames[] = {
7947 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7948 };
7949
7950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7952 if (!SWIG_IsOK(res1)) {
7953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7954 }
7955 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7957 if (!SWIG_IsOK(res2)) {
7958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7959 }
7960 arg2 = reinterpret_cast< wxWindow * >(argp2);
7961 if (obj2) {
7962 ecode3 = SWIG_AsVal_int(obj2, &val3);
7963 if (!SWIG_IsOK(ecode3)) {
7964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7965 }
7966 arg3 = static_cast< int >(val3);
7967 }
7968 if (obj3) {
7969 {
7970 arg4 = &temp4;
7971 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7972 }
7973 }
7974 if (obj4) {
7975 {
7976 arg5 = &temp5;
7977 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7978 }
7979 }
7980 if (obj5) {
7981 ecode6 = SWIG_AsVal_long(obj5, &val6);
7982 if (!SWIG_IsOK(ecode6)) {
7983 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7984 }
7985 arg6 = static_cast< long >(val6);
7986 }
7987 if (obj6) {
7988 {
7989 arg7 = wxString_in_helper(obj6);
7990 if (arg7 == NULL) SWIG_fail;
7991 temp7 = true;
7992 }
7993 }
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 {
8001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8002 }
8003 {
8004 if (temp7)
8005 delete arg7;
8006 }
8007 return resultobj;
8008 fail:
8009 {
8010 if (temp7)
8011 delete arg7;
8012 }
8013 return NULL;
8014 }
8015
8016
8017 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8018 PyObject *resultobj = 0;
8019 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8020 bool result;
8021 void *argp1 = 0 ;
8022 int res1 = 0 ;
8023 PyObject *swig_obj[1] ;
8024
8025 if (!args) SWIG_fail;
8026 swig_obj[0] = args;
8027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8028 if (!SWIG_IsOK(res1)) {
8029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8030 }
8031 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 {
8039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8040 }
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 PyObject *resultobj = 0;
8049 int result;
8050
8051 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8052 {
8053 PyThreadState* __tstate = wxPyBeginAllowThreads();
8054 result = (int)wxStaticLine::GetDefaultSize();
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_From_int(static_cast< int >(result));
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj = 0;
8067 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8068 SwigValueWrapper<wxVisualAttributes > result;
8069 int val1 ;
8070 int ecode1 = 0 ;
8071 PyObject * obj0 = 0 ;
8072 char * kwnames[] = {
8073 (char *) "variant", NULL
8074 };
8075
8076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8077 if (obj0) {
8078 ecode1 = SWIG_AsVal_int(obj0, &val1);
8079 if (!SWIG_IsOK(ecode1)) {
8080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8081 }
8082 arg1 = static_cast< wxWindowVariant >(val1);
8083 }
8084 {
8085 if (!wxPyCheckForApp()) SWIG_fail;
8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
8087 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8092 return resultobj;
8093 fail:
8094 return NULL;
8095 }
8096
8097
8098 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8099 PyObject *obj;
8100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8101 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8102 return SWIG_Py_Void();
8103 }
8104
8105 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8106 return SWIG_Python_InitShadowInstance(args);
8107 }
8108
8109 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj = 0;
8111 wxWindow *arg1 = (wxWindow *) 0 ;
8112 int arg2 = (int) -1 ;
8113 wxString const &arg3_defvalue = wxPyEmptyString ;
8114 wxString *arg3 = (wxString *) &arg3_defvalue ;
8115 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8116 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8117 wxSize const &arg5_defvalue = wxDefaultSize ;
8118 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8119 long arg6 = (long) 0 ;
8120 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8121 wxString *arg7 = (wxString *) &arg7_defvalue ;
8122 wxStaticText *result = 0 ;
8123 void *argp1 = 0 ;
8124 int res1 = 0 ;
8125 int val2 ;
8126 int ecode2 = 0 ;
8127 bool temp3 = false ;
8128 wxPoint temp4 ;
8129 wxSize temp5 ;
8130 long val6 ;
8131 int ecode6 = 0 ;
8132 bool temp7 = false ;
8133 PyObject * obj0 = 0 ;
8134 PyObject * obj1 = 0 ;
8135 PyObject * obj2 = 0 ;
8136 PyObject * obj3 = 0 ;
8137 PyObject * obj4 = 0 ;
8138 PyObject * obj5 = 0 ;
8139 PyObject * obj6 = 0 ;
8140 char * kwnames[] = {
8141 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8142 };
8143
8144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8146 if (!SWIG_IsOK(res1)) {
8147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8148 }
8149 arg1 = reinterpret_cast< wxWindow * >(argp1);
8150 if (obj1) {
8151 ecode2 = SWIG_AsVal_int(obj1, &val2);
8152 if (!SWIG_IsOK(ecode2)) {
8153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8154 }
8155 arg2 = static_cast< int >(val2);
8156 }
8157 if (obj2) {
8158 {
8159 arg3 = wxString_in_helper(obj2);
8160 if (arg3 == NULL) SWIG_fail;
8161 temp3 = true;
8162 }
8163 }
8164 if (obj3) {
8165 {
8166 arg4 = &temp4;
8167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8168 }
8169 }
8170 if (obj4) {
8171 {
8172 arg5 = &temp5;
8173 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8174 }
8175 }
8176 if (obj5) {
8177 ecode6 = SWIG_AsVal_long(obj5, &val6);
8178 if (!SWIG_IsOK(ecode6)) {
8179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8180 }
8181 arg6 = static_cast< long >(val6);
8182 }
8183 if (obj6) {
8184 {
8185 arg7 = wxString_in_helper(obj6);
8186 if (arg7 == NULL) SWIG_fail;
8187 temp7 = true;
8188 }
8189 }
8190 {
8191 if (!wxPyCheckForApp()) SWIG_fail;
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8198 {
8199 if (temp3)
8200 delete arg3;
8201 }
8202 {
8203 if (temp7)
8204 delete arg7;
8205 }
8206 return resultobj;
8207 fail:
8208 {
8209 if (temp3)
8210 delete arg3;
8211 }
8212 {
8213 if (temp7)
8214 delete arg7;
8215 }
8216 return NULL;
8217 }
8218
8219
8220 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8221 PyObject *resultobj = 0;
8222 wxStaticText *result = 0 ;
8223
8224 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8225 {
8226 if (!wxPyCheckForApp()) SWIG_fail;
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 result = (wxStaticText *)new wxStaticText();
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8233 return resultobj;
8234 fail:
8235 return NULL;
8236 }
8237
8238
8239 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj = 0;
8241 wxStaticText *arg1 = (wxStaticText *) 0 ;
8242 wxWindow *arg2 = (wxWindow *) 0 ;
8243 int arg3 = (int) -1 ;
8244 wxString const &arg4_defvalue = wxPyEmptyString ;
8245 wxString *arg4 = (wxString *) &arg4_defvalue ;
8246 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8247 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8248 wxSize const &arg6_defvalue = wxDefaultSize ;
8249 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8250 long arg7 = (long) 0 ;
8251 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8252 wxString *arg8 = (wxString *) &arg8_defvalue ;
8253 bool result;
8254 void *argp1 = 0 ;
8255 int res1 = 0 ;
8256 void *argp2 = 0 ;
8257 int res2 = 0 ;
8258 int val3 ;
8259 int ecode3 = 0 ;
8260 bool temp4 = false ;
8261 wxPoint temp5 ;
8262 wxSize temp6 ;
8263 long val7 ;
8264 int ecode7 = 0 ;
8265 bool temp8 = false ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 PyObject * obj2 = 0 ;
8269 PyObject * obj3 = 0 ;
8270 PyObject * obj4 = 0 ;
8271 PyObject * obj5 = 0 ;
8272 PyObject * obj6 = 0 ;
8273 PyObject * obj7 = 0 ;
8274 char * kwnames[] = {
8275 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8276 };
8277
8278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8280 if (!SWIG_IsOK(res1)) {
8281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8282 }
8283 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8284 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8285 if (!SWIG_IsOK(res2)) {
8286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8287 }
8288 arg2 = reinterpret_cast< wxWindow * >(argp2);
8289 if (obj2) {
8290 ecode3 = SWIG_AsVal_int(obj2, &val3);
8291 if (!SWIG_IsOK(ecode3)) {
8292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8293 }
8294 arg3 = static_cast< int >(val3);
8295 }
8296 if (obj3) {
8297 {
8298 arg4 = wxString_in_helper(obj3);
8299 if (arg4 == NULL) SWIG_fail;
8300 temp4 = true;
8301 }
8302 }
8303 if (obj4) {
8304 {
8305 arg5 = &temp5;
8306 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8307 }
8308 }
8309 if (obj5) {
8310 {
8311 arg6 = &temp6;
8312 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8313 }
8314 }
8315 if (obj6) {
8316 ecode7 = SWIG_AsVal_long(obj6, &val7);
8317 if (!SWIG_IsOK(ecode7)) {
8318 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8319 }
8320 arg7 = static_cast< long >(val7);
8321 }
8322 if (obj7) {
8323 {
8324 arg8 = wxString_in_helper(obj7);
8325 if (arg8 == NULL) SWIG_fail;
8326 temp8 = true;
8327 }
8328 }
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 {
8336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8337 }
8338 {
8339 if (temp4)
8340 delete arg4;
8341 }
8342 {
8343 if (temp8)
8344 delete arg8;
8345 }
8346 return resultobj;
8347 fail:
8348 {
8349 if (temp4)
8350 delete arg4;
8351 }
8352 {
8353 if (temp8)
8354 delete arg8;
8355 }
8356 return NULL;
8357 }
8358
8359
8360 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj = 0;
8362 wxStaticText *arg1 = (wxStaticText *) 0 ;
8363 int arg2 ;
8364 void *argp1 = 0 ;
8365 int res1 = 0 ;
8366 int val2 ;
8367 int ecode2 = 0 ;
8368 PyObject * obj0 = 0 ;
8369 PyObject * obj1 = 0 ;
8370 char * kwnames[] = {
8371 (char *) "self",(char *) "width", NULL
8372 };
8373
8374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8378 }
8379 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8380 ecode2 = SWIG_AsVal_int(obj1, &val2);
8381 if (!SWIG_IsOK(ecode2)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8383 }
8384 arg2 = static_cast< int >(val2);
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 (arg1)->Wrap(arg2);
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = SWIG_Py_Void();
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8399 PyObject *resultobj = 0;
8400 wxStaticText *arg1 = (wxStaticText *) 0 ;
8401 bool result;
8402 void *argp1 = 0 ;
8403 int res1 = 0 ;
8404 PyObject *swig_obj[1] ;
8405
8406 if (!args) SWIG_fail;
8407 swig_obj[0] = args;
8408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8409 if (!SWIG_IsOK(res1)) {
8410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
8411 }
8412 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8413 {
8414 PyThreadState* __tstate = wxPyBeginAllowThreads();
8415 result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
8416 wxPyEndAllowThreads(__tstate);
8417 if (PyErr_Occurred()) SWIG_fail;
8418 }
8419 {
8420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8421 }
8422 return resultobj;
8423 fail:
8424 return NULL;
8425 }
8426
8427
8428 SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj = 0;
8430 wxString *arg1 = 0 ;
8431 wxString result;
8432 bool temp1 = false ;
8433 PyObject * obj0 = 0 ;
8434 char * kwnames[] = {
8435 (char *) "str", NULL
8436 };
8437
8438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
8439 {
8440 arg1 = wxString_in_helper(obj0);
8441 if (arg1 == NULL) SWIG_fail;
8442 temp1 = true;
8443 }
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
8447 wxPyEndAllowThreads(__tstate);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 {
8451 #if wxUSE_UNICODE
8452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8453 #else
8454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8455 #endif
8456 }
8457 {
8458 if (temp1)
8459 delete arg1;
8460 }
8461 return resultobj;
8462 fail:
8463 {
8464 if (temp1)
8465 delete arg1;
8466 }
8467 return NULL;
8468 }
8469
8470
8471 SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8472 PyObject *resultobj = 0;
8473 wxString *arg1 = 0 ;
8474 wxString result;
8475 bool temp1 = false ;
8476 PyObject * obj0 = 0 ;
8477 char * kwnames[] = {
8478 (char *) "str", NULL
8479 };
8480
8481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
8482 {
8483 arg1 = wxString_in_helper(obj0);
8484 if (arg1 == NULL) SWIG_fail;
8485 temp1 = true;
8486 }
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 {
8494 #if wxUSE_UNICODE
8495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8496 #else
8497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8498 #endif
8499 }
8500 {
8501 if (temp1)
8502 delete arg1;
8503 }
8504 return resultobj;
8505 fail:
8506 {
8507 if (temp1)
8508 delete arg1;
8509 }
8510 return NULL;
8511 }
8512
8513
8514 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj = 0;
8516 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8517 SwigValueWrapper<wxVisualAttributes > result;
8518 int val1 ;
8519 int ecode1 = 0 ;
8520 PyObject * obj0 = 0 ;
8521 char * kwnames[] = {
8522 (char *) "variant", NULL
8523 };
8524
8525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8526 if (obj0) {
8527 ecode1 = SWIG_AsVal_int(obj0, &val1);
8528 if (!SWIG_IsOK(ecode1)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8530 }
8531 arg1 = static_cast< wxWindowVariant >(val1);
8532 }
8533 {
8534 if (!wxPyCheckForApp()) SWIG_fail;
8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
8536 result = wxStaticText::GetClassDefaultAttributes(arg1);
8537 wxPyEndAllowThreads(__tstate);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8541 return resultobj;
8542 fail:
8543 return NULL;
8544 }
8545
8546
8547 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8548 PyObject *obj;
8549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8550 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8551 return SWIG_Py_Void();
8552 }
8553
8554 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8555 return SWIG_Python_InitShadowInstance(args);
8556 }
8557
8558 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj = 0;
8560 wxWindow *arg1 = (wxWindow *) 0 ;
8561 int arg2 = (int) -1 ;
8562 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8563 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8564 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8565 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8566 wxSize const &arg5_defvalue = wxDefaultSize ;
8567 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8568 long arg6 = (long) 0 ;
8569 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8570 wxString *arg7 = (wxString *) &arg7_defvalue ;
8571 wxStaticBitmap *result = 0 ;
8572 void *argp1 = 0 ;
8573 int res1 = 0 ;
8574 int val2 ;
8575 int ecode2 = 0 ;
8576 void *argp3 = 0 ;
8577 int res3 = 0 ;
8578 wxPoint temp4 ;
8579 wxSize temp5 ;
8580 long val6 ;
8581 int ecode6 = 0 ;
8582 bool temp7 = false ;
8583 PyObject * obj0 = 0 ;
8584 PyObject * obj1 = 0 ;
8585 PyObject * obj2 = 0 ;
8586 PyObject * obj3 = 0 ;
8587 PyObject * obj4 = 0 ;
8588 PyObject * obj5 = 0 ;
8589 PyObject * obj6 = 0 ;
8590 char * kwnames[] = {
8591 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8592 };
8593
8594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8596 if (!SWIG_IsOK(res1)) {
8597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8598 }
8599 arg1 = reinterpret_cast< wxWindow * >(argp1);
8600 if (obj1) {
8601 ecode2 = SWIG_AsVal_int(obj1, &val2);
8602 if (!SWIG_IsOK(ecode2)) {
8603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8604 }
8605 arg2 = static_cast< int >(val2);
8606 }
8607 if (obj2) {
8608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8609 if (!SWIG_IsOK(res3)) {
8610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8611 }
8612 if (!argp3) {
8613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8614 }
8615 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8616 }
8617 if (obj3) {
8618 {
8619 arg4 = &temp4;
8620 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8621 }
8622 }
8623 if (obj4) {
8624 {
8625 arg5 = &temp5;
8626 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8627 }
8628 }
8629 if (obj5) {
8630 ecode6 = SWIG_AsVal_long(obj5, &val6);
8631 if (!SWIG_IsOK(ecode6)) {
8632 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8633 }
8634 arg6 = static_cast< long >(val6);
8635 }
8636 if (obj6) {
8637 {
8638 arg7 = wxString_in_helper(obj6);
8639 if (arg7 == NULL) SWIG_fail;
8640 temp7 = true;
8641 }
8642 }
8643 {
8644 if (!wxPyCheckForApp()) SWIG_fail;
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8651 {
8652 if (temp7)
8653 delete arg7;
8654 }
8655 return resultobj;
8656 fail:
8657 {
8658 if (temp7)
8659 delete arg7;
8660 }
8661 return NULL;
8662 }
8663
8664
8665 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *result = 0 ;
8668
8669 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8670 {
8671 if (!wxPyCheckForApp()) SWIG_fail;
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 result = (wxStaticBitmap *)new wxStaticBitmap();
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj = 0;
8686 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8687 wxWindow *arg2 = (wxWindow *) 0 ;
8688 int arg3 = (int) -1 ;
8689 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8690 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8691 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8692 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8693 wxSize const &arg6_defvalue = wxDefaultSize ;
8694 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8695 long arg7 = (long) 0 ;
8696 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8697 wxString *arg8 = (wxString *) &arg8_defvalue ;
8698 bool result;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 void *argp2 = 0 ;
8702 int res2 = 0 ;
8703 int val3 ;
8704 int ecode3 = 0 ;
8705 void *argp4 = 0 ;
8706 int res4 = 0 ;
8707 wxPoint temp5 ;
8708 wxSize temp6 ;
8709 long val7 ;
8710 int ecode7 = 0 ;
8711 bool temp8 = false ;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 PyObject * obj2 = 0 ;
8715 PyObject * obj3 = 0 ;
8716 PyObject * obj4 = 0 ;
8717 PyObject * obj5 = 0 ;
8718 PyObject * obj6 = 0 ;
8719 PyObject * obj7 = 0 ;
8720 char * kwnames[] = {
8721 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8722 };
8723
8724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8726 if (!SWIG_IsOK(res1)) {
8727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8728 }
8729 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8731 if (!SWIG_IsOK(res2)) {
8732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8733 }
8734 arg2 = reinterpret_cast< wxWindow * >(argp2);
8735 if (obj2) {
8736 ecode3 = SWIG_AsVal_int(obj2, &val3);
8737 if (!SWIG_IsOK(ecode3)) {
8738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8739 }
8740 arg3 = static_cast< int >(val3);
8741 }
8742 if (obj3) {
8743 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8744 if (!SWIG_IsOK(res4)) {
8745 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8746 }
8747 if (!argp4) {
8748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8749 }
8750 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8751 }
8752 if (obj4) {
8753 {
8754 arg5 = &temp5;
8755 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8756 }
8757 }
8758 if (obj5) {
8759 {
8760 arg6 = &temp6;
8761 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8762 }
8763 }
8764 if (obj6) {
8765 ecode7 = SWIG_AsVal_long(obj6, &val7);
8766 if (!SWIG_IsOK(ecode7)) {
8767 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8768 }
8769 arg7 = static_cast< long >(val7);
8770 }
8771 if (obj7) {
8772 {
8773 arg8 = wxString_in_helper(obj7);
8774 if (arg8 == NULL) SWIG_fail;
8775 temp8 = true;
8776 }
8777 }
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 {
8785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8786 }
8787 {
8788 if (temp8)
8789 delete arg8;
8790 }
8791 return resultobj;
8792 fail:
8793 {
8794 if (temp8)
8795 delete arg8;
8796 }
8797 return NULL;
8798 }
8799
8800
8801 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8802 PyObject *resultobj = 0;
8803 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8804 wxBitmap result;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 PyObject *swig_obj[1] ;
8808
8809 if (!args) SWIG_fail;
8810 swig_obj[0] = args;
8811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8814 }
8815 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (arg1)->GetBitmap();
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj = 0;
8831 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8832 wxBitmap *arg2 = 0 ;
8833 void *argp1 = 0 ;
8834 int res1 = 0 ;
8835 void *argp2 = 0 ;
8836 int res2 = 0 ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 char * kwnames[] = {
8840 (char *) "self",(char *) "bitmap", NULL
8841 };
8842
8843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8845 if (!SWIG_IsOK(res1)) {
8846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8847 }
8848 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8850 if (!SWIG_IsOK(res2)) {
8851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8852 }
8853 if (!argp2) {
8854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8855 }
8856 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8860 wxPyEndAllowThreads(__tstate);
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_Py_Void();
8864 return resultobj;
8865 fail:
8866 return NULL;
8867 }
8868
8869
8870 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8871 PyObject *resultobj = 0;
8872 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8873 wxIcon *arg2 = 0 ;
8874 void *argp1 = 0 ;
8875 int res1 = 0 ;
8876 void *argp2 = 0 ;
8877 int res2 = 0 ;
8878 PyObject * obj0 = 0 ;
8879 PyObject * obj1 = 0 ;
8880 char * kwnames[] = {
8881 (char *) "self",(char *) "icon", NULL
8882 };
8883
8884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8886 if (!SWIG_IsOK(res1)) {
8887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8888 }
8889 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8891 if (!SWIG_IsOK(res2)) {
8892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8893 }
8894 if (!argp2) {
8895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8896 }
8897 arg2 = reinterpret_cast< wxIcon * >(argp2);
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 (arg1)->SetIcon((wxIcon const &)*arg2);
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = SWIG_Py_Void();
8905 return resultobj;
8906 fail:
8907 return NULL;
8908 }
8909
8910
8911 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8912 PyObject *resultobj = 0;
8913 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8914 SwigValueWrapper<wxVisualAttributes > result;
8915 int val1 ;
8916 int ecode1 = 0 ;
8917 PyObject * obj0 = 0 ;
8918 char * kwnames[] = {
8919 (char *) "variant", NULL
8920 };
8921
8922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8923 if (obj0) {
8924 ecode1 = SWIG_AsVal_int(obj0, &val1);
8925 if (!SWIG_IsOK(ecode1)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8927 }
8928 arg1 = static_cast< wxWindowVariant >(val1);
8929 }
8930 {
8931 if (!wxPyCheckForApp()) SWIG_fail;
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *obj;
8946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8947 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8948 return SWIG_Py_Void();
8949 }
8950
8951 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8952 return SWIG_Python_InitShadowInstance(args);
8953 }
8954
8955 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8956 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8957 return 1;
8958 }
8959
8960
8961 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8962 PyObject *pyobj = 0;
8963
8964 {
8965 #if wxUSE_UNICODE
8966 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8967 #else
8968 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8969 #endif
8970 }
8971 return pyobj;
8972 }
8973
8974
8975 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8976 PyObject *resultobj = 0;
8977 wxWindow *arg1 = (wxWindow *) 0 ;
8978 int arg2 = (int) -1 ;
8979 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8980 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8981 wxSize const &arg4_defvalue = wxDefaultSize ;
8982 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8983 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8984 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8985 long arg6 = (long) 0 ;
8986 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8987 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8988 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8989 wxString *arg8 = (wxString *) &arg8_defvalue ;
8990 wxListBox *result = 0 ;
8991 void *argp1 = 0 ;
8992 int res1 = 0 ;
8993 int val2 ;
8994 int ecode2 = 0 ;
8995 wxPoint temp3 ;
8996 wxSize temp4 ;
8997 bool temp5 = false ;
8998 long val6 ;
8999 int ecode6 = 0 ;
9000 void *argp7 = 0 ;
9001 int res7 = 0 ;
9002 bool temp8 = false ;
9003 PyObject * obj0 = 0 ;
9004 PyObject * obj1 = 0 ;
9005 PyObject * obj2 = 0 ;
9006 PyObject * obj3 = 0 ;
9007 PyObject * obj4 = 0 ;
9008 PyObject * obj5 = 0 ;
9009 PyObject * obj6 = 0 ;
9010 PyObject * obj7 = 0 ;
9011 char * kwnames[] = {
9012 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9013 };
9014
9015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9019 }
9020 arg1 = reinterpret_cast< wxWindow * >(argp1);
9021 if (obj1) {
9022 ecode2 = SWIG_AsVal_int(obj1, &val2);
9023 if (!SWIG_IsOK(ecode2)) {
9024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
9025 }
9026 arg2 = static_cast< int >(val2);
9027 }
9028 if (obj2) {
9029 {
9030 arg3 = &temp3;
9031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9032 }
9033 }
9034 if (obj3) {
9035 {
9036 arg4 = &temp4;
9037 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9038 }
9039 }
9040 if (obj4) {
9041 {
9042 if (! PySequence_Check(obj4)) {
9043 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9044 SWIG_fail;
9045 }
9046 arg5 = new wxArrayString;
9047 temp5 = true;
9048 int i, len=PySequence_Length(obj4);
9049 for (i=0; i<len; i++) {
9050 PyObject* item = PySequence_GetItem(obj4, i);
9051 wxString* s = wxString_in_helper(item);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 arg5->Add(*s);
9054 delete s;
9055 Py_DECREF(item);
9056 }
9057 }
9058 }
9059 if (obj5) {
9060 ecode6 = SWIG_AsVal_long(obj5, &val6);
9061 if (!SWIG_IsOK(ecode6)) {
9062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
9063 }
9064 arg6 = static_cast< long >(val6);
9065 }
9066 if (obj6) {
9067 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
9068 if (!SWIG_IsOK(res7)) {
9069 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9070 }
9071 if (!argp7) {
9072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9073 }
9074 arg7 = reinterpret_cast< wxValidator * >(argp7);
9075 }
9076 if (obj7) {
9077 {
9078 arg8 = wxString_in_helper(obj7);
9079 if (arg8 == NULL) SWIG_fail;
9080 temp8 = true;
9081 }
9082 }
9083 {
9084 if (!wxPyCheckForApp()) SWIG_fail;
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
9091 {
9092 if (temp5) delete arg5;
9093 }
9094 {
9095 if (temp8)
9096 delete arg8;
9097 }
9098 return resultobj;
9099 fail:
9100 {
9101 if (temp5) delete arg5;
9102 }
9103 {
9104 if (temp8)
9105 delete arg8;
9106 }
9107 return NULL;
9108 }
9109
9110
9111 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9112 PyObject *resultobj = 0;
9113 wxListBox *result = 0 ;
9114
9115 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
9116 {
9117 if (!wxPyCheckForApp()) SWIG_fail;
9118 PyThreadState* __tstate = wxPyBeginAllowThreads();
9119 result = (wxListBox *)new wxListBox();
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9124 return resultobj;
9125 fail:
9126 return NULL;
9127 }
9128
9129
9130 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9131 PyObject *resultobj = 0;
9132 wxListBox *arg1 = (wxListBox *) 0 ;
9133 wxWindow *arg2 = (wxWindow *) 0 ;
9134 int arg3 = (int) -1 ;
9135 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9136 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9137 wxSize const &arg5_defvalue = wxDefaultSize ;
9138 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9139 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9140 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9141 long arg7 = (long) 0 ;
9142 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9143 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9144 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9145 wxString *arg9 = (wxString *) &arg9_defvalue ;
9146 bool result;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 void *argp2 = 0 ;
9150 int res2 = 0 ;
9151 int val3 ;
9152 int ecode3 = 0 ;
9153 wxPoint temp4 ;
9154 wxSize temp5 ;
9155 bool temp6 = false ;
9156 long val7 ;
9157 int ecode7 = 0 ;
9158 void *argp8 = 0 ;
9159 int res8 = 0 ;
9160 bool temp9 = false ;
9161 PyObject * obj0 = 0 ;
9162 PyObject * obj1 = 0 ;
9163 PyObject * obj2 = 0 ;
9164 PyObject * obj3 = 0 ;
9165 PyObject * obj4 = 0 ;
9166 PyObject * obj5 = 0 ;
9167 PyObject * obj6 = 0 ;
9168 PyObject * obj7 = 0 ;
9169 PyObject * obj8 = 0 ;
9170 char * kwnames[] = {
9171 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9172 };
9173
9174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9176 if (!SWIG_IsOK(res1)) {
9177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9178 }
9179 arg1 = reinterpret_cast< wxListBox * >(argp1);
9180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9181 if (!SWIG_IsOK(res2)) {
9182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9183 }
9184 arg2 = reinterpret_cast< wxWindow * >(argp2);
9185 if (obj2) {
9186 ecode3 = SWIG_AsVal_int(obj2, &val3);
9187 if (!SWIG_IsOK(ecode3)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9189 }
9190 arg3 = static_cast< int >(val3);
9191 }
9192 if (obj3) {
9193 {
9194 arg4 = &temp4;
9195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9196 }
9197 }
9198 if (obj4) {
9199 {
9200 arg5 = &temp5;
9201 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9202 }
9203 }
9204 if (obj5) {
9205 {
9206 if (! PySequence_Check(obj5)) {
9207 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9208 SWIG_fail;
9209 }
9210 arg6 = new wxArrayString;
9211 temp6 = true;
9212 int i, len=PySequence_Length(obj5);
9213 for (i=0; i<len; i++) {
9214 PyObject* item = PySequence_GetItem(obj5, i);
9215 wxString* s = wxString_in_helper(item);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 arg6->Add(*s);
9218 delete s;
9219 Py_DECREF(item);
9220 }
9221 }
9222 }
9223 if (obj6) {
9224 ecode7 = SWIG_AsVal_long(obj6, &val7);
9225 if (!SWIG_IsOK(ecode7)) {
9226 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9227 }
9228 arg7 = static_cast< long >(val7);
9229 }
9230 if (obj7) {
9231 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9232 if (!SWIG_IsOK(res8)) {
9233 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9234 }
9235 if (!argp8) {
9236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9237 }
9238 arg8 = reinterpret_cast< wxValidator * >(argp8);
9239 }
9240 if (obj8) {
9241 {
9242 arg9 = wxString_in_helper(obj8);
9243 if (arg9 == NULL) SWIG_fail;
9244 temp9 = true;
9245 }
9246 }
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9255 }
9256 {
9257 if (temp6) delete arg6;
9258 }
9259 {
9260 if (temp9)
9261 delete arg9;
9262 }
9263 return resultobj;
9264 fail:
9265 {
9266 if (temp6) delete arg6;
9267 }
9268 {
9269 if (temp9)
9270 delete arg9;
9271 }
9272 return NULL;
9273 }
9274
9275
9276 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9277 PyObject *resultobj = 0;
9278 wxListBox *arg1 = (wxListBox *) 0 ;
9279 wxString *arg2 = 0 ;
9280 int arg3 ;
9281 PyObject *arg4 = (PyObject *) NULL ;
9282 void *argp1 = 0 ;
9283 int res1 = 0 ;
9284 bool temp2 = false ;
9285 int val3 ;
9286 int ecode3 = 0 ;
9287 PyObject * obj0 = 0 ;
9288 PyObject * obj1 = 0 ;
9289 PyObject * obj2 = 0 ;
9290 PyObject * obj3 = 0 ;
9291 char * kwnames[] = {
9292 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9293 };
9294
9295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9299 }
9300 arg1 = reinterpret_cast< wxListBox * >(argp1);
9301 {
9302 arg2 = wxString_in_helper(obj1);
9303 if (arg2 == NULL) SWIG_fail;
9304 temp2 = true;
9305 }
9306 ecode3 = SWIG_AsVal_int(obj2, &val3);
9307 if (!SWIG_IsOK(ecode3)) {
9308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9309 }
9310 arg3 = static_cast< int >(val3);
9311 if (obj3) {
9312 arg4 = obj3;
9313 }
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 resultobj = SWIG_Py_Void();
9321 {
9322 if (temp2)
9323 delete arg2;
9324 }
9325 return resultobj;
9326 fail:
9327 {
9328 if (temp2)
9329 delete arg2;
9330 }
9331 return NULL;
9332 }
9333
9334
9335 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9336 PyObject *resultobj = 0;
9337 wxListBox *arg1 = (wxListBox *) 0 ;
9338 wxArrayString *arg2 = 0 ;
9339 unsigned int arg3 ;
9340 void *argp1 = 0 ;
9341 int res1 = 0 ;
9342 bool temp2 = false ;
9343 unsigned int val3 ;
9344 int ecode3 = 0 ;
9345 PyObject * obj0 = 0 ;
9346 PyObject * obj1 = 0 ;
9347 PyObject * obj2 = 0 ;
9348 char * kwnames[] = {
9349 (char *) "self",(char *) "items",(char *) "pos", NULL
9350 };
9351
9352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9354 if (!SWIG_IsOK(res1)) {
9355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9356 }
9357 arg1 = reinterpret_cast< wxListBox * >(argp1);
9358 {
9359 if (! PySequence_Check(obj1)) {
9360 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9361 SWIG_fail;
9362 }
9363 arg2 = new wxArrayString;
9364 temp2 = true;
9365 int i, len=PySequence_Length(obj1);
9366 for (i=0; i<len; i++) {
9367 PyObject* item = PySequence_GetItem(obj1, i);
9368 wxString* s = wxString_in_helper(item);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 arg2->Add(*s);
9371 delete s;
9372 Py_DECREF(item);
9373 }
9374 }
9375 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9376 if (!SWIG_IsOK(ecode3)) {
9377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9378 }
9379 arg3 = static_cast< unsigned int >(val3);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_Py_Void();
9387 {
9388 if (temp2) delete arg2;
9389 }
9390 return resultobj;
9391 fail:
9392 {
9393 if (temp2) delete arg2;
9394 }
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 wxArrayString *arg2 = 0 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 bool temp2 = false ;
9406 PyObject * obj0 = 0 ;
9407 PyObject * obj1 = 0 ;
9408 char * kwnames[] = {
9409 (char *) "self",(char *) "items", NULL
9410 };
9411
9412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9414 if (!SWIG_IsOK(res1)) {
9415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9416 }
9417 arg1 = reinterpret_cast< wxListBox * >(argp1);
9418 {
9419 if (! PySequence_Check(obj1)) {
9420 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9421 SWIG_fail;
9422 }
9423 arg2 = new wxArrayString;
9424 temp2 = true;
9425 int i, len=PySequence_Length(obj1);
9426 for (i=0; i<len; i++) {
9427 PyObject* item = PySequence_GetItem(obj1, i);
9428 wxString* s = wxString_in_helper(item);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 arg2->Add(*s);
9431 delete s;
9432 Py_DECREF(item);
9433 }
9434 }
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 (arg1)->Set((wxArrayString const &)*arg2);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_Py_Void();
9442 {
9443 if (temp2) delete arg2;
9444 }
9445 return resultobj;
9446 fail:
9447 {
9448 if (temp2) delete arg2;
9449 }
9450 return NULL;
9451 }
9452
9453
9454 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj = 0;
9456 wxListBox *arg1 = (wxListBox *) 0 ;
9457 int arg2 ;
9458 bool result;
9459 void *argp1 = 0 ;
9460 int res1 = 0 ;
9461 int val2 ;
9462 int ecode2 = 0 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 char * kwnames[] = {
9466 (char *) "self",(char *) "n", NULL
9467 };
9468
9469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9473 }
9474 arg1 = reinterpret_cast< wxListBox * >(argp1);
9475 ecode2 = SWIG_AsVal_int(obj1, &val2);
9476 if (!SWIG_IsOK(ecode2)) {
9477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9478 }
9479 arg2 = static_cast< int >(val2);
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 {
9487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9488 }
9489 return resultobj;
9490 fail:
9491 return NULL;
9492 }
9493
9494
9495 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj = 0;
9497 wxListBox *arg1 = (wxListBox *) 0 ;
9498 int arg2 ;
9499 bool arg3 = (bool) true ;
9500 void *argp1 = 0 ;
9501 int res1 = 0 ;
9502 int val2 ;
9503 int ecode2 = 0 ;
9504 bool val3 ;
9505 int ecode3 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 PyObject * obj2 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "n",(char *) "select", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9517 }
9518 arg1 = reinterpret_cast< wxListBox * >(argp1);
9519 ecode2 = SWIG_AsVal_int(obj1, &val2);
9520 if (!SWIG_IsOK(ecode2)) {
9521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9522 }
9523 arg2 = static_cast< int >(val2);
9524 if (obj2) {
9525 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9526 if (!SWIG_IsOK(ecode3)) {
9527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9528 }
9529 arg3 = static_cast< bool >(val3);
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 (arg1)->SetSelection(arg2,arg3);
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 resultobj = SWIG_Py_Void();
9538 return resultobj;
9539 fail:
9540 return NULL;
9541 }
9542
9543
9544 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxListBox *arg1 = (wxListBox *) 0 ;
9547 int arg2 ;
9548 void *argp1 = 0 ;
9549 int res1 = 0 ;
9550 int val2 ;
9551 int ecode2 = 0 ;
9552 PyObject * obj0 = 0 ;
9553 PyObject * obj1 = 0 ;
9554 char * kwnames[] = {
9555 (char *) "self",(char *) "n", NULL
9556 };
9557
9558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) 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_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9562 }
9563 arg1 = reinterpret_cast< wxListBox * >(argp1);
9564 ecode2 = SWIG_AsVal_int(obj1, &val2);
9565 if (!SWIG_IsOK(ecode2)) {
9566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9567 }
9568 arg2 = static_cast< int >(val2);
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 (arg1)->Select(arg2);
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 resultobj = SWIG_Py_Void();
9576 return resultobj;
9577 fail:
9578 return NULL;
9579 }
9580
9581
9582 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9583 PyObject *resultobj = 0;
9584 wxListBox *arg1 = (wxListBox *) 0 ;
9585 int arg2 ;
9586 void *argp1 = 0 ;
9587 int res1 = 0 ;
9588 int val2 ;
9589 int ecode2 = 0 ;
9590 PyObject * obj0 = 0 ;
9591 PyObject * obj1 = 0 ;
9592 char * kwnames[] = {
9593 (char *) "self",(char *) "n", NULL
9594 };
9595
9596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9598 if (!SWIG_IsOK(res1)) {
9599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9600 }
9601 arg1 = reinterpret_cast< wxListBox * >(argp1);
9602 ecode2 = SWIG_AsVal_int(obj1, &val2);
9603 if (!SWIG_IsOK(ecode2)) {
9604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9605 }
9606 arg2 = static_cast< int >(val2);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->Deselect(arg2);
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_Py_Void();
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 int arg2 = (int) -1 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 int val2 ;
9627 int ecode2 = 0 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "itemToLeaveSelected", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9638 }
9639 arg1 = reinterpret_cast< wxListBox * >(argp1);
9640 if (obj1) {
9641 ecode2 = SWIG_AsVal_int(obj1, &val2);
9642 if (!SWIG_IsOK(ecode2)) {
9643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9644 }
9645 arg2 = static_cast< int >(val2);
9646 }
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 (arg1)->DeselectAll(arg2);
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_Py_Void();
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9661 PyObject *resultobj = 0;
9662 wxListBox *arg1 = (wxListBox *) 0 ;
9663 wxString *arg2 = 0 ;
9664 bool arg3 = (bool) true ;
9665 bool result;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 bool temp2 = false ;
9669 bool val3 ;
9670 int ecode3 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 PyObject * obj2 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "s",(char *) "select", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) 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_SetStringSelection" "', 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 if (obj2) {
9690 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9691 if (!SWIG_IsOK(ecode3)) {
9692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9693 }
9694 arg3 = static_cast< bool >(val3);
9695 }
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 {
9703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9704 }
9705 {
9706 if (temp2)
9707 delete arg2;
9708 }
9709 return resultobj;
9710 fail:
9711 {
9712 if (temp2)
9713 delete arg2;
9714 }
9715 return NULL;
9716 }
9717
9718
9719 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxListBox *arg1 = (wxListBox *) 0 ;
9722 PyObject *result = 0 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 PyObject *swig_obj[1] ;
9726
9727 if (!args) SWIG_fail;
9728 swig_obj[0] = args;
9729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9732 }
9733 arg1 = reinterpret_cast< wxListBox * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (PyObject *)wxListBox_GetSelections(arg1);
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = result;
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj = 0;
9749 wxListBox *arg1 = (wxListBox *) 0 ;
9750 int arg2 ;
9751 void *argp1 = 0 ;
9752 int res1 = 0 ;
9753 int val2 ;
9754 int ecode2 = 0 ;
9755 PyObject * obj0 = 0 ;
9756 PyObject * obj1 = 0 ;
9757 char * kwnames[] = {
9758 (char *) "self",(char *) "n", NULL
9759 };
9760
9761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",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_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9765 }
9766 arg1 = reinterpret_cast< wxListBox * >(argp1);
9767 ecode2 = SWIG_AsVal_int(obj1, &val2);
9768 if (!SWIG_IsOK(ecode2)) {
9769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9770 }
9771 arg2 = static_cast< int >(val2);
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 (arg1)->SetFirstItem(arg2);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_Py_Void();
9779 return resultobj;
9780 fail:
9781 return NULL;
9782 }
9783
9784
9785 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj = 0;
9787 wxListBox *arg1 = (wxListBox *) 0 ;
9788 wxString *arg2 = 0 ;
9789 void *argp1 = 0 ;
9790 int res1 = 0 ;
9791 bool temp2 = false ;
9792 PyObject * obj0 = 0 ;
9793 PyObject * obj1 = 0 ;
9794 char * kwnames[] = {
9795 (char *) "self",(char *) "s", NULL
9796 };
9797
9798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9800 if (!SWIG_IsOK(res1)) {
9801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9802 }
9803 arg1 = reinterpret_cast< wxListBox * >(argp1);
9804 {
9805 arg2 = wxString_in_helper(obj1);
9806 if (arg2 == NULL) SWIG_fail;
9807 temp2 = true;
9808 }
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 (arg1)->SetFirstItem((wxString const &)*arg2);
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 resultobj = SWIG_Py_Void();
9816 {
9817 if (temp2)
9818 delete arg2;
9819 }
9820 return resultobj;
9821 fail:
9822 {
9823 if (temp2)
9824 delete arg2;
9825 }
9826 return NULL;
9827 }
9828
9829
9830 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9831 PyObject *resultobj = 0;
9832 wxListBox *arg1 = (wxListBox *) 0 ;
9833 int arg2 ;
9834 void *argp1 = 0 ;
9835 int res1 = 0 ;
9836 int val2 ;
9837 int ecode2 = 0 ;
9838 PyObject * obj0 = 0 ;
9839 PyObject * obj1 = 0 ;
9840 char * kwnames[] = {
9841 (char *) "self",(char *) "n", NULL
9842 };
9843
9844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9846 if (!SWIG_IsOK(res1)) {
9847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9848 }
9849 arg1 = reinterpret_cast< wxListBox * >(argp1);
9850 ecode2 = SWIG_AsVal_int(obj1, &val2);
9851 if (!SWIG_IsOK(ecode2)) {
9852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9853 }
9854 arg2 = static_cast< int >(val2);
9855 {
9856 PyThreadState* __tstate = wxPyBeginAllowThreads();
9857 (arg1)->EnsureVisible(arg2);
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 resultobj = SWIG_Py_Void();
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj = 0;
9870 wxListBox *arg1 = (wxListBox *) 0 ;
9871 wxString *arg2 = 0 ;
9872 void *argp1 = 0 ;
9873 int res1 = 0 ;
9874 bool temp2 = false ;
9875 PyObject * obj0 = 0 ;
9876 PyObject * obj1 = 0 ;
9877 char * kwnames[] = {
9878 (char *) "self",(char *) "s", NULL
9879 };
9880
9881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9883 if (!SWIG_IsOK(res1)) {
9884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9885 }
9886 arg1 = reinterpret_cast< wxListBox * >(argp1);
9887 {
9888 arg2 = wxString_in_helper(obj1);
9889 if (arg2 == NULL) SWIG_fail;
9890 temp2 = true;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_Py_Void();
9899 {
9900 if (temp2)
9901 delete arg2;
9902 }
9903 return resultobj;
9904 fail:
9905 {
9906 if (temp2)
9907 delete arg2;
9908 }
9909 return NULL;
9910 }
9911
9912
9913 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9914 PyObject *resultobj = 0;
9915 wxListBox *arg1 = (wxListBox *) 0 ;
9916 bool result;
9917 void *argp1 = 0 ;
9918 int res1 = 0 ;
9919 PyObject *swig_obj[1] ;
9920
9921 if (!args) SWIG_fail;
9922 swig_obj[0] = args;
9923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9926 }
9927 arg1 = reinterpret_cast< wxListBox * >(argp1);
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 result = (bool)((wxListBox const *)arg1)->IsSorted();
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 {
9935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9936 }
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9944 PyObject *resultobj = 0;
9945 wxListBox *arg1 = (wxListBox *) 0 ;
9946 wxPoint *arg2 = 0 ;
9947 int result;
9948 void *argp1 = 0 ;
9949 int res1 = 0 ;
9950 wxPoint temp2 ;
9951 PyObject * obj0 = 0 ;
9952 PyObject * obj1 = 0 ;
9953 char * kwnames[] = {
9954 (char *) "self",(char *) "pt", NULL
9955 };
9956
9957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9959 if (!SWIG_IsOK(res1)) {
9960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9961 }
9962 arg1 = reinterpret_cast< wxListBox * >(argp1);
9963 {
9964 arg2 = &temp2;
9965 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9966 }
9967 {
9968 PyThreadState* __tstate = wxPyBeginAllowThreads();
9969 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 resultobj = SWIG_From_int(static_cast< int >(result));
9974 return resultobj;
9975 fail:
9976 return NULL;
9977 }
9978
9979
9980 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj = 0;
9982 wxListBox *arg1 = (wxListBox *) 0 ;
9983 int arg2 ;
9984 wxColour *arg3 = 0 ;
9985 void *argp1 = 0 ;
9986 int res1 = 0 ;
9987 int val2 ;
9988 int ecode2 = 0 ;
9989 wxColour temp3 ;
9990 PyObject * obj0 = 0 ;
9991 PyObject * obj1 = 0 ;
9992 PyObject * obj2 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "self",(char *) "item",(char *) "c", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9999 if (!SWIG_IsOK(res1)) {
10000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10001 }
10002 arg1 = reinterpret_cast< wxListBox * >(argp1);
10003 ecode2 = SWIG_AsVal_int(obj1, &val2);
10004 if (!SWIG_IsOK(ecode2)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
10006 }
10007 arg2 = static_cast< int >(val2);
10008 {
10009 arg3 = &temp3;
10010 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10011 }
10012 {
10013 PyThreadState* __tstate = wxPyBeginAllowThreads();
10014 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 resultobj = SWIG_Py_Void();
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj = 0;
10027 wxListBox *arg1 = (wxListBox *) 0 ;
10028 int arg2 ;
10029 wxColour *arg3 = 0 ;
10030 void *argp1 = 0 ;
10031 int res1 = 0 ;
10032 int val2 ;
10033 int ecode2 = 0 ;
10034 wxColour temp3 ;
10035 PyObject * obj0 = 0 ;
10036 PyObject * obj1 = 0 ;
10037 PyObject * obj2 = 0 ;
10038 char * kwnames[] = {
10039 (char *) "self",(char *) "item",(char *) "c", NULL
10040 };
10041
10042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10044 if (!SWIG_IsOK(res1)) {
10045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10046 }
10047 arg1 = reinterpret_cast< wxListBox * >(argp1);
10048 ecode2 = SWIG_AsVal_int(obj1, &val2);
10049 if (!SWIG_IsOK(ecode2)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
10051 }
10052 arg2 = static_cast< int >(val2);
10053 {
10054 arg3 = &temp3;
10055 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10056 }
10057 {
10058 PyThreadState* __tstate = wxPyBeginAllowThreads();
10059 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 resultobj = SWIG_Py_Void();
10064 return resultobj;
10065 fail:
10066 return NULL;
10067 }
10068
10069
10070 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10071 PyObject *resultobj = 0;
10072 wxListBox *arg1 = (wxListBox *) 0 ;
10073 int arg2 ;
10074 wxFont *arg3 = 0 ;
10075 void *argp1 = 0 ;
10076 int res1 = 0 ;
10077 int val2 ;
10078 int ecode2 = 0 ;
10079 void *argp3 = 0 ;
10080 int res3 = 0 ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 PyObject * obj2 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "item",(char *) "f", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
10092 }
10093 arg1 = reinterpret_cast< wxListBox * >(argp1);
10094 ecode2 = SWIG_AsVal_int(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
10097 }
10098 arg2 = static_cast< int >(val2);
10099 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10100 if (!SWIG_IsOK(res3)) {
10101 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10102 }
10103 if (!argp3) {
10104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10105 }
10106 arg3 = reinterpret_cast< wxFont * >(argp3);
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 resultobj = SWIG_Py_Void();
10114 return resultobj;
10115 fail:
10116 return NULL;
10117 }
10118
10119
10120 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj = 0;
10122 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10123 SwigValueWrapper<wxVisualAttributes > result;
10124 int val1 ;
10125 int ecode1 = 0 ;
10126 PyObject * obj0 = 0 ;
10127 char * kwnames[] = {
10128 (char *) "variant", NULL
10129 };
10130
10131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10132 if (obj0) {
10133 ecode1 = SWIG_AsVal_int(obj0, &val1);
10134 if (!SWIG_IsOK(ecode1)) {
10135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10136 }
10137 arg1 = static_cast< wxWindowVariant >(val1);
10138 }
10139 {
10140 if (!wxPyCheckForApp()) SWIG_fail;
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = wxListBox::GetClassDefaultAttributes(arg1);
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10154 PyObject *obj;
10155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10156 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10157 return SWIG_Py_Void();
10158 }
10159
10160 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 return SWIG_Python_InitShadowInstance(args);
10162 }
10163
10164 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10165 PyObject *resultobj = 0;
10166 wxWindow *arg1 = (wxWindow *) 0 ;
10167 int arg2 = (int) -1 ;
10168 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10169 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10170 wxSize const &arg4_defvalue = wxDefaultSize ;
10171 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10172 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10173 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10174 long arg6 = (long) 0 ;
10175 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10176 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10177 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10178 wxString *arg8 = (wxString *) &arg8_defvalue ;
10179 wxCheckListBox *result = 0 ;
10180 void *argp1 = 0 ;
10181 int res1 = 0 ;
10182 int val2 ;
10183 int ecode2 = 0 ;
10184 wxPoint temp3 ;
10185 wxSize temp4 ;
10186 bool temp5 = false ;
10187 long val6 ;
10188 int ecode6 = 0 ;
10189 void *argp7 = 0 ;
10190 int res7 = 0 ;
10191 bool temp8 = false ;
10192 PyObject * obj0 = 0 ;
10193 PyObject * obj1 = 0 ;
10194 PyObject * obj2 = 0 ;
10195 PyObject * obj3 = 0 ;
10196 PyObject * obj4 = 0 ;
10197 PyObject * obj5 = 0 ;
10198 PyObject * obj6 = 0 ;
10199 PyObject * obj7 = 0 ;
10200 char * kwnames[] = {
10201 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10202 };
10203
10204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10206 if (!SWIG_IsOK(res1)) {
10207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10208 }
10209 arg1 = reinterpret_cast< wxWindow * >(argp1);
10210 if (obj1) {
10211 ecode2 = SWIG_AsVal_int(obj1, &val2);
10212 if (!SWIG_IsOK(ecode2)) {
10213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10214 }
10215 arg2 = static_cast< int >(val2);
10216 }
10217 if (obj2) {
10218 {
10219 arg3 = &temp3;
10220 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10221 }
10222 }
10223 if (obj3) {
10224 {
10225 arg4 = &temp4;
10226 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10227 }
10228 }
10229 if (obj4) {
10230 {
10231 if (! PySequence_Check(obj4)) {
10232 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10233 SWIG_fail;
10234 }
10235 arg5 = new wxArrayString;
10236 temp5 = true;
10237 int i, len=PySequence_Length(obj4);
10238 for (i=0; i<len; i++) {
10239 PyObject* item = PySequence_GetItem(obj4, i);
10240 wxString* s = wxString_in_helper(item);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 arg5->Add(*s);
10243 delete s;
10244 Py_DECREF(item);
10245 }
10246 }
10247 }
10248 if (obj5) {
10249 ecode6 = SWIG_AsVal_long(obj5, &val6);
10250 if (!SWIG_IsOK(ecode6)) {
10251 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10252 }
10253 arg6 = static_cast< long >(val6);
10254 }
10255 if (obj6) {
10256 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10257 if (!SWIG_IsOK(res7)) {
10258 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10259 }
10260 if (!argp7) {
10261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10262 }
10263 arg7 = reinterpret_cast< wxValidator * >(argp7);
10264 }
10265 if (obj7) {
10266 {
10267 arg8 = wxString_in_helper(obj7);
10268 if (arg8 == NULL) SWIG_fail;
10269 temp8 = true;
10270 }
10271 }
10272 {
10273 if (!wxPyCheckForApp()) SWIG_fail;
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10280 {
10281 if (temp5) delete arg5;
10282 }
10283 {
10284 if (temp8)
10285 delete arg8;
10286 }
10287 return resultobj;
10288 fail:
10289 {
10290 if (temp5) delete arg5;
10291 }
10292 {
10293 if (temp8)
10294 delete arg8;
10295 }
10296 return NULL;
10297 }
10298
10299
10300 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10301 PyObject *resultobj = 0;
10302 wxCheckListBox *result = 0 ;
10303
10304 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10305 {
10306 if (!wxPyCheckForApp()) SWIG_fail;
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 result = (wxCheckListBox *)new wxCheckListBox();
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10313 return resultobj;
10314 fail:
10315 return NULL;
10316 }
10317
10318
10319 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj = 0;
10321 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10322 wxWindow *arg2 = (wxWindow *) 0 ;
10323 int arg3 = (int) -1 ;
10324 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10325 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10326 wxSize const &arg5_defvalue = wxDefaultSize ;
10327 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10328 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10329 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10330 long arg7 = (long) 0 ;
10331 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10332 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10333 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10334 wxString *arg9 = (wxString *) &arg9_defvalue ;
10335 bool result;
10336 void *argp1 = 0 ;
10337 int res1 = 0 ;
10338 void *argp2 = 0 ;
10339 int res2 = 0 ;
10340 int val3 ;
10341 int ecode3 = 0 ;
10342 wxPoint temp4 ;
10343 wxSize temp5 ;
10344 bool temp6 = false ;
10345 long val7 ;
10346 int ecode7 = 0 ;
10347 void *argp8 = 0 ;
10348 int res8 = 0 ;
10349 bool temp9 = false ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 PyObject * obj3 = 0 ;
10354 PyObject * obj4 = 0 ;
10355 PyObject * obj5 = 0 ;
10356 PyObject * obj6 = 0 ;
10357 PyObject * obj7 = 0 ;
10358 PyObject * obj8 = 0 ;
10359 char * kwnames[] = {
10360 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10361 };
10362
10363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10365 if (!SWIG_IsOK(res1)) {
10366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10367 }
10368 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10370 if (!SWIG_IsOK(res2)) {
10371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10372 }
10373 arg2 = reinterpret_cast< wxWindow * >(argp2);
10374 if (obj2) {
10375 ecode3 = SWIG_AsVal_int(obj2, &val3);
10376 if (!SWIG_IsOK(ecode3)) {
10377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10378 }
10379 arg3 = static_cast< int >(val3);
10380 }
10381 if (obj3) {
10382 {
10383 arg4 = &temp4;
10384 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10385 }
10386 }
10387 if (obj4) {
10388 {
10389 arg5 = &temp5;
10390 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10391 }
10392 }
10393 if (obj5) {
10394 {
10395 if (! PySequence_Check(obj5)) {
10396 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10397 SWIG_fail;
10398 }
10399 arg6 = new wxArrayString;
10400 temp6 = true;
10401 int i, len=PySequence_Length(obj5);
10402 for (i=0; i<len; i++) {
10403 PyObject* item = PySequence_GetItem(obj5, i);
10404 wxString* s = wxString_in_helper(item);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 arg6->Add(*s);
10407 delete s;
10408 Py_DECREF(item);
10409 }
10410 }
10411 }
10412 if (obj6) {
10413 ecode7 = SWIG_AsVal_long(obj6, &val7);
10414 if (!SWIG_IsOK(ecode7)) {
10415 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10416 }
10417 arg7 = static_cast< long >(val7);
10418 }
10419 if (obj7) {
10420 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10421 if (!SWIG_IsOK(res8)) {
10422 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10423 }
10424 if (!argp8) {
10425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10426 }
10427 arg8 = reinterpret_cast< wxValidator * >(argp8);
10428 }
10429 if (obj8) {
10430 {
10431 arg9 = wxString_in_helper(obj8);
10432 if (arg9 == NULL) SWIG_fail;
10433 temp9 = true;
10434 }
10435 }
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 {
10443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10444 }
10445 {
10446 if (temp6) delete arg6;
10447 }
10448 {
10449 if (temp9)
10450 delete arg9;
10451 }
10452 return resultobj;
10453 fail:
10454 {
10455 if (temp6) delete arg6;
10456 }
10457 {
10458 if (temp9)
10459 delete arg9;
10460 }
10461 return NULL;
10462 }
10463
10464
10465 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10466 PyObject *resultobj = 0;
10467 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10468 unsigned int arg2 ;
10469 bool result;
10470 void *argp1 = 0 ;
10471 int res1 = 0 ;
10472 unsigned int val2 ;
10473 int ecode2 = 0 ;
10474 PyObject * obj0 = 0 ;
10475 PyObject * obj1 = 0 ;
10476 char * kwnames[] = {
10477 (char *) "self",(char *) "index", NULL
10478 };
10479
10480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10482 if (!SWIG_IsOK(res1)) {
10483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10484 }
10485 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10486 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10487 if (!SWIG_IsOK(ecode2)) {
10488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10489 }
10490 arg2 = static_cast< unsigned int >(val2);
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 result = (bool)(arg1)->IsChecked(arg2);
10494 wxPyEndAllowThreads(__tstate);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 }
10497 {
10498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10499 }
10500 return resultobj;
10501 fail:
10502 return NULL;
10503 }
10504
10505
10506 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10507 PyObject *resultobj = 0;
10508 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10509 unsigned int arg2 ;
10510 int arg3 = (int) true ;
10511 void *argp1 = 0 ;
10512 int res1 = 0 ;
10513 unsigned int val2 ;
10514 int ecode2 = 0 ;
10515 int val3 ;
10516 int ecode3 = 0 ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 char * kwnames[] = {
10521 (char *) "self",(char *) "index",(char *) "check", NULL
10522 };
10523
10524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10528 }
10529 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10530 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10531 if (!SWIG_IsOK(ecode2)) {
10532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10533 }
10534 arg2 = static_cast< unsigned int >(val2);
10535 if (obj2) {
10536 ecode3 = SWIG_AsVal_int(obj2, &val3);
10537 if (!SWIG_IsOK(ecode3)) {
10538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10539 }
10540 arg3 = static_cast< int >(val3);
10541 }
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 (arg1)->Check(arg2,arg3);
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 resultobj = SWIG_Py_Void();
10549 return resultobj;
10550 fail:
10551 return NULL;
10552 }
10553
10554
10555 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10556 PyObject *resultobj = 0;
10557 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10558 int result;
10559 void *argp1 = 0 ;
10560 int res1 = 0 ;
10561 PyObject *swig_obj[1] ;
10562
10563 if (!args) SWIG_fail;
10564 swig_obj[0] = args;
10565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10566 if (!SWIG_IsOK(res1)) {
10567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10568 }
10569 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
10572 result = (int)(arg1)->GetItemHeight();
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 resultobj = SWIG_From_int(static_cast< int >(result));
10577 return resultobj;
10578 fail:
10579 return NULL;
10580 }
10581
10582
10583 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10584 PyObject *obj;
10585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10586 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10587 return SWIG_Py_Void();
10588 }
10589
10590 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10591 return SWIG_Python_InitShadowInstance(args);
10592 }
10593
10594 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10595 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10596 return 1;
10597 }
10598
10599
10600 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10601 PyObject *pyobj = 0;
10602
10603 {
10604 #if wxUSE_UNICODE
10605 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10606 #else
10607 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10608 #endif
10609 }
10610 return pyobj;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxColour const &arg1_defvalue = wxNullColour ;
10617 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10618 wxColour const &arg2_defvalue = wxNullColour ;
10619 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10620 wxFont const &arg3_defvalue = wxNullFont ;
10621 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10622 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10623 wxTextAttr *result = 0 ;
10624 wxColour temp1 ;
10625 wxColour temp2 ;
10626 void *argp3 = 0 ;
10627 int res3 = 0 ;
10628 int val4 ;
10629 int ecode4 = 0 ;
10630 PyObject * obj0 = 0 ;
10631 PyObject * obj1 = 0 ;
10632 PyObject * obj2 = 0 ;
10633 PyObject * obj3 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10639 if (obj0) {
10640 {
10641 arg1 = &temp1;
10642 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10643 }
10644 }
10645 if (obj1) {
10646 {
10647 arg2 = &temp2;
10648 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10649 }
10650 }
10651 if (obj2) {
10652 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10653 if (!SWIG_IsOK(res3)) {
10654 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10655 }
10656 if (!argp3) {
10657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10658 }
10659 arg3 = reinterpret_cast< wxFont * >(argp3);
10660 }
10661 if (obj3) {
10662 ecode4 = SWIG_AsVal_int(obj3, &val4);
10663 if (!SWIG_IsOK(ecode4)) {
10664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10665 }
10666 arg4 = static_cast< wxTextAttrAlignment >(val4);
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10675 return resultobj;
10676 fail:
10677 return NULL;
10678 }
10679
10680
10681 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10682 PyObject *resultobj = 0;
10683 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10684 void *argp1 = 0 ;
10685 int res1 = 0 ;
10686 PyObject *swig_obj[1] ;
10687
10688 if (!args) SWIG_fail;
10689 swig_obj[0] = args;
10690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10691 if (!SWIG_IsOK(res1)) {
10692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10693 }
10694 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 delete arg1;
10698
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 resultobj = SWIG_Py_Void();
10703 return resultobj;
10704 fail:
10705 return NULL;
10706 }
10707
10708
10709 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10710 PyObject *resultobj = 0;
10711 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 PyObject *swig_obj[1] ;
10715
10716 if (!args) SWIG_fail;
10717 swig_obj[0] = args;
10718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10719 if (!SWIG_IsOK(res1)) {
10720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10721 }
10722 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10723 {
10724 PyThreadState* __tstate = wxPyBeginAllowThreads();
10725 (arg1)->Init();
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 resultobj = SWIG_Py_Void();
10730 return resultobj;
10731 fail:
10732 return NULL;
10733 }
10734
10735
10736 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxTextAttr *arg1 = 0 ;
10739 wxTextAttr *arg2 = 0 ;
10740 wxTextAttr result;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 void *argp2 = 0 ;
10744 int res2 = 0 ;
10745 PyObject * obj0 = 0 ;
10746 PyObject * obj1 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "base",(char *) "overlay", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) 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_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10755 }
10756 if (!argp1) {
10757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10758 }
10759 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10761 if (!SWIG_IsOK(res2)) {
10762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10763 }
10764 if (!argp2) {
10765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10766 }
10767 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10768 {
10769 PyThreadState* __tstate = wxPyBeginAllowThreads();
10770 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10771 wxPyEndAllowThreads(__tstate);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 }
10774 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10775 return resultobj;
10776 fail:
10777 return NULL;
10778 }
10779
10780
10781 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10782 PyObject *resultobj = 0;
10783 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10784 wxColour *arg2 = 0 ;
10785 void *argp1 = 0 ;
10786 int res1 = 0 ;
10787 wxColour temp2 ;
10788 PyObject * obj0 = 0 ;
10789 PyObject * obj1 = 0 ;
10790 char * kwnames[] = {
10791 (char *) "self",(char *) "colText", NULL
10792 };
10793
10794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10796 if (!SWIG_IsOK(res1)) {
10797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10798 }
10799 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10800 {
10801 arg2 = &temp2;
10802 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->SetTextColour((wxColour const &)*arg2);
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 resultobj = SWIG_Py_Void();
10811 return resultobj;
10812 fail:
10813 return NULL;
10814 }
10815
10816
10817 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10818 PyObject *resultobj = 0;
10819 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10820 wxColour *arg2 = 0 ;
10821 void *argp1 = 0 ;
10822 int res1 = 0 ;
10823 wxColour temp2 ;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 char * kwnames[] = {
10827 (char *) "self",(char *) "colBack", NULL
10828 };
10829
10830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10832 if (!SWIG_IsOK(res1)) {
10833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10834 }
10835 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10836 {
10837 arg2 = &temp2;
10838 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10839 }
10840 {
10841 PyThreadState* __tstate = wxPyBeginAllowThreads();
10842 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 resultobj = SWIG_Py_Void();
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj = 0;
10855 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10856 wxFont *arg2 = 0 ;
10857 long arg3 = (long) wxTEXT_ATTR_FONT ;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 void *argp2 = 0 ;
10861 int res2 = 0 ;
10862 long val3 ;
10863 int ecode3 = 0 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 PyObject * obj2 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "font",(char *) "flags", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10878 if (!SWIG_IsOK(res2)) {
10879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10880 }
10881 if (!argp2) {
10882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10883 }
10884 arg2 = reinterpret_cast< wxFont * >(argp2);
10885 if (obj2) {
10886 ecode3 = SWIG_AsVal_long(obj2, &val3);
10887 if (!SWIG_IsOK(ecode3)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10889 }
10890 arg3 = static_cast< long >(val3);
10891 }
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 resultobj = SWIG_Py_Void();
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj = 0;
10907 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10908 wxTextAttrAlignment arg2 ;
10909 void *argp1 = 0 ;
10910 int res1 = 0 ;
10911 int val2 ;
10912 int ecode2 = 0 ;
10913 PyObject * obj0 = 0 ;
10914 PyObject * obj1 = 0 ;
10915 char * kwnames[] = {
10916 (char *) "self",(char *) "alignment", NULL
10917 };
10918
10919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10923 }
10924 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10925 ecode2 = SWIG_AsVal_int(obj1, &val2);
10926 if (!SWIG_IsOK(ecode2)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10928 }
10929 arg2 = static_cast< wxTextAttrAlignment >(val2);
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 (arg1)->SetAlignment(arg2);
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 resultobj = SWIG_Py_Void();
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj = 0;
10945 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10946 wxArrayInt *arg2 = 0 ;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 bool temp2 = false ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 char * kwnames[] = {
10953 (char *) "self",(char *) "tabs", NULL
10954 };
10955
10956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10958 if (!SWIG_IsOK(res1)) {
10959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10960 }
10961 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10962 {
10963 if (! PySequence_Check(obj1)) {
10964 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10965 SWIG_fail;
10966 }
10967 arg2 = new wxArrayInt;
10968 temp2 = true;
10969 int i, len=PySequence_Length(obj1);
10970 for (i=0; i<len; i++) {
10971 PyObject* item = PySequence_GetItem(obj1, i);
10972 PyObject* number = PyNumber_Int(item);
10973 if (!number) {
10974 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10975 SWIG_fail;
10976 }
10977 arg2->Add(PyInt_AS_LONG(number));
10978 Py_DECREF(item);
10979 Py_DECREF(number);
10980 }
10981 }
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 resultobj = SWIG_Py_Void();
10989 {
10990 if (temp2) delete arg2;
10991 }
10992 return resultobj;
10993 fail:
10994 {
10995 if (temp2) delete arg2;
10996 }
10997 return NULL;
10998 }
10999
11000
11001 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11002 PyObject *resultobj = 0;
11003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11004 int arg2 ;
11005 int arg3 = (int) 0 ;
11006 void *argp1 = 0 ;
11007 int res1 = 0 ;
11008 int val2 ;
11009 int ecode2 = 0 ;
11010 int val3 ;
11011 int ecode3 = 0 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 PyObject * obj2 = 0 ;
11015 char * kwnames[] = {
11016 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
11017 };
11018
11019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11021 if (!SWIG_IsOK(res1)) {
11022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11023 }
11024 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11025 ecode2 = SWIG_AsVal_int(obj1, &val2);
11026 if (!SWIG_IsOK(ecode2)) {
11027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
11028 }
11029 arg2 = static_cast< int >(val2);
11030 if (obj2) {
11031 ecode3 = SWIG_AsVal_int(obj2, &val3);
11032 if (!SWIG_IsOK(ecode3)) {
11033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
11034 }
11035 arg3 = static_cast< int >(val3);
11036 }
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 (arg1)->SetLeftIndent(arg2,arg3);
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 resultobj = SWIG_Py_Void();
11044 return resultobj;
11045 fail:
11046 return NULL;
11047 }
11048
11049
11050 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11051 PyObject *resultobj = 0;
11052 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11053 int arg2 ;
11054 void *argp1 = 0 ;
11055 int res1 = 0 ;
11056 int val2 ;
11057 int ecode2 = 0 ;
11058 PyObject * obj0 = 0 ;
11059 PyObject * obj1 = 0 ;
11060 char * kwnames[] = {
11061 (char *) "self",(char *) "indent", NULL
11062 };
11063
11064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
11065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11066 if (!SWIG_IsOK(res1)) {
11067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11068 }
11069 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11070 ecode2 = SWIG_AsVal_int(obj1, &val2);
11071 if (!SWIG_IsOK(ecode2)) {
11072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
11073 }
11074 arg2 = static_cast< int >(val2);
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 (arg1)->SetRightIndent(arg2);
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 resultobj = SWIG_Py_Void();
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj = 0;
11090 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11091 long arg2 ;
11092 void *argp1 = 0 ;
11093 int res1 = 0 ;
11094 long val2 ;
11095 int ecode2 = 0 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "self",(char *) "flags", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11104 if (!SWIG_IsOK(res1)) {
11105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11106 }
11107 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11108 ecode2 = SWIG_AsVal_long(obj1, &val2);
11109 if (!SWIG_IsOK(ecode2)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
11111 }
11112 arg2 = static_cast< long >(val2);
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->SetFlags(arg2);
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 resultobj = SWIG_Py_Void();
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(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_HasTextColour" "', 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)->HasTextColour();
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_HasBackgroundColour(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_HasBackgroundColour" "', 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)->HasBackgroundColour();
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_HasFont(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_HasFont" "', 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)->HasFont();
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_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11217 PyObject *resultobj = 0;
11218 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11219 bool result;
11220 void *argp1 = 0 ;
11221 int res1 = 0 ;
11222 PyObject *swig_obj[1] ;
11223
11224 if (!args) SWIG_fail;
11225 swig_obj[0] = args;
11226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11227 if (!SWIG_IsOK(res1)) {
11228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11229 }
11230 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11234 wxPyEndAllowThreads(__tstate);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 {
11238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11239 }
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 bool result;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 {
11268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11269 }
11270 return resultobj;
11271 fail:
11272 return NULL;
11273 }
11274
11275
11276 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11277 PyObject *resultobj = 0;
11278 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11279 bool result;
11280 void *argp1 = 0 ;
11281 int res1 = 0 ;
11282 PyObject *swig_obj[1] ;
11283
11284 if (!args) SWIG_fail;
11285 swig_obj[0] = args;
11286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11287 if (!SWIG_IsOK(res1)) {
11288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11289 }
11290 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 {
11298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11299 }
11300 return resultobj;
11301 fail:
11302 return NULL;
11303 }
11304
11305
11306 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 bool result;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 {
11328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11329 }
11330 return resultobj;
11331 fail:
11332 return NULL;
11333 }
11334
11335
11336 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj = 0;
11338 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11339 long arg2 ;
11340 bool result;
11341 void *argp1 = 0 ;
11342 int res1 = 0 ;
11343 long val2 ;
11344 int ecode2 = 0 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 char * kwnames[] = {
11348 (char *) "self",(char *) "flag", NULL
11349 };
11350
11351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11353 if (!SWIG_IsOK(res1)) {
11354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11355 }
11356 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11357 ecode2 = SWIG_AsVal_long(obj1, &val2);
11358 if (!SWIG_IsOK(ecode2)) {
11359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11360 }
11361 arg2 = static_cast< long >(val2);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 {
11369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11370 }
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11378 PyObject *resultobj = 0;
11379 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11380 wxColour *result = 0 ;
11381 void *argp1 = 0 ;
11382 int res1 = 0 ;
11383 PyObject *swig_obj[1] ;
11384
11385 if (!args) SWIG_fail;
11386 swig_obj[0] = args;
11387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11388 if (!SWIG_IsOK(res1)) {
11389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11390 }
11391 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 {
11395 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11396 result = (wxColour *) &_result_ref;
11397 }
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11402 return resultobj;
11403 fail:
11404 return NULL;
11405 }
11406
11407
11408 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11409 PyObject *resultobj = 0;
11410 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11411 wxColour *result = 0 ;
11412 void *argp1 = 0 ;
11413 int res1 = 0 ;
11414 PyObject *swig_obj[1] ;
11415
11416 if (!args) SWIG_fail;
11417 swig_obj[0] = args;
11418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11419 if (!SWIG_IsOK(res1)) {
11420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11421 }
11422 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11423 {
11424 PyThreadState* __tstate = wxPyBeginAllowThreads();
11425 {
11426 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11427 result = (wxColour *) &_result_ref;
11428 }
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11440 PyObject *resultobj = 0;
11441 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11442 wxFont *result = 0 ;
11443 void *argp1 = 0 ;
11444 int res1 = 0 ;
11445 PyObject *swig_obj[1] ;
11446
11447 if (!args) SWIG_fail;
11448 swig_obj[0] = args;
11449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11450 if (!SWIG_IsOK(res1)) {
11451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11452 }
11453 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 {
11457 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11458 result = (wxFont *) &_result_ref;
11459 }
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 {
11464 wxFont* resultptr = new wxFont(*result);
11465 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11466 }
11467 return resultobj;
11468 fail:
11469 return NULL;
11470 }
11471
11472
11473 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11476 wxTextAttrAlignment result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 PyObject *swig_obj[1] ;
11480
11481 if (!args) SWIG_fail;
11482 swig_obj[0] = args;
11483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11486 }
11487 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_From_int(static_cast< int >(result));
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 PyObject *resultobj = 0;
11503 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11504 wxArrayInt *result = 0 ;
11505 void *argp1 = 0 ;
11506 int res1 = 0 ;
11507 PyObject *swig_obj[1] ;
11508
11509 if (!args) SWIG_fail;
11510 swig_obj[0] = args;
11511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11514 }
11515 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 {
11519 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11520 result = (wxArrayInt *) &_result_ref;
11521 }
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 {
11526 resultobj = wxArrayInt2PyList_helper(*result);
11527 }
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11535 PyObject *resultobj = 0;
11536 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11537 long result;
11538 void *argp1 = 0 ;
11539 int res1 = 0 ;
11540 PyObject *swig_obj[1] ;
11541
11542 if (!args) SWIG_fail;
11543 swig_obj[0] = args;
11544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11545 if (!SWIG_IsOK(res1)) {
11546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11547 }
11548 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 resultobj = SWIG_From_long(static_cast< long >(result));
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11563 PyObject *resultobj = 0;
11564 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11565 long result;
11566 void *argp1 = 0 ;
11567 int res1 = 0 ;
11568 PyObject *swig_obj[1] ;
11569
11570 if (!args) SWIG_fail;
11571 swig_obj[0] = args;
11572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11573 if (!SWIG_IsOK(res1)) {
11574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11575 }
11576 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 resultobj = SWIG_From_long(static_cast< long >(result));
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11591 PyObject *resultobj = 0;
11592 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11593 long result;
11594 void *argp1 = 0 ;
11595 int res1 = 0 ;
11596 PyObject *swig_obj[1] ;
11597
11598 if (!args) SWIG_fail;
11599 swig_obj[0] = args;
11600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11601 if (!SWIG_IsOK(res1)) {
11602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11603 }
11604 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11605 {
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_From_long(static_cast< long >(result));
11612 return resultobj;
11613 fail:
11614 return NULL;
11615 }
11616
11617
11618 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11619 PyObject *resultobj = 0;
11620 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11621 long result;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 PyObject *swig_obj[1] ;
11625
11626 if (!args) SWIG_fail;
11627 swig_obj[0] = args;
11628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11631 }
11632 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 resultobj = SWIG_From_long(static_cast< long >(result));
11640 return resultobj;
11641 fail:
11642 return NULL;
11643 }
11644
11645
11646 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11647 PyObject *resultobj = 0;
11648 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11649 bool result;
11650 void *argp1 = 0 ;
11651 int res1 = 0 ;
11652 PyObject *swig_obj[1] ;
11653
11654 if (!args) SWIG_fail;
11655 swig_obj[0] = args;
11656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11657 if (!SWIG_IsOK(res1)) {
11658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11659 }
11660 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11664 wxPyEndAllowThreads(__tstate);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 }
11667 {
11668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11669 }
11670 return resultobj;
11671 fail:
11672 return NULL;
11673 }
11674
11675
11676 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj = 0;
11678 wxTextAttr *arg1 = 0 ;
11679 wxTextAttr *arg2 = 0 ;
11680 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11681 wxTextAttr result;
11682 void *argp1 = 0 ;
11683 int res1 = 0 ;
11684 void *argp2 = 0 ;
11685 int res2 = 0 ;
11686 void *argp3 = 0 ;
11687 int res3 = 0 ;
11688 PyObject * obj0 = 0 ;
11689 PyObject * obj1 = 0 ;
11690 PyObject * obj2 = 0 ;
11691 char * kwnames[] = {
11692 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11693 };
11694
11695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11696 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11697 if (!SWIG_IsOK(res1)) {
11698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11699 }
11700 if (!argp1) {
11701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11702 }
11703 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11705 if (!SWIG_IsOK(res2)) {
11706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11707 }
11708 if (!argp2) {
11709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11710 }
11711 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11712 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11713 if (!SWIG_IsOK(res3)) {
11714 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11715 }
11716 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11717 {
11718 PyThreadState* __tstate = wxPyBeginAllowThreads();
11719 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11724 return resultobj;
11725 fail:
11726 return NULL;
11727 }
11728
11729
11730 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11731 PyObject *obj;
11732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11733 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11734 return SWIG_Py_Void();
11735 }
11736
11737 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11738 return SWIG_Python_InitShadowInstance(args);
11739 }
11740
11741 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj = 0;
11743 wxWindow *arg1 = (wxWindow *) 0 ;
11744 int arg2 = (int) -1 ;
11745 wxString const &arg3_defvalue = wxPyEmptyString ;
11746 wxString *arg3 = (wxString *) &arg3_defvalue ;
11747 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11748 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11749 wxSize const &arg5_defvalue = wxDefaultSize ;
11750 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11751 long arg6 = (long) 0 ;
11752 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11753 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11754 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11755 wxString *arg8 = (wxString *) &arg8_defvalue ;
11756 wxTextCtrl *result = 0 ;
11757 void *argp1 = 0 ;
11758 int res1 = 0 ;
11759 int val2 ;
11760 int ecode2 = 0 ;
11761 bool temp3 = false ;
11762 wxPoint temp4 ;
11763 wxSize temp5 ;
11764 long val6 ;
11765 int ecode6 = 0 ;
11766 void *argp7 = 0 ;
11767 int res7 = 0 ;
11768 bool temp8 = false ;
11769 PyObject * obj0 = 0 ;
11770 PyObject * obj1 = 0 ;
11771 PyObject * obj2 = 0 ;
11772 PyObject * obj3 = 0 ;
11773 PyObject * obj4 = 0 ;
11774 PyObject * obj5 = 0 ;
11775 PyObject * obj6 = 0 ;
11776 PyObject * obj7 = 0 ;
11777 char * kwnames[] = {
11778 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11779 };
11780
11781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11783 if (!SWIG_IsOK(res1)) {
11784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11785 }
11786 arg1 = reinterpret_cast< wxWindow * >(argp1);
11787 if (obj1) {
11788 ecode2 = SWIG_AsVal_int(obj1, &val2);
11789 if (!SWIG_IsOK(ecode2)) {
11790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11791 }
11792 arg2 = static_cast< int >(val2);
11793 }
11794 if (obj2) {
11795 {
11796 arg3 = wxString_in_helper(obj2);
11797 if (arg3 == NULL) SWIG_fail;
11798 temp3 = true;
11799 }
11800 }
11801 if (obj3) {
11802 {
11803 arg4 = &temp4;
11804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11805 }
11806 }
11807 if (obj4) {
11808 {
11809 arg5 = &temp5;
11810 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11811 }
11812 }
11813 if (obj5) {
11814 ecode6 = SWIG_AsVal_long(obj5, &val6);
11815 if (!SWIG_IsOK(ecode6)) {
11816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11817 }
11818 arg6 = static_cast< long >(val6);
11819 }
11820 if (obj6) {
11821 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11822 if (!SWIG_IsOK(res7)) {
11823 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11824 }
11825 if (!argp7) {
11826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11827 }
11828 arg7 = reinterpret_cast< wxValidator * >(argp7);
11829 }
11830 if (obj7) {
11831 {
11832 arg8 = wxString_in_helper(obj7);
11833 if (arg8 == NULL) SWIG_fail;
11834 temp8 = true;
11835 }
11836 }
11837 {
11838 if (!wxPyCheckForApp()) SWIG_fail;
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11845 {
11846 if (temp3)
11847 delete arg3;
11848 }
11849 {
11850 if (temp8)
11851 delete arg8;
11852 }
11853 return resultobj;
11854 fail:
11855 {
11856 if (temp3)
11857 delete arg3;
11858 }
11859 {
11860 if (temp8)
11861 delete arg8;
11862 }
11863 return NULL;
11864 }
11865
11866
11867 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11868 PyObject *resultobj = 0;
11869 wxTextCtrl *result = 0 ;
11870
11871 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11872 {
11873 if (!wxPyCheckForApp()) SWIG_fail;
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 result = (wxTextCtrl *)new wxTextCtrl();
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11880 return resultobj;
11881 fail:
11882 return NULL;
11883 }
11884
11885
11886 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11887 PyObject *resultobj = 0;
11888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11889 wxWindow *arg2 = (wxWindow *) 0 ;
11890 int arg3 = (int) -1 ;
11891 wxString const &arg4_defvalue = wxPyEmptyString ;
11892 wxString *arg4 = (wxString *) &arg4_defvalue ;
11893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11895 wxSize const &arg6_defvalue = wxDefaultSize ;
11896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11897 long arg7 = (long) 0 ;
11898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11900 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11901 wxString *arg9 = (wxString *) &arg9_defvalue ;
11902 bool result;
11903 void *argp1 = 0 ;
11904 int res1 = 0 ;
11905 void *argp2 = 0 ;
11906 int res2 = 0 ;
11907 int val3 ;
11908 int ecode3 = 0 ;
11909 bool temp4 = false ;
11910 wxPoint temp5 ;
11911 wxSize temp6 ;
11912 long val7 ;
11913 int ecode7 = 0 ;
11914 void *argp8 = 0 ;
11915 int res8 = 0 ;
11916 bool temp9 = false ;
11917 PyObject * obj0 = 0 ;
11918 PyObject * obj1 = 0 ;
11919 PyObject * obj2 = 0 ;
11920 PyObject * obj3 = 0 ;
11921 PyObject * obj4 = 0 ;
11922 PyObject * obj5 = 0 ;
11923 PyObject * obj6 = 0 ;
11924 PyObject * obj7 = 0 ;
11925 PyObject * obj8 = 0 ;
11926 char * kwnames[] = {
11927 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11928 };
11929
11930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11932 if (!SWIG_IsOK(res1)) {
11933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11934 }
11935 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11937 if (!SWIG_IsOK(res2)) {
11938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11939 }
11940 arg2 = reinterpret_cast< wxWindow * >(argp2);
11941 if (obj2) {
11942 ecode3 = SWIG_AsVal_int(obj2, &val3);
11943 if (!SWIG_IsOK(ecode3)) {
11944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11945 }
11946 arg3 = static_cast< int >(val3);
11947 }
11948 if (obj3) {
11949 {
11950 arg4 = wxString_in_helper(obj3);
11951 if (arg4 == NULL) SWIG_fail;
11952 temp4 = true;
11953 }
11954 }
11955 if (obj4) {
11956 {
11957 arg5 = &temp5;
11958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11959 }
11960 }
11961 if (obj5) {
11962 {
11963 arg6 = &temp6;
11964 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11965 }
11966 }
11967 if (obj6) {
11968 ecode7 = SWIG_AsVal_long(obj6, &val7);
11969 if (!SWIG_IsOK(ecode7)) {
11970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11971 }
11972 arg7 = static_cast< long >(val7);
11973 }
11974 if (obj7) {
11975 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11976 if (!SWIG_IsOK(res8)) {
11977 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11978 }
11979 if (!argp8) {
11980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11981 }
11982 arg8 = reinterpret_cast< wxValidator * >(argp8);
11983 }
11984 if (obj8) {
11985 {
11986 arg9 = wxString_in_helper(obj8);
11987 if (arg9 == NULL) SWIG_fail;
11988 temp9 = true;
11989 }
11990 }
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 {
11998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11999 }
12000 {
12001 if (temp4)
12002 delete arg4;
12003 }
12004 {
12005 if (temp9)
12006 delete arg9;
12007 }
12008 return resultobj;
12009 fail:
12010 {
12011 if (temp4)
12012 delete arg4;
12013 }
12014 {
12015 if (temp9)
12016 delete arg9;
12017 }
12018 return NULL;
12019 }
12020
12021
12022 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12023 PyObject *resultobj = 0;
12024 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12025 wxString result;
12026 void *argp1 = 0 ;
12027 int res1 = 0 ;
12028 PyObject *swig_obj[1] ;
12029
12030 if (!args) SWIG_fail;
12031 swig_obj[0] = args;
12032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12033 if (!SWIG_IsOK(res1)) {
12034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12035 }
12036 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12037 {
12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
12039 result = ((wxTextCtrl const *)arg1)->GetValue();
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 {
12044 #if wxUSE_UNICODE
12045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12046 #else
12047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12048 #endif
12049 }
12050 return resultobj;
12051 fail:
12052 return NULL;
12053 }
12054
12055
12056 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj = 0;
12058 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12059 wxString *arg2 = 0 ;
12060 void *argp1 = 0 ;
12061 int res1 = 0 ;
12062 bool temp2 = false ;
12063 PyObject * obj0 = 0 ;
12064 PyObject * obj1 = 0 ;
12065 char * kwnames[] = {
12066 (char *) "self",(char *) "value", NULL
12067 };
12068
12069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
12070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12073 }
12074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12075 {
12076 arg2 = wxString_in_helper(obj1);
12077 if (arg2 == NULL) SWIG_fail;
12078 temp2 = true;
12079 }
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 (arg1)->SetValue((wxString const &)*arg2);
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 resultobj = SWIG_Py_Void();
12087 {
12088 if (temp2)
12089 delete arg2;
12090 }
12091 return resultobj;
12092 fail:
12093 {
12094 if (temp2)
12095 delete arg2;
12096 }
12097 return NULL;
12098 }
12099
12100
12101 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12102 PyObject *resultobj = 0;
12103 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12104 bool result;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12114 }
12115 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 {
12123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12124 }
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj = 0;
12133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12134 wxString *arg2 = 0 ;
12135 void *argp1 = 0 ;
12136 int res1 = 0 ;
12137 bool temp2 = false ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char * kwnames[] = {
12141 (char *) "self",(char *) "value", NULL
12142 };
12143
12144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12148 }
12149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12150 {
12151 arg2 = wxString_in_helper(obj1);
12152 if (arg2 == NULL) SWIG_fail;
12153 temp2 = true;
12154 }
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->ChangeValue((wxString const &)*arg2);
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_Py_Void();
12162 {
12163 if (temp2)
12164 delete arg2;
12165 }
12166 return resultobj;
12167 fail:
12168 {
12169 if (temp2)
12170 delete arg2;
12171 }
12172 return NULL;
12173 }
12174
12175
12176 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12177 PyObject *resultobj = 0;
12178 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12179 long arg2 ;
12180 long arg3 ;
12181 wxString result;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 long val2 ;
12185 int ecode2 = 0 ;
12186 long val3 ;
12187 int ecode3 = 0 ;
12188 PyObject * obj0 = 0 ;
12189 PyObject * obj1 = 0 ;
12190 PyObject * obj2 = 0 ;
12191 char * kwnames[] = {
12192 (char *) "self",(char *) "from",(char *) "to", NULL
12193 };
12194
12195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12199 }
12200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12201 ecode2 = SWIG_AsVal_long(obj1, &val2);
12202 if (!SWIG_IsOK(ecode2)) {
12203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12204 }
12205 arg2 = static_cast< long >(val2);
12206 ecode3 = SWIG_AsVal_long(obj2, &val3);
12207 if (!SWIG_IsOK(ecode3)) {
12208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12209 }
12210 arg3 = static_cast< long >(val3);
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 {
12218 #if wxUSE_UNICODE
12219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12220 #else
12221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12222 #endif
12223 }
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj = 0;
12232 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12233 long arg2 ;
12234 int result;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 long val2 ;
12238 int ecode2 = 0 ;
12239 PyObject * obj0 = 0 ;
12240 PyObject * obj1 = 0 ;
12241 char * kwnames[] = {
12242 (char *) "self",(char *) "lineNo", NULL
12243 };
12244
12245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12247 if (!SWIG_IsOK(res1)) {
12248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12249 }
12250 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12251 ecode2 = SWIG_AsVal_long(obj1, &val2);
12252 if (!SWIG_IsOK(ecode2)) {
12253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12254 }
12255 arg2 = static_cast< long >(val2);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 resultobj = SWIG_From_int(static_cast< int >(result));
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 long arg2 ;
12273 wxString result;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 long val2 ;
12277 int ecode2 = 0 ;
12278 PyObject * obj0 = 0 ;
12279 PyObject * obj1 = 0 ;
12280 char * kwnames[] = {
12281 (char *) "self",(char *) "lineNo", NULL
12282 };
12283
12284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12288 }
12289 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12290 ecode2 = SWIG_AsVal_long(obj1, &val2);
12291 if (!SWIG_IsOK(ecode2)) {
12292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12293 }
12294 arg2 = static_cast< long >(val2);
12295 {
12296 PyThreadState* __tstate = wxPyBeginAllowThreads();
12297 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 {
12302 #if wxUSE_UNICODE
12303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12304 #else
12305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12306 #endif
12307 }
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12315 PyObject *resultobj = 0;
12316 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12317 int result;
12318 void *argp1 = 0 ;
12319 int res1 = 0 ;
12320 PyObject *swig_obj[1] ;
12321
12322 if (!args) SWIG_fail;
12323 swig_obj[0] = args;
12324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12325 if (!SWIG_IsOK(res1)) {
12326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12327 }
12328 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12329 {
12330 PyThreadState* __tstate = wxPyBeginAllowThreads();
12331 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 resultobj = SWIG_From_int(static_cast< int >(result));
12336 return resultobj;
12337 fail:
12338 return NULL;
12339 }
12340
12341
12342 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12343 PyObject *resultobj = 0;
12344 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12345 bool result;
12346 void *argp1 = 0 ;
12347 int res1 = 0 ;
12348 PyObject *swig_obj[1] ;
12349
12350 if (!args) SWIG_fail;
12351 swig_obj[0] = args;
12352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12355 }
12356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12357 {
12358 PyThreadState* __tstate = wxPyBeginAllowThreads();
12359 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12360 wxPyEndAllowThreads(__tstate);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 }
12363 {
12364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12365 }
12366 return resultobj;
12367 fail:
12368 return NULL;
12369 }
12370
12371
12372 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12373 PyObject *resultobj = 0;
12374 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12375 bool result;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 PyObject *swig_obj[1] ;
12379
12380 if (!args) SWIG_fail;
12381 swig_obj[0] = args;
12382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12383 if (!SWIG_IsOK(res1)) {
12384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12385 }
12386 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 {
12394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12403 PyObject *resultobj = 0;
12404 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12405 bool result;
12406 void *argp1 = 0 ;
12407 int res1 = 0 ;
12408 PyObject *swig_obj[1] ;
12409
12410 if (!args) SWIG_fail;
12411 swig_obj[0] = args;
12412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12415 }
12416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 {
12424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12425 }
12426 return resultobj;
12427 fail:
12428 return NULL;
12429 }
12430
12431
12432 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12433 PyObject *resultobj = 0;
12434 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12435 bool result;
12436 void *argp1 = 0 ;
12437 int res1 = 0 ;
12438 PyObject *swig_obj[1] ;
12439
12440 if (!args) SWIG_fail;
12441 swig_obj[0] = args;
12442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12443 if (!SWIG_IsOK(res1)) {
12444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12445 }
12446 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 {
12454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12455 }
12456 return resultobj;
12457 fail:
12458 return NULL;
12459 }
12460
12461
12462 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *resultobj = 0;
12464 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12465 long *arg2 = (long *) 0 ;
12466 long *arg3 = (long *) 0 ;
12467 void *argp1 = 0 ;
12468 int res1 = 0 ;
12469 long temp2 ;
12470 int res2 = SWIG_TMPOBJ ;
12471 long temp3 ;
12472 int res3 = SWIG_TMPOBJ ;
12473 PyObject *swig_obj[1] ;
12474
12475 arg2 = &temp2;
12476 arg3 = &temp3;
12477 if (!args) SWIG_fail;
12478 swig_obj[0] = args;
12479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12480 if (!SWIG_IsOK(res1)) {
12481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12482 }
12483 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12484 {
12485 PyThreadState* __tstate = wxPyBeginAllowThreads();
12486 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12487 wxPyEndAllowThreads(__tstate);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 }
12490 resultobj = SWIG_Py_Void();
12491 if (SWIG_IsTmpObj(res2)) {
12492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12493 } else {
12494 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12496 }
12497 if (SWIG_IsTmpObj(res3)) {
12498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12499 } else {
12500 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12502 }
12503 return resultobj;
12504 fail:
12505 return NULL;
12506 }
12507
12508
12509 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12510 PyObject *resultobj = 0;
12511 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12512 wxString result;
12513 void *argp1 = 0 ;
12514 int res1 = 0 ;
12515 PyObject *swig_obj[1] ;
12516
12517 if (!args) SWIG_fail;
12518 swig_obj[0] = args;
12519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12522 }
12523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12524 {
12525 PyThreadState* __tstate = wxPyBeginAllowThreads();
12526 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12527 wxPyEndAllowThreads(__tstate);
12528 if (PyErr_Occurred()) SWIG_fail;
12529 }
12530 {
12531 #if wxUSE_UNICODE
12532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12533 #else
12534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12535 #endif
12536 }
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->Clear();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 long arg2 ;
12574 long arg3 ;
12575 wxString *arg4 = 0 ;
12576 void *argp1 = 0 ;
12577 int res1 = 0 ;
12578 long val2 ;
12579 int ecode2 = 0 ;
12580 long val3 ;
12581 int ecode3 = 0 ;
12582 bool temp4 = false ;
12583 PyObject * obj0 = 0 ;
12584 PyObject * obj1 = 0 ;
12585 PyObject * obj2 = 0 ;
12586 PyObject * obj3 = 0 ;
12587 char * kwnames[] = {
12588 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12589 };
12590
12591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12593 if (!SWIG_IsOK(res1)) {
12594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12595 }
12596 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12597 ecode2 = SWIG_AsVal_long(obj1, &val2);
12598 if (!SWIG_IsOK(ecode2)) {
12599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12600 }
12601 arg2 = static_cast< long >(val2);
12602 ecode3 = SWIG_AsVal_long(obj2, &val3);
12603 if (!SWIG_IsOK(ecode3)) {
12604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12605 }
12606 arg3 = static_cast< long >(val3);
12607 {
12608 arg4 = wxString_in_helper(obj3);
12609 if (arg4 == NULL) SWIG_fail;
12610 temp4 = true;
12611 }
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 resultobj = SWIG_Py_Void();
12619 {
12620 if (temp4)
12621 delete arg4;
12622 }
12623 return resultobj;
12624 fail:
12625 {
12626 if (temp4)
12627 delete arg4;
12628 }
12629 return NULL;
12630 }
12631
12632
12633 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12634 PyObject *resultobj = 0;
12635 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12636 long arg2 ;
12637 long arg3 ;
12638 void *argp1 = 0 ;
12639 int res1 = 0 ;
12640 long val2 ;
12641 int ecode2 = 0 ;
12642 long val3 ;
12643 int ecode3 = 0 ;
12644 PyObject * obj0 = 0 ;
12645 PyObject * obj1 = 0 ;
12646 PyObject * obj2 = 0 ;
12647 char * kwnames[] = {
12648 (char *) "self",(char *) "from",(char *) "to", NULL
12649 };
12650
12651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12653 if (!SWIG_IsOK(res1)) {
12654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12655 }
12656 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12657 ecode2 = SWIG_AsVal_long(obj1, &val2);
12658 if (!SWIG_IsOK(ecode2)) {
12659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12660 }
12661 arg2 = static_cast< long >(val2);
12662 ecode3 = SWIG_AsVal_long(obj2, &val3);
12663 if (!SWIG_IsOK(ecode3)) {
12664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12665 }
12666 arg3 = static_cast< long >(val3);
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 (arg1)->Remove(arg2,arg3);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 resultobj = SWIG_Py_Void();
12674 return resultobj;
12675 fail:
12676 return NULL;
12677 }
12678
12679
12680 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12681 PyObject *resultobj = 0;
12682 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12683 wxString *arg2 = 0 ;
12684 int arg3 = (int) wxTEXT_TYPE_ANY ;
12685 bool result;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 bool temp2 = false ;
12689 int val3 ;
12690 int ecode3 = 0 ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693 PyObject * obj2 = 0 ;
12694 char * kwnames[] = {
12695 (char *) "self",(char *) "file",(char *) "fileType", NULL
12696 };
12697
12698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12700 if (!SWIG_IsOK(res1)) {
12701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12702 }
12703 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12704 {
12705 arg2 = wxString_in_helper(obj1);
12706 if (arg2 == NULL) SWIG_fail;
12707 temp2 = true;
12708 }
12709 if (obj2) {
12710 ecode3 = SWIG_AsVal_int(obj2, &val3);
12711 if (!SWIG_IsOK(ecode3)) {
12712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12713 }
12714 arg3 = static_cast< int >(val3);
12715 }
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 {
12723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12724 }
12725 {
12726 if (temp2)
12727 delete arg2;
12728 }
12729 return resultobj;
12730 fail:
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 return NULL;
12736 }
12737
12738
12739 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj = 0;
12741 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12742 wxString const &arg2_defvalue = wxPyEmptyString ;
12743 wxString *arg2 = (wxString *) &arg2_defvalue ;
12744 int arg3 = (int) wxTEXT_TYPE_ANY ;
12745 bool result;
12746 void *argp1 = 0 ;
12747 int res1 = 0 ;
12748 bool temp2 = false ;
12749 int val3 ;
12750 int ecode3 = 0 ;
12751 PyObject * obj0 = 0 ;
12752 PyObject * obj1 = 0 ;
12753 PyObject * obj2 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "file",(char *) "fileType", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12762 }
12763 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12764 if (obj1) {
12765 {
12766 arg2 = wxString_in_helper(obj1);
12767 if (arg2 == NULL) SWIG_fail;
12768 temp2 = true;
12769 }
12770 }
12771 if (obj2) {
12772 ecode3 = SWIG_AsVal_int(obj2, &val3);
12773 if (!SWIG_IsOK(ecode3)) {
12774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12775 }
12776 arg3 = static_cast< int >(val3);
12777 }
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 {
12785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12786 }
12787 {
12788 if (temp2)
12789 delete arg2;
12790 }
12791 return resultobj;
12792 fail:
12793 {
12794 if (temp2)
12795 delete arg2;
12796 }
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12802 PyObject *resultobj = 0;
12803 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12804 void *argp1 = 0 ;
12805 int res1 = 0 ;
12806 PyObject *swig_obj[1] ;
12807
12808 if (!args) SWIG_fail;
12809 swig_obj[0] = args;
12810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12811 if (!SWIG_IsOK(res1)) {
12812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12813 }
12814 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 (arg1)->MarkDirty();
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_Py_Void();
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12829 PyObject *resultobj = 0;
12830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12831 void *argp1 = 0 ;
12832 int res1 = 0 ;
12833 PyObject *swig_obj[1] ;
12834
12835 if (!args) SWIG_fail;
12836 swig_obj[0] = args;
12837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12838 if (!SWIG_IsOK(res1)) {
12839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12840 }
12841 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 (arg1)->DiscardEdits();
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 resultobj = SWIG_Py_Void();
12849 return resultobj;
12850 fail:
12851 return NULL;
12852 }
12853
12854
12855 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12856 PyObject *resultobj = 0;
12857 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12858 bool arg2 ;
12859 void *argp1 = 0 ;
12860 int res1 = 0 ;
12861 bool val2 ;
12862 int ecode2 = 0 ;
12863 PyObject * obj0 = 0 ;
12864 PyObject * obj1 = 0 ;
12865 char * kwnames[] = {
12866 (char *) "self",(char *) "modified", NULL
12867 };
12868
12869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",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_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12873 }
12874 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12875 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12876 if (!SWIG_IsOK(ecode2)) {
12877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12878 }
12879 arg2 = static_cast< bool >(val2);
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 (arg1)->SetModified(arg2);
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
12886 resultobj = SWIG_Py_Void();
12887 return resultobj;
12888 fail:
12889 return NULL;
12890 }
12891
12892
12893 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12894 PyObject *resultobj = 0;
12895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12896 unsigned long arg2 ;
12897 void *argp1 = 0 ;
12898 int res1 = 0 ;
12899 unsigned long val2 ;
12900 int ecode2 = 0 ;
12901 PyObject * obj0 = 0 ;
12902 PyObject * obj1 = 0 ;
12903 char * kwnames[] = {
12904 (char *) "self",(char *) "len", NULL
12905 };
12906
12907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12909 if (!SWIG_IsOK(res1)) {
12910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12911 }
12912 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12913 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12914 if (!SWIG_IsOK(ecode2)) {
12915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12916 }
12917 arg2 = static_cast< unsigned long >(val2);
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 (arg1)->SetMaxLength(arg2);
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = SWIG_Py_Void();
12925 return resultobj;
12926 fail:
12927 return NULL;
12928 }
12929
12930
12931 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj = 0;
12933 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12934 wxString *arg2 = 0 ;
12935 void *argp1 = 0 ;
12936 int res1 = 0 ;
12937 bool temp2 = false ;
12938 PyObject * obj0 = 0 ;
12939 PyObject * obj1 = 0 ;
12940 char * kwnames[] = {
12941 (char *) "self",(char *) "text", NULL
12942 };
12943
12944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12948 }
12949 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12950 {
12951 arg2 = wxString_in_helper(obj1);
12952 if (arg2 == NULL) SWIG_fail;
12953 temp2 = true;
12954 }
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 (arg1)->WriteText((wxString const &)*arg2);
12958 wxPyEndAllowThreads(__tstate);
12959 if (PyErr_Occurred()) SWIG_fail;
12960 }
12961 resultobj = SWIG_Py_Void();
12962 {
12963 if (temp2)
12964 delete arg2;
12965 }
12966 return resultobj;
12967 fail:
12968 {
12969 if (temp2)
12970 delete arg2;
12971 }
12972 return NULL;
12973 }
12974
12975
12976 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12977 PyObject *resultobj = 0;
12978 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12979 wxString *arg2 = 0 ;
12980 void *argp1 = 0 ;
12981 int res1 = 0 ;
12982 bool temp2 = false ;
12983 PyObject * obj0 = 0 ;
12984 PyObject * obj1 = 0 ;
12985 char * kwnames[] = {
12986 (char *) "self",(char *) "text", NULL
12987 };
12988
12989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12991 if (!SWIG_IsOK(res1)) {
12992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12993 }
12994 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12995 {
12996 arg2 = wxString_in_helper(obj1);
12997 if (arg2 == NULL) SWIG_fail;
12998 temp2 = true;
12999 }
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 (arg1)->AppendText((wxString const &)*arg2);
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 resultobj = SWIG_Py_Void();
13007 {
13008 if (temp2)
13009 delete arg2;
13010 }
13011 return resultobj;
13012 fail:
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return NULL;
13018 }
13019
13020
13021 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13022 PyObject *resultobj = 0;
13023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13024 wxKeyEvent *arg2 = 0 ;
13025 bool result;
13026 void *argp1 = 0 ;
13027 int res1 = 0 ;
13028 void *argp2 = 0 ;
13029 int res2 = 0 ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 char * kwnames[] = {
13033 (char *) "self",(char *) "event", NULL
13034 };
13035
13036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
13037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13038 if (!SWIG_IsOK(res1)) {
13039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13040 }
13041 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
13043 if (!SWIG_IsOK(res2)) {
13044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
13045 }
13046 if (!argp2) {
13047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
13048 }
13049 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
13053 wxPyEndAllowThreads(__tstate);
13054 if (PyErr_Occurred()) SWIG_fail;
13055 }
13056 {
13057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13058 }
13059 return resultobj;
13060 fail:
13061 return NULL;
13062 }
13063
13064
13065 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj = 0;
13067 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13068 long arg2 ;
13069 long arg3 ;
13070 wxTextAttr *arg4 = 0 ;
13071 bool result;
13072 void *argp1 = 0 ;
13073 int res1 = 0 ;
13074 long val2 ;
13075 int ecode2 = 0 ;
13076 long val3 ;
13077 int ecode3 = 0 ;
13078 void *argp4 = 0 ;
13079 int res4 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 PyObject * obj2 = 0 ;
13083 PyObject * obj3 = 0 ;
13084 char * kwnames[] = {
13085 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
13086 };
13087
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13092 }
13093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13094 ecode2 = SWIG_AsVal_long(obj1, &val2);
13095 if (!SWIG_IsOK(ecode2)) {
13096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
13097 }
13098 arg2 = static_cast< long >(val2);
13099 ecode3 = SWIG_AsVal_long(obj2, &val3);
13100 if (!SWIG_IsOK(ecode3)) {
13101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
13102 }
13103 arg3 = static_cast< long >(val3);
13104 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
13105 if (!SWIG_IsOK(res4)) {
13106 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13107 }
13108 if (!argp4) {
13109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13110 }
13111 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 {
13119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13120 }
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj = 0;
13129 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13130 long arg2 ;
13131 wxTextAttr *arg3 = 0 ;
13132 bool result;
13133 void *argp1 = 0 ;
13134 int res1 = 0 ;
13135 long val2 ;
13136 int ecode2 = 0 ;
13137 void *argp3 = 0 ;
13138 int res3 = 0 ;
13139 PyObject * obj0 = 0 ;
13140 PyObject * obj1 = 0 ;
13141 PyObject * obj2 = 0 ;
13142 char * kwnames[] = {
13143 (char *) "self",(char *) "position",(char *) "style", NULL
13144 };
13145
13146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13148 if (!SWIG_IsOK(res1)) {
13149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13150 }
13151 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13152 ecode2 = SWIG_AsVal_long(obj1, &val2);
13153 if (!SWIG_IsOK(ecode2)) {
13154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13155 }
13156 arg2 = static_cast< long >(val2);
13157 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13158 if (!SWIG_IsOK(res3)) {
13159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13160 }
13161 if (!argp3) {
13162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13163 }
13164 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 {
13172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13173 }
13174 return resultobj;
13175 fail:
13176 return NULL;
13177 }
13178
13179
13180 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj = 0;
13182 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13183 wxTextAttr *arg2 = 0 ;
13184 bool result;
13185 void *argp1 = 0 ;
13186 int res1 = 0 ;
13187 void *argp2 = 0 ;
13188 int res2 = 0 ;
13189 PyObject * obj0 = 0 ;
13190 PyObject * obj1 = 0 ;
13191 char * kwnames[] = {
13192 (char *) "self",(char *) "style", NULL
13193 };
13194
13195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13197 if (!SWIG_IsOK(res1)) {
13198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13199 }
13200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13202 if (!SWIG_IsOK(res2)) {
13203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13204 }
13205 if (!argp2) {
13206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13207 }
13208 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 {
13216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13217 }
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13227 wxTextAttr *result = 0 ;
13228 void *argp1 = 0 ;
13229 int res1 = 0 ;
13230 PyObject *swig_obj[1] ;
13231
13232 if (!args) SWIG_fail;
13233 swig_obj[0] = args;
13234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13235 if (!SWIG_IsOK(res1)) {
13236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13237 }
13238 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 {
13242 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13243 result = (wxTextAttr *) &_result_ref;
13244 }
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13249 return resultobj;
13250 fail:
13251 return NULL;
13252 }
13253
13254
13255 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj = 0;
13257 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13258 long arg2 ;
13259 long arg3 ;
13260 long result;
13261 void *argp1 = 0 ;
13262 int res1 = 0 ;
13263 long val2 ;
13264 int ecode2 = 0 ;
13265 long val3 ;
13266 int ecode3 = 0 ;
13267 PyObject * obj0 = 0 ;
13268 PyObject * obj1 = 0 ;
13269 PyObject * obj2 = 0 ;
13270 char * kwnames[] = {
13271 (char *) "self",(char *) "x",(char *) "y", NULL
13272 };
13273
13274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13276 if (!SWIG_IsOK(res1)) {
13277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13278 }
13279 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13280 ecode2 = SWIG_AsVal_long(obj1, &val2);
13281 if (!SWIG_IsOK(ecode2)) {
13282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13283 }
13284 arg2 = static_cast< long >(val2);
13285 ecode3 = SWIG_AsVal_long(obj2, &val3);
13286 if (!SWIG_IsOK(ecode3)) {
13287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13288 }
13289 arg3 = static_cast< long >(val3);
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_From_long(static_cast< long >(result));
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj = 0;
13305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13306 long arg2 ;
13307 long *arg3 = (long *) 0 ;
13308 long *arg4 = (long *) 0 ;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 long val2 ;
13312 int ecode2 = 0 ;
13313 long temp3 ;
13314 int res3 = SWIG_TMPOBJ ;
13315 long temp4 ;
13316 int res4 = SWIG_TMPOBJ ;
13317 PyObject * obj0 = 0 ;
13318 PyObject * obj1 = 0 ;
13319 char * kwnames[] = {
13320 (char *) "self",(char *) "pos", NULL
13321 };
13322
13323 arg3 = &temp3;
13324 arg4 = &temp4;
13325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13327 if (!SWIG_IsOK(res1)) {
13328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13329 }
13330 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13331 ecode2 = SWIG_AsVal_long(obj1, &val2);
13332 if (!SWIG_IsOK(ecode2)) {
13333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13334 }
13335 arg2 = static_cast< long >(val2);
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 resultobj = SWIG_Py_Void();
13343 if (SWIG_IsTmpObj(res3)) {
13344 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13345 } else {
13346 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13348 }
13349 if (SWIG_IsTmpObj(res4)) {
13350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13351 } else {
13352 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13354 }
13355 return resultobj;
13356 fail:
13357 return NULL;
13358 }
13359
13360
13361 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj = 0;
13363 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13364 long arg2 ;
13365 void *argp1 = 0 ;
13366 int res1 = 0 ;
13367 long val2 ;
13368 int ecode2 = 0 ;
13369 PyObject * obj0 = 0 ;
13370 PyObject * obj1 = 0 ;
13371 char * kwnames[] = {
13372 (char *) "self",(char *) "pos", NULL
13373 };
13374
13375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13377 if (!SWIG_IsOK(res1)) {
13378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13379 }
13380 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13381 ecode2 = SWIG_AsVal_long(obj1, &val2);
13382 if (!SWIG_IsOK(ecode2)) {
13383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13384 }
13385 arg2 = static_cast< long >(val2);
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 (arg1)->ShowPosition(arg2);
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 resultobj = SWIG_Py_Void();
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13400 PyObject *resultobj = 0;
13401 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13402 wxPoint *arg2 = 0 ;
13403 long *arg3 = (long *) 0 ;
13404 long *arg4 = (long *) 0 ;
13405 wxTextCtrlHitTestResult result;
13406 void *argp1 = 0 ;
13407 int res1 = 0 ;
13408 wxPoint temp2 ;
13409 long temp3 ;
13410 int res3 = SWIG_TMPOBJ ;
13411 long temp4 ;
13412 int res4 = SWIG_TMPOBJ ;
13413 PyObject * obj0 = 0 ;
13414 PyObject * obj1 = 0 ;
13415 char * kwnames[] = {
13416 (char *) "self",(char *) "pt", NULL
13417 };
13418
13419 arg3 = &temp3;
13420 arg4 = &temp4;
13421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13423 if (!SWIG_IsOK(res1)) {
13424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13425 }
13426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13427 {
13428 arg2 = &temp2;
13429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13430 }
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_From_int(static_cast< int >(result));
13438 if (SWIG_IsTmpObj(res3)) {
13439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13440 } else {
13441 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13443 }
13444 if (SWIG_IsTmpObj(res4)) {
13445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13446 } else {
13447 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13449 }
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj = 0;
13458 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13459 wxPoint *arg2 = 0 ;
13460 long *arg3 = (long *) 0 ;
13461 wxTextCtrlHitTestResult result;
13462 void *argp1 = 0 ;
13463 int res1 = 0 ;
13464 wxPoint temp2 ;
13465 long temp3 ;
13466 int res3 = SWIG_TMPOBJ ;
13467 PyObject * obj0 = 0 ;
13468 PyObject * obj1 = 0 ;
13469 char * kwnames[] = {
13470 (char *) "self",(char *) "pt", NULL
13471 };
13472
13473 arg3 = &temp3;
13474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13476 if (!SWIG_IsOK(res1)) {
13477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13478 }
13479 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13480 {
13481 arg2 = &temp2;
13482 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13483 }
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 resultobj = SWIG_From_int(static_cast< int >(result));
13491 if (SWIG_IsTmpObj(res3)) {
13492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13493 } else {
13494 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13496 }
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13504 PyObject *resultobj = 0;
13505 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13506 void *argp1 = 0 ;
13507 int res1 = 0 ;
13508 PyObject *swig_obj[1] ;
13509
13510 if (!args) SWIG_fail;
13511 swig_obj[0] = args;
13512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13513 if (!SWIG_IsOK(res1)) {
13514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13515 }
13516 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->Copy();
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_Py_Void();
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 void *argp1 = 0 ;
13534 int res1 = 0 ;
13535 PyObject *swig_obj[1] ;
13536
13537 if (!args) SWIG_fail;
13538 swig_obj[0] = args;
13539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13540 if (!SWIG_IsOK(res1)) {
13541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13542 }
13543 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 (arg1)->Cut();
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 resultobj = SWIG_Py_Void();
13551 return resultobj;
13552 fail:
13553 return NULL;
13554 }
13555
13556
13557 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13558 PyObject *resultobj = 0;
13559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject *swig_obj[1] ;
13563
13564 if (!args) SWIG_fail;
13565 swig_obj[0] = args;
13566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13567 if (!SWIG_IsOK(res1)) {
13568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13569 }
13570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->Paste();
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_Py_Void();
13578 return resultobj;
13579 fail:
13580 return NULL;
13581 }
13582
13583
13584 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13585 PyObject *resultobj = 0;
13586 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13587 bool result;
13588 void *argp1 = 0 ;
13589 int res1 = 0 ;
13590 PyObject *swig_obj[1] ;
13591
13592 if (!args) SWIG_fail;
13593 swig_obj[0] = args;
13594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13595 if (!SWIG_IsOK(res1)) {
13596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13597 }
13598 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 {
13606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13607 }
13608 return resultobj;
13609 fail:
13610 return NULL;
13611 }
13612
13613
13614 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13615 PyObject *resultobj = 0;
13616 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13617 bool result;
13618 void *argp1 = 0 ;
13619 int res1 = 0 ;
13620 PyObject *swig_obj[1] ;
13621
13622 if (!args) SWIG_fail;
13623 swig_obj[0] = args;
13624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13625 if (!SWIG_IsOK(res1)) {
13626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13627 }
13628 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 {
13636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13637 }
13638 return resultobj;
13639 fail:
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13645 PyObject *resultobj = 0;
13646 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13647 bool result;
13648 void *argp1 = 0 ;
13649 int res1 = 0 ;
13650 PyObject *swig_obj[1] ;
13651
13652 if (!args) SWIG_fail;
13653 swig_obj[0] = args;
13654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13655 if (!SWIG_IsOK(res1)) {
13656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13657 }
13658 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 {
13666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13667 }
13668 return resultobj;
13669 fail:
13670 return NULL;
13671 }
13672
13673
13674 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13675 PyObject *resultobj = 0;
13676 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13677 void *argp1 = 0 ;
13678 int res1 = 0 ;
13679 PyObject *swig_obj[1] ;
13680
13681 if (!args) SWIG_fail;
13682 swig_obj[0] = args;
13683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13684 if (!SWIG_IsOK(res1)) {
13685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13686 }
13687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13688 {
13689 PyThreadState* __tstate = wxPyBeginAllowThreads();
13690 (arg1)->Undo();
13691 wxPyEndAllowThreads(__tstate);
13692 if (PyErr_Occurred()) SWIG_fail;
13693 }
13694 resultobj = SWIG_Py_Void();
13695 return resultobj;
13696 fail:
13697 return NULL;
13698 }
13699
13700
13701 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13702 PyObject *resultobj = 0;
13703 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13704 void *argp1 = 0 ;
13705 int res1 = 0 ;
13706 PyObject *swig_obj[1] ;
13707
13708 if (!args) SWIG_fail;
13709 swig_obj[0] = args;
13710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13711 if (!SWIG_IsOK(res1)) {
13712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13713 }
13714 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 (arg1)->Redo();
13718 wxPyEndAllowThreads(__tstate);
13719 if (PyErr_Occurred()) SWIG_fail;
13720 }
13721 resultobj = SWIG_Py_Void();
13722 return resultobj;
13723 fail:
13724 return NULL;
13725 }
13726
13727
13728 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 PyObject *resultobj = 0;
13730 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13731 bool result;
13732 void *argp1 = 0 ;
13733 int res1 = 0 ;
13734 PyObject *swig_obj[1] ;
13735
13736 if (!args) SWIG_fail;
13737 swig_obj[0] = args;
13738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13739 if (!SWIG_IsOK(res1)) {
13740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13741 }
13742 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 {
13750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13751 }
13752 return resultobj;
13753 fail:
13754 return NULL;
13755 }
13756
13757
13758 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13759 PyObject *resultobj = 0;
13760 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13761 bool result;
13762 void *argp1 = 0 ;
13763 int res1 = 0 ;
13764 PyObject *swig_obj[1] ;
13765
13766 if (!args) SWIG_fail;
13767 swig_obj[0] = args;
13768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13769 if (!SWIG_IsOK(res1)) {
13770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13771 }
13772 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 {
13780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13781 }
13782 return resultobj;
13783 fail:
13784 return NULL;
13785 }
13786
13787
13788 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj = 0;
13790 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13791 long arg2 ;
13792 void *argp1 = 0 ;
13793 int res1 = 0 ;
13794 long val2 ;
13795 int ecode2 = 0 ;
13796 PyObject * obj0 = 0 ;
13797 PyObject * obj1 = 0 ;
13798 char * kwnames[] = {
13799 (char *) "self",(char *) "pos", NULL
13800 };
13801
13802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13804 if (!SWIG_IsOK(res1)) {
13805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13806 }
13807 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13808 ecode2 = SWIG_AsVal_long(obj1, &val2);
13809 if (!SWIG_IsOK(ecode2)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13811 }
13812 arg2 = static_cast< long >(val2);
13813 {
13814 PyThreadState* __tstate = wxPyBeginAllowThreads();
13815 (arg1)->SetInsertionPoint(arg2);
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 resultobj = SWIG_Py_Void();
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13827 PyObject *resultobj = 0;
13828 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 PyObject *swig_obj[1] ;
13832
13833 if (!args) SWIG_fail;
13834 swig_obj[0] = args;
13835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13836 if (!SWIG_IsOK(res1)) {
13837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13838 }
13839 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 (arg1)->SetInsertionPointEnd();
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_Py_Void();
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13854 PyObject *resultobj = 0;
13855 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13856 long result;
13857 void *argp1 = 0 ;
13858 int res1 = 0 ;
13859 PyObject *swig_obj[1] ;
13860
13861 if (!args) SWIG_fail;
13862 swig_obj[0] = args;
13863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13864 if (!SWIG_IsOK(res1)) {
13865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13866 }
13867 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 resultobj = SWIG_From_long(static_cast< long >(result));
13875 return resultobj;
13876 fail:
13877 return NULL;
13878 }
13879
13880
13881 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13882 PyObject *resultobj = 0;
13883 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13884 long result;
13885 void *argp1 = 0 ;
13886 int res1 = 0 ;
13887 PyObject *swig_obj[1] ;
13888
13889 if (!args) SWIG_fail;
13890 swig_obj[0] = args;
13891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13892 if (!SWIG_IsOK(res1)) {
13893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13894 }
13895 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13896 {
13897 PyThreadState* __tstate = wxPyBeginAllowThreads();
13898 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 resultobj = SWIG_From_long(static_cast< long >(result));
13903 return resultobj;
13904 fail:
13905 return NULL;
13906 }
13907
13908
13909 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj = 0;
13911 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13912 long arg2 ;
13913 long arg3 ;
13914 void *argp1 = 0 ;
13915 int res1 = 0 ;
13916 long val2 ;
13917 int ecode2 = 0 ;
13918 long val3 ;
13919 int ecode3 = 0 ;
13920 PyObject * obj0 = 0 ;
13921 PyObject * obj1 = 0 ;
13922 PyObject * obj2 = 0 ;
13923 char * kwnames[] = {
13924 (char *) "self",(char *) "from",(char *) "to", NULL
13925 };
13926
13927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13929 if (!SWIG_IsOK(res1)) {
13930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13931 }
13932 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13933 ecode2 = SWIG_AsVal_long(obj1, &val2);
13934 if (!SWIG_IsOK(ecode2)) {
13935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13936 }
13937 arg2 = static_cast< long >(val2);
13938 ecode3 = SWIG_AsVal_long(obj2, &val3);
13939 if (!SWIG_IsOK(ecode3)) {
13940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13941 }
13942 arg3 = static_cast< long >(val3);
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 (arg1)->SetSelection(arg2,arg3);
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_Py_Void();
13950 return resultobj;
13951 fail:
13952 return NULL;
13953 }
13954
13955
13956 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13957 PyObject *resultobj = 0;
13958 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13959 void *argp1 = 0 ;
13960 int res1 = 0 ;
13961 PyObject *swig_obj[1] ;
13962
13963 if (!args) SWIG_fail;
13964 swig_obj[0] = args;
13965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13966 if (!SWIG_IsOK(res1)) {
13967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13968 }
13969 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13970 {
13971 PyThreadState* __tstate = wxPyBeginAllowThreads();
13972 (arg1)->SelectAll();
13973 wxPyEndAllowThreads(__tstate);
13974 if (PyErr_Occurred()) SWIG_fail;
13975 }
13976 resultobj = SWIG_Py_Void();
13977 return resultobj;
13978 fail:
13979 return NULL;
13980 }
13981
13982
13983 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13984 PyObject *resultobj = 0;
13985 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13986 bool arg2 ;
13987 void *argp1 = 0 ;
13988 int res1 = 0 ;
13989 bool val2 ;
13990 int ecode2 = 0 ;
13991 PyObject * obj0 = 0 ;
13992 PyObject * obj1 = 0 ;
13993 char * kwnames[] = {
13994 (char *) "self",(char *) "editable", NULL
13995 };
13996
13997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13999 if (!SWIG_IsOK(res1)) {
14000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14001 }
14002 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14003 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14004 if (!SWIG_IsOK(ecode2)) {
14005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
14006 }
14007 arg2 = static_cast< bool >(val2);
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 (arg1)->SetEditable(arg2);
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 resultobj = SWIG_Py_Void();
14015 return resultobj;
14016 fail:
14017 return NULL;
14018 }
14019
14020
14021 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14022 PyObject *resultobj = 0;
14023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14024 bool arg2 ;
14025 void *argp1 = 0 ;
14026 int res1 = 0 ;
14027 bool val2 ;
14028 int ecode2 = 0 ;
14029 PyObject * obj0 = 0 ;
14030 PyObject * obj1 = 0 ;
14031 char * kwnames[] = {
14032 (char *) "self",(char *) "check", NULL
14033 };
14034
14035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
14036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14037 if (!SWIG_IsOK(res1)) {
14038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14039 }
14040 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14041 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14042 if (!SWIG_IsOK(ecode2)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
14044 }
14045 arg2 = static_cast< bool >(val2);
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 wxTextCtrl_MacCheckSpelling(arg1,arg2);
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 resultobj = SWIG_Py_Void();
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14060 PyObject *resultobj = 0;
14061 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14062 void *argp1 = 0 ;
14063 int res1 = 0 ;
14064 PyObject *swig_obj[1] ;
14065
14066 if (!args) SWIG_fail;
14067 swig_obj[0] = args;
14068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14069 if (!SWIG_IsOK(res1)) {
14070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14071 }
14072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14073 {
14074 PyThreadState* __tstate = wxPyBeginAllowThreads();
14075 (arg1)->SendTextUpdatedEvent();
14076 wxPyEndAllowThreads(__tstate);
14077 if (PyErr_Occurred()) SWIG_fail;
14078 }
14079 resultobj = SWIG_Py_Void();
14080 return resultobj;
14081 fail:
14082 return NULL;
14083 }
14084
14085
14086 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14087 PyObject *resultobj = 0;
14088 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14089 wxString *arg2 = 0 ;
14090 void *argp1 = 0 ;
14091 int res1 = 0 ;
14092 bool temp2 = false ;
14093 PyObject * obj0 = 0 ;
14094 PyObject * obj1 = 0 ;
14095 char * kwnames[] = {
14096 (char *) "self",(char *) "text", NULL
14097 };
14098
14099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14101 if (!SWIG_IsOK(res1)) {
14102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14103 }
14104 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14105 {
14106 arg2 = wxString_in_helper(obj1);
14107 if (arg2 == NULL) SWIG_fail;
14108 temp2 = true;
14109 }
14110 {
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
14116 resultobj = SWIG_Py_Void();
14117 {
14118 if (temp2)
14119 delete arg2;
14120 }
14121 return resultobj;
14122 fail:
14123 {
14124 if (temp2)
14125 delete arg2;
14126 }
14127 return NULL;
14128 }
14129
14130
14131 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj = 0;
14133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14134 long arg2 ;
14135 long arg3 ;
14136 wxString result;
14137 void *argp1 = 0 ;
14138 int res1 = 0 ;
14139 long val2 ;
14140 int ecode2 = 0 ;
14141 long val3 ;
14142 int ecode3 = 0 ;
14143 PyObject * obj0 = 0 ;
14144 PyObject * obj1 = 0 ;
14145 PyObject * obj2 = 0 ;
14146 char * kwnames[] = {
14147 (char *) "self",(char *) "from",(char *) "to", NULL
14148 };
14149
14150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14152 if (!SWIG_IsOK(res1)) {
14153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14154 }
14155 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14156 ecode2 = SWIG_AsVal_long(obj1, &val2);
14157 if (!SWIG_IsOK(ecode2)) {
14158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14159 }
14160 arg2 = static_cast< long >(val2);
14161 ecode3 = SWIG_AsVal_long(obj2, &val3);
14162 if (!SWIG_IsOK(ecode3)) {
14163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14164 }
14165 arg3 = static_cast< long >(val3);
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 {
14173 #if wxUSE_UNICODE
14174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14175 #else
14176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14177 #endif
14178 }
14179 return resultobj;
14180 fail:
14181 return NULL;
14182 }
14183
14184
14185 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14186 PyObject *resultobj = 0;
14187 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14188 SwigValueWrapper<wxVisualAttributes > result;
14189 int val1 ;
14190 int ecode1 = 0 ;
14191 PyObject * obj0 = 0 ;
14192 char * kwnames[] = {
14193 (char *) "variant", NULL
14194 };
14195
14196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14197 if (obj0) {
14198 ecode1 = SWIG_AsVal_int(obj0, &val1);
14199 if (!SWIG_IsOK(ecode1)) {
14200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14201 }
14202 arg1 = static_cast< wxWindowVariant >(val1);
14203 }
14204 {
14205 if (!wxPyCheckForApp()) SWIG_fail;
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14212 return resultobj;
14213 fail:
14214 return NULL;
14215 }
14216
14217
14218 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14219 PyObject *obj;
14220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14221 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14222 return SWIG_Py_Void();
14223 }
14224
14225 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14226 return SWIG_Python_InitShadowInstance(args);
14227 }
14228
14229 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14230 PyObject *resultobj = 0;
14231 int arg1 ;
14232 wxMouseEvent *arg2 = 0 ;
14233 long arg3 ;
14234 long arg4 ;
14235 wxTextUrlEvent *result = 0 ;
14236 int val1 ;
14237 int ecode1 = 0 ;
14238 void *argp2 = 0 ;
14239 int res2 = 0 ;
14240 long val3 ;
14241 int ecode3 = 0 ;
14242 long val4 ;
14243 int ecode4 = 0 ;
14244 PyObject * obj0 = 0 ;
14245 PyObject * obj1 = 0 ;
14246 PyObject * obj2 = 0 ;
14247 PyObject * obj3 = 0 ;
14248 char * kwnames[] = {
14249 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14250 };
14251
14252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14253 ecode1 = SWIG_AsVal_int(obj0, &val1);
14254 if (!SWIG_IsOK(ecode1)) {
14255 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14256 }
14257 arg1 = static_cast< int >(val1);
14258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14259 if (!SWIG_IsOK(res2)) {
14260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14261 }
14262 if (!argp2) {
14263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14264 }
14265 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14266 ecode3 = SWIG_AsVal_long(obj2, &val3);
14267 if (!SWIG_IsOK(ecode3)) {
14268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14269 }
14270 arg3 = static_cast< long >(val3);
14271 ecode4 = SWIG_AsVal_long(obj3, &val4);
14272 if (!SWIG_IsOK(ecode4)) {
14273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14274 }
14275 arg4 = static_cast< long >(val4);
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14290 PyObject *resultobj = 0;
14291 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14292 wxMouseEvent *result = 0 ;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 PyObject *swig_obj[1] ;
14296
14297 if (!args) SWIG_fail;
14298 swig_obj[0] = args;
14299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14300 if (!SWIG_IsOK(res1)) {
14301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14302 }
14303 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 {
14307 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14308 result = (wxMouseEvent *) &_result_ref;
14309 }
14310 wxPyEndAllowThreads(__tstate);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14314 return resultobj;
14315 fail:
14316 return NULL;
14317 }
14318
14319
14320 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14321 PyObject *resultobj = 0;
14322 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14323 long result;
14324 void *argp1 = 0 ;
14325 int res1 = 0 ;
14326 PyObject *swig_obj[1] ;
14327
14328 if (!args) SWIG_fail;
14329 swig_obj[0] = args;
14330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14331 if (!SWIG_IsOK(res1)) {
14332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14333 }
14334 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14335 {
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14338 wxPyEndAllowThreads(__tstate);
14339 if (PyErr_Occurred()) SWIG_fail;
14340 }
14341 resultobj = SWIG_From_long(static_cast< long >(result));
14342 return resultobj;
14343 fail:
14344 return NULL;
14345 }
14346
14347
14348 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14349 PyObject *resultobj = 0;
14350 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14351 long result;
14352 void *argp1 = 0 ;
14353 int res1 = 0 ;
14354 PyObject *swig_obj[1] ;
14355
14356 if (!args) SWIG_fail;
14357 swig_obj[0] = args;
14358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14359 if (!SWIG_IsOK(res1)) {
14360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14361 }
14362 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14363 {
14364 PyThreadState* __tstate = wxPyBeginAllowThreads();
14365 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14366 wxPyEndAllowThreads(__tstate);
14367 if (PyErr_Occurred()) SWIG_fail;
14368 }
14369 resultobj = SWIG_From_long(static_cast< long >(result));
14370 return resultobj;
14371 fail:
14372 return NULL;
14373 }
14374
14375
14376 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14377 PyObject *obj;
14378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14379 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14380 return SWIG_Py_Void();
14381 }
14382
14383 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14384 return SWIG_Python_InitShadowInstance(args);
14385 }
14386
14387 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14388 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14389 return 1;
14390 }
14391
14392
14393 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14394 PyObject *pyobj = 0;
14395
14396 {
14397 #if wxUSE_UNICODE
14398 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14399 #else
14400 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14401 #endif
14402 }
14403 return pyobj;
14404 }
14405
14406
14407 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14408 PyObject *resultobj = 0;
14409 wxWindow *arg1 = (wxWindow *) 0 ;
14410 int arg2 = (int) -1 ;
14411 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14412 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14413 wxSize const &arg4_defvalue = wxDefaultSize ;
14414 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14415 long arg5 = (long) wxSB_HORIZONTAL ;
14416 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14417 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14418 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14419 wxString *arg7 = (wxString *) &arg7_defvalue ;
14420 wxScrollBar *result = 0 ;
14421 void *argp1 = 0 ;
14422 int res1 = 0 ;
14423 int val2 ;
14424 int ecode2 = 0 ;
14425 wxPoint temp3 ;
14426 wxSize temp4 ;
14427 long val5 ;
14428 int ecode5 = 0 ;
14429 void *argp6 = 0 ;
14430 int res6 = 0 ;
14431 bool temp7 = false ;
14432 PyObject * obj0 = 0 ;
14433 PyObject * obj1 = 0 ;
14434 PyObject * obj2 = 0 ;
14435 PyObject * obj3 = 0 ;
14436 PyObject * obj4 = 0 ;
14437 PyObject * obj5 = 0 ;
14438 PyObject * obj6 = 0 ;
14439 char * kwnames[] = {
14440 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14441 };
14442
14443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14445 if (!SWIG_IsOK(res1)) {
14446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14447 }
14448 arg1 = reinterpret_cast< wxWindow * >(argp1);
14449 if (obj1) {
14450 ecode2 = SWIG_AsVal_int(obj1, &val2);
14451 if (!SWIG_IsOK(ecode2)) {
14452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14453 }
14454 arg2 = static_cast< int >(val2);
14455 }
14456 if (obj2) {
14457 {
14458 arg3 = &temp3;
14459 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14460 }
14461 }
14462 if (obj3) {
14463 {
14464 arg4 = &temp4;
14465 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14466 }
14467 }
14468 if (obj4) {
14469 ecode5 = SWIG_AsVal_long(obj4, &val5);
14470 if (!SWIG_IsOK(ecode5)) {
14471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14472 }
14473 arg5 = static_cast< long >(val5);
14474 }
14475 if (obj5) {
14476 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14477 if (!SWIG_IsOK(res6)) {
14478 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14479 }
14480 if (!argp6) {
14481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14482 }
14483 arg6 = reinterpret_cast< wxValidator * >(argp6);
14484 }
14485 if (obj6) {
14486 {
14487 arg7 = wxString_in_helper(obj6);
14488 if (arg7 == NULL) SWIG_fail;
14489 temp7 = true;
14490 }
14491 }
14492 {
14493 if (!wxPyCheckForApp()) SWIG_fail;
14494 PyThreadState* __tstate = wxPyBeginAllowThreads();
14495 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14500 {
14501 if (temp7)
14502 delete arg7;
14503 }
14504 return resultobj;
14505 fail:
14506 {
14507 if (temp7)
14508 delete arg7;
14509 }
14510 return NULL;
14511 }
14512
14513
14514 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14515 PyObject *resultobj = 0;
14516 wxScrollBar *result = 0 ;
14517
14518 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14519 {
14520 if (!wxPyCheckForApp()) SWIG_fail;
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 result = (wxScrollBar *)new wxScrollBar();
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14527 return resultobj;
14528 fail:
14529 return NULL;
14530 }
14531
14532
14533 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj = 0;
14535 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14536 wxWindow *arg2 = (wxWindow *) 0 ;
14537 int arg3 = (int) -1 ;
14538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14540 wxSize const &arg5_defvalue = wxDefaultSize ;
14541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14542 long arg6 = (long) wxSB_HORIZONTAL ;
14543 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14544 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14545 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14546 wxString *arg8 = (wxString *) &arg8_defvalue ;
14547 bool result;
14548 void *argp1 = 0 ;
14549 int res1 = 0 ;
14550 void *argp2 = 0 ;
14551 int res2 = 0 ;
14552 int val3 ;
14553 int ecode3 = 0 ;
14554 wxPoint temp4 ;
14555 wxSize temp5 ;
14556 long val6 ;
14557 int ecode6 = 0 ;
14558 void *argp7 = 0 ;
14559 int res7 = 0 ;
14560 bool temp8 = false ;
14561 PyObject * obj0 = 0 ;
14562 PyObject * obj1 = 0 ;
14563 PyObject * obj2 = 0 ;
14564 PyObject * obj3 = 0 ;
14565 PyObject * obj4 = 0 ;
14566 PyObject * obj5 = 0 ;
14567 PyObject * obj6 = 0 ;
14568 PyObject * obj7 = 0 ;
14569 char * kwnames[] = {
14570 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14571 };
14572
14573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14577 }
14578 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14580 if (!SWIG_IsOK(res2)) {
14581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14582 }
14583 arg2 = reinterpret_cast< wxWindow * >(argp2);
14584 if (obj2) {
14585 ecode3 = SWIG_AsVal_int(obj2, &val3);
14586 if (!SWIG_IsOK(ecode3)) {
14587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14588 }
14589 arg3 = static_cast< int >(val3);
14590 }
14591 if (obj3) {
14592 {
14593 arg4 = &temp4;
14594 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14595 }
14596 }
14597 if (obj4) {
14598 {
14599 arg5 = &temp5;
14600 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14601 }
14602 }
14603 if (obj5) {
14604 ecode6 = SWIG_AsVal_long(obj5, &val6);
14605 if (!SWIG_IsOK(ecode6)) {
14606 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14607 }
14608 arg6 = static_cast< long >(val6);
14609 }
14610 if (obj6) {
14611 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14612 if (!SWIG_IsOK(res7)) {
14613 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14614 }
14615 if (!argp7) {
14616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14617 }
14618 arg7 = reinterpret_cast< wxValidator * >(argp7);
14619 }
14620 if (obj7) {
14621 {
14622 arg8 = wxString_in_helper(obj7);
14623 if (arg8 == NULL) SWIG_fail;
14624 temp8 = true;
14625 }
14626 }
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
14633 {
14634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14635 }
14636 {
14637 if (temp8)
14638 delete arg8;
14639 }
14640 return resultobj;
14641 fail:
14642 {
14643 if (temp8)
14644 delete arg8;
14645 }
14646 return NULL;
14647 }
14648
14649
14650 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14651 PyObject *resultobj = 0;
14652 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14653 int result;
14654 void *argp1 = 0 ;
14655 int res1 = 0 ;
14656 PyObject *swig_obj[1] ;
14657
14658 if (!args) SWIG_fail;
14659 swig_obj[0] = args;
14660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14661 if (!SWIG_IsOK(res1)) {
14662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14663 }
14664 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14665 {
14666 PyThreadState* __tstate = wxPyBeginAllowThreads();
14667 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14668 wxPyEndAllowThreads(__tstate);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 resultobj = SWIG_From_int(static_cast< int >(result));
14672 return resultobj;
14673 fail:
14674 return NULL;
14675 }
14676
14677
14678 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14679 PyObject *resultobj = 0;
14680 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14681 int result;
14682 void *argp1 = 0 ;
14683 int res1 = 0 ;
14684 PyObject *swig_obj[1] ;
14685
14686 if (!args) SWIG_fail;
14687 swig_obj[0] = args;
14688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14689 if (!SWIG_IsOK(res1)) {
14690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14691 }
14692 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14693 {
14694 PyThreadState* __tstate = wxPyBeginAllowThreads();
14695 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 resultobj = SWIG_From_int(static_cast< int >(result));
14700 return resultobj;
14701 fail:
14702 return NULL;
14703 }
14704
14705
14706 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14707 PyObject *resultobj = 0;
14708 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14709 int result;
14710 void *argp1 = 0 ;
14711 int res1 = 0 ;
14712 PyObject *swig_obj[1] ;
14713
14714 if (!args) SWIG_fail;
14715 swig_obj[0] = args;
14716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14717 if (!SWIG_IsOK(res1)) {
14718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14719 }
14720 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14721 {
14722 PyThreadState* __tstate = wxPyBeginAllowThreads();
14723 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14724 wxPyEndAllowThreads(__tstate);
14725 if (PyErr_Occurred()) SWIG_fail;
14726 }
14727 resultobj = SWIG_From_int(static_cast< int >(result));
14728 return resultobj;
14729 fail:
14730 return NULL;
14731 }
14732
14733
14734 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14735 PyObject *resultobj = 0;
14736 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14737 int result;
14738 void *argp1 = 0 ;
14739 int res1 = 0 ;
14740 PyObject *swig_obj[1] ;
14741
14742 if (!args) SWIG_fail;
14743 swig_obj[0] = args;
14744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14745 if (!SWIG_IsOK(res1)) {
14746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14747 }
14748 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 result = (int)((wxScrollBar const *)arg1)->GetRange();
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 resultobj = SWIG_From_int(static_cast< int >(result));
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14763 PyObject *resultobj = 0;
14764 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14765 bool result;
14766 void *argp1 = 0 ;
14767 int res1 = 0 ;
14768 PyObject *swig_obj[1] ;
14769
14770 if (!args) SWIG_fail;
14771 swig_obj[0] = args;
14772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14773 if (!SWIG_IsOK(res1)) {
14774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14775 }
14776 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 {
14784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14785 }
14786 return resultobj;
14787 fail:
14788 return NULL;
14789 }
14790
14791
14792 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj = 0;
14794 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14795 int arg2 ;
14796 void *argp1 = 0 ;
14797 int res1 = 0 ;
14798 int val2 ;
14799 int ecode2 = 0 ;
14800 PyObject * obj0 = 0 ;
14801 PyObject * obj1 = 0 ;
14802 char * kwnames[] = {
14803 (char *) "self",(char *) "viewStart", NULL
14804 };
14805
14806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14808 if (!SWIG_IsOK(res1)) {
14809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14810 }
14811 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14812 ecode2 = SWIG_AsVal_int(obj1, &val2);
14813 if (!SWIG_IsOK(ecode2)) {
14814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14815 }
14816 arg2 = static_cast< int >(val2);
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 (arg1)->SetThumbPosition(arg2);
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = SWIG_Py_Void();
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj = 0;
14832 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14833 SwigValueWrapper<wxVisualAttributes > result;
14834 int val1 ;
14835 int ecode1 = 0 ;
14836 PyObject * obj0 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "variant", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14842 if (obj0) {
14843 ecode1 = SWIG_AsVal_int(obj0, &val1);
14844 if (!SWIG_IsOK(ecode1)) {
14845 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14846 }
14847 arg1 = static_cast< wxWindowVariant >(val1);
14848 }
14849 {
14850 if (!wxPyCheckForApp()) SWIG_fail;
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14864 PyObject *obj;
14865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14866 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14867 return SWIG_Py_Void();
14868 }
14869
14870 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14871 return SWIG_Python_InitShadowInstance(args);
14872 }
14873
14874 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14875 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14876 return 1;
14877 }
14878
14879
14880 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14881 PyObject *pyobj = 0;
14882
14883 {
14884 #if wxUSE_UNICODE
14885 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14886 #else
14887 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14888 #endif
14889 }
14890 return pyobj;
14891 }
14892
14893
14894 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14895 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14896 return 1;
14897 }
14898
14899
14900 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14901 PyObject *pyobj = 0;
14902
14903 {
14904 #if wxUSE_UNICODE
14905 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14906 #else
14907 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14908 #endif
14909 }
14910 return pyobj;
14911 }
14912
14913
14914 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj = 0;
14916 wxWindow *arg1 = (wxWindow *) 0 ;
14917 int arg2 = (int) -1 ;
14918 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14919 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14920 wxSize const &arg4_defvalue = wxDefaultSize ;
14921 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14922 long arg5 = (long) wxSP_HORIZONTAL ;
14923 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14924 wxString *arg6 = (wxString *) &arg6_defvalue ;
14925 wxSpinButton *result = 0 ;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 int val2 ;
14929 int ecode2 = 0 ;
14930 wxPoint temp3 ;
14931 wxSize temp4 ;
14932 long val5 ;
14933 int ecode5 = 0 ;
14934 bool temp6 = false ;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 PyObject * obj2 = 0 ;
14938 PyObject * obj3 = 0 ;
14939 PyObject * obj4 = 0 ;
14940 PyObject * obj5 = 0 ;
14941 char * kwnames[] = {
14942 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14943 };
14944
14945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14947 if (!SWIG_IsOK(res1)) {
14948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14949 }
14950 arg1 = reinterpret_cast< wxWindow * >(argp1);
14951 if (obj1) {
14952 ecode2 = SWIG_AsVal_int(obj1, &val2);
14953 if (!SWIG_IsOK(ecode2)) {
14954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14955 }
14956 arg2 = static_cast< int >(val2);
14957 }
14958 if (obj2) {
14959 {
14960 arg3 = &temp3;
14961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14962 }
14963 }
14964 if (obj3) {
14965 {
14966 arg4 = &temp4;
14967 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14968 }
14969 }
14970 if (obj4) {
14971 ecode5 = SWIG_AsVal_long(obj4, &val5);
14972 if (!SWIG_IsOK(ecode5)) {
14973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14974 }
14975 arg5 = static_cast< long >(val5);
14976 }
14977 if (obj5) {
14978 {
14979 arg6 = wxString_in_helper(obj5);
14980 if (arg6 == NULL) SWIG_fail;
14981 temp6 = true;
14982 }
14983 }
14984 {
14985 if (!wxPyCheckForApp()) SWIG_fail;
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14992 {
14993 if (temp6)
14994 delete arg6;
14995 }
14996 return resultobj;
14997 fail:
14998 {
14999 if (temp6)
15000 delete arg6;
15001 }
15002 return NULL;
15003 }
15004
15005
15006 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15007 PyObject *resultobj = 0;
15008 wxSpinButton *result = 0 ;
15009
15010 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
15011 {
15012 if (!wxPyCheckForApp()) SWIG_fail;
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = (wxSpinButton *)new wxSpinButton();
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj = 0;
15027 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15028 wxWindow *arg2 = (wxWindow *) 0 ;
15029 int arg3 = (int) -1 ;
15030 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15031 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15032 wxSize const &arg5_defvalue = wxDefaultSize ;
15033 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15034 long arg6 = (long) wxSP_HORIZONTAL ;
15035 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
15036 wxString *arg7 = (wxString *) &arg7_defvalue ;
15037 bool result;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 void *argp2 = 0 ;
15041 int res2 = 0 ;
15042 int val3 ;
15043 int ecode3 = 0 ;
15044 wxPoint temp4 ;
15045 wxSize temp5 ;
15046 long val6 ;
15047 int ecode6 = 0 ;
15048 bool temp7 = false ;
15049 PyObject * obj0 = 0 ;
15050 PyObject * obj1 = 0 ;
15051 PyObject * obj2 = 0 ;
15052 PyObject * obj3 = 0 ;
15053 PyObject * obj4 = 0 ;
15054 PyObject * obj5 = 0 ;
15055 PyObject * obj6 = 0 ;
15056 char * kwnames[] = {
15057 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15058 };
15059
15060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15064 }
15065 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15067 if (!SWIG_IsOK(res2)) {
15068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15069 }
15070 arg2 = reinterpret_cast< wxWindow * >(argp2);
15071 if (obj2) {
15072 ecode3 = SWIG_AsVal_int(obj2, &val3);
15073 if (!SWIG_IsOK(ecode3)) {
15074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15075 }
15076 arg3 = static_cast< int >(val3);
15077 }
15078 if (obj3) {
15079 {
15080 arg4 = &temp4;
15081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15082 }
15083 }
15084 if (obj4) {
15085 {
15086 arg5 = &temp5;
15087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15088 }
15089 }
15090 if (obj5) {
15091 ecode6 = SWIG_AsVal_long(obj5, &val6);
15092 if (!SWIG_IsOK(ecode6)) {
15093 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15094 }
15095 arg6 = static_cast< long >(val6);
15096 }
15097 if (obj6) {
15098 {
15099 arg7 = wxString_in_helper(obj6);
15100 if (arg7 == NULL) SWIG_fail;
15101 temp7 = true;
15102 }
15103 }
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 {
15111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15112 }
15113 {
15114 if (temp7)
15115 delete arg7;
15116 }
15117 return resultobj;
15118 fail:
15119 {
15120 if (temp7)
15121 delete arg7;
15122 }
15123 return NULL;
15124 }
15125
15126
15127 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15128 PyObject *resultobj = 0;
15129 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15130 int result;
15131 void *argp1 = 0 ;
15132 int res1 = 0 ;
15133 PyObject *swig_obj[1] ;
15134
15135 if (!args) SWIG_fail;
15136 swig_obj[0] = args;
15137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15138 if (!SWIG_IsOK(res1)) {
15139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15140 }
15141 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15142 {
15143 PyThreadState* __tstate = wxPyBeginAllowThreads();
15144 result = (int)((wxSpinButton const *)arg1)->GetValue();
15145 wxPyEndAllowThreads(__tstate);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 resultobj = SWIG_From_int(static_cast< int >(result));
15149 return resultobj;
15150 fail:
15151 return NULL;
15152 }
15153
15154
15155 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15156 PyObject *resultobj = 0;
15157 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15158 int result;
15159 void *argp1 = 0 ;
15160 int res1 = 0 ;
15161 PyObject *swig_obj[1] ;
15162
15163 if (!args) SWIG_fail;
15164 swig_obj[0] = args;
15165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15166 if (!SWIG_IsOK(res1)) {
15167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15168 }
15169 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15170 {
15171 PyThreadState* __tstate = wxPyBeginAllowThreads();
15172 result = (int)((wxSpinButton const *)arg1)->GetMin();
15173 wxPyEndAllowThreads(__tstate);
15174 if (PyErr_Occurred()) SWIG_fail;
15175 }
15176 resultobj = SWIG_From_int(static_cast< int >(result));
15177 return resultobj;
15178 fail:
15179 return NULL;
15180 }
15181
15182
15183 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15184 PyObject *resultobj = 0;
15185 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15186 int result;
15187 void *argp1 = 0 ;
15188 int res1 = 0 ;
15189 PyObject *swig_obj[1] ;
15190
15191 if (!args) SWIG_fail;
15192 swig_obj[0] = args;
15193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15194 if (!SWIG_IsOK(res1)) {
15195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15196 }
15197 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (int)((wxSpinButton const *)arg1)->GetMax();
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 resultobj = SWIG_From_int(static_cast< int >(result));
15205 return resultobj;
15206 fail:
15207 return NULL;
15208 }
15209
15210
15211 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15212 PyObject *resultobj = 0;
15213 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15214 int arg2 ;
15215 void *argp1 = 0 ;
15216 int res1 = 0 ;
15217 int val2 ;
15218 int ecode2 = 0 ;
15219 PyObject * obj0 = 0 ;
15220 PyObject * obj1 = 0 ;
15221 char * kwnames[] = {
15222 (char *) "self",(char *) "val", NULL
15223 };
15224
15225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15227 if (!SWIG_IsOK(res1)) {
15228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15229 }
15230 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15231 ecode2 = SWIG_AsVal_int(obj1, &val2);
15232 if (!SWIG_IsOK(ecode2)) {
15233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15234 }
15235 arg2 = static_cast< int >(val2);
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 (arg1)->SetValue(arg2);
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_Py_Void();
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj = 0;
15251 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15252 int arg2 ;
15253 void *argp1 = 0 ;
15254 int res1 = 0 ;
15255 int val2 ;
15256 int ecode2 = 0 ;
15257 PyObject * obj0 = 0 ;
15258 PyObject * obj1 = 0 ;
15259 char * kwnames[] = {
15260 (char *) "self",(char *) "minVal", NULL
15261 };
15262
15263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15265 if (!SWIG_IsOK(res1)) {
15266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15267 }
15268 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15269 ecode2 = SWIG_AsVal_int(obj1, &val2);
15270 if (!SWIG_IsOK(ecode2)) {
15271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15272 }
15273 arg2 = static_cast< int >(val2);
15274 {
15275 PyThreadState* __tstate = wxPyBeginAllowThreads();
15276 (arg1)->SetMin(arg2);
15277 wxPyEndAllowThreads(__tstate);
15278 if (PyErr_Occurred()) SWIG_fail;
15279 }
15280 resultobj = SWIG_Py_Void();
15281 return resultobj;
15282 fail:
15283 return NULL;
15284 }
15285
15286
15287 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15288 PyObject *resultobj = 0;
15289 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15290 int arg2 ;
15291 void *argp1 = 0 ;
15292 int res1 = 0 ;
15293 int val2 ;
15294 int ecode2 = 0 ;
15295 PyObject * obj0 = 0 ;
15296 PyObject * obj1 = 0 ;
15297 char * kwnames[] = {
15298 (char *) "self",(char *) "maxVal", NULL
15299 };
15300
15301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15303 if (!SWIG_IsOK(res1)) {
15304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15305 }
15306 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15307 ecode2 = SWIG_AsVal_int(obj1, &val2);
15308 if (!SWIG_IsOK(ecode2)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15310 }
15311 arg2 = static_cast< int >(val2);
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 (arg1)->SetMax(arg2);
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_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15326 PyObject *resultobj = 0;
15327 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15328 int arg2 ;
15329 int arg3 ;
15330 void *argp1 = 0 ;
15331 int res1 = 0 ;
15332 int val2 ;
15333 int ecode2 = 0 ;
15334 int val3 ;
15335 int ecode3 = 0 ;
15336 PyObject * obj0 = 0 ;
15337 PyObject * obj1 = 0 ;
15338 PyObject * obj2 = 0 ;
15339 char * kwnames[] = {
15340 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15341 };
15342
15343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15345 if (!SWIG_IsOK(res1)) {
15346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15347 }
15348 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15349 ecode2 = SWIG_AsVal_int(obj1, &val2);
15350 if (!SWIG_IsOK(ecode2)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15352 }
15353 arg2 = static_cast< int >(val2);
15354 ecode3 = SWIG_AsVal_int(obj2, &val3);
15355 if (!SWIG_IsOK(ecode3)) {
15356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15357 }
15358 arg3 = static_cast< int >(val3);
15359 {
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 (arg1)->SetRange(arg2,arg3);
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 resultobj = SWIG_Py_Void();
15366 return resultobj;
15367 fail:
15368 return NULL;
15369 }
15370
15371
15372 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15373 PyObject *resultobj = 0;
15374 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15375 bool result;
15376 void *argp1 = 0 ;
15377 int res1 = 0 ;
15378 PyObject *swig_obj[1] ;
15379
15380 if (!args) SWIG_fail;
15381 swig_obj[0] = args;
15382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15383 if (!SWIG_IsOK(res1)) {
15384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15385 }
15386 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15387 {
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15390 wxPyEndAllowThreads(__tstate);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 }
15393 {
15394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15395 }
15396 return resultobj;
15397 fail:
15398 return NULL;
15399 }
15400
15401
15402 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15403 PyObject *resultobj = 0;
15404 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15405 SwigValueWrapper<wxVisualAttributes > result;
15406 int val1 ;
15407 int ecode1 = 0 ;
15408 PyObject * obj0 = 0 ;
15409 char * kwnames[] = {
15410 (char *) "variant", NULL
15411 };
15412
15413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15414 if (obj0) {
15415 ecode1 = SWIG_AsVal_int(obj0, &val1);
15416 if (!SWIG_IsOK(ecode1)) {
15417 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15418 }
15419 arg1 = static_cast< wxWindowVariant >(val1);
15420 }
15421 {
15422 if (!wxPyCheckForApp()) SWIG_fail;
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15425 wxPyEndAllowThreads(__tstate);
15426 if (PyErr_Occurred()) SWIG_fail;
15427 }
15428 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15429 return resultobj;
15430 fail:
15431 return NULL;
15432 }
15433
15434
15435 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15436 PyObject *obj;
15437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15438 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15439 return SWIG_Py_Void();
15440 }
15441
15442 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15443 return SWIG_Python_InitShadowInstance(args);
15444 }
15445
15446 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15447 PyObject *resultobj = 0;
15448 wxWindow *arg1 = (wxWindow *) 0 ;
15449 int arg2 = (int) -1 ;
15450 wxString const &arg3_defvalue = wxPyEmptyString ;
15451 wxString *arg3 = (wxString *) &arg3_defvalue ;
15452 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15453 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15454 wxSize const &arg5_defvalue = wxDefaultSize ;
15455 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15456 long arg6 = (long) wxSP_ARROW_KEYS ;
15457 int arg7 = (int) 0 ;
15458 int arg8 = (int) 100 ;
15459 int arg9 = (int) 0 ;
15460 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15461 wxString *arg10 = (wxString *) &arg10_defvalue ;
15462 wxSpinCtrl *result = 0 ;
15463 void *argp1 = 0 ;
15464 int res1 = 0 ;
15465 int val2 ;
15466 int ecode2 = 0 ;
15467 bool temp3 = false ;
15468 wxPoint temp4 ;
15469 wxSize temp5 ;
15470 long val6 ;
15471 int ecode6 = 0 ;
15472 int val7 ;
15473 int ecode7 = 0 ;
15474 int val8 ;
15475 int ecode8 = 0 ;
15476 int val9 ;
15477 int ecode9 = 0 ;
15478 bool temp10 = false ;
15479 PyObject * obj0 = 0 ;
15480 PyObject * obj1 = 0 ;
15481 PyObject * obj2 = 0 ;
15482 PyObject * obj3 = 0 ;
15483 PyObject * obj4 = 0 ;
15484 PyObject * obj5 = 0 ;
15485 PyObject * obj6 = 0 ;
15486 PyObject * obj7 = 0 ;
15487 PyObject * obj8 = 0 ;
15488 PyObject * obj9 = 0 ;
15489 char * kwnames[] = {
15490 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15491 };
15492
15493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15495 if (!SWIG_IsOK(res1)) {
15496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15497 }
15498 arg1 = reinterpret_cast< wxWindow * >(argp1);
15499 if (obj1) {
15500 ecode2 = SWIG_AsVal_int(obj1, &val2);
15501 if (!SWIG_IsOK(ecode2)) {
15502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15503 }
15504 arg2 = static_cast< int >(val2);
15505 }
15506 if (obj2) {
15507 {
15508 arg3 = wxString_in_helper(obj2);
15509 if (arg3 == NULL) SWIG_fail;
15510 temp3 = true;
15511 }
15512 }
15513 if (obj3) {
15514 {
15515 arg4 = &temp4;
15516 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15517 }
15518 }
15519 if (obj4) {
15520 {
15521 arg5 = &temp5;
15522 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15523 }
15524 }
15525 if (obj5) {
15526 ecode6 = SWIG_AsVal_long(obj5, &val6);
15527 if (!SWIG_IsOK(ecode6)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15529 }
15530 arg6 = static_cast< long >(val6);
15531 }
15532 if (obj6) {
15533 ecode7 = SWIG_AsVal_int(obj6, &val7);
15534 if (!SWIG_IsOK(ecode7)) {
15535 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15536 }
15537 arg7 = static_cast< int >(val7);
15538 }
15539 if (obj7) {
15540 ecode8 = SWIG_AsVal_int(obj7, &val8);
15541 if (!SWIG_IsOK(ecode8)) {
15542 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15543 }
15544 arg8 = static_cast< int >(val8);
15545 }
15546 if (obj8) {
15547 ecode9 = SWIG_AsVal_int(obj8, &val9);
15548 if (!SWIG_IsOK(ecode9)) {
15549 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15550 }
15551 arg9 = static_cast< int >(val9);
15552 }
15553 if (obj9) {
15554 {
15555 arg10 = wxString_in_helper(obj9);
15556 if (arg10 == NULL) SWIG_fail;
15557 temp10 = true;
15558 }
15559 }
15560 {
15561 if (!wxPyCheckForApp()) SWIG_fail;
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15568 {
15569 if (temp3)
15570 delete arg3;
15571 }
15572 {
15573 if (temp10)
15574 delete arg10;
15575 }
15576 return resultobj;
15577 fail:
15578 {
15579 if (temp3)
15580 delete arg3;
15581 }
15582 {
15583 if (temp10)
15584 delete arg10;
15585 }
15586 return NULL;
15587 }
15588
15589
15590 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15591 PyObject *resultobj = 0;
15592 wxSpinCtrl *result = 0 ;
15593
15594 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15595 {
15596 if (!wxPyCheckForApp()) SWIG_fail;
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 result = (wxSpinCtrl *)new wxSpinCtrl();
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15603 return resultobj;
15604 fail:
15605 return NULL;
15606 }
15607
15608
15609 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15610 PyObject *resultobj = 0;
15611 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15612 wxWindow *arg2 = (wxWindow *) 0 ;
15613 int arg3 = (int) -1 ;
15614 wxString const &arg4_defvalue = wxPyEmptyString ;
15615 wxString *arg4 = (wxString *) &arg4_defvalue ;
15616 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15617 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15618 wxSize const &arg6_defvalue = wxDefaultSize ;
15619 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15620 long arg7 = (long) wxSP_ARROW_KEYS ;
15621 int arg8 = (int) 0 ;
15622 int arg9 = (int) 100 ;
15623 int arg10 = (int) 0 ;
15624 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15625 wxString *arg11 = (wxString *) &arg11_defvalue ;
15626 bool result;
15627 void *argp1 = 0 ;
15628 int res1 = 0 ;
15629 void *argp2 = 0 ;
15630 int res2 = 0 ;
15631 int val3 ;
15632 int ecode3 = 0 ;
15633 bool temp4 = false ;
15634 wxPoint temp5 ;
15635 wxSize temp6 ;
15636 long val7 ;
15637 int ecode7 = 0 ;
15638 int val8 ;
15639 int ecode8 = 0 ;
15640 int val9 ;
15641 int ecode9 = 0 ;
15642 int val10 ;
15643 int ecode10 = 0 ;
15644 bool temp11 = false ;
15645 PyObject * obj0 = 0 ;
15646 PyObject * obj1 = 0 ;
15647 PyObject * obj2 = 0 ;
15648 PyObject * obj3 = 0 ;
15649 PyObject * obj4 = 0 ;
15650 PyObject * obj5 = 0 ;
15651 PyObject * obj6 = 0 ;
15652 PyObject * obj7 = 0 ;
15653 PyObject * obj8 = 0 ;
15654 PyObject * obj9 = 0 ;
15655 PyObject * obj10 = 0 ;
15656 char * kwnames[] = {
15657 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15658 };
15659
15660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15662 if (!SWIG_IsOK(res1)) {
15663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15664 }
15665 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15667 if (!SWIG_IsOK(res2)) {
15668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15669 }
15670 arg2 = reinterpret_cast< wxWindow * >(argp2);
15671 if (obj2) {
15672 ecode3 = SWIG_AsVal_int(obj2, &val3);
15673 if (!SWIG_IsOK(ecode3)) {
15674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15675 }
15676 arg3 = static_cast< int >(val3);
15677 }
15678 if (obj3) {
15679 {
15680 arg4 = wxString_in_helper(obj3);
15681 if (arg4 == NULL) SWIG_fail;
15682 temp4 = true;
15683 }
15684 }
15685 if (obj4) {
15686 {
15687 arg5 = &temp5;
15688 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15689 }
15690 }
15691 if (obj5) {
15692 {
15693 arg6 = &temp6;
15694 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15695 }
15696 }
15697 if (obj6) {
15698 ecode7 = SWIG_AsVal_long(obj6, &val7);
15699 if (!SWIG_IsOK(ecode7)) {
15700 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15701 }
15702 arg7 = static_cast< long >(val7);
15703 }
15704 if (obj7) {
15705 ecode8 = SWIG_AsVal_int(obj7, &val8);
15706 if (!SWIG_IsOK(ecode8)) {
15707 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15708 }
15709 arg8 = static_cast< int >(val8);
15710 }
15711 if (obj8) {
15712 ecode9 = SWIG_AsVal_int(obj8, &val9);
15713 if (!SWIG_IsOK(ecode9)) {
15714 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15715 }
15716 arg9 = static_cast< int >(val9);
15717 }
15718 if (obj9) {
15719 ecode10 = SWIG_AsVal_int(obj9, &val10);
15720 if (!SWIG_IsOK(ecode10)) {
15721 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15722 }
15723 arg10 = static_cast< int >(val10);
15724 }
15725 if (obj10) {
15726 {
15727 arg11 = wxString_in_helper(obj10);
15728 if (arg11 == NULL) SWIG_fail;
15729 temp11 = true;
15730 }
15731 }
15732 {
15733 PyThreadState* __tstate = wxPyBeginAllowThreads();
15734 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15735 wxPyEndAllowThreads(__tstate);
15736 if (PyErr_Occurred()) SWIG_fail;
15737 }
15738 {
15739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15740 }
15741 {
15742 if (temp4)
15743 delete arg4;
15744 }
15745 {
15746 if (temp11)
15747 delete arg11;
15748 }
15749 return resultobj;
15750 fail:
15751 {
15752 if (temp4)
15753 delete arg4;
15754 }
15755 {
15756 if (temp11)
15757 delete arg11;
15758 }
15759 return NULL;
15760 }
15761
15762
15763 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15764 PyObject *resultobj = 0;
15765 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15766 int result;
15767 void *argp1 = 0 ;
15768 int res1 = 0 ;
15769 PyObject *swig_obj[1] ;
15770
15771 if (!args) SWIG_fail;
15772 swig_obj[0] = args;
15773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15774 if (!SWIG_IsOK(res1)) {
15775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15776 }
15777 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 resultobj = SWIG_From_int(static_cast< int >(result));
15785 return resultobj;
15786 fail:
15787 return NULL;
15788 }
15789
15790
15791 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15794 int arg2 ;
15795 void *argp1 = 0 ;
15796 int res1 = 0 ;
15797 int val2 ;
15798 int ecode2 = 0 ;
15799 PyObject * obj0 = 0 ;
15800 PyObject * obj1 = 0 ;
15801 char * kwnames[] = {
15802 (char *) "self",(char *) "value", NULL
15803 };
15804
15805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15807 if (!SWIG_IsOK(res1)) {
15808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15809 }
15810 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15811 ecode2 = SWIG_AsVal_int(obj1, &val2);
15812 if (!SWIG_IsOK(ecode2)) {
15813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15814 }
15815 arg2 = static_cast< int >(val2);
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 (arg1)->SetValue(arg2);
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 resultobj = SWIG_Py_Void();
15823 return resultobj;
15824 fail:
15825 return NULL;
15826 }
15827
15828
15829 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15830 PyObject *resultobj = 0;
15831 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15832 wxString *arg2 = 0 ;
15833 void *argp1 = 0 ;
15834 int res1 = 0 ;
15835 bool temp2 = false ;
15836 PyObject * obj0 = 0 ;
15837 PyObject * obj1 = 0 ;
15838 char * kwnames[] = {
15839 (char *) "self",(char *) "text", NULL
15840 };
15841
15842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15844 if (!SWIG_IsOK(res1)) {
15845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15846 }
15847 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15848 {
15849 arg2 = wxString_in_helper(obj1);
15850 if (arg2 == NULL) SWIG_fail;
15851 temp2 = true;
15852 }
15853 {
15854 PyThreadState* __tstate = wxPyBeginAllowThreads();
15855 (arg1)->SetValue((wxString const &)*arg2);
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 resultobj = SWIG_Py_Void();
15860 {
15861 if (temp2)
15862 delete arg2;
15863 }
15864 return resultobj;
15865 fail:
15866 {
15867 if (temp2)
15868 delete arg2;
15869 }
15870 return NULL;
15871 }
15872
15873
15874 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15875 PyObject *resultobj = 0;
15876 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15877 int arg2 ;
15878 int arg3 ;
15879 void *argp1 = 0 ;
15880 int res1 = 0 ;
15881 int val2 ;
15882 int ecode2 = 0 ;
15883 int val3 ;
15884 int ecode3 = 0 ;
15885 PyObject * obj0 = 0 ;
15886 PyObject * obj1 = 0 ;
15887 PyObject * obj2 = 0 ;
15888 char * kwnames[] = {
15889 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15890 };
15891
15892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15894 if (!SWIG_IsOK(res1)) {
15895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15896 }
15897 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15898 ecode2 = SWIG_AsVal_int(obj1, &val2);
15899 if (!SWIG_IsOK(ecode2)) {
15900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15901 }
15902 arg2 = static_cast< int >(val2);
15903 ecode3 = SWIG_AsVal_int(obj2, &val3);
15904 if (!SWIG_IsOK(ecode3)) {
15905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15906 }
15907 arg3 = static_cast< int >(val3);
15908 {
15909 PyThreadState* __tstate = wxPyBeginAllowThreads();
15910 (arg1)->SetRange(arg2,arg3);
15911 wxPyEndAllowThreads(__tstate);
15912 if (PyErr_Occurred()) SWIG_fail;
15913 }
15914 resultobj = SWIG_Py_Void();
15915 return resultobj;
15916 fail:
15917 return NULL;
15918 }
15919
15920
15921 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15922 PyObject *resultobj = 0;
15923 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15924 int result;
15925 void *argp1 = 0 ;
15926 int res1 = 0 ;
15927 PyObject *swig_obj[1] ;
15928
15929 if (!args) SWIG_fail;
15930 swig_obj[0] = args;
15931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15932 if (!SWIG_IsOK(res1)) {
15933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15934 }
15935 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15939 wxPyEndAllowThreads(__tstate);
15940 if (PyErr_Occurred()) SWIG_fail;
15941 }
15942 resultobj = SWIG_From_int(static_cast< int >(result));
15943 return resultobj;
15944 fail:
15945 return NULL;
15946 }
15947
15948
15949 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15950 PyObject *resultobj = 0;
15951 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15952 int result;
15953 void *argp1 = 0 ;
15954 int res1 = 0 ;
15955 PyObject *swig_obj[1] ;
15956
15957 if (!args) SWIG_fail;
15958 swig_obj[0] = args;
15959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15960 if (!SWIG_IsOK(res1)) {
15961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15962 }
15963 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 resultobj = SWIG_From_int(static_cast< int >(result));
15971 return resultobj;
15972 fail:
15973 return NULL;
15974 }
15975
15976
15977 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj = 0;
15979 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15980 long arg2 ;
15981 long arg3 ;
15982 void *argp1 = 0 ;
15983 int res1 = 0 ;
15984 long val2 ;
15985 int ecode2 = 0 ;
15986 long val3 ;
15987 int ecode3 = 0 ;
15988 PyObject * obj0 = 0 ;
15989 PyObject * obj1 = 0 ;
15990 PyObject * obj2 = 0 ;
15991 char * kwnames[] = {
15992 (char *) "self",(char *) "from",(char *) "to", NULL
15993 };
15994
15995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15997 if (!SWIG_IsOK(res1)) {
15998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15999 }
16000 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
16001 ecode2 = SWIG_AsVal_long(obj1, &val2);
16002 if (!SWIG_IsOK(ecode2)) {
16003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
16004 }
16005 arg2 = static_cast< long >(val2);
16006 ecode3 = SWIG_AsVal_long(obj2, &val3);
16007 if (!SWIG_IsOK(ecode3)) {
16008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
16009 }
16010 arg3 = static_cast< long >(val3);
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 (arg1)->SetSelection(arg2,arg3);
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 resultobj = SWIG_Py_Void();
16018 return resultobj;
16019 fail:
16020 return NULL;
16021 }
16022
16023
16024 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16025 PyObject *resultobj = 0;
16026 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16027 SwigValueWrapper<wxVisualAttributes > result;
16028 int val1 ;
16029 int ecode1 = 0 ;
16030 PyObject * obj0 = 0 ;
16031 char * kwnames[] = {
16032 (char *) "variant", NULL
16033 };
16034
16035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16036 if (obj0) {
16037 ecode1 = SWIG_AsVal_int(obj0, &val1);
16038 if (!SWIG_IsOK(ecode1)) {
16039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16040 }
16041 arg1 = static_cast< wxWindowVariant >(val1);
16042 }
16043 {
16044 if (!wxPyCheckForApp()) SWIG_fail;
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
16047 wxPyEndAllowThreads(__tstate);
16048 if (PyErr_Occurred()) SWIG_fail;
16049 }
16050 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16051 return resultobj;
16052 fail:
16053 return NULL;
16054 }
16055
16056
16057 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16058 PyObject *obj;
16059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16060 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
16061 return SWIG_Py_Void();
16062 }
16063
16064 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065 return SWIG_Python_InitShadowInstance(args);
16066 }
16067
16068 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16069 PyObject *resultobj = 0;
16070 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16071 int arg2 = (int) 0 ;
16072 wxSpinEvent *result = 0 ;
16073 int val1 ;
16074 int ecode1 = 0 ;
16075 int val2 ;
16076 int ecode2 = 0 ;
16077 PyObject * obj0 = 0 ;
16078 PyObject * obj1 = 0 ;
16079 char * kwnames[] = {
16080 (char *) "commandType",(char *) "winid", NULL
16081 };
16082
16083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16084 if (obj0) {
16085 ecode1 = SWIG_AsVal_int(obj0, &val1);
16086 if (!SWIG_IsOK(ecode1)) {
16087 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16088 }
16089 arg1 = static_cast< wxEventType >(val1);
16090 }
16091 if (obj1) {
16092 ecode2 = SWIG_AsVal_int(obj1, &val2);
16093 if (!SWIG_IsOK(ecode2)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16095 }
16096 arg2 = static_cast< int >(val2);
16097 }
16098 {
16099 PyThreadState* __tstate = wxPyBeginAllowThreads();
16100 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16105 return resultobj;
16106 fail:
16107 return NULL;
16108 }
16109
16110
16111 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16112 PyObject *resultobj = 0;
16113 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16114 int result;
16115 void *argp1 = 0 ;
16116 int res1 = 0 ;
16117 PyObject *swig_obj[1] ;
16118
16119 if (!args) SWIG_fail;
16120 swig_obj[0] = args;
16121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16122 if (!SWIG_IsOK(res1)) {
16123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16124 }
16125 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_From_int(static_cast< int >(result));
16133 return resultobj;
16134 fail:
16135 return NULL;
16136 }
16137
16138
16139 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16140 PyObject *resultobj = 0;
16141 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16142 int arg2 ;
16143 void *argp1 = 0 ;
16144 int res1 = 0 ;
16145 int val2 ;
16146 int ecode2 = 0 ;
16147 PyObject * obj0 = 0 ;
16148 PyObject * obj1 = 0 ;
16149 char * kwnames[] = {
16150 (char *) "self",(char *) "pos", NULL
16151 };
16152
16153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16155 if (!SWIG_IsOK(res1)) {
16156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16157 }
16158 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16159 ecode2 = SWIG_AsVal_int(obj1, &val2);
16160 if (!SWIG_IsOK(ecode2)) {
16161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16162 }
16163 arg2 = static_cast< int >(val2);
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 (arg1)->SetPosition(arg2);
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 resultobj = SWIG_Py_Void();
16171 return resultobj;
16172 fail:
16173 return NULL;
16174 }
16175
16176
16177 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16178 PyObject *obj;
16179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16180 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16181 return SWIG_Py_Void();
16182 }
16183
16184 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16185 return SWIG_Python_InitShadowInstance(args);
16186 }
16187
16188 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16189 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16190 return 1;
16191 }
16192
16193
16194 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16195 PyObject *pyobj = 0;
16196
16197 {
16198 #if wxUSE_UNICODE
16199 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16200 #else
16201 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16202 #endif
16203 }
16204 return pyobj;
16205 }
16206
16207
16208 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16209 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16210 return 1;
16211 }
16212
16213
16214 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16215 PyObject *pyobj = 0;
16216
16217 {
16218 #if wxUSE_UNICODE
16219 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16220 #else
16221 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16222 #endif
16223 }
16224 return pyobj;
16225 }
16226
16227
16228 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16229 PyObject *resultobj = 0;
16230 wxWindow *arg1 = (wxWindow *) 0 ;
16231 int arg2 = (int) -1 ;
16232 wxString const &arg3_defvalue = wxPyEmptyString ;
16233 wxString *arg3 = (wxString *) &arg3_defvalue ;
16234 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16235 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16236 wxSize const &arg5_defvalue = wxDefaultSize ;
16237 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16238 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16239 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16240 int arg7 = (int) 0 ;
16241 long arg8 = (long) wxRA_HORIZONTAL ;
16242 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16243 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16244 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16245 wxString *arg10 = (wxString *) &arg10_defvalue ;
16246 wxRadioBox *result = 0 ;
16247 void *argp1 = 0 ;
16248 int res1 = 0 ;
16249 int val2 ;
16250 int ecode2 = 0 ;
16251 bool temp3 = false ;
16252 wxPoint temp4 ;
16253 wxSize temp5 ;
16254 bool temp6 = false ;
16255 int val7 ;
16256 int ecode7 = 0 ;
16257 long val8 ;
16258 int ecode8 = 0 ;
16259 void *argp9 = 0 ;
16260 int res9 = 0 ;
16261 bool temp10 = false ;
16262 PyObject * obj0 = 0 ;
16263 PyObject * obj1 = 0 ;
16264 PyObject * obj2 = 0 ;
16265 PyObject * obj3 = 0 ;
16266 PyObject * obj4 = 0 ;
16267 PyObject * obj5 = 0 ;
16268 PyObject * obj6 = 0 ;
16269 PyObject * obj7 = 0 ;
16270 PyObject * obj8 = 0 ;
16271 PyObject * obj9 = 0 ;
16272 char * kwnames[] = {
16273 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16274 };
16275
16276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16280 }
16281 arg1 = reinterpret_cast< wxWindow * >(argp1);
16282 if (obj1) {
16283 ecode2 = SWIG_AsVal_int(obj1, &val2);
16284 if (!SWIG_IsOK(ecode2)) {
16285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16286 }
16287 arg2 = static_cast< int >(val2);
16288 }
16289 if (obj2) {
16290 {
16291 arg3 = wxString_in_helper(obj2);
16292 if (arg3 == NULL) SWIG_fail;
16293 temp3 = true;
16294 }
16295 }
16296 if (obj3) {
16297 {
16298 arg4 = &temp4;
16299 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16300 }
16301 }
16302 if (obj4) {
16303 {
16304 arg5 = &temp5;
16305 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16306 }
16307 }
16308 if (obj5) {
16309 {
16310 if (! PySequence_Check(obj5)) {
16311 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16312 SWIG_fail;
16313 }
16314 arg6 = new wxArrayString;
16315 temp6 = true;
16316 int i, len=PySequence_Length(obj5);
16317 for (i=0; i<len; i++) {
16318 PyObject* item = PySequence_GetItem(obj5, i);
16319 wxString* s = wxString_in_helper(item);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 arg6->Add(*s);
16322 delete s;
16323 Py_DECREF(item);
16324 }
16325 }
16326 }
16327 if (obj6) {
16328 ecode7 = SWIG_AsVal_int(obj6, &val7);
16329 if (!SWIG_IsOK(ecode7)) {
16330 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16331 }
16332 arg7 = static_cast< int >(val7);
16333 }
16334 if (obj7) {
16335 ecode8 = SWIG_AsVal_long(obj7, &val8);
16336 if (!SWIG_IsOK(ecode8)) {
16337 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16338 }
16339 arg8 = static_cast< long >(val8);
16340 }
16341 if (obj8) {
16342 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16343 if (!SWIG_IsOK(res9)) {
16344 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16345 }
16346 if (!argp9) {
16347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16348 }
16349 arg9 = reinterpret_cast< wxValidator * >(argp9);
16350 }
16351 if (obj9) {
16352 {
16353 arg10 = wxString_in_helper(obj9);
16354 if (arg10 == NULL) SWIG_fail;
16355 temp10 = true;
16356 }
16357 }
16358 {
16359 if (!wxPyCheckForApp()) SWIG_fail;
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 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);
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16366 {
16367 if (temp3)
16368 delete arg3;
16369 }
16370 {
16371 if (temp6) delete arg6;
16372 }
16373 {
16374 if (temp10)
16375 delete arg10;
16376 }
16377 return resultobj;
16378 fail:
16379 {
16380 if (temp3)
16381 delete arg3;
16382 }
16383 {
16384 if (temp6) delete arg6;
16385 }
16386 {
16387 if (temp10)
16388 delete arg10;
16389 }
16390 return NULL;
16391 }
16392
16393
16394 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16395 PyObject *resultobj = 0;
16396 wxRadioBox *result = 0 ;
16397
16398 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16399 {
16400 if (!wxPyCheckForApp()) SWIG_fail;
16401 PyThreadState* __tstate = wxPyBeginAllowThreads();
16402 result = (wxRadioBox *)new wxRadioBox();
16403 wxPyEndAllowThreads(__tstate);
16404 if (PyErr_Occurred()) SWIG_fail;
16405 }
16406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16407 return resultobj;
16408 fail:
16409 return NULL;
16410 }
16411
16412
16413 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj = 0;
16415 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16416 wxWindow *arg2 = (wxWindow *) 0 ;
16417 int arg3 = (int) -1 ;
16418 wxString const &arg4_defvalue = wxPyEmptyString ;
16419 wxString *arg4 = (wxString *) &arg4_defvalue ;
16420 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16421 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16422 wxSize const &arg6_defvalue = wxDefaultSize ;
16423 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16424 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16425 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16426 int arg8 = (int) 0 ;
16427 long arg9 = (long) wxRA_HORIZONTAL ;
16428 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16429 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16430 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16431 wxString *arg11 = (wxString *) &arg11_defvalue ;
16432 bool result;
16433 void *argp1 = 0 ;
16434 int res1 = 0 ;
16435 void *argp2 = 0 ;
16436 int res2 = 0 ;
16437 int val3 ;
16438 int ecode3 = 0 ;
16439 bool temp4 = false ;
16440 wxPoint temp5 ;
16441 wxSize temp6 ;
16442 bool temp7 = false ;
16443 int val8 ;
16444 int ecode8 = 0 ;
16445 long val9 ;
16446 int ecode9 = 0 ;
16447 void *argp10 = 0 ;
16448 int res10 = 0 ;
16449 bool temp11 = false ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 PyObject * obj2 = 0 ;
16453 PyObject * obj3 = 0 ;
16454 PyObject * obj4 = 0 ;
16455 PyObject * obj5 = 0 ;
16456 PyObject * obj6 = 0 ;
16457 PyObject * obj7 = 0 ;
16458 PyObject * obj8 = 0 ;
16459 PyObject * obj9 = 0 ;
16460 PyObject * obj10 = 0 ;
16461 char * kwnames[] = {
16462 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16463 };
16464
16465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16467 if (!SWIG_IsOK(res1)) {
16468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16469 }
16470 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16472 if (!SWIG_IsOK(res2)) {
16473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16474 }
16475 arg2 = reinterpret_cast< wxWindow * >(argp2);
16476 if (obj2) {
16477 ecode3 = SWIG_AsVal_int(obj2, &val3);
16478 if (!SWIG_IsOK(ecode3)) {
16479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16480 }
16481 arg3 = static_cast< int >(val3);
16482 }
16483 if (obj3) {
16484 {
16485 arg4 = wxString_in_helper(obj3);
16486 if (arg4 == NULL) SWIG_fail;
16487 temp4 = true;
16488 }
16489 }
16490 if (obj4) {
16491 {
16492 arg5 = &temp5;
16493 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16494 }
16495 }
16496 if (obj5) {
16497 {
16498 arg6 = &temp6;
16499 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16500 }
16501 }
16502 if (obj6) {
16503 {
16504 if (! PySequence_Check(obj6)) {
16505 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16506 SWIG_fail;
16507 }
16508 arg7 = new wxArrayString;
16509 temp7 = true;
16510 int i, len=PySequence_Length(obj6);
16511 for (i=0; i<len; i++) {
16512 PyObject* item = PySequence_GetItem(obj6, i);
16513 wxString* s = wxString_in_helper(item);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 arg7->Add(*s);
16516 delete s;
16517 Py_DECREF(item);
16518 }
16519 }
16520 }
16521 if (obj7) {
16522 ecode8 = SWIG_AsVal_int(obj7, &val8);
16523 if (!SWIG_IsOK(ecode8)) {
16524 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16525 }
16526 arg8 = static_cast< int >(val8);
16527 }
16528 if (obj8) {
16529 ecode9 = SWIG_AsVal_long(obj8, &val9);
16530 if (!SWIG_IsOK(ecode9)) {
16531 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16532 }
16533 arg9 = static_cast< long >(val9);
16534 }
16535 if (obj9) {
16536 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16537 if (!SWIG_IsOK(res10)) {
16538 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16539 }
16540 if (!argp10) {
16541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16542 }
16543 arg10 = reinterpret_cast< wxValidator * >(argp10);
16544 }
16545 if (obj10) {
16546 {
16547 arg11 = wxString_in_helper(obj10);
16548 if (arg11 == NULL) SWIG_fail;
16549 temp11 = true;
16550 }
16551 }
16552 {
16553 PyThreadState* __tstate = wxPyBeginAllowThreads();
16554 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);
16555 wxPyEndAllowThreads(__tstate);
16556 if (PyErr_Occurred()) SWIG_fail;
16557 }
16558 {
16559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16560 }
16561 {
16562 if (temp4)
16563 delete arg4;
16564 }
16565 {
16566 if (temp7) delete arg7;
16567 }
16568 {
16569 if (temp11)
16570 delete arg11;
16571 }
16572 return resultobj;
16573 fail:
16574 {
16575 if (temp4)
16576 delete arg4;
16577 }
16578 {
16579 if (temp7) delete arg7;
16580 }
16581 {
16582 if (temp11)
16583 delete arg11;
16584 }
16585 return NULL;
16586 }
16587
16588
16589 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj = 0;
16591 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16592 int arg2 ;
16593 void *argp1 = 0 ;
16594 int res1 = 0 ;
16595 int val2 ;
16596 int ecode2 = 0 ;
16597 PyObject * obj0 = 0 ;
16598 PyObject * obj1 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "self",(char *) "n", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16605 if (!SWIG_IsOK(res1)) {
16606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16607 }
16608 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16609 ecode2 = SWIG_AsVal_int(obj1, &val2);
16610 if (!SWIG_IsOK(ecode2)) {
16611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16612 }
16613 arg2 = static_cast< int >(val2);
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 (arg1)->SetSelection(arg2);
16617 wxPyEndAllowThreads(__tstate);
16618 if (PyErr_Occurred()) SWIG_fail;
16619 }
16620 resultobj = SWIG_Py_Void();
16621 return resultobj;
16622 fail:
16623 return NULL;
16624 }
16625
16626
16627 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16628 PyObject *resultobj = 0;
16629 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16630 int result;
16631 void *argp1 = 0 ;
16632 int res1 = 0 ;
16633 PyObject *swig_obj[1] ;
16634
16635 if (!args) SWIG_fail;
16636 swig_obj[0] = args;
16637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16638 if (!SWIG_IsOK(res1)) {
16639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16640 }
16641 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16642 {
16643 PyThreadState* __tstate = wxPyBeginAllowThreads();
16644 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16645 wxPyEndAllowThreads(__tstate);
16646 if (PyErr_Occurred()) SWIG_fail;
16647 }
16648 resultobj = SWIG_From_int(static_cast< int >(result));
16649 return resultobj;
16650 fail:
16651 return NULL;
16652 }
16653
16654
16655 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16656 PyObject *resultobj = 0;
16657 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16658 wxString result;
16659 void *argp1 = 0 ;
16660 int res1 = 0 ;
16661 PyObject *swig_obj[1] ;
16662
16663 if (!args) SWIG_fail;
16664 swig_obj[0] = args;
16665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16666 if (!SWIG_IsOK(res1)) {
16667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16668 }
16669 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 {
16677 #if wxUSE_UNICODE
16678 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16679 #else
16680 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16681 #endif
16682 }
16683 return resultobj;
16684 fail:
16685 return NULL;
16686 }
16687
16688
16689 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16690 PyObject *resultobj = 0;
16691 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16692 wxString *arg2 = 0 ;
16693 bool result;
16694 void *argp1 = 0 ;
16695 int res1 = 0 ;
16696 bool temp2 = false ;
16697 PyObject * obj0 = 0 ;
16698 PyObject * obj1 = 0 ;
16699 char * kwnames[] = {
16700 (char *) "self",(char *) "s", NULL
16701 };
16702
16703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16705 if (!SWIG_IsOK(res1)) {
16706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16707 }
16708 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16709 {
16710 arg2 = wxString_in_helper(obj1);
16711 if (arg2 == NULL) SWIG_fail;
16712 temp2 = true;
16713 }
16714 {
16715 PyThreadState* __tstate = wxPyBeginAllowThreads();
16716 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16717 wxPyEndAllowThreads(__tstate);
16718 if (PyErr_Occurred()) SWIG_fail;
16719 }
16720 {
16721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16722 }
16723 {
16724 if (temp2)
16725 delete arg2;
16726 }
16727 return resultobj;
16728 fail:
16729 {
16730 if (temp2)
16731 delete arg2;
16732 }
16733 return NULL;
16734 }
16735
16736
16737 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16738 PyObject *resultobj = 0;
16739 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16740 size_t result;
16741 void *argp1 = 0 ;
16742 int res1 = 0 ;
16743 PyObject *swig_obj[1] ;
16744
16745 if (!args) SWIG_fail;
16746 swig_obj[0] = args;
16747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16748 if (!SWIG_IsOK(res1)) {
16749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16750 }
16751 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16752 {
16753 PyThreadState* __tstate = wxPyBeginAllowThreads();
16754 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16759 return resultobj;
16760 fail:
16761 return NULL;
16762 }
16763
16764
16765 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16766 PyObject *resultobj = 0;
16767 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16768 wxString *arg2 = 0 ;
16769 int result;
16770 void *argp1 = 0 ;
16771 int res1 = 0 ;
16772 bool temp2 = false ;
16773 PyObject * obj0 = 0 ;
16774 PyObject * obj1 = 0 ;
16775 char * kwnames[] = {
16776 (char *) "self",(char *) "s", NULL
16777 };
16778
16779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",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_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16783 }
16784 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16785 {
16786 arg2 = wxString_in_helper(obj1);
16787 if (arg2 == NULL) SWIG_fail;
16788 temp2 = true;
16789 }
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16793 wxPyEndAllowThreads(__tstate);
16794 if (PyErr_Occurred()) SWIG_fail;
16795 }
16796 resultobj = SWIG_From_int(static_cast< int >(result));
16797 {
16798 if (temp2)
16799 delete arg2;
16800 }
16801 return resultobj;
16802 fail:
16803 {
16804 if (temp2)
16805 delete arg2;
16806 }
16807 return NULL;
16808 }
16809
16810
16811 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16812 PyObject *resultobj = 0;
16813 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16814 int arg2 ;
16815 wxString result;
16816 void *argp1 = 0 ;
16817 int res1 = 0 ;
16818 int val2 ;
16819 int ecode2 = 0 ;
16820 PyObject * obj0 = 0 ;
16821 PyObject * obj1 = 0 ;
16822 char * kwnames[] = {
16823 (char *) "self",(char *) "n", NULL
16824 };
16825
16826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) 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_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
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_GetString" "', expected argument " "2"" of type '" "int""'");
16835 }
16836 arg2 = static_cast< int >(val2);
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 {
16844 #if wxUSE_UNICODE
16845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16846 #else
16847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16848 #endif
16849 }
16850 return resultobj;
16851 fail:
16852 return NULL;
16853 }
16854
16855
16856 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16857 PyObject *resultobj = 0;
16858 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16859 int arg2 ;
16860 wxString *arg3 = 0 ;
16861 void *argp1 = 0 ;
16862 int res1 = 0 ;
16863 int val2 ;
16864 int ecode2 = 0 ;
16865 bool temp3 = false ;
16866 PyObject * obj0 = 0 ;
16867 PyObject * obj1 = 0 ;
16868 PyObject * obj2 = 0 ;
16869 char * kwnames[] = {
16870 (char *) "self",(char *) "n",(char *) "label", NULL
16871 };
16872
16873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16877 }
16878 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16879 ecode2 = SWIG_AsVal_int(obj1, &val2);
16880 if (!SWIG_IsOK(ecode2)) {
16881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16882 }
16883 arg2 = static_cast< int >(val2);
16884 {
16885 arg3 = wxString_in_helper(obj2);
16886 if (arg3 == NULL) SWIG_fail;
16887 temp3 = true;
16888 }
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
16891 (arg1)->SetString(arg2,(wxString const &)*arg3);
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 resultobj = SWIG_Py_Void();
16896 {
16897 if (temp3)
16898 delete arg3;
16899 }
16900 return resultobj;
16901 fail:
16902 {
16903 if (temp3)
16904 delete arg3;
16905 }
16906 return NULL;
16907 }
16908
16909
16910 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16913 unsigned int arg2 ;
16914 bool arg3 = (bool) true ;
16915 void *argp1 = 0 ;
16916 int res1 = 0 ;
16917 unsigned int val2 ;
16918 int ecode2 = 0 ;
16919 bool val3 ;
16920 int ecode3 = 0 ;
16921 PyObject * obj0 = 0 ;
16922 PyObject * obj1 = 0 ;
16923 PyObject * obj2 = 0 ;
16924 char * kwnames[] = {
16925 (char *) "self",(char *) "n",(char *) "enable", NULL
16926 };
16927
16928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16930 if (!SWIG_IsOK(res1)) {
16931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16932 }
16933 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16934 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16935 if (!SWIG_IsOK(ecode2)) {
16936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16937 }
16938 arg2 = static_cast< unsigned int >(val2);
16939 if (obj2) {
16940 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16941 if (!SWIG_IsOK(ecode3)) {
16942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16943 }
16944 arg3 = static_cast< bool >(val3);
16945 }
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 (arg1)->Enable(arg2,arg3);
16949 wxPyEndAllowThreads(__tstate);
16950 if (PyErr_Occurred()) SWIG_fail;
16951 }
16952 resultobj = SWIG_Py_Void();
16953 return resultobj;
16954 fail:
16955 return NULL;
16956 }
16957
16958
16959 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16960 PyObject *resultobj = 0;
16961 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16962 unsigned int arg2 ;
16963 bool arg3 = (bool) true ;
16964 void *argp1 = 0 ;
16965 int res1 = 0 ;
16966 unsigned int val2 ;
16967 int ecode2 = 0 ;
16968 bool val3 ;
16969 int ecode3 = 0 ;
16970 PyObject * obj0 = 0 ;
16971 PyObject * obj1 = 0 ;
16972 PyObject * obj2 = 0 ;
16973 char * kwnames[] = {
16974 (char *) "self",(char *) "n",(char *) "show", NULL
16975 };
16976
16977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16979 if (!SWIG_IsOK(res1)) {
16980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16981 }
16982 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16983 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16984 if (!SWIG_IsOK(ecode2)) {
16985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16986 }
16987 arg2 = static_cast< unsigned int >(val2);
16988 if (obj2) {
16989 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16990 if (!SWIG_IsOK(ecode3)) {
16991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16992 }
16993 arg3 = static_cast< bool >(val3);
16994 }
16995 {
16996 PyThreadState* __tstate = wxPyBeginAllowThreads();
16997 (arg1)->Show(arg2,arg3);
16998 wxPyEndAllowThreads(__tstate);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 resultobj = SWIG_Py_Void();
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj = 0;
17010 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17011 unsigned int arg2 ;
17012 bool result;
17013 void *argp1 = 0 ;
17014 int res1 = 0 ;
17015 unsigned int val2 ;
17016 int ecode2 = 0 ;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 char * kwnames[] = {
17020 (char *) "self",(char *) "n", NULL
17021 };
17022
17023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
17024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17025 if (!SWIG_IsOK(res1)) {
17026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17027 }
17028 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17029 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17030 if (!SWIG_IsOK(ecode2)) {
17031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
17032 }
17033 arg2 = static_cast< unsigned int >(val2);
17034 {
17035 PyThreadState* __tstate = wxPyBeginAllowThreads();
17036 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
17037 wxPyEndAllowThreads(__tstate);
17038 if (PyErr_Occurred()) SWIG_fail;
17039 }
17040 {
17041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17042 }
17043 return resultobj;
17044 fail:
17045 return NULL;
17046 }
17047
17048
17049 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17050 PyObject *resultobj = 0;
17051 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17052 unsigned int arg2 ;
17053 bool result;
17054 void *argp1 = 0 ;
17055 int res1 = 0 ;
17056 unsigned int val2 ;
17057 int ecode2 = 0 ;
17058 PyObject * obj0 = 0 ;
17059 PyObject * obj1 = 0 ;
17060 char * kwnames[] = {
17061 (char *) "self",(char *) "n", NULL
17062 };
17063
17064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
17065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17066 if (!SWIG_IsOK(res1)) {
17067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17068 }
17069 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17070 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17071 if (!SWIG_IsOK(ecode2)) {
17072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17073 }
17074 arg2 = static_cast< unsigned int >(val2);
17075 {
17076 PyThreadState* __tstate = wxPyBeginAllowThreads();
17077 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17078 wxPyEndAllowThreads(__tstate);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 {
17082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17083 }
17084 return resultobj;
17085 fail:
17086 return NULL;
17087 }
17088
17089
17090 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17091 PyObject *resultobj = 0;
17092 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17093 unsigned int result;
17094 void *argp1 = 0 ;
17095 int res1 = 0 ;
17096 PyObject *swig_obj[1] ;
17097
17098 if (!args) SWIG_fail;
17099 swig_obj[0] = args;
17100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17101 if (!SWIG_IsOK(res1)) {
17102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17103 }
17104 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17112 return resultobj;
17113 fail:
17114 return NULL;
17115 }
17116
17117
17118 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17119 PyObject *resultobj = 0;
17120 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17121 unsigned int result;
17122 void *argp1 = 0 ;
17123 int res1 = 0 ;
17124 PyObject *swig_obj[1] ;
17125
17126 if (!args) SWIG_fail;
17127 swig_obj[0] = args;
17128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17129 if (!SWIG_IsOK(res1)) {
17130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17131 }
17132 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17133 {
17134 PyThreadState* __tstate = wxPyBeginAllowThreads();
17135 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17140 return resultobj;
17141 fail:
17142 return NULL;
17143 }
17144
17145
17146 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17147 PyObject *resultobj = 0;
17148 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17149 int arg2 ;
17150 wxDirection arg3 ;
17151 long arg4 ;
17152 int result;
17153 void *argp1 = 0 ;
17154 int res1 = 0 ;
17155 int val2 ;
17156 int ecode2 = 0 ;
17157 int val3 ;
17158 int ecode3 = 0 ;
17159 long val4 ;
17160 int ecode4 = 0 ;
17161 PyObject * obj0 = 0 ;
17162 PyObject * obj1 = 0 ;
17163 PyObject * obj2 = 0 ;
17164 PyObject * obj3 = 0 ;
17165 char * kwnames[] = {
17166 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17167 };
17168
17169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17171 if (!SWIG_IsOK(res1)) {
17172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17173 }
17174 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17175 ecode2 = SWIG_AsVal_int(obj1, &val2);
17176 if (!SWIG_IsOK(ecode2)) {
17177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17178 }
17179 arg2 = static_cast< int >(val2);
17180 ecode3 = SWIG_AsVal_int(obj2, &val3);
17181 if (!SWIG_IsOK(ecode3)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17183 }
17184 arg3 = static_cast< wxDirection >(val3);
17185 ecode4 = SWIG_AsVal_long(obj3, &val4);
17186 if (!SWIG_IsOK(ecode4)) {
17187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17188 }
17189 arg4 = static_cast< long >(val4);
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 resultobj = SWIG_From_int(static_cast< int >(result));
17197 return resultobj;
17198 fail:
17199 return NULL;
17200 }
17201
17202
17203 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj = 0;
17205 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17206 unsigned int arg2 ;
17207 wxString *arg3 = 0 ;
17208 void *argp1 = 0 ;
17209 int res1 = 0 ;
17210 unsigned int val2 ;
17211 int ecode2 = 0 ;
17212 bool temp3 = false ;
17213 PyObject * obj0 = 0 ;
17214 PyObject * obj1 = 0 ;
17215 PyObject * obj2 = 0 ;
17216 char * kwnames[] = {
17217 (char *) "self",(char *) "item",(char *) "text", NULL
17218 };
17219
17220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17222 if (!SWIG_IsOK(res1)) {
17223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17224 }
17225 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17226 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17227 if (!SWIG_IsOK(ecode2)) {
17228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17229 }
17230 arg2 = static_cast< unsigned int >(val2);
17231 {
17232 arg3 = wxString_in_helper(obj2);
17233 if (arg3 == NULL) SWIG_fail;
17234 temp3 = true;
17235 }
17236 {
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17239 wxPyEndAllowThreads(__tstate);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 }
17242 resultobj = SWIG_Py_Void();
17243 {
17244 if (temp3)
17245 delete arg3;
17246 }
17247 return resultobj;
17248 fail:
17249 {
17250 if (temp3)
17251 delete arg3;
17252 }
17253 return NULL;
17254 }
17255
17256
17257 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj = 0;
17259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17260 unsigned int arg2 ;
17261 wxToolTip *result = 0 ;
17262 void *argp1 = 0 ;
17263 int res1 = 0 ;
17264 unsigned int val2 ;
17265 int ecode2 = 0 ;
17266 PyObject * obj0 = 0 ;
17267 PyObject * obj1 = 0 ;
17268 char * kwnames[] = {
17269 (char *) "self",(char *) "item", NULL
17270 };
17271
17272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17274 if (!SWIG_IsOK(res1)) {
17275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17276 }
17277 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17278 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17279 if (!SWIG_IsOK(ecode2)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17281 }
17282 arg2 = static_cast< unsigned int >(val2);
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17286 wxPyEndAllowThreads(__tstate);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 {
17290 resultobj = wxPyMake_wxObject(result, (bool)0);
17291 }
17292 return resultobj;
17293 fail:
17294 return NULL;
17295 }
17296
17297
17298 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj = 0;
17300 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17301 unsigned int arg2 ;
17302 wxString *arg3 = 0 ;
17303 void *argp1 = 0 ;
17304 int res1 = 0 ;
17305 unsigned int val2 ;
17306 int ecode2 = 0 ;
17307 bool temp3 = false ;
17308 PyObject * obj0 = 0 ;
17309 PyObject * obj1 = 0 ;
17310 PyObject * obj2 = 0 ;
17311 char * kwnames[] = {
17312 (char *) "self",(char *) "n",(char *) "helpText", NULL
17313 };
17314
17315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17317 if (!SWIG_IsOK(res1)) {
17318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17319 }
17320 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17321 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17322 if (!SWIG_IsOK(ecode2)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17324 }
17325 arg2 = static_cast< unsigned int >(val2);
17326 {
17327 arg3 = wxString_in_helper(obj2);
17328 if (arg3 == NULL) SWIG_fail;
17329 temp3 = true;
17330 }
17331 {
17332 PyThreadState* __tstate = wxPyBeginAllowThreads();
17333 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17334 wxPyEndAllowThreads(__tstate);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 resultobj = SWIG_Py_Void();
17338 {
17339 if (temp3)
17340 delete arg3;
17341 }
17342 return resultobj;
17343 fail:
17344 {
17345 if (temp3)
17346 delete arg3;
17347 }
17348 return NULL;
17349 }
17350
17351
17352 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17353 PyObject *resultobj = 0;
17354 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17355 unsigned int arg2 ;
17356 wxString result;
17357 void *argp1 = 0 ;
17358 int res1 = 0 ;
17359 unsigned int val2 ;
17360 int ecode2 = 0 ;
17361 PyObject * obj0 = 0 ;
17362 PyObject * obj1 = 0 ;
17363 char * kwnames[] = {
17364 (char *) "self",(char *) "n", NULL
17365 };
17366
17367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17369 if (!SWIG_IsOK(res1)) {
17370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17371 }
17372 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17373 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17374 if (!SWIG_IsOK(ecode2)) {
17375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17376 }
17377 arg2 = static_cast< unsigned int >(val2);
17378 {
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
17380 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 {
17385 #if wxUSE_UNICODE
17386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17387 #else
17388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17389 #endif
17390 }
17391 return resultobj;
17392 fail:
17393 return NULL;
17394 }
17395
17396
17397 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17398 PyObject *resultobj = 0;
17399 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17400 SwigValueWrapper<wxVisualAttributes > result;
17401 int val1 ;
17402 int ecode1 = 0 ;
17403 PyObject * obj0 = 0 ;
17404 char * kwnames[] = {
17405 (char *) "variant", NULL
17406 };
17407
17408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17409 if (obj0) {
17410 ecode1 = SWIG_AsVal_int(obj0, &val1);
17411 if (!SWIG_IsOK(ecode1)) {
17412 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17413 }
17414 arg1 = static_cast< wxWindowVariant >(val1);
17415 }
17416 {
17417 if (!wxPyCheckForApp()) SWIG_fail;
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17424 return resultobj;
17425 fail:
17426 return NULL;
17427 }
17428
17429
17430 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17431 PyObject *obj;
17432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17433 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17434 return SWIG_Py_Void();
17435 }
17436
17437 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17438 return SWIG_Python_InitShadowInstance(args);
17439 }
17440
17441 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17442 PyObject *resultobj = 0;
17443 wxWindow *arg1 = (wxWindow *) 0 ;
17444 int arg2 = (int) -1 ;
17445 wxString const &arg3_defvalue = wxPyEmptyString ;
17446 wxString *arg3 = (wxString *) &arg3_defvalue ;
17447 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17448 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17449 wxSize const &arg5_defvalue = wxDefaultSize ;
17450 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17451 long arg6 = (long) 0 ;
17452 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17453 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17454 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17455 wxString *arg8 = (wxString *) &arg8_defvalue ;
17456 wxRadioButton *result = 0 ;
17457 void *argp1 = 0 ;
17458 int res1 = 0 ;
17459 int val2 ;
17460 int ecode2 = 0 ;
17461 bool temp3 = false ;
17462 wxPoint temp4 ;
17463 wxSize temp5 ;
17464 long val6 ;
17465 int ecode6 = 0 ;
17466 void *argp7 = 0 ;
17467 int res7 = 0 ;
17468 bool temp8 = false ;
17469 PyObject * obj0 = 0 ;
17470 PyObject * obj1 = 0 ;
17471 PyObject * obj2 = 0 ;
17472 PyObject * obj3 = 0 ;
17473 PyObject * obj4 = 0 ;
17474 PyObject * obj5 = 0 ;
17475 PyObject * obj6 = 0 ;
17476 PyObject * obj7 = 0 ;
17477 char * kwnames[] = {
17478 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17479 };
17480
17481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17483 if (!SWIG_IsOK(res1)) {
17484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17485 }
17486 arg1 = reinterpret_cast< wxWindow * >(argp1);
17487 if (obj1) {
17488 ecode2 = SWIG_AsVal_int(obj1, &val2);
17489 if (!SWIG_IsOK(ecode2)) {
17490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17491 }
17492 arg2 = static_cast< int >(val2);
17493 }
17494 if (obj2) {
17495 {
17496 arg3 = wxString_in_helper(obj2);
17497 if (arg3 == NULL) SWIG_fail;
17498 temp3 = true;
17499 }
17500 }
17501 if (obj3) {
17502 {
17503 arg4 = &temp4;
17504 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17505 }
17506 }
17507 if (obj4) {
17508 {
17509 arg5 = &temp5;
17510 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17511 }
17512 }
17513 if (obj5) {
17514 ecode6 = SWIG_AsVal_long(obj5, &val6);
17515 if (!SWIG_IsOK(ecode6)) {
17516 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17517 }
17518 arg6 = static_cast< long >(val6);
17519 }
17520 if (obj6) {
17521 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17522 if (!SWIG_IsOK(res7)) {
17523 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17524 }
17525 if (!argp7) {
17526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17527 }
17528 arg7 = reinterpret_cast< wxValidator * >(argp7);
17529 }
17530 if (obj7) {
17531 {
17532 arg8 = wxString_in_helper(obj7);
17533 if (arg8 == NULL) SWIG_fail;
17534 temp8 = true;
17535 }
17536 }
17537 {
17538 if (!wxPyCheckForApp()) SWIG_fail;
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17541 wxPyEndAllowThreads(__tstate);
17542 if (PyErr_Occurred()) SWIG_fail;
17543 }
17544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17545 {
17546 if (temp3)
17547 delete arg3;
17548 }
17549 {
17550 if (temp8)
17551 delete arg8;
17552 }
17553 return resultobj;
17554 fail:
17555 {
17556 if (temp3)
17557 delete arg3;
17558 }
17559 {
17560 if (temp8)
17561 delete arg8;
17562 }
17563 return NULL;
17564 }
17565
17566
17567 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17568 PyObject *resultobj = 0;
17569 wxRadioButton *result = 0 ;
17570
17571 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17572 {
17573 if (!wxPyCheckForApp()) SWIG_fail;
17574 PyThreadState* __tstate = wxPyBeginAllowThreads();
17575 result = (wxRadioButton *)new wxRadioButton();
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17580 return resultobj;
17581 fail:
17582 return NULL;
17583 }
17584
17585
17586 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17587 PyObject *resultobj = 0;
17588 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17589 wxWindow *arg2 = (wxWindow *) 0 ;
17590 int arg3 = (int) -1 ;
17591 wxString const &arg4_defvalue = wxPyEmptyString ;
17592 wxString *arg4 = (wxString *) &arg4_defvalue ;
17593 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17594 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17595 wxSize const &arg6_defvalue = wxDefaultSize ;
17596 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17597 long arg7 = (long) 0 ;
17598 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17599 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17600 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17601 wxString *arg9 = (wxString *) &arg9_defvalue ;
17602 bool result;
17603 void *argp1 = 0 ;
17604 int res1 = 0 ;
17605 void *argp2 = 0 ;
17606 int res2 = 0 ;
17607 int val3 ;
17608 int ecode3 = 0 ;
17609 bool temp4 = false ;
17610 wxPoint temp5 ;
17611 wxSize temp6 ;
17612 long val7 ;
17613 int ecode7 = 0 ;
17614 void *argp8 = 0 ;
17615 int res8 = 0 ;
17616 bool temp9 = false ;
17617 PyObject * obj0 = 0 ;
17618 PyObject * obj1 = 0 ;
17619 PyObject * obj2 = 0 ;
17620 PyObject * obj3 = 0 ;
17621 PyObject * obj4 = 0 ;
17622 PyObject * obj5 = 0 ;
17623 PyObject * obj6 = 0 ;
17624 PyObject * obj7 = 0 ;
17625 PyObject * obj8 = 0 ;
17626 char * kwnames[] = {
17627 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17628 };
17629
17630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17632 if (!SWIG_IsOK(res1)) {
17633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17634 }
17635 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17637 if (!SWIG_IsOK(res2)) {
17638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17639 }
17640 arg2 = reinterpret_cast< wxWindow * >(argp2);
17641 if (obj2) {
17642 ecode3 = SWIG_AsVal_int(obj2, &val3);
17643 if (!SWIG_IsOK(ecode3)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17645 }
17646 arg3 = static_cast< int >(val3);
17647 }
17648 if (obj3) {
17649 {
17650 arg4 = wxString_in_helper(obj3);
17651 if (arg4 == NULL) SWIG_fail;
17652 temp4 = true;
17653 }
17654 }
17655 if (obj4) {
17656 {
17657 arg5 = &temp5;
17658 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17659 }
17660 }
17661 if (obj5) {
17662 {
17663 arg6 = &temp6;
17664 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17665 }
17666 }
17667 if (obj6) {
17668 ecode7 = SWIG_AsVal_long(obj6, &val7);
17669 if (!SWIG_IsOK(ecode7)) {
17670 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17671 }
17672 arg7 = static_cast< long >(val7);
17673 }
17674 if (obj7) {
17675 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17676 if (!SWIG_IsOK(res8)) {
17677 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17678 }
17679 if (!argp8) {
17680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17681 }
17682 arg8 = reinterpret_cast< wxValidator * >(argp8);
17683 }
17684 if (obj8) {
17685 {
17686 arg9 = wxString_in_helper(obj8);
17687 if (arg9 == NULL) SWIG_fail;
17688 temp9 = true;
17689 }
17690 }
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 {
17698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17699 }
17700 {
17701 if (temp4)
17702 delete arg4;
17703 }
17704 {
17705 if (temp9)
17706 delete arg9;
17707 }
17708 return resultobj;
17709 fail:
17710 {
17711 if (temp4)
17712 delete arg4;
17713 }
17714 {
17715 if (temp9)
17716 delete arg9;
17717 }
17718 return NULL;
17719 }
17720
17721
17722 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17723 PyObject *resultobj = 0;
17724 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17725 bool result;
17726 void *argp1 = 0 ;
17727 int res1 = 0 ;
17728 PyObject *swig_obj[1] ;
17729
17730 if (!args) SWIG_fail;
17731 swig_obj[0] = args;
17732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17733 if (!SWIG_IsOK(res1)) {
17734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17735 }
17736 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = (bool)(arg1)->GetValue();
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 {
17744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17745 }
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj = 0;
17754 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17755 bool arg2 ;
17756 void *argp1 = 0 ;
17757 int res1 = 0 ;
17758 bool val2 ;
17759 int ecode2 = 0 ;
17760 PyObject * obj0 = 0 ;
17761 PyObject * obj1 = 0 ;
17762 char * kwnames[] = {
17763 (char *) "self",(char *) "value", NULL
17764 };
17765
17766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17768 if (!SWIG_IsOK(res1)) {
17769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17770 }
17771 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17772 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17773 if (!SWIG_IsOK(ecode2)) {
17774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17775 }
17776 arg2 = static_cast< bool >(val2);
17777 {
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 (arg1)->SetValue(arg2);
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_Py_Void();
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj = 0;
17792 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17793 SwigValueWrapper<wxVisualAttributes > result;
17794 int val1 ;
17795 int ecode1 = 0 ;
17796 PyObject * obj0 = 0 ;
17797 char * kwnames[] = {
17798 (char *) "variant", NULL
17799 };
17800
17801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17802 if (obj0) {
17803 ecode1 = SWIG_AsVal_int(obj0, &val1);
17804 if (!SWIG_IsOK(ecode1)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17806 }
17807 arg1 = static_cast< wxWindowVariant >(val1);
17808 }
17809 {
17810 if (!wxPyCheckForApp()) SWIG_fail;
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17817 return resultobj;
17818 fail:
17819 return NULL;
17820 }
17821
17822
17823 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17824 PyObject *obj;
17825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17826 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17827 return SWIG_Py_Void();
17828 }
17829
17830 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17831 return SWIG_Python_InitShadowInstance(args);
17832 }
17833
17834 SWIGINTERN int SliderNameStr_set(PyObject *) {
17835 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17836 return 1;
17837 }
17838
17839
17840 SWIGINTERN PyObject *SliderNameStr_get(void) {
17841 PyObject *pyobj = 0;
17842
17843 {
17844 #if wxUSE_UNICODE
17845 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17846 #else
17847 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17848 #endif
17849 }
17850 return pyobj;
17851 }
17852
17853
17854 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17855 PyObject *resultobj = 0;
17856 wxWindow *arg1 = (wxWindow *) 0 ;
17857 int arg2 = (int) -1 ;
17858 int arg3 = (int) 0 ;
17859 int arg4 = (int) 0 ;
17860 int arg5 = (int) 100 ;
17861 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17862 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17863 wxSize const &arg7_defvalue = wxDefaultSize ;
17864 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17865 long arg8 = (long) wxSL_HORIZONTAL ;
17866 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17867 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17868 wxString const &arg10_defvalue = wxPySliderNameStr ;
17869 wxString *arg10 = (wxString *) &arg10_defvalue ;
17870 wxSlider *result = 0 ;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 int val2 ;
17874 int ecode2 = 0 ;
17875 int val3 ;
17876 int ecode3 = 0 ;
17877 int val4 ;
17878 int ecode4 = 0 ;
17879 int val5 ;
17880 int ecode5 = 0 ;
17881 wxPoint temp6 ;
17882 wxSize temp7 ;
17883 long val8 ;
17884 int ecode8 = 0 ;
17885 void *argp9 = 0 ;
17886 int res9 = 0 ;
17887 bool temp10 = false ;
17888 PyObject * obj0 = 0 ;
17889 PyObject * obj1 = 0 ;
17890 PyObject * obj2 = 0 ;
17891 PyObject * obj3 = 0 ;
17892 PyObject * obj4 = 0 ;
17893 PyObject * obj5 = 0 ;
17894 PyObject * obj6 = 0 ;
17895 PyObject * obj7 = 0 ;
17896 PyObject * obj8 = 0 ;
17897 PyObject * obj9 = 0 ;
17898 char * kwnames[] = {
17899 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17900 };
17901
17902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17904 if (!SWIG_IsOK(res1)) {
17905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17906 }
17907 arg1 = reinterpret_cast< wxWindow * >(argp1);
17908 if (obj1) {
17909 ecode2 = SWIG_AsVal_int(obj1, &val2);
17910 if (!SWIG_IsOK(ecode2)) {
17911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17912 }
17913 arg2 = static_cast< int >(val2);
17914 }
17915 if (obj2) {
17916 ecode3 = SWIG_AsVal_int(obj2, &val3);
17917 if (!SWIG_IsOK(ecode3)) {
17918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17919 }
17920 arg3 = static_cast< int >(val3);
17921 }
17922 if (obj3) {
17923 ecode4 = SWIG_AsVal_int(obj3, &val4);
17924 if (!SWIG_IsOK(ecode4)) {
17925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17926 }
17927 arg4 = static_cast< int >(val4);
17928 }
17929 if (obj4) {
17930 ecode5 = SWIG_AsVal_int(obj4, &val5);
17931 if (!SWIG_IsOK(ecode5)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17933 }
17934 arg5 = static_cast< int >(val5);
17935 }
17936 if (obj5) {
17937 {
17938 arg6 = &temp6;
17939 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17940 }
17941 }
17942 if (obj6) {
17943 {
17944 arg7 = &temp7;
17945 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17946 }
17947 }
17948 if (obj7) {
17949 ecode8 = SWIG_AsVal_long(obj7, &val8);
17950 if (!SWIG_IsOK(ecode8)) {
17951 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17952 }
17953 arg8 = static_cast< long >(val8);
17954 }
17955 if (obj8) {
17956 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17957 if (!SWIG_IsOK(res9)) {
17958 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17959 }
17960 if (!argp9) {
17961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17962 }
17963 arg9 = reinterpret_cast< wxValidator * >(argp9);
17964 }
17965 if (obj9) {
17966 {
17967 arg10 = wxString_in_helper(obj9);
17968 if (arg10 == NULL) SWIG_fail;
17969 temp10 = true;
17970 }
17971 }
17972 {
17973 if (!wxPyCheckForApp()) SWIG_fail;
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17980 {
17981 if (temp10)
17982 delete arg10;
17983 }
17984 return resultobj;
17985 fail:
17986 {
17987 if (temp10)
17988 delete arg10;
17989 }
17990 return NULL;
17991 }
17992
17993
17994 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17995 PyObject *resultobj = 0;
17996 wxSlider *result = 0 ;
17997
17998 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17999 {
18000 if (!wxPyCheckForApp()) SWIG_fail;
18001 PyThreadState* __tstate = wxPyBeginAllowThreads();
18002 result = (wxSlider *)new wxSlider();
18003 wxPyEndAllowThreads(__tstate);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
18007 return resultobj;
18008 fail:
18009 return NULL;
18010 }
18011
18012
18013 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18014 PyObject *resultobj = 0;
18015 wxSlider *arg1 = (wxSlider *) 0 ;
18016 wxWindow *arg2 = (wxWindow *) 0 ;
18017 int arg3 = (int) -1 ;
18018 int arg4 = (int) 0 ;
18019 int arg5 = (int) 0 ;
18020 int arg6 = (int) 100 ;
18021 wxPoint const &arg7_defvalue = wxDefaultPosition ;
18022 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
18023 wxSize const &arg8_defvalue = wxDefaultSize ;
18024 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
18025 long arg9 = (long) wxSL_HORIZONTAL ;
18026 wxValidator const &arg10_defvalue = wxDefaultValidator ;
18027 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
18028 wxString const &arg11_defvalue = wxPySliderNameStr ;
18029 wxString *arg11 = (wxString *) &arg11_defvalue ;
18030 bool result;
18031 void *argp1 = 0 ;
18032 int res1 = 0 ;
18033 void *argp2 = 0 ;
18034 int res2 = 0 ;
18035 int val3 ;
18036 int ecode3 = 0 ;
18037 int val4 ;
18038 int ecode4 = 0 ;
18039 int val5 ;
18040 int ecode5 = 0 ;
18041 int val6 ;
18042 int ecode6 = 0 ;
18043 wxPoint temp7 ;
18044 wxSize temp8 ;
18045 long val9 ;
18046 int ecode9 = 0 ;
18047 void *argp10 = 0 ;
18048 int res10 = 0 ;
18049 bool temp11 = false ;
18050 PyObject * obj0 = 0 ;
18051 PyObject * obj1 = 0 ;
18052 PyObject * obj2 = 0 ;
18053 PyObject * obj3 = 0 ;
18054 PyObject * obj4 = 0 ;
18055 PyObject * obj5 = 0 ;
18056 PyObject * obj6 = 0 ;
18057 PyObject * obj7 = 0 ;
18058 PyObject * obj8 = 0 ;
18059 PyObject * obj9 = 0 ;
18060 PyObject * obj10 = 0 ;
18061 char * kwnames[] = {
18062 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18063 };
18064
18065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
18066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18067 if (!SWIG_IsOK(res1)) {
18068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
18069 }
18070 arg1 = reinterpret_cast< wxSlider * >(argp1);
18071 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18072 if (!SWIG_IsOK(res2)) {
18073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18074 }
18075 arg2 = reinterpret_cast< wxWindow * >(argp2);
18076 if (obj2) {
18077 ecode3 = SWIG_AsVal_int(obj2, &val3);
18078 if (!SWIG_IsOK(ecode3)) {
18079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18080 }
18081 arg3 = static_cast< int >(val3);
18082 }
18083 if (obj3) {
18084 ecode4 = SWIG_AsVal_int(obj3, &val4);
18085 if (!SWIG_IsOK(ecode4)) {
18086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18087 }
18088 arg4 = static_cast< int >(val4);
18089 }
18090 if (obj4) {
18091 ecode5 = SWIG_AsVal_int(obj4, &val5);
18092 if (!SWIG_IsOK(ecode5)) {
18093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18094 }
18095 arg5 = static_cast< int >(val5);
18096 }
18097 if (obj5) {
18098 ecode6 = SWIG_AsVal_int(obj5, &val6);
18099 if (!SWIG_IsOK(ecode6)) {
18100 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18101 }
18102 arg6 = static_cast< int >(val6);
18103 }
18104 if (obj6) {
18105 {
18106 arg7 = &temp7;
18107 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18108 }
18109 }
18110 if (obj7) {
18111 {
18112 arg8 = &temp8;
18113 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18114 }
18115 }
18116 if (obj8) {
18117 ecode9 = SWIG_AsVal_long(obj8, &val9);
18118 if (!SWIG_IsOK(ecode9)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18120 }
18121 arg9 = static_cast< long >(val9);
18122 }
18123 if (obj9) {
18124 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18125 if (!SWIG_IsOK(res10)) {
18126 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18127 }
18128 if (!argp10) {
18129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18130 }
18131 arg10 = reinterpret_cast< wxValidator * >(argp10);
18132 }
18133 if (obj10) {
18134 {
18135 arg11 = wxString_in_helper(obj10);
18136 if (arg11 == NULL) SWIG_fail;
18137 temp11 = true;
18138 }
18139 }
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18143 wxPyEndAllowThreads(__tstate);
18144 if (PyErr_Occurred()) SWIG_fail;
18145 }
18146 {
18147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18148 }
18149 {
18150 if (temp11)
18151 delete arg11;
18152 }
18153 return resultobj;
18154 fail:
18155 {
18156 if (temp11)
18157 delete arg11;
18158 }
18159 return NULL;
18160 }
18161
18162
18163 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18164 PyObject *resultobj = 0;
18165 wxSlider *arg1 = (wxSlider *) 0 ;
18166 int result;
18167 void *argp1 = 0 ;
18168 int res1 = 0 ;
18169 PyObject *swig_obj[1] ;
18170
18171 if (!args) SWIG_fail;
18172 swig_obj[0] = args;
18173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18174 if (!SWIG_IsOK(res1)) {
18175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18176 }
18177 arg1 = reinterpret_cast< wxSlider * >(argp1);
18178 {
18179 PyThreadState* __tstate = wxPyBeginAllowThreads();
18180 result = (int)((wxSlider const *)arg1)->GetValue();
18181 wxPyEndAllowThreads(__tstate);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 resultobj = SWIG_From_int(static_cast< int >(result));
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj = 0;
18193 wxSlider *arg1 = (wxSlider *) 0 ;
18194 int arg2 ;
18195 void *argp1 = 0 ;
18196 int res1 = 0 ;
18197 int val2 ;
18198 int ecode2 = 0 ;
18199 PyObject * obj0 = 0 ;
18200 PyObject * obj1 = 0 ;
18201 char * kwnames[] = {
18202 (char *) "self",(char *) "value", NULL
18203 };
18204
18205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18207 if (!SWIG_IsOK(res1)) {
18208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18209 }
18210 arg1 = reinterpret_cast< wxSlider * >(argp1);
18211 ecode2 = SWIG_AsVal_int(obj1, &val2);
18212 if (!SWIG_IsOK(ecode2)) {
18213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18214 }
18215 arg2 = static_cast< int >(val2);
18216 {
18217 PyThreadState* __tstate = wxPyBeginAllowThreads();
18218 (arg1)->SetValue(arg2);
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_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj = 0;
18231 wxSlider *arg1 = (wxSlider *) 0 ;
18232 int arg2 ;
18233 int arg3 ;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 int val2 ;
18237 int ecode2 = 0 ;
18238 int val3 ;
18239 int ecode3 = 0 ;
18240 PyObject * obj0 = 0 ;
18241 PyObject * obj1 = 0 ;
18242 PyObject * obj2 = 0 ;
18243 char * kwnames[] = {
18244 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18245 };
18246
18247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18249 if (!SWIG_IsOK(res1)) {
18250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18251 }
18252 arg1 = reinterpret_cast< wxSlider * >(argp1);
18253 ecode2 = SWIG_AsVal_int(obj1, &val2);
18254 if (!SWIG_IsOK(ecode2)) {
18255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18256 }
18257 arg2 = static_cast< int >(val2);
18258 ecode3 = SWIG_AsVal_int(obj2, &val3);
18259 if (!SWIG_IsOK(ecode3)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18261 }
18262 arg3 = static_cast< int >(val3);
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 (arg1)->SetRange(arg2,arg3);
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 resultobj = SWIG_Py_Void();
18270 return resultobj;
18271 fail:
18272 return NULL;
18273 }
18274
18275
18276 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18277 PyObject *resultobj = 0;
18278 wxSlider *arg1 = (wxSlider *) 0 ;
18279 int result;
18280 void *argp1 = 0 ;
18281 int res1 = 0 ;
18282 PyObject *swig_obj[1] ;
18283
18284 if (!args) SWIG_fail;
18285 swig_obj[0] = args;
18286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18287 if (!SWIG_IsOK(res1)) {
18288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18289 }
18290 arg1 = reinterpret_cast< wxSlider * >(argp1);
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 result = (int)((wxSlider const *)arg1)->GetMin();
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_From_int(static_cast< int >(result));
18298 return resultobj;
18299 fail:
18300 return NULL;
18301 }
18302
18303
18304 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18305 PyObject *resultobj = 0;
18306 wxSlider *arg1 = (wxSlider *) 0 ;
18307 int result;
18308 void *argp1 = 0 ;
18309 int res1 = 0 ;
18310 PyObject *swig_obj[1] ;
18311
18312 if (!args) SWIG_fail;
18313 swig_obj[0] = args;
18314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18315 if (!SWIG_IsOK(res1)) {
18316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18317 }
18318 arg1 = reinterpret_cast< wxSlider * >(argp1);
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 result = (int)((wxSlider const *)arg1)->GetMax();
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_From_int(static_cast< int >(result));
18326 return resultobj;
18327 fail:
18328 return NULL;
18329 }
18330
18331
18332 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj = 0;
18334 wxSlider *arg1 = (wxSlider *) 0 ;
18335 int arg2 ;
18336 void *argp1 = 0 ;
18337 int res1 = 0 ;
18338 int val2 ;
18339 int ecode2 = 0 ;
18340 PyObject * obj0 = 0 ;
18341 PyObject * obj1 = 0 ;
18342 char * kwnames[] = {
18343 (char *) "self",(char *) "minValue", NULL
18344 };
18345
18346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18348 if (!SWIG_IsOK(res1)) {
18349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18350 }
18351 arg1 = reinterpret_cast< wxSlider * >(argp1);
18352 ecode2 = SWIG_AsVal_int(obj1, &val2);
18353 if (!SWIG_IsOK(ecode2)) {
18354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18355 }
18356 arg2 = static_cast< int >(val2);
18357 {
18358 PyThreadState* __tstate = wxPyBeginAllowThreads();
18359 (arg1)->SetMin(arg2);
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 resultobj = SWIG_Py_Void();
18364 return resultobj;
18365 fail:
18366 return NULL;
18367 }
18368
18369
18370 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj = 0;
18372 wxSlider *arg1 = (wxSlider *) 0 ;
18373 int arg2 ;
18374 void *argp1 = 0 ;
18375 int res1 = 0 ;
18376 int val2 ;
18377 int ecode2 = 0 ;
18378 PyObject * obj0 = 0 ;
18379 PyObject * obj1 = 0 ;
18380 char * kwnames[] = {
18381 (char *) "self",(char *) "maxValue", NULL
18382 };
18383
18384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18386 if (!SWIG_IsOK(res1)) {
18387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18388 }
18389 arg1 = reinterpret_cast< wxSlider * >(argp1);
18390 ecode2 = SWIG_AsVal_int(obj1, &val2);
18391 if (!SWIG_IsOK(ecode2)) {
18392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18393 }
18394 arg2 = static_cast< int >(val2);
18395 {
18396 PyThreadState* __tstate = wxPyBeginAllowThreads();
18397 (arg1)->SetMax(arg2);
18398 wxPyEndAllowThreads(__tstate);
18399 if (PyErr_Occurred()) SWIG_fail;
18400 }
18401 resultobj = SWIG_Py_Void();
18402 return resultobj;
18403 fail:
18404 return NULL;
18405 }
18406
18407
18408 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18409 PyObject *resultobj = 0;
18410 wxSlider *arg1 = (wxSlider *) 0 ;
18411 int arg2 ;
18412 void *argp1 = 0 ;
18413 int res1 = 0 ;
18414 int val2 ;
18415 int ecode2 = 0 ;
18416 PyObject * obj0 = 0 ;
18417 PyObject * obj1 = 0 ;
18418 char * kwnames[] = {
18419 (char *) "self",(char *) "lineSize", NULL
18420 };
18421
18422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18424 if (!SWIG_IsOK(res1)) {
18425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18426 }
18427 arg1 = reinterpret_cast< wxSlider * >(argp1);
18428 ecode2 = SWIG_AsVal_int(obj1, &val2);
18429 if (!SWIG_IsOK(ecode2)) {
18430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18431 }
18432 arg2 = static_cast< int >(val2);
18433 {
18434 PyThreadState* __tstate = wxPyBeginAllowThreads();
18435 (arg1)->SetLineSize(arg2);
18436 wxPyEndAllowThreads(__tstate);
18437 if (PyErr_Occurred()) SWIG_fail;
18438 }
18439 resultobj = SWIG_Py_Void();
18440 return resultobj;
18441 fail:
18442 return NULL;
18443 }
18444
18445
18446 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18447 PyObject *resultobj = 0;
18448 wxSlider *arg1 = (wxSlider *) 0 ;
18449 int arg2 ;
18450 void *argp1 = 0 ;
18451 int res1 = 0 ;
18452 int val2 ;
18453 int ecode2 = 0 ;
18454 PyObject * obj0 = 0 ;
18455 PyObject * obj1 = 0 ;
18456 char * kwnames[] = {
18457 (char *) "self",(char *) "pageSize", NULL
18458 };
18459
18460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18462 if (!SWIG_IsOK(res1)) {
18463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18464 }
18465 arg1 = reinterpret_cast< wxSlider * >(argp1);
18466 ecode2 = SWIG_AsVal_int(obj1, &val2);
18467 if (!SWIG_IsOK(ecode2)) {
18468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18469 }
18470 arg2 = static_cast< int >(val2);
18471 {
18472 PyThreadState* __tstate = wxPyBeginAllowThreads();
18473 (arg1)->SetPageSize(arg2);
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 resultobj = SWIG_Py_Void();
18478 return resultobj;
18479 fail:
18480 return NULL;
18481 }
18482
18483
18484 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18485 PyObject *resultobj = 0;
18486 wxSlider *arg1 = (wxSlider *) 0 ;
18487 int result;
18488 void *argp1 = 0 ;
18489 int res1 = 0 ;
18490 PyObject *swig_obj[1] ;
18491
18492 if (!args) SWIG_fail;
18493 swig_obj[0] = args;
18494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18497 }
18498 arg1 = reinterpret_cast< wxSlider * >(argp1);
18499 {
18500 PyThreadState* __tstate = wxPyBeginAllowThreads();
18501 result = (int)((wxSlider const *)arg1)->GetLineSize();
18502 wxPyEndAllowThreads(__tstate);
18503 if (PyErr_Occurred()) SWIG_fail;
18504 }
18505 resultobj = SWIG_From_int(static_cast< int >(result));
18506 return resultobj;
18507 fail:
18508 return NULL;
18509 }
18510
18511
18512 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18513 PyObject *resultobj = 0;
18514 wxSlider *arg1 = (wxSlider *) 0 ;
18515 int result;
18516 void *argp1 = 0 ;
18517 int res1 = 0 ;
18518 PyObject *swig_obj[1] ;
18519
18520 if (!args) SWIG_fail;
18521 swig_obj[0] = args;
18522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18523 if (!SWIG_IsOK(res1)) {
18524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18525 }
18526 arg1 = reinterpret_cast< wxSlider * >(argp1);
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = (int)((wxSlider const *)arg1)->GetPageSize();
18530 wxPyEndAllowThreads(__tstate);
18531 if (PyErr_Occurred()) SWIG_fail;
18532 }
18533 resultobj = SWIG_From_int(static_cast< int >(result));
18534 return resultobj;
18535 fail:
18536 return NULL;
18537 }
18538
18539
18540 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18541 PyObject *resultobj = 0;
18542 wxSlider *arg1 = (wxSlider *) 0 ;
18543 int arg2 ;
18544 void *argp1 = 0 ;
18545 int res1 = 0 ;
18546 int val2 ;
18547 int ecode2 = 0 ;
18548 PyObject * obj0 = 0 ;
18549 PyObject * obj1 = 0 ;
18550 char * kwnames[] = {
18551 (char *) "self",(char *) "lenPixels", NULL
18552 };
18553
18554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18556 if (!SWIG_IsOK(res1)) {
18557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18558 }
18559 arg1 = reinterpret_cast< wxSlider * >(argp1);
18560 ecode2 = SWIG_AsVal_int(obj1, &val2);
18561 if (!SWIG_IsOK(ecode2)) {
18562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18563 }
18564 arg2 = static_cast< int >(val2);
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 (arg1)->SetThumbLength(arg2);
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 resultobj = SWIG_Py_Void();
18572 return resultobj;
18573 fail:
18574 return NULL;
18575 }
18576
18577
18578 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18579 PyObject *resultobj = 0;
18580 wxSlider *arg1 = (wxSlider *) 0 ;
18581 int result;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 PyObject *swig_obj[1] ;
18585
18586 if (!args) SWIG_fail;
18587 swig_obj[0] = args;
18588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18589 if (!SWIG_IsOK(res1)) {
18590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18591 }
18592 arg1 = reinterpret_cast< wxSlider * >(argp1);
18593 {
18594 PyThreadState* __tstate = wxPyBeginAllowThreads();
18595 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 resultobj = SWIG_From_int(static_cast< int >(result));
18600 return resultobj;
18601 fail:
18602 return NULL;
18603 }
18604
18605
18606 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18607 PyObject *resultobj = 0;
18608 wxSlider *arg1 = (wxSlider *) 0 ;
18609 int arg2 ;
18610 int arg3 = (int) 1 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 int val2 ;
18614 int ecode2 = 0 ;
18615 int val3 ;
18616 int ecode3 = 0 ;
18617 PyObject * obj0 = 0 ;
18618 PyObject * obj1 = 0 ;
18619 PyObject * obj2 = 0 ;
18620 char * kwnames[] = {
18621 (char *) "self",(char *) "n",(char *) "pos", NULL
18622 };
18623
18624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18626 if (!SWIG_IsOK(res1)) {
18627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18628 }
18629 arg1 = reinterpret_cast< wxSlider * >(argp1);
18630 ecode2 = SWIG_AsVal_int(obj1, &val2);
18631 if (!SWIG_IsOK(ecode2)) {
18632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18633 }
18634 arg2 = static_cast< int >(val2);
18635 if (obj2) {
18636 ecode3 = SWIG_AsVal_int(obj2, &val3);
18637 if (!SWIG_IsOK(ecode3)) {
18638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18639 }
18640 arg3 = static_cast< int >(val3);
18641 }
18642 {
18643 PyThreadState* __tstate = wxPyBeginAllowThreads();
18644 (arg1)->SetTickFreq(arg2,arg3);
18645 wxPyEndAllowThreads(__tstate);
18646 if (PyErr_Occurred()) SWIG_fail;
18647 }
18648 resultobj = SWIG_Py_Void();
18649 return resultobj;
18650 fail:
18651 return NULL;
18652 }
18653
18654
18655 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18656 PyObject *resultobj = 0;
18657 wxSlider *arg1 = (wxSlider *) 0 ;
18658 int result;
18659 void *argp1 = 0 ;
18660 int res1 = 0 ;
18661 PyObject *swig_obj[1] ;
18662
18663 if (!args) SWIG_fail;
18664 swig_obj[0] = args;
18665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18666 if (!SWIG_IsOK(res1)) {
18667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18668 }
18669 arg1 = reinterpret_cast< wxSlider * >(argp1);
18670 {
18671 PyThreadState* __tstate = wxPyBeginAllowThreads();
18672 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18673 wxPyEndAllowThreads(__tstate);
18674 if (PyErr_Occurred()) SWIG_fail;
18675 }
18676 resultobj = SWIG_From_int(static_cast< int >(result));
18677 return resultobj;
18678 fail:
18679 return NULL;
18680 }
18681
18682
18683 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18684 PyObject *resultobj = 0;
18685 wxSlider *arg1 = (wxSlider *) 0 ;
18686 void *argp1 = 0 ;
18687 int res1 = 0 ;
18688 PyObject *swig_obj[1] ;
18689
18690 if (!args) SWIG_fail;
18691 swig_obj[0] = args;
18692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18693 if (!SWIG_IsOK(res1)) {
18694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18695 }
18696 arg1 = reinterpret_cast< wxSlider * >(argp1);
18697 {
18698 PyThreadState* __tstate = wxPyBeginAllowThreads();
18699 (arg1)->ClearTicks();
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 resultobj = SWIG_Py_Void();
18704 return resultobj;
18705 fail:
18706 return NULL;
18707 }
18708
18709
18710 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18711 PyObject *resultobj = 0;
18712 wxSlider *arg1 = (wxSlider *) 0 ;
18713 int arg2 ;
18714 void *argp1 = 0 ;
18715 int res1 = 0 ;
18716 int val2 ;
18717 int ecode2 = 0 ;
18718 PyObject * obj0 = 0 ;
18719 PyObject * obj1 = 0 ;
18720 char * kwnames[] = {
18721 (char *) "self",(char *) "tickPos", NULL
18722 };
18723
18724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18726 if (!SWIG_IsOK(res1)) {
18727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18728 }
18729 arg1 = reinterpret_cast< wxSlider * >(argp1);
18730 ecode2 = SWIG_AsVal_int(obj1, &val2);
18731 if (!SWIG_IsOK(ecode2)) {
18732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18733 }
18734 arg2 = static_cast< int >(val2);
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->SetTick(arg2);
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_Py_Void();
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18749 PyObject *resultobj = 0;
18750 wxSlider *arg1 = (wxSlider *) 0 ;
18751 void *argp1 = 0 ;
18752 int res1 = 0 ;
18753 PyObject *swig_obj[1] ;
18754
18755 if (!args) SWIG_fail;
18756 swig_obj[0] = args;
18757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18758 if (!SWIG_IsOK(res1)) {
18759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18760 }
18761 arg1 = reinterpret_cast< wxSlider * >(argp1);
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 (arg1)->ClearSel();
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_Py_Void();
18769 return resultobj;
18770 fail:
18771 return NULL;
18772 }
18773
18774
18775 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18776 PyObject *resultobj = 0;
18777 wxSlider *arg1 = (wxSlider *) 0 ;
18778 int result;
18779 void *argp1 = 0 ;
18780 int res1 = 0 ;
18781 PyObject *swig_obj[1] ;
18782
18783 if (!args) SWIG_fail;
18784 swig_obj[0] = args;
18785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18786 if (!SWIG_IsOK(res1)) {
18787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18788 }
18789 arg1 = reinterpret_cast< wxSlider * >(argp1);
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_From_int(static_cast< int >(result));
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18804 PyObject *resultobj = 0;
18805 wxSlider *arg1 = (wxSlider *) 0 ;
18806 int result;
18807 void *argp1 = 0 ;
18808 int res1 = 0 ;
18809 PyObject *swig_obj[1] ;
18810
18811 if (!args) SWIG_fail;
18812 swig_obj[0] = args;
18813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18814 if (!SWIG_IsOK(res1)) {
18815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18816 }
18817 arg1 = reinterpret_cast< wxSlider * >(argp1);
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
18820 result = (int)((wxSlider const *)arg1)->GetSelStart();
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 resultobj = SWIG_From_int(static_cast< int >(result));
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = 0;
18833 wxSlider *arg1 = (wxSlider *) 0 ;
18834 int arg2 ;
18835 int arg3 ;
18836 void *argp1 = 0 ;
18837 int res1 = 0 ;
18838 int val2 ;
18839 int ecode2 = 0 ;
18840 int val3 ;
18841 int ecode3 = 0 ;
18842 PyObject * obj0 = 0 ;
18843 PyObject * obj1 = 0 ;
18844 PyObject * obj2 = 0 ;
18845 char * kwnames[] = {
18846 (char *) "self",(char *) "min",(char *) "max", NULL
18847 };
18848
18849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18851 if (!SWIG_IsOK(res1)) {
18852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18853 }
18854 arg1 = reinterpret_cast< wxSlider * >(argp1);
18855 ecode2 = SWIG_AsVal_int(obj1, &val2);
18856 if (!SWIG_IsOK(ecode2)) {
18857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18858 }
18859 arg2 = static_cast< int >(val2);
18860 ecode3 = SWIG_AsVal_int(obj2, &val3);
18861 if (!SWIG_IsOK(ecode3)) {
18862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18863 }
18864 arg3 = static_cast< int >(val3);
18865 {
18866 PyThreadState* __tstate = wxPyBeginAllowThreads();
18867 (arg1)->SetSelection(arg2,arg3);
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 resultobj = SWIG_Py_Void();
18872 return resultobj;
18873 fail:
18874 return NULL;
18875 }
18876
18877
18878 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18879 PyObject *resultobj = 0;
18880 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18881 SwigValueWrapper<wxVisualAttributes > result;
18882 int val1 ;
18883 int ecode1 = 0 ;
18884 PyObject * obj0 = 0 ;
18885 char * kwnames[] = {
18886 (char *) "variant", NULL
18887 };
18888
18889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18890 if (obj0) {
18891 ecode1 = SWIG_AsVal_int(obj0, &val1);
18892 if (!SWIG_IsOK(ecode1)) {
18893 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18894 }
18895 arg1 = static_cast< wxWindowVariant >(val1);
18896 }
18897 {
18898 if (!wxPyCheckForApp()) SWIG_fail;
18899 PyThreadState* __tstate = wxPyBeginAllowThreads();
18900 result = wxSlider::GetClassDefaultAttributes(arg1);
18901 wxPyEndAllowThreads(__tstate);
18902 if (PyErr_Occurred()) SWIG_fail;
18903 }
18904 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18905 return resultobj;
18906 fail:
18907 return NULL;
18908 }
18909
18910
18911 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18912 PyObject *obj;
18913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18914 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18915 return SWIG_Py_Void();
18916 }
18917
18918 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18919 return SWIG_Python_InitShadowInstance(args);
18920 }
18921
18922 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18923 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18924 return 1;
18925 }
18926
18927
18928 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18929 PyObject *pyobj = 0;
18930
18931 {
18932 #if wxUSE_UNICODE
18933 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18934 #else
18935 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18936 #endif
18937 }
18938 return pyobj;
18939 }
18940
18941
18942 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18943 PyObject *resultobj = 0;
18944 wxWindow *arg1 = (wxWindow *) 0 ;
18945 int arg2 = (int) -1 ;
18946 wxString const &arg3_defvalue = wxPyEmptyString ;
18947 wxString *arg3 = (wxString *) &arg3_defvalue ;
18948 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18949 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18950 wxSize const &arg5_defvalue = wxDefaultSize ;
18951 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18952 long arg6 = (long) 0 ;
18953 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18954 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18955 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18956 wxString *arg8 = (wxString *) &arg8_defvalue ;
18957 wxToggleButton *result = 0 ;
18958 void *argp1 = 0 ;
18959 int res1 = 0 ;
18960 int val2 ;
18961 int ecode2 = 0 ;
18962 bool temp3 = false ;
18963 wxPoint temp4 ;
18964 wxSize temp5 ;
18965 long val6 ;
18966 int ecode6 = 0 ;
18967 void *argp7 = 0 ;
18968 int res7 = 0 ;
18969 bool temp8 = false ;
18970 PyObject * obj0 = 0 ;
18971 PyObject * obj1 = 0 ;
18972 PyObject * obj2 = 0 ;
18973 PyObject * obj3 = 0 ;
18974 PyObject * obj4 = 0 ;
18975 PyObject * obj5 = 0 ;
18976 PyObject * obj6 = 0 ;
18977 PyObject * obj7 = 0 ;
18978 char * kwnames[] = {
18979 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18980 };
18981
18982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18984 if (!SWIG_IsOK(res1)) {
18985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18986 }
18987 arg1 = reinterpret_cast< wxWindow * >(argp1);
18988 if (obj1) {
18989 ecode2 = SWIG_AsVal_int(obj1, &val2);
18990 if (!SWIG_IsOK(ecode2)) {
18991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18992 }
18993 arg2 = static_cast< int >(val2);
18994 }
18995 if (obj2) {
18996 {
18997 arg3 = wxString_in_helper(obj2);
18998 if (arg3 == NULL) SWIG_fail;
18999 temp3 = true;
19000 }
19001 }
19002 if (obj3) {
19003 {
19004 arg4 = &temp4;
19005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19006 }
19007 }
19008 if (obj4) {
19009 {
19010 arg5 = &temp5;
19011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19012 }
19013 }
19014 if (obj5) {
19015 ecode6 = SWIG_AsVal_long(obj5, &val6);
19016 if (!SWIG_IsOK(ecode6)) {
19017 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
19018 }
19019 arg6 = static_cast< long >(val6);
19020 }
19021 if (obj6) {
19022 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
19023 if (!SWIG_IsOK(res7)) {
19024 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
19025 }
19026 if (!argp7) {
19027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
19028 }
19029 arg7 = reinterpret_cast< wxValidator * >(argp7);
19030 }
19031 if (obj7) {
19032 {
19033 arg8 = wxString_in_helper(obj7);
19034 if (arg8 == NULL) SWIG_fail;
19035 temp8 = true;
19036 }
19037 }
19038 {
19039 if (!wxPyCheckForApp()) SWIG_fail;
19040 PyThreadState* __tstate = wxPyBeginAllowThreads();
19041 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
19042 wxPyEndAllowThreads(__tstate);
19043 if (PyErr_Occurred()) SWIG_fail;
19044 }
19045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
19046 {
19047 if (temp3)
19048 delete arg3;
19049 }
19050 {
19051 if (temp8)
19052 delete arg8;
19053 }
19054 return resultobj;
19055 fail:
19056 {
19057 if (temp3)
19058 delete arg3;
19059 }
19060 {
19061 if (temp8)
19062 delete arg8;
19063 }
19064 return NULL;
19065 }
19066
19067
19068 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19069 PyObject *resultobj = 0;
19070 wxToggleButton *result = 0 ;
19071
19072 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19073 {
19074 if (!wxPyCheckForApp()) SWIG_fail;
19075 PyThreadState* __tstate = wxPyBeginAllowThreads();
19076 result = (wxToggleButton *)new wxToggleButton();
19077 wxPyEndAllowThreads(__tstate);
19078 if (PyErr_Occurred()) SWIG_fail;
19079 }
19080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19081 return resultobj;
19082 fail:
19083 return NULL;
19084 }
19085
19086
19087 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19088 PyObject *resultobj = 0;
19089 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19090 wxWindow *arg2 = (wxWindow *) 0 ;
19091 int arg3 = (int) -1 ;
19092 wxString const &arg4_defvalue = wxPyEmptyString ;
19093 wxString *arg4 = (wxString *) &arg4_defvalue ;
19094 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19095 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19096 wxSize const &arg6_defvalue = wxDefaultSize ;
19097 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19098 long arg7 = (long) 0 ;
19099 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19100 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19101 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19102 wxString *arg9 = (wxString *) &arg9_defvalue ;
19103 bool result;
19104 void *argp1 = 0 ;
19105 int res1 = 0 ;
19106 void *argp2 = 0 ;
19107 int res2 = 0 ;
19108 int val3 ;
19109 int ecode3 = 0 ;
19110 bool temp4 = false ;
19111 wxPoint temp5 ;
19112 wxSize temp6 ;
19113 long val7 ;
19114 int ecode7 = 0 ;
19115 void *argp8 = 0 ;
19116 int res8 = 0 ;
19117 bool temp9 = false ;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19120 PyObject * obj2 = 0 ;
19121 PyObject * obj3 = 0 ;
19122 PyObject * obj4 = 0 ;
19123 PyObject * obj5 = 0 ;
19124 PyObject * obj6 = 0 ;
19125 PyObject * obj7 = 0 ;
19126 PyObject * obj8 = 0 ;
19127 char * kwnames[] = {
19128 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19129 };
19130
19131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19133 if (!SWIG_IsOK(res1)) {
19134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19135 }
19136 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19138 if (!SWIG_IsOK(res2)) {
19139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19140 }
19141 arg2 = reinterpret_cast< wxWindow * >(argp2);
19142 if (obj2) {
19143 ecode3 = SWIG_AsVal_int(obj2, &val3);
19144 if (!SWIG_IsOK(ecode3)) {
19145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19146 }
19147 arg3 = static_cast< int >(val3);
19148 }
19149 if (obj3) {
19150 {
19151 arg4 = wxString_in_helper(obj3);
19152 if (arg4 == NULL) SWIG_fail;
19153 temp4 = true;
19154 }
19155 }
19156 if (obj4) {
19157 {
19158 arg5 = &temp5;
19159 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19160 }
19161 }
19162 if (obj5) {
19163 {
19164 arg6 = &temp6;
19165 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19166 }
19167 }
19168 if (obj6) {
19169 ecode7 = SWIG_AsVal_long(obj6, &val7);
19170 if (!SWIG_IsOK(ecode7)) {
19171 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19172 }
19173 arg7 = static_cast< long >(val7);
19174 }
19175 if (obj7) {
19176 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19177 if (!SWIG_IsOK(res8)) {
19178 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19179 }
19180 if (!argp8) {
19181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19182 }
19183 arg8 = reinterpret_cast< wxValidator * >(argp8);
19184 }
19185 if (obj8) {
19186 {
19187 arg9 = wxString_in_helper(obj8);
19188 if (arg9 == NULL) SWIG_fail;
19189 temp9 = true;
19190 }
19191 }
19192 {
19193 PyThreadState* __tstate = wxPyBeginAllowThreads();
19194 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19195 wxPyEndAllowThreads(__tstate);
19196 if (PyErr_Occurred()) SWIG_fail;
19197 }
19198 {
19199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19200 }
19201 {
19202 if (temp4)
19203 delete arg4;
19204 }
19205 {
19206 if (temp9)
19207 delete arg9;
19208 }
19209 return resultobj;
19210 fail:
19211 {
19212 if (temp4)
19213 delete arg4;
19214 }
19215 {
19216 if (temp9)
19217 delete arg9;
19218 }
19219 return NULL;
19220 }
19221
19222
19223 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19226 bool arg2 ;
19227 void *argp1 = 0 ;
19228 int res1 = 0 ;
19229 bool val2 ;
19230 int ecode2 = 0 ;
19231 PyObject * obj0 = 0 ;
19232 PyObject * obj1 = 0 ;
19233 char * kwnames[] = {
19234 (char *) "self",(char *) "value", NULL
19235 };
19236
19237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19239 if (!SWIG_IsOK(res1)) {
19240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19241 }
19242 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19243 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19244 if (!SWIG_IsOK(ecode2)) {
19245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19246 }
19247 arg2 = static_cast< bool >(val2);
19248 {
19249 PyThreadState* __tstate = wxPyBeginAllowThreads();
19250 (arg1)->SetValue(arg2);
19251 wxPyEndAllowThreads(__tstate);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 resultobj = SWIG_Py_Void();
19255 return resultobj;
19256 fail:
19257 return NULL;
19258 }
19259
19260
19261 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19262 PyObject *resultobj = 0;
19263 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19264 bool result;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 PyObject *swig_obj[1] ;
19268
19269 if (!args) SWIG_fail;
19270 swig_obj[0] = args;
19271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19272 if (!SWIG_IsOK(res1)) {
19273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19274 }
19275 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19276 {
19277 PyThreadState* __tstate = wxPyBeginAllowThreads();
19278 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 {
19283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19284 }
19285 return resultobj;
19286 fail:
19287 return NULL;
19288 }
19289
19290
19291 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19292 PyObject *resultobj = 0;
19293 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19294 SwigValueWrapper<wxVisualAttributes > result;
19295 int val1 ;
19296 int ecode1 = 0 ;
19297 PyObject * obj0 = 0 ;
19298 char * kwnames[] = {
19299 (char *) "variant", NULL
19300 };
19301
19302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19303 if (obj0) {
19304 ecode1 = SWIG_AsVal_int(obj0, &val1);
19305 if (!SWIG_IsOK(ecode1)) {
19306 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19307 }
19308 arg1 = static_cast< wxWindowVariant >(val1);
19309 }
19310 {
19311 if (!wxPyCheckForApp()) SWIG_fail;
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19318 return resultobj;
19319 fail:
19320 return NULL;
19321 }
19322
19323
19324 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19325 PyObject *obj;
19326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19327 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19328 return SWIG_Py_Void();
19329 }
19330
19331 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19332 return SWIG_Python_InitShadowInstance(args);
19333 }
19334
19335 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19336 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19337 return 1;
19338 }
19339
19340
19341 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19342 PyObject *pyobj = 0;
19343
19344 {
19345 #if wxUSE_UNICODE
19346 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19347 #else
19348 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19349 #endif
19350 }
19351 return pyobj;
19352 }
19353
19354
19355 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19356 PyObject *resultobj = 0;
19357 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19358 size_t result;
19359 void *argp1 = 0 ;
19360 int res1 = 0 ;
19361 PyObject *swig_obj[1] ;
19362
19363 if (!args) SWIG_fail;
19364 swig_obj[0] = args;
19365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19366 if (!SWIG_IsOK(res1)) {
19367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19368 }
19369 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19370 {
19371 PyThreadState* __tstate = wxPyBeginAllowThreads();
19372 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19373 wxPyEndAllowThreads(__tstate);
19374 if (PyErr_Occurred()) SWIG_fail;
19375 }
19376 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19377 return resultobj;
19378 fail:
19379 return NULL;
19380 }
19381
19382
19383 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19384 PyObject *resultobj = 0;
19385 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19386 size_t arg2 ;
19387 wxWindow *result = 0 ;
19388 void *argp1 = 0 ;
19389 int res1 = 0 ;
19390 size_t val2 ;
19391 int ecode2 = 0 ;
19392 PyObject * obj0 = 0 ;
19393 PyObject * obj1 = 0 ;
19394 char * kwnames[] = {
19395 (char *) "self",(char *) "n", NULL
19396 };
19397
19398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19400 if (!SWIG_IsOK(res1)) {
19401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19402 }
19403 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19404 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19405 if (!SWIG_IsOK(ecode2)) {
19406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19407 }
19408 arg2 = static_cast< size_t >(val2);
19409 {
19410 PyThreadState* __tstate = wxPyBeginAllowThreads();
19411 result = (wxWindow *)(arg1)->GetPage(arg2);
19412 wxPyEndAllowThreads(__tstate);
19413 if (PyErr_Occurred()) SWIG_fail;
19414 }
19415 {
19416 resultobj = wxPyMake_wxObject(result, 0);
19417 }
19418 return resultobj;
19419 fail:
19420 return NULL;
19421 }
19422
19423
19424 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19425 PyObject *resultobj = 0;
19426 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19427 wxWindow *result = 0 ;
19428 void *argp1 = 0 ;
19429 int res1 = 0 ;
19430 PyObject *swig_obj[1] ;
19431
19432 if (!args) SWIG_fail;
19433 swig_obj[0] = args;
19434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19435 if (!SWIG_IsOK(res1)) {
19436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19437 }
19438 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 {
19446 resultobj = wxPyMake_wxObject(result, 0);
19447 }
19448 return resultobj;
19449 fail:
19450 return NULL;
19451 }
19452
19453
19454 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19455 PyObject *resultobj = 0;
19456 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19457 int result;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 PyObject *swig_obj[1] ;
19461
19462 if (!args) SWIG_fail;
19463 swig_obj[0] = args;
19464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19465 if (!SWIG_IsOK(res1)) {
19466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19467 }
19468 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19472 wxPyEndAllowThreads(__tstate);
19473 if (PyErr_Occurred()) SWIG_fail;
19474 }
19475 resultobj = SWIG_From_int(static_cast< int >(result));
19476 return resultobj;
19477 fail:
19478 return NULL;
19479 }
19480
19481
19482 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19483 PyObject *resultobj = 0;
19484 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19485 size_t arg2 ;
19486 wxString *arg3 = 0 ;
19487 bool result;
19488 void *argp1 = 0 ;
19489 int res1 = 0 ;
19490 size_t val2 ;
19491 int ecode2 = 0 ;
19492 bool temp3 = false ;
19493 PyObject * obj0 = 0 ;
19494 PyObject * obj1 = 0 ;
19495 PyObject * obj2 = 0 ;
19496 char * kwnames[] = {
19497 (char *) "self",(char *) "n",(char *) "strText", NULL
19498 };
19499
19500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19502 if (!SWIG_IsOK(res1)) {
19503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19504 }
19505 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19506 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19507 if (!SWIG_IsOK(ecode2)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19509 }
19510 arg2 = static_cast< size_t >(val2);
19511 {
19512 arg3 = wxString_in_helper(obj2);
19513 if (arg3 == NULL) SWIG_fail;
19514 temp3 = true;
19515 }
19516 {
19517 PyThreadState* __tstate = wxPyBeginAllowThreads();
19518 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 {
19523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19524 }
19525 {
19526 if (temp3)
19527 delete arg3;
19528 }
19529 return resultobj;
19530 fail:
19531 {
19532 if (temp3)
19533 delete arg3;
19534 }
19535 return NULL;
19536 }
19537
19538
19539 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj = 0;
19541 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19542 size_t arg2 ;
19543 wxString result;
19544 void *argp1 = 0 ;
19545 int res1 = 0 ;
19546 size_t val2 ;
19547 int ecode2 = 0 ;
19548 PyObject * obj0 = 0 ;
19549 PyObject * obj1 = 0 ;
19550 char * kwnames[] = {
19551 (char *) "self",(char *) "n", NULL
19552 };
19553
19554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19556 if (!SWIG_IsOK(res1)) {
19557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19558 }
19559 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19560 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19561 if (!SWIG_IsOK(ecode2)) {
19562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19563 }
19564 arg2 = static_cast< size_t >(val2);
19565 {
19566 PyThreadState* __tstate = wxPyBeginAllowThreads();
19567 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19568 wxPyEndAllowThreads(__tstate);
19569 if (PyErr_Occurred()) SWIG_fail;
19570 }
19571 {
19572 #if wxUSE_UNICODE
19573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19574 #else
19575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19576 #endif
19577 }
19578 return resultobj;
19579 fail:
19580 return NULL;
19581 }
19582
19583
19584 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19585 PyObject *resultobj = 0;
19586 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19587 wxImageList *arg2 = (wxImageList *) 0 ;
19588 void *argp1 = 0 ;
19589 int res1 = 0 ;
19590 void *argp2 = 0 ;
19591 int res2 = 0 ;
19592 PyObject * obj0 = 0 ;
19593 PyObject * obj1 = 0 ;
19594 char * kwnames[] = {
19595 (char *) "self",(char *) "imageList", NULL
19596 };
19597
19598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19600 if (!SWIG_IsOK(res1)) {
19601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19602 }
19603 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19605 if (!SWIG_IsOK(res2)) {
19606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19607 }
19608 arg2 = reinterpret_cast< wxImageList * >(argp2);
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 (arg1)->SetImageList(arg2);
19612 wxPyEndAllowThreads(__tstate);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 resultobj = SWIG_Py_Void();
19616 return resultobj;
19617 fail:
19618 return NULL;
19619 }
19620
19621
19622 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19623 PyObject *resultobj = 0;
19624 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19625 wxImageList *arg2 = (wxImageList *) 0 ;
19626 void *argp1 = 0 ;
19627 int res1 = 0 ;
19628 int res2 = 0 ;
19629 PyObject * obj0 = 0 ;
19630 PyObject * obj1 = 0 ;
19631 char * kwnames[] = {
19632 (char *) "self",(char *) "imageList", NULL
19633 };
19634
19635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19637 if (!SWIG_IsOK(res1)) {
19638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19639 }
19640 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19641 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19642 if (!SWIG_IsOK(res2)) {
19643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19644 }
19645 {
19646 PyThreadState* __tstate = wxPyBeginAllowThreads();
19647 (arg1)->AssignImageList(arg2);
19648 wxPyEndAllowThreads(__tstate);
19649 if (PyErr_Occurred()) SWIG_fail;
19650 }
19651 resultobj = SWIG_Py_Void();
19652 return resultobj;
19653 fail:
19654 return NULL;
19655 }
19656
19657
19658 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19659 PyObject *resultobj = 0;
19660 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19661 wxImageList *result = 0 ;
19662 void *argp1 = 0 ;
19663 int res1 = 0 ;
19664 PyObject *swig_obj[1] ;
19665
19666 if (!args) SWIG_fail;
19667 swig_obj[0] = args;
19668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19669 if (!SWIG_IsOK(res1)) {
19670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19671 }
19672 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19673 {
19674 PyThreadState* __tstate = wxPyBeginAllowThreads();
19675 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19676 wxPyEndAllowThreads(__tstate);
19677 if (PyErr_Occurred()) SWIG_fail;
19678 }
19679 {
19680 resultobj = wxPyMake_wxObject(result, (bool)0);
19681 }
19682 return resultobj;
19683 fail:
19684 return NULL;
19685 }
19686
19687
19688 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19689 PyObject *resultobj = 0;
19690 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19691 size_t arg2 ;
19692 int result;
19693 void *argp1 = 0 ;
19694 int res1 = 0 ;
19695 size_t val2 ;
19696 int ecode2 = 0 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 char * kwnames[] = {
19700 (char *) "self",(char *) "n", NULL
19701 };
19702
19703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19705 if (!SWIG_IsOK(res1)) {
19706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19707 }
19708 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19709 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19710 if (!SWIG_IsOK(ecode2)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19712 }
19713 arg2 = static_cast< size_t >(val2);
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 resultobj = SWIG_From_int(static_cast< int >(result));
19721 return resultobj;
19722 fail:
19723 return NULL;
19724 }
19725
19726
19727 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19728 PyObject *resultobj = 0;
19729 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19730 size_t arg2 ;
19731 int arg3 ;
19732 bool result;
19733 void *argp1 = 0 ;
19734 int res1 = 0 ;
19735 size_t val2 ;
19736 int ecode2 = 0 ;
19737 int val3 ;
19738 int ecode3 = 0 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 PyObject * obj2 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "n",(char *) "imageId", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19750 }
19751 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19752 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19753 if (!SWIG_IsOK(ecode2)) {
19754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19755 }
19756 arg2 = static_cast< size_t >(val2);
19757 ecode3 = SWIG_AsVal_int(obj2, &val3);
19758 if (!SWIG_IsOK(ecode3)) {
19759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19760 }
19761 arg3 = static_cast< int >(val3);
19762 {
19763 PyThreadState* __tstate = wxPyBeginAllowThreads();
19764 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19765 wxPyEndAllowThreads(__tstate);
19766 if (PyErr_Occurred()) SWIG_fail;
19767 }
19768 {
19769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19770 }
19771 return resultobj;
19772 fail:
19773 return NULL;
19774 }
19775
19776
19777 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19778 PyObject *resultobj = 0;
19779 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19780 wxSize *arg2 = 0 ;
19781 void *argp1 = 0 ;
19782 int res1 = 0 ;
19783 wxSize temp2 ;
19784 PyObject * obj0 = 0 ;
19785 PyObject * obj1 = 0 ;
19786 char * kwnames[] = {
19787 (char *) "self",(char *) "size", NULL
19788 };
19789
19790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19792 if (!SWIG_IsOK(res1)) {
19793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19794 }
19795 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19796 {
19797 arg2 = &temp2;
19798 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19799 }
19800 {
19801 PyThreadState* __tstate = wxPyBeginAllowThreads();
19802 (arg1)->SetPageSize((wxSize const &)*arg2);
19803 wxPyEndAllowThreads(__tstate);
19804 if (PyErr_Occurred()) SWIG_fail;
19805 }
19806 resultobj = SWIG_Py_Void();
19807 return resultobj;
19808 fail:
19809 return NULL;
19810 }
19811
19812
19813 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19814 PyObject *resultobj = 0;
19815 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19816 wxSize *arg2 = 0 ;
19817 wxSize result;
19818 void *argp1 = 0 ;
19819 int res1 = 0 ;
19820 wxSize temp2 ;
19821 PyObject * obj0 = 0 ;
19822 PyObject * obj1 = 0 ;
19823 char * kwnames[] = {
19824 (char *) "self",(char *) "sizePage", NULL
19825 };
19826
19827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19829 if (!SWIG_IsOK(res1)) {
19830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19831 }
19832 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19833 {
19834 arg2 = &temp2;
19835 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19836 }
19837 {
19838 PyThreadState* __tstate = wxPyBeginAllowThreads();
19839 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19840 wxPyEndAllowThreads(__tstate);
19841 if (PyErr_Occurred()) SWIG_fail;
19842 }
19843 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19844 return resultobj;
19845 fail:
19846 return NULL;
19847 }
19848
19849
19850 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19851 PyObject *resultobj = 0;
19852 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19853 unsigned int result;
19854 void *argp1 = 0 ;
19855 int res1 = 0 ;
19856 PyObject *swig_obj[1] ;
19857
19858 if (!args) SWIG_fail;
19859 swig_obj[0] = args;
19860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19861 if (!SWIG_IsOK(res1)) {
19862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19863 }
19864 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19865 {
19866 PyThreadState* __tstate = wxPyBeginAllowThreads();
19867 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19872 return resultobj;
19873 fail:
19874 return NULL;
19875 }
19876
19877
19878 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19879 PyObject *resultobj = 0;
19880 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19881 unsigned int arg2 ;
19882 void *argp1 = 0 ;
19883 int res1 = 0 ;
19884 unsigned int val2 ;
19885 int ecode2 = 0 ;
19886 PyObject * obj0 = 0 ;
19887 PyObject * obj1 = 0 ;
19888 char * kwnames[] = {
19889 (char *) "self",(char *) "internalBorder", NULL
19890 };
19891
19892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19894 if (!SWIG_IsOK(res1)) {
19895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19896 }
19897 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19898 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19899 if (!SWIG_IsOK(ecode2)) {
19900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19901 }
19902 arg2 = static_cast< unsigned int >(val2);
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 (arg1)->SetInternalBorder(arg2);
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 resultobj = SWIG_Py_Void();
19910 return resultobj;
19911 fail:
19912 return NULL;
19913 }
19914
19915
19916 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19917 PyObject *resultobj = 0;
19918 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19919 bool result;
19920 void *argp1 = 0 ;
19921 int res1 = 0 ;
19922 PyObject *swig_obj[1] ;
19923
19924 if (!args) SWIG_fail;
19925 swig_obj[0] = args;
19926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19927 if (!SWIG_IsOK(res1)) {
19928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19929 }
19930 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 {
19938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19939 }
19940 return resultobj;
19941 fail:
19942 return NULL;
19943 }
19944
19945
19946 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19947 PyObject *resultobj = 0;
19948 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19949 int arg2 ;
19950 void *argp1 = 0 ;
19951 int res1 = 0 ;
19952 int val2 ;
19953 int ecode2 = 0 ;
19954 PyObject * obj0 = 0 ;
19955 PyObject * obj1 = 0 ;
19956 char * kwnames[] = {
19957 (char *) "self",(char *) "margin", NULL
19958 };
19959
19960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19962 if (!SWIG_IsOK(res1)) {
19963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19964 }
19965 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19966 ecode2 = SWIG_AsVal_int(obj1, &val2);
19967 if (!SWIG_IsOK(ecode2)) {
19968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19969 }
19970 arg2 = static_cast< int >(val2);
19971 {
19972 PyThreadState* __tstate = wxPyBeginAllowThreads();
19973 (arg1)->SetControlMargin(arg2);
19974 wxPyEndAllowThreads(__tstate);
19975 if (PyErr_Occurred()) SWIG_fail;
19976 }
19977 resultobj = SWIG_Py_Void();
19978 return resultobj;
19979 fail:
19980 return NULL;
19981 }
19982
19983
19984 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19985 PyObject *resultobj = 0;
19986 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19987 int result;
19988 void *argp1 = 0 ;
19989 int res1 = 0 ;
19990 PyObject *swig_obj[1] ;
19991
19992 if (!args) SWIG_fail;
19993 swig_obj[0] = args;
19994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19995 if (!SWIG_IsOK(res1)) {
19996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19997 }
19998 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
20002 wxPyEndAllowThreads(__tstate);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 resultobj = SWIG_From_int(static_cast< int >(result));
20006 return resultobj;
20007 fail:
20008 return NULL;
20009 }
20010
20011
20012 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20013 PyObject *resultobj = 0;
20014 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20015 bool arg2 ;
20016 void *argp1 = 0 ;
20017 int res1 = 0 ;
20018 bool val2 ;
20019 int ecode2 = 0 ;
20020 PyObject * obj0 = 0 ;
20021 PyObject * obj1 = 0 ;
20022 char * kwnames[] = {
20023 (char *) "self",(char *) "fit", NULL
20024 };
20025
20026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
20027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20028 if (!SWIG_IsOK(res1)) {
20029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20030 }
20031 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20032 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20033 if (!SWIG_IsOK(ecode2)) {
20034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
20035 }
20036 arg2 = static_cast< bool >(val2);
20037 {
20038 PyThreadState* __tstate = wxPyBeginAllowThreads();
20039 (arg1)->SetFitToCurrentPage(arg2);
20040 wxPyEndAllowThreads(__tstate);
20041 if (PyErr_Occurred()) SWIG_fail;
20042 }
20043 resultobj = SWIG_Py_Void();
20044 return resultobj;
20045 fail:
20046 return NULL;
20047 }
20048
20049
20050 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20051 PyObject *resultobj = 0;
20052 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20053 bool result;
20054 void *argp1 = 0 ;
20055 int res1 = 0 ;
20056 PyObject *swig_obj[1] ;
20057
20058 if (!args) SWIG_fail;
20059 swig_obj[0] = args;
20060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20061 if (!SWIG_IsOK(res1)) {
20062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20063 }
20064 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
20068 wxPyEndAllowThreads(__tstate);
20069 if (PyErr_Occurred()) SWIG_fail;
20070 }
20071 {
20072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20073 }
20074 return resultobj;
20075 fail:
20076 return NULL;
20077 }
20078
20079
20080 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20081 PyObject *resultobj = 0;
20082 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20083 wxSizer *result = 0 ;
20084 void *argp1 = 0 ;
20085 int res1 = 0 ;
20086 PyObject *swig_obj[1] ;
20087
20088 if (!args) SWIG_fail;
20089 swig_obj[0] = args;
20090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20091 if (!SWIG_IsOK(res1)) {
20092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20093 }
20094 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20095 {
20096 PyThreadState* __tstate = wxPyBeginAllowThreads();
20097 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20098 wxPyEndAllowThreads(__tstate);
20099 if (PyErr_Occurred()) SWIG_fail;
20100 }
20101 {
20102 resultobj = wxPyMake_wxObject(result, (bool)0);
20103 }
20104 return resultobj;
20105 fail:
20106 return NULL;
20107 }
20108
20109
20110 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20111 PyObject *resultobj = 0;
20112 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20113 size_t arg2 ;
20114 bool result;
20115 void *argp1 = 0 ;
20116 int res1 = 0 ;
20117 size_t val2 ;
20118 int ecode2 = 0 ;
20119 PyObject * obj0 = 0 ;
20120 PyObject * obj1 = 0 ;
20121 char * kwnames[] = {
20122 (char *) "self",(char *) "n", NULL
20123 };
20124
20125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20129 }
20130 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20131 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20132 if (!SWIG_IsOK(ecode2)) {
20133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20134 }
20135 arg2 = static_cast< size_t >(val2);
20136 {
20137 PyThreadState* __tstate = wxPyBeginAllowThreads();
20138 result = (bool)(arg1)->DeletePage(arg2);
20139 wxPyEndAllowThreads(__tstate);
20140 if (PyErr_Occurred()) SWIG_fail;
20141 }
20142 {
20143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20144 }
20145 return resultobj;
20146 fail:
20147 return NULL;
20148 }
20149
20150
20151 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20152 PyObject *resultobj = 0;
20153 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20154 size_t arg2 ;
20155 bool result;
20156 void *argp1 = 0 ;
20157 int res1 = 0 ;
20158 size_t val2 ;
20159 int ecode2 = 0 ;
20160 PyObject * obj0 = 0 ;
20161 PyObject * obj1 = 0 ;
20162 char * kwnames[] = {
20163 (char *) "self",(char *) "n", NULL
20164 };
20165
20166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20168 if (!SWIG_IsOK(res1)) {
20169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20170 }
20171 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20172 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20173 if (!SWIG_IsOK(ecode2)) {
20174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20175 }
20176 arg2 = static_cast< size_t >(val2);
20177 {
20178 PyThreadState* __tstate = wxPyBeginAllowThreads();
20179 result = (bool)(arg1)->RemovePage(arg2);
20180 wxPyEndAllowThreads(__tstate);
20181 if (PyErr_Occurred()) SWIG_fail;
20182 }
20183 {
20184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20185 }
20186 return resultobj;
20187 fail:
20188 return NULL;
20189 }
20190
20191
20192 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20193 PyObject *resultobj = 0;
20194 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20195 bool result;
20196 void *argp1 = 0 ;
20197 int res1 = 0 ;
20198 PyObject *swig_obj[1] ;
20199
20200 if (!args) SWIG_fail;
20201 swig_obj[0] = args;
20202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20203 if (!SWIG_IsOK(res1)) {
20204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20205 }
20206 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20207 {
20208 PyThreadState* __tstate = wxPyBeginAllowThreads();
20209 result = (bool)(arg1)->DeleteAllPages();
20210 wxPyEndAllowThreads(__tstate);
20211 if (PyErr_Occurred()) SWIG_fail;
20212 }
20213 {
20214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20215 }
20216 return resultobj;
20217 fail:
20218 return NULL;
20219 }
20220
20221
20222 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20223 PyObject *resultobj = 0;
20224 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20225 wxWindow *arg2 = (wxWindow *) 0 ;
20226 wxString *arg3 = 0 ;
20227 bool arg4 = (bool) false ;
20228 int arg5 = (int) -1 ;
20229 bool result;
20230 void *argp1 = 0 ;
20231 int res1 = 0 ;
20232 void *argp2 = 0 ;
20233 int res2 = 0 ;
20234 bool temp3 = false ;
20235 bool val4 ;
20236 int ecode4 = 0 ;
20237 int val5 ;
20238 int ecode5 = 0 ;
20239 PyObject * obj0 = 0 ;
20240 PyObject * obj1 = 0 ;
20241 PyObject * obj2 = 0 ;
20242 PyObject * obj3 = 0 ;
20243 PyObject * obj4 = 0 ;
20244 char * kwnames[] = {
20245 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20246 };
20247
20248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20250 if (!SWIG_IsOK(res1)) {
20251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20252 }
20253 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20255 if (!SWIG_IsOK(res2)) {
20256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20257 }
20258 arg2 = reinterpret_cast< wxWindow * >(argp2);
20259 {
20260 arg3 = wxString_in_helper(obj2);
20261 if (arg3 == NULL) SWIG_fail;
20262 temp3 = true;
20263 }
20264 if (obj3) {
20265 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20266 if (!SWIG_IsOK(ecode4)) {
20267 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20268 }
20269 arg4 = static_cast< bool >(val4);
20270 }
20271 if (obj4) {
20272 ecode5 = SWIG_AsVal_int(obj4, &val5);
20273 if (!SWIG_IsOK(ecode5)) {
20274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20275 }
20276 arg5 = static_cast< int >(val5);
20277 }
20278 {
20279 PyThreadState* __tstate = wxPyBeginAllowThreads();
20280 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20281 wxPyEndAllowThreads(__tstate);
20282 if (PyErr_Occurred()) SWIG_fail;
20283 }
20284 {
20285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20286 }
20287 {
20288 if (temp3)
20289 delete arg3;
20290 }
20291 return resultobj;
20292 fail:
20293 {
20294 if (temp3)
20295 delete arg3;
20296 }
20297 return NULL;
20298 }
20299
20300
20301 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj = 0;
20303 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20304 size_t arg2 ;
20305 wxWindow *arg3 = (wxWindow *) 0 ;
20306 wxString *arg4 = 0 ;
20307 bool arg5 = (bool) false ;
20308 int arg6 = (int) -1 ;
20309 bool result;
20310 void *argp1 = 0 ;
20311 int res1 = 0 ;
20312 size_t val2 ;
20313 int ecode2 = 0 ;
20314 void *argp3 = 0 ;
20315 int res3 = 0 ;
20316 bool temp4 = false ;
20317 bool val5 ;
20318 int ecode5 = 0 ;
20319 int val6 ;
20320 int ecode6 = 0 ;
20321 PyObject * obj0 = 0 ;
20322 PyObject * obj1 = 0 ;
20323 PyObject * obj2 = 0 ;
20324 PyObject * obj3 = 0 ;
20325 PyObject * obj4 = 0 ;
20326 PyObject * obj5 = 0 ;
20327 char * kwnames[] = {
20328 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20329 };
20330
20331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20333 if (!SWIG_IsOK(res1)) {
20334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20335 }
20336 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20337 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20338 if (!SWIG_IsOK(ecode2)) {
20339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20340 }
20341 arg2 = static_cast< size_t >(val2);
20342 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20343 if (!SWIG_IsOK(res3)) {
20344 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20345 }
20346 arg3 = reinterpret_cast< wxWindow * >(argp3);
20347 {
20348 arg4 = wxString_in_helper(obj3);
20349 if (arg4 == NULL) SWIG_fail;
20350 temp4 = true;
20351 }
20352 if (obj4) {
20353 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20354 if (!SWIG_IsOK(ecode5)) {
20355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20356 }
20357 arg5 = static_cast< bool >(val5);
20358 }
20359 if (obj5) {
20360 ecode6 = SWIG_AsVal_int(obj5, &val6);
20361 if (!SWIG_IsOK(ecode6)) {
20362 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20363 }
20364 arg6 = static_cast< int >(val6);
20365 }
20366 {
20367 PyThreadState* __tstate = wxPyBeginAllowThreads();
20368 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20369 wxPyEndAllowThreads(__tstate);
20370 if (PyErr_Occurred()) SWIG_fail;
20371 }
20372 {
20373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20374 }
20375 {
20376 if (temp4)
20377 delete arg4;
20378 }
20379 return resultobj;
20380 fail:
20381 {
20382 if (temp4)
20383 delete arg4;
20384 }
20385 return NULL;
20386 }
20387
20388
20389 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20390 PyObject *resultobj = 0;
20391 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20392 size_t arg2 ;
20393 int result;
20394 void *argp1 = 0 ;
20395 int res1 = 0 ;
20396 size_t val2 ;
20397 int ecode2 = 0 ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "n", NULL
20402 };
20403
20404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20408 }
20409 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20410 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20411 if (!SWIG_IsOK(ecode2)) {
20412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20413 }
20414 arg2 = static_cast< size_t >(val2);
20415 {
20416 PyThreadState* __tstate = wxPyBeginAllowThreads();
20417 result = (int)(arg1)->SetSelection(arg2);
20418 wxPyEndAllowThreads(__tstate);
20419 if (PyErr_Occurred()) SWIG_fail;
20420 }
20421 resultobj = SWIG_From_int(static_cast< int >(result));
20422 return resultobj;
20423 fail:
20424 return NULL;
20425 }
20426
20427
20428 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20429 PyObject *resultobj = 0;
20430 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20431 size_t arg2 ;
20432 int result;
20433 void *argp1 = 0 ;
20434 int res1 = 0 ;
20435 size_t val2 ;
20436 int ecode2 = 0 ;
20437 PyObject * obj0 = 0 ;
20438 PyObject * obj1 = 0 ;
20439 char * kwnames[] = {
20440 (char *) "self",(char *) "n", NULL
20441 };
20442
20443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20445 if (!SWIG_IsOK(res1)) {
20446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20447 }
20448 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20449 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20450 if (!SWIG_IsOK(ecode2)) {
20451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20452 }
20453 arg2 = static_cast< size_t >(val2);
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = (int)(arg1)->ChangeSelection(arg2);
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 resultobj = SWIG_From_int(static_cast< int >(result));
20461 return resultobj;
20462 fail:
20463 return NULL;
20464 }
20465
20466
20467 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20468 PyObject *resultobj = 0;
20469 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20470 bool arg2 = (bool) true ;
20471 void *argp1 = 0 ;
20472 int res1 = 0 ;
20473 bool val2 ;
20474 int ecode2 = 0 ;
20475 PyObject * obj0 = 0 ;
20476 PyObject * obj1 = 0 ;
20477 char * kwnames[] = {
20478 (char *) "self",(char *) "forward", NULL
20479 };
20480
20481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20483 if (!SWIG_IsOK(res1)) {
20484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20485 }
20486 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20487 if (obj1) {
20488 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20489 if (!SWIG_IsOK(ecode2)) {
20490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20491 }
20492 arg2 = static_cast< bool >(val2);
20493 }
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 (arg1)->AdvanceSelection(arg2);
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_Py_Void();
20501 return resultobj;
20502 fail:
20503 return NULL;
20504 }
20505
20506
20507 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20508 PyObject *resultobj = 0;
20509 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20510 wxPoint *arg2 = 0 ;
20511 long *arg3 = (long *) 0 ;
20512 int result;
20513 void *argp1 = 0 ;
20514 int res1 = 0 ;
20515 wxPoint temp2 ;
20516 long temp3 ;
20517 int res3 = SWIG_TMPOBJ ;
20518 PyObject * obj0 = 0 ;
20519 PyObject * obj1 = 0 ;
20520 char * kwnames[] = {
20521 (char *) "self",(char *) "pt", NULL
20522 };
20523
20524 arg3 = &temp3;
20525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20527 if (!SWIG_IsOK(res1)) {
20528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20529 }
20530 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20531 {
20532 arg2 = &temp2;
20533 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20534 }
20535 {
20536 PyThreadState* __tstate = wxPyBeginAllowThreads();
20537 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20538 wxPyEndAllowThreads(__tstate);
20539 if (PyErr_Occurred()) SWIG_fail;
20540 }
20541 resultobj = SWIG_From_int(static_cast< int >(result));
20542 if (SWIG_IsTmpObj(res3)) {
20543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20544 } else {
20545 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20547 }
20548 return resultobj;
20549 fail:
20550 return NULL;
20551 }
20552
20553
20554 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20555 PyObject *resultobj = 0;
20556 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20557 SwigValueWrapper<wxVisualAttributes > result;
20558 int val1 ;
20559 int ecode1 = 0 ;
20560 PyObject * obj0 = 0 ;
20561 char * kwnames[] = {
20562 (char *) "variant", NULL
20563 };
20564
20565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20566 if (obj0) {
20567 ecode1 = SWIG_AsVal_int(obj0, &val1);
20568 if (!SWIG_IsOK(ecode1)) {
20569 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20570 }
20571 arg1 = static_cast< wxWindowVariant >(val1);
20572 }
20573 {
20574 if (!wxPyCheckForApp()) SWIG_fail;
20575 PyThreadState* __tstate = wxPyBeginAllowThreads();
20576 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20577 wxPyEndAllowThreads(__tstate);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 }
20580 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20581 return resultobj;
20582 fail:
20583 return NULL;
20584 }
20585
20586
20587 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20588 PyObject *obj;
20589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20590 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20591 return SWIG_Py_Void();
20592 }
20593
20594 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20595 PyObject *resultobj = 0;
20596 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20597 int arg2 = (int) 0 ;
20598 int arg3 = (int) -1 ;
20599 int arg4 = (int) -1 ;
20600 wxBookCtrlBaseEvent *result = 0 ;
20601 int val1 ;
20602 int ecode1 = 0 ;
20603 int val2 ;
20604 int ecode2 = 0 ;
20605 int val3 ;
20606 int ecode3 = 0 ;
20607 int val4 ;
20608 int ecode4 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 PyObject * obj2 = 0 ;
20612 PyObject * obj3 = 0 ;
20613 char * kwnames[] = {
20614 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20615 };
20616
20617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20618 if (obj0) {
20619 ecode1 = SWIG_AsVal_int(obj0, &val1);
20620 if (!SWIG_IsOK(ecode1)) {
20621 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20622 }
20623 arg1 = static_cast< wxEventType >(val1);
20624 }
20625 if (obj1) {
20626 ecode2 = SWIG_AsVal_int(obj1, &val2);
20627 if (!SWIG_IsOK(ecode2)) {
20628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20629 }
20630 arg2 = static_cast< int >(val2);
20631 }
20632 if (obj2) {
20633 ecode3 = SWIG_AsVal_int(obj2, &val3);
20634 if (!SWIG_IsOK(ecode3)) {
20635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20636 }
20637 arg3 = static_cast< int >(val3);
20638 }
20639 if (obj3) {
20640 ecode4 = SWIG_AsVal_int(obj3, &val4);
20641 if (!SWIG_IsOK(ecode4)) {
20642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20643 }
20644 arg4 = static_cast< int >(val4);
20645 }
20646 {
20647 PyThreadState* __tstate = wxPyBeginAllowThreads();
20648 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20653 return resultobj;
20654 fail:
20655 return NULL;
20656 }
20657
20658
20659 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20660 PyObject *resultobj = 0;
20661 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20662 int result;
20663 void *argp1 = 0 ;
20664 int res1 = 0 ;
20665 PyObject *swig_obj[1] ;
20666
20667 if (!args) SWIG_fail;
20668 swig_obj[0] = args;
20669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20670 if (!SWIG_IsOK(res1)) {
20671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20672 }
20673 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20674 {
20675 PyThreadState* __tstate = wxPyBeginAllowThreads();
20676 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20677 wxPyEndAllowThreads(__tstate);
20678 if (PyErr_Occurred()) SWIG_fail;
20679 }
20680 resultobj = SWIG_From_int(static_cast< int >(result));
20681 return resultobj;
20682 fail:
20683 return NULL;
20684 }
20685
20686
20687 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20688 PyObject *resultobj = 0;
20689 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20690 int arg2 ;
20691 void *argp1 = 0 ;
20692 int res1 = 0 ;
20693 int val2 ;
20694 int ecode2 = 0 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "self",(char *) "nSel", NULL
20699 };
20700
20701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20703 if (!SWIG_IsOK(res1)) {
20704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20705 }
20706 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20707 ecode2 = SWIG_AsVal_int(obj1, &val2);
20708 if (!SWIG_IsOK(ecode2)) {
20709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20710 }
20711 arg2 = static_cast< int >(val2);
20712 {
20713 PyThreadState* __tstate = wxPyBeginAllowThreads();
20714 (arg1)->SetSelection(arg2);
20715 wxPyEndAllowThreads(__tstate);
20716 if (PyErr_Occurred()) SWIG_fail;
20717 }
20718 resultobj = SWIG_Py_Void();
20719 return resultobj;
20720 fail:
20721 return NULL;
20722 }
20723
20724
20725 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20726 PyObject *resultobj = 0;
20727 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20728 int result;
20729 void *argp1 = 0 ;
20730 int res1 = 0 ;
20731 PyObject *swig_obj[1] ;
20732
20733 if (!args) SWIG_fail;
20734 swig_obj[0] = args;
20735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20736 if (!SWIG_IsOK(res1)) {
20737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20738 }
20739 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_From_int(static_cast< int >(result));
20747 return resultobj;
20748 fail:
20749 return NULL;
20750 }
20751
20752
20753 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20754 PyObject *resultobj = 0;
20755 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20756 int arg2 ;
20757 void *argp1 = 0 ;
20758 int res1 = 0 ;
20759 int val2 ;
20760 int ecode2 = 0 ;
20761 PyObject * obj0 = 0 ;
20762 PyObject * obj1 = 0 ;
20763 char * kwnames[] = {
20764 (char *) "self",(char *) "nOldSel", NULL
20765 };
20766
20767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20771 }
20772 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20773 ecode2 = SWIG_AsVal_int(obj1, &val2);
20774 if (!SWIG_IsOK(ecode2)) {
20775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20776 }
20777 arg2 = static_cast< int >(val2);
20778 {
20779 PyThreadState* __tstate = wxPyBeginAllowThreads();
20780 (arg1)->SetOldSelection(arg2);
20781 wxPyEndAllowThreads(__tstate);
20782 if (PyErr_Occurred()) SWIG_fail;
20783 }
20784 resultobj = SWIG_Py_Void();
20785 return resultobj;
20786 fail:
20787 return NULL;
20788 }
20789
20790
20791 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20792 PyObject *obj;
20793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20794 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20795 return SWIG_Py_Void();
20796 }
20797
20798 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20799 return SWIG_Python_InitShadowInstance(args);
20800 }
20801
20802 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20803 PyObject *resultobj = 0;
20804 wxWindow *arg1 = (wxWindow *) 0 ;
20805 int arg2 = (int) -1 ;
20806 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20807 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20808 wxSize const &arg4_defvalue = wxDefaultSize ;
20809 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20810 long arg5 = (long) 0 ;
20811 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20812 wxString *arg6 = (wxString *) &arg6_defvalue ;
20813 wxNotebook *result = 0 ;
20814 void *argp1 = 0 ;
20815 int res1 = 0 ;
20816 int val2 ;
20817 int ecode2 = 0 ;
20818 wxPoint temp3 ;
20819 wxSize temp4 ;
20820 long val5 ;
20821 int ecode5 = 0 ;
20822 bool temp6 = false ;
20823 PyObject * obj0 = 0 ;
20824 PyObject * obj1 = 0 ;
20825 PyObject * obj2 = 0 ;
20826 PyObject * obj3 = 0 ;
20827 PyObject * obj4 = 0 ;
20828 PyObject * obj5 = 0 ;
20829 char * kwnames[] = {
20830 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20831 };
20832
20833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20835 if (!SWIG_IsOK(res1)) {
20836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20837 }
20838 arg1 = reinterpret_cast< wxWindow * >(argp1);
20839 if (obj1) {
20840 ecode2 = SWIG_AsVal_int(obj1, &val2);
20841 if (!SWIG_IsOK(ecode2)) {
20842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20843 }
20844 arg2 = static_cast< int >(val2);
20845 }
20846 if (obj2) {
20847 {
20848 arg3 = &temp3;
20849 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20850 }
20851 }
20852 if (obj3) {
20853 {
20854 arg4 = &temp4;
20855 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20856 }
20857 }
20858 if (obj4) {
20859 ecode5 = SWIG_AsVal_long(obj4, &val5);
20860 if (!SWIG_IsOK(ecode5)) {
20861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20862 }
20863 arg5 = static_cast< long >(val5);
20864 }
20865 if (obj5) {
20866 {
20867 arg6 = wxString_in_helper(obj5);
20868 if (arg6 == NULL) SWIG_fail;
20869 temp6 = true;
20870 }
20871 }
20872 {
20873 if (!wxPyCheckForApp()) SWIG_fail;
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20880 {
20881 if (temp6)
20882 delete arg6;
20883 }
20884 return resultobj;
20885 fail:
20886 {
20887 if (temp6)
20888 delete arg6;
20889 }
20890 return NULL;
20891 }
20892
20893
20894 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20895 PyObject *resultobj = 0;
20896 wxNotebook *result = 0 ;
20897
20898 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20899 {
20900 if (!wxPyCheckForApp()) SWIG_fail;
20901 PyThreadState* __tstate = wxPyBeginAllowThreads();
20902 result = (wxNotebook *)new wxNotebook();
20903 wxPyEndAllowThreads(__tstate);
20904 if (PyErr_Occurred()) SWIG_fail;
20905 }
20906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20907 return resultobj;
20908 fail:
20909 return NULL;
20910 }
20911
20912
20913 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20914 PyObject *resultobj = 0;
20915 wxNotebook *arg1 = (wxNotebook *) 0 ;
20916 wxWindow *arg2 = (wxWindow *) 0 ;
20917 int arg3 = (int) -1 ;
20918 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20919 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20920 wxSize const &arg5_defvalue = wxDefaultSize ;
20921 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20922 long arg6 = (long) 0 ;
20923 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20924 wxString *arg7 = (wxString *) &arg7_defvalue ;
20925 bool result;
20926 void *argp1 = 0 ;
20927 int res1 = 0 ;
20928 void *argp2 = 0 ;
20929 int res2 = 0 ;
20930 int val3 ;
20931 int ecode3 = 0 ;
20932 wxPoint temp4 ;
20933 wxSize temp5 ;
20934 long val6 ;
20935 int ecode6 = 0 ;
20936 bool temp7 = false ;
20937 PyObject * obj0 = 0 ;
20938 PyObject * obj1 = 0 ;
20939 PyObject * obj2 = 0 ;
20940 PyObject * obj3 = 0 ;
20941 PyObject * obj4 = 0 ;
20942 PyObject * obj5 = 0 ;
20943 PyObject * obj6 = 0 ;
20944 char * kwnames[] = {
20945 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20946 };
20947
20948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20950 if (!SWIG_IsOK(res1)) {
20951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20952 }
20953 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20955 if (!SWIG_IsOK(res2)) {
20956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20957 }
20958 arg2 = reinterpret_cast< wxWindow * >(argp2);
20959 if (obj2) {
20960 ecode3 = SWIG_AsVal_int(obj2, &val3);
20961 if (!SWIG_IsOK(ecode3)) {
20962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20963 }
20964 arg3 = static_cast< int >(val3);
20965 }
20966 if (obj3) {
20967 {
20968 arg4 = &temp4;
20969 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20970 }
20971 }
20972 if (obj4) {
20973 {
20974 arg5 = &temp5;
20975 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20976 }
20977 }
20978 if (obj5) {
20979 ecode6 = SWIG_AsVal_long(obj5, &val6);
20980 if (!SWIG_IsOK(ecode6)) {
20981 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20982 }
20983 arg6 = static_cast< long >(val6);
20984 }
20985 if (obj6) {
20986 {
20987 arg7 = wxString_in_helper(obj6);
20988 if (arg7 == NULL) SWIG_fail;
20989 temp7 = true;
20990 }
20991 }
20992 {
20993 PyThreadState* __tstate = wxPyBeginAllowThreads();
20994 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20995 wxPyEndAllowThreads(__tstate);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 }
20998 {
20999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21000 }
21001 {
21002 if (temp7)
21003 delete arg7;
21004 }
21005 return resultobj;
21006 fail:
21007 {
21008 if (temp7)
21009 delete arg7;
21010 }
21011 return NULL;
21012 }
21013
21014
21015 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21016 PyObject *resultobj = 0;
21017 wxNotebook *arg1 = (wxNotebook *) 0 ;
21018 int result;
21019 void *argp1 = 0 ;
21020 int res1 = 0 ;
21021 PyObject *swig_obj[1] ;
21022
21023 if (!args) SWIG_fail;
21024 swig_obj[0] = args;
21025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21026 if (!SWIG_IsOK(res1)) {
21027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21028 }
21029 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21030 {
21031 PyThreadState* __tstate = wxPyBeginAllowThreads();
21032 result = (int)((wxNotebook const *)arg1)->GetRowCount();
21033 wxPyEndAllowThreads(__tstate);
21034 if (PyErr_Occurred()) SWIG_fail;
21035 }
21036 resultobj = SWIG_From_int(static_cast< int >(result));
21037 return resultobj;
21038 fail:
21039 return NULL;
21040 }
21041
21042
21043 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21044 PyObject *resultobj = 0;
21045 wxNotebook *arg1 = (wxNotebook *) 0 ;
21046 wxSize *arg2 = 0 ;
21047 void *argp1 = 0 ;
21048 int res1 = 0 ;
21049 wxSize temp2 ;
21050 PyObject * obj0 = 0 ;
21051 PyObject * obj1 = 0 ;
21052 char * kwnames[] = {
21053 (char *) "self",(char *) "padding", NULL
21054 };
21055
21056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
21057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21058 if (!SWIG_IsOK(res1)) {
21059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
21060 }
21061 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21062 {
21063 arg2 = &temp2;
21064 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21065 }
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 (arg1)->SetPadding((wxSize const &)*arg2);
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 resultobj = SWIG_Py_Void();
21073 return resultobj;
21074 fail:
21075 return NULL;
21076 }
21077
21078
21079 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21080 PyObject *resultobj = 0;
21081 wxNotebook *arg1 = (wxNotebook *) 0 ;
21082 wxSize *arg2 = 0 ;
21083 void *argp1 = 0 ;
21084 int res1 = 0 ;
21085 wxSize temp2 ;
21086 PyObject * obj0 = 0 ;
21087 PyObject * obj1 = 0 ;
21088 char * kwnames[] = {
21089 (char *) "self",(char *) "sz", NULL
21090 };
21091
21092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21094 if (!SWIG_IsOK(res1)) {
21095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21096 }
21097 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21098 {
21099 arg2 = &temp2;
21100 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21101 }
21102 {
21103 PyThreadState* __tstate = wxPyBeginAllowThreads();
21104 (arg1)->SetTabSize((wxSize const &)*arg2);
21105 wxPyEndAllowThreads(__tstate);
21106 if (PyErr_Occurred()) SWIG_fail;
21107 }
21108 resultobj = SWIG_Py_Void();
21109 return resultobj;
21110 fail:
21111 return NULL;
21112 }
21113
21114
21115 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21116 PyObject *resultobj = 0;
21117 wxNotebook *arg1 = (wxNotebook *) 0 ;
21118 wxColour result;
21119 void *argp1 = 0 ;
21120 int res1 = 0 ;
21121 PyObject *swig_obj[1] ;
21122
21123 if (!args) SWIG_fail;
21124 swig_obj[0] = args;
21125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21126 if (!SWIG_IsOK(res1)) {
21127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21128 }
21129 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21133 wxPyEndAllowThreads(__tstate);
21134 if (PyErr_Occurred()) SWIG_fail;
21135 }
21136 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21137 return resultobj;
21138 fail:
21139 return NULL;
21140 }
21141
21142
21143 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21144 PyObject *resultobj = 0;
21145 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21146 SwigValueWrapper<wxVisualAttributes > result;
21147 int val1 ;
21148 int ecode1 = 0 ;
21149 PyObject * obj0 = 0 ;
21150 char * kwnames[] = {
21151 (char *) "variant", NULL
21152 };
21153
21154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21155 if (obj0) {
21156 ecode1 = SWIG_AsVal_int(obj0, &val1);
21157 if (!SWIG_IsOK(ecode1)) {
21158 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21159 }
21160 arg1 = static_cast< wxWindowVariant >(val1);
21161 }
21162 {
21163 if (!wxPyCheckForApp()) SWIG_fail;
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 result = wxNotebook::GetClassDefaultAttributes(arg1);
21166 wxPyEndAllowThreads(__tstate);
21167 if (PyErr_Occurred()) SWIG_fail;
21168 }
21169 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21170 return resultobj;
21171 fail:
21172 return NULL;
21173 }
21174
21175
21176 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21177 PyObject *resultobj = 0;
21178 wxNotebook *arg1 = (wxNotebook *) 0 ;
21179 int arg2 ;
21180 bool result;
21181 void *argp1 = 0 ;
21182 int res1 = 0 ;
21183 int val2 ;
21184 int ecode2 = 0 ;
21185 PyObject * obj0 = 0 ;
21186 PyObject * obj1 = 0 ;
21187 char * kwnames[] = {
21188 (char *) "self",(char *) "nPage", NULL
21189 };
21190
21191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21195 }
21196 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21197 ecode2 = SWIG_AsVal_int(obj1, &val2);
21198 if (!SWIG_IsOK(ecode2)) {
21199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21200 }
21201 arg2 = static_cast< int >(val2);
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21205 wxPyEndAllowThreads(__tstate);
21206 if (PyErr_Occurred()) SWIG_fail;
21207 }
21208 {
21209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21210 }
21211 return resultobj;
21212 fail:
21213 return NULL;
21214 }
21215
21216
21217 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21218 PyObject *resultobj = 0;
21219 wxNotebook *arg1 = (wxNotebook *) 0 ;
21220 int arg2 ;
21221 int arg3 = (int) -1 ;
21222 void *argp1 = 0 ;
21223 int res1 = 0 ;
21224 int val2 ;
21225 int ecode2 = 0 ;
21226 int val3 ;
21227 int ecode3 = 0 ;
21228 PyObject * obj0 = 0 ;
21229 PyObject * obj1 = 0 ;
21230 PyObject * obj2 = 0 ;
21231 char * kwnames[] = {
21232 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21233 };
21234
21235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21237 if (!SWIG_IsOK(res1)) {
21238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21239 }
21240 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21241 ecode2 = SWIG_AsVal_int(obj1, &val2);
21242 if (!SWIG_IsOK(ecode2)) {
21243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21244 }
21245 arg2 = static_cast< int >(val2);
21246 if (obj2) {
21247 ecode3 = SWIG_AsVal_int(obj2, &val3);
21248 if (!SWIG_IsOK(ecode3)) {
21249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21250 }
21251 arg3 = static_cast< int >(val3);
21252 }
21253 {
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 (arg1)->SendPageChangedEvent(arg2,arg3);
21256 wxPyEndAllowThreads(__tstate);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 resultobj = SWIG_Py_Void();
21260 return resultobj;
21261 fail:
21262 return NULL;
21263 }
21264
21265
21266 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21267 PyObject *obj;
21268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21269 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21270 return SWIG_Py_Void();
21271 }
21272
21273 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21274 return SWIG_Python_InitShadowInstance(args);
21275 }
21276
21277 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21278 PyObject *resultobj = 0;
21279 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21280 int arg2 = (int) 0 ;
21281 int arg3 = (int) -1 ;
21282 int arg4 = (int) -1 ;
21283 wxNotebookEvent *result = 0 ;
21284 int val1 ;
21285 int ecode1 = 0 ;
21286 int val2 ;
21287 int ecode2 = 0 ;
21288 int val3 ;
21289 int ecode3 = 0 ;
21290 int val4 ;
21291 int ecode4 = 0 ;
21292 PyObject * obj0 = 0 ;
21293 PyObject * obj1 = 0 ;
21294 PyObject * obj2 = 0 ;
21295 PyObject * obj3 = 0 ;
21296 char * kwnames[] = {
21297 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21298 };
21299
21300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21301 if (obj0) {
21302 ecode1 = SWIG_AsVal_int(obj0, &val1);
21303 if (!SWIG_IsOK(ecode1)) {
21304 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21305 }
21306 arg1 = static_cast< wxEventType >(val1);
21307 }
21308 if (obj1) {
21309 ecode2 = SWIG_AsVal_int(obj1, &val2);
21310 if (!SWIG_IsOK(ecode2)) {
21311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21312 }
21313 arg2 = static_cast< int >(val2);
21314 }
21315 if (obj2) {
21316 ecode3 = SWIG_AsVal_int(obj2, &val3);
21317 if (!SWIG_IsOK(ecode3)) {
21318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21319 }
21320 arg3 = static_cast< int >(val3);
21321 }
21322 if (obj3) {
21323 ecode4 = SWIG_AsVal_int(obj3, &val4);
21324 if (!SWIG_IsOK(ecode4)) {
21325 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21326 }
21327 arg4 = static_cast< int >(val4);
21328 }
21329 {
21330 PyThreadState* __tstate = wxPyBeginAllowThreads();
21331 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21332 wxPyEndAllowThreads(__tstate);
21333 if (PyErr_Occurred()) SWIG_fail;
21334 }
21335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21336 return resultobj;
21337 fail:
21338 return NULL;
21339 }
21340
21341
21342 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21343 PyObject *obj;
21344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21345 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21346 return SWIG_Py_Void();
21347 }
21348
21349 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21350 return SWIG_Python_InitShadowInstance(args);
21351 }
21352
21353 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21354 PyObject *resultobj = 0;
21355 wxWindow *arg1 = (wxWindow *) 0 ;
21356 int arg2 = (int) -1 ;
21357 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21358 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21359 wxSize const &arg4_defvalue = wxDefaultSize ;
21360 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21361 long arg5 = (long) 0 ;
21362 wxString const &arg6_defvalue = wxPyEmptyString ;
21363 wxString *arg6 = (wxString *) &arg6_defvalue ;
21364 wxListbook *result = 0 ;
21365 void *argp1 = 0 ;
21366 int res1 = 0 ;
21367 int val2 ;
21368 int ecode2 = 0 ;
21369 wxPoint temp3 ;
21370 wxSize temp4 ;
21371 long val5 ;
21372 int ecode5 = 0 ;
21373 bool temp6 = false ;
21374 PyObject * obj0 = 0 ;
21375 PyObject * obj1 = 0 ;
21376 PyObject * obj2 = 0 ;
21377 PyObject * obj3 = 0 ;
21378 PyObject * obj4 = 0 ;
21379 PyObject * obj5 = 0 ;
21380 char * kwnames[] = {
21381 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21382 };
21383
21384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21386 if (!SWIG_IsOK(res1)) {
21387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21388 }
21389 arg1 = reinterpret_cast< wxWindow * >(argp1);
21390 if (obj1) {
21391 ecode2 = SWIG_AsVal_int(obj1, &val2);
21392 if (!SWIG_IsOK(ecode2)) {
21393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21394 }
21395 arg2 = static_cast< int >(val2);
21396 }
21397 if (obj2) {
21398 {
21399 arg3 = &temp3;
21400 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21401 }
21402 }
21403 if (obj3) {
21404 {
21405 arg4 = &temp4;
21406 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21407 }
21408 }
21409 if (obj4) {
21410 ecode5 = SWIG_AsVal_long(obj4, &val5);
21411 if (!SWIG_IsOK(ecode5)) {
21412 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21413 }
21414 arg5 = static_cast< long >(val5);
21415 }
21416 if (obj5) {
21417 {
21418 arg6 = wxString_in_helper(obj5);
21419 if (arg6 == NULL) SWIG_fail;
21420 temp6 = true;
21421 }
21422 }
21423 {
21424 if (!wxPyCheckForApp()) SWIG_fail;
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21431 {
21432 if (temp6)
21433 delete arg6;
21434 }
21435 return resultobj;
21436 fail:
21437 {
21438 if (temp6)
21439 delete arg6;
21440 }
21441 return NULL;
21442 }
21443
21444
21445 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21446 PyObject *resultobj = 0;
21447 wxListbook *result = 0 ;
21448
21449 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21450 {
21451 if (!wxPyCheckForApp()) SWIG_fail;
21452 PyThreadState* __tstate = wxPyBeginAllowThreads();
21453 result = (wxListbook *)new wxListbook();
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21458 return resultobj;
21459 fail:
21460 return NULL;
21461 }
21462
21463
21464 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21465 PyObject *resultobj = 0;
21466 wxListbook *arg1 = (wxListbook *) 0 ;
21467 wxWindow *arg2 = (wxWindow *) 0 ;
21468 int arg3 = (int) -1 ;
21469 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21470 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21471 wxSize const &arg5_defvalue = wxDefaultSize ;
21472 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21473 long arg6 = (long) 0 ;
21474 wxString const &arg7_defvalue = wxPyEmptyString ;
21475 wxString *arg7 = (wxString *) &arg7_defvalue ;
21476 bool result;
21477 void *argp1 = 0 ;
21478 int res1 = 0 ;
21479 void *argp2 = 0 ;
21480 int res2 = 0 ;
21481 int val3 ;
21482 int ecode3 = 0 ;
21483 wxPoint temp4 ;
21484 wxSize temp5 ;
21485 long val6 ;
21486 int ecode6 = 0 ;
21487 bool temp7 = false ;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 PyObject * obj2 = 0 ;
21491 PyObject * obj3 = 0 ;
21492 PyObject * obj4 = 0 ;
21493 PyObject * obj5 = 0 ;
21494 PyObject * obj6 = 0 ;
21495 char * kwnames[] = {
21496 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21497 };
21498
21499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21501 if (!SWIG_IsOK(res1)) {
21502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21503 }
21504 arg1 = reinterpret_cast< wxListbook * >(argp1);
21505 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21506 if (!SWIG_IsOK(res2)) {
21507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21508 }
21509 arg2 = reinterpret_cast< wxWindow * >(argp2);
21510 if (obj2) {
21511 ecode3 = SWIG_AsVal_int(obj2, &val3);
21512 if (!SWIG_IsOK(ecode3)) {
21513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21514 }
21515 arg3 = static_cast< int >(val3);
21516 }
21517 if (obj3) {
21518 {
21519 arg4 = &temp4;
21520 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21521 }
21522 }
21523 if (obj4) {
21524 {
21525 arg5 = &temp5;
21526 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21527 }
21528 }
21529 if (obj5) {
21530 ecode6 = SWIG_AsVal_long(obj5, &val6);
21531 if (!SWIG_IsOK(ecode6)) {
21532 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21533 }
21534 arg6 = static_cast< long >(val6);
21535 }
21536 if (obj6) {
21537 {
21538 arg7 = wxString_in_helper(obj6);
21539 if (arg7 == NULL) SWIG_fail;
21540 temp7 = true;
21541 }
21542 }
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 {
21550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21551 }
21552 {
21553 if (temp7)
21554 delete arg7;
21555 }
21556 return resultobj;
21557 fail:
21558 {
21559 if (temp7)
21560 delete arg7;
21561 }
21562 return NULL;
21563 }
21564
21565
21566 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21567 PyObject *resultobj = 0;
21568 wxListbook *arg1 = (wxListbook *) 0 ;
21569 wxListView *result = 0 ;
21570 void *argp1 = 0 ;
21571 int res1 = 0 ;
21572 PyObject *swig_obj[1] ;
21573
21574 if (!args) SWIG_fail;
21575 swig_obj[0] = args;
21576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21577 if (!SWIG_IsOK(res1)) {
21578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21579 }
21580 arg1 = reinterpret_cast< wxListbook * >(argp1);
21581 {
21582 PyThreadState* __tstate = wxPyBeginAllowThreads();
21583 result = (wxListView *)(arg1)->GetListView();
21584 wxPyEndAllowThreads(__tstate);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 }
21587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21588 return resultobj;
21589 fail:
21590 return NULL;
21591 }
21592
21593
21594 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21595 PyObject *obj;
21596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21597 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21598 return SWIG_Py_Void();
21599 }
21600
21601 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21602 return SWIG_Python_InitShadowInstance(args);
21603 }
21604
21605 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21606 PyObject *resultobj = 0;
21607 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21608 int arg2 = (int) 0 ;
21609 int arg3 = (int) -1 ;
21610 int arg4 = (int) -1 ;
21611 wxListbookEvent *result = 0 ;
21612 int val1 ;
21613 int ecode1 = 0 ;
21614 int val2 ;
21615 int ecode2 = 0 ;
21616 int val3 ;
21617 int ecode3 = 0 ;
21618 int val4 ;
21619 int ecode4 = 0 ;
21620 PyObject * obj0 = 0 ;
21621 PyObject * obj1 = 0 ;
21622 PyObject * obj2 = 0 ;
21623 PyObject * obj3 = 0 ;
21624 char * kwnames[] = {
21625 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21626 };
21627
21628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21629 if (obj0) {
21630 ecode1 = SWIG_AsVal_int(obj0, &val1);
21631 if (!SWIG_IsOK(ecode1)) {
21632 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21633 }
21634 arg1 = static_cast< wxEventType >(val1);
21635 }
21636 if (obj1) {
21637 ecode2 = SWIG_AsVal_int(obj1, &val2);
21638 if (!SWIG_IsOK(ecode2)) {
21639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21640 }
21641 arg2 = static_cast< int >(val2);
21642 }
21643 if (obj2) {
21644 ecode3 = SWIG_AsVal_int(obj2, &val3);
21645 if (!SWIG_IsOK(ecode3)) {
21646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21647 }
21648 arg3 = static_cast< int >(val3);
21649 }
21650 if (obj3) {
21651 ecode4 = SWIG_AsVal_int(obj3, &val4);
21652 if (!SWIG_IsOK(ecode4)) {
21653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21654 }
21655 arg4 = static_cast< int >(val4);
21656 }
21657 {
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
21659 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21664 return resultobj;
21665 fail:
21666 return NULL;
21667 }
21668
21669
21670 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21671 PyObject *obj;
21672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21673 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21674 return SWIG_Py_Void();
21675 }
21676
21677 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21678 return SWIG_Python_InitShadowInstance(args);
21679 }
21680
21681 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21682 PyObject *resultobj = 0;
21683 wxWindow *arg1 = (wxWindow *) 0 ;
21684 int arg2 ;
21685 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21686 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21687 wxSize const &arg4_defvalue = wxDefaultSize ;
21688 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21689 long arg5 = (long) 0 ;
21690 wxString const &arg6_defvalue = wxPyEmptyString ;
21691 wxString *arg6 = (wxString *) &arg6_defvalue ;
21692 wxChoicebook *result = 0 ;
21693 void *argp1 = 0 ;
21694 int res1 = 0 ;
21695 int val2 ;
21696 int ecode2 = 0 ;
21697 wxPoint temp3 ;
21698 wxSize temp4 ;
21699 long val5 ;
21700 int ecode5 = 0 ;
21701 bool temp6 = false ;
21702 PyObject * obj0 = 0 ;
21703 PyObject * obj1 = 0 ;
21704 PyObject * obj2 = 0 ;
21705 PyObject * obj3 = 0 ;
21706 PyObject * obj4 = 0 ;
21707 PyObject * obj5 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21716 }
21717 arg1 = reinterpret_cast< wxWindow * >(argp1);
21718 ecode2 = SWIG_AsVal_int(obj1, &val2);
21719 if (!SWIG_IsOK(ecode2)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21721 }
21722 arg2 = static_cast< int >(val2);
21723 if (obj2) {
21724 {
21725 arg3 = &temp3;
21726 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21727 }
21728 }
21729 if (obj3) {
21730 {
21731 arg4 = &temp4;
21732 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21733 }
21734 }
21735 if (obj4) {
21736 ecode5 = SWIG_AsVal_long(obj4, &val5);
21737 if (!SWIG_IsOK(ecode5)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21739 }
21740 arg5 = static_cast< long >(val5);
21741 }
21742 if (obj5) {
21743 {
21744 arg6 = wxString_in_helper(obj5);
21745 if (arg6 == NULL) SWIG_fail;
21746 temp6 = true;
21747 }
21748 }
21749 {
21750 if (!wxPyCheckForApp()) SWIG_fail;
21751 PyThreadState* __tstate = wxPyBeginAllowThreads();
21752 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21753 wxPyEndAllowThreads(__tstate);
21754 if (PyErr_Occurred()) SWIG_fail;
21755 }
21756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21757 {
21758 if (temp6)
21759 delete arg6;
21760 }
21761 return resultobj;
21762 fail:
21763 {
21764 if (temp6)
21765 delete arg6;
21766 }
21767 return NULL;
21768 }
21769
21770
21771 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21772 PyObject *resultobj = 0;
21773 wxChoicebook *result = 0 ;
21774
21775 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21776 {
21777 if (!wxPyCheckForApp()) SWIG_fail;
21778 PyThreadState* __tstate = wxPyBeginAllowThreads();
21779 result = (wxChoicebook *)new wxChoicebook();
21780 wxPyEndAllowThreads(__tstate);
21781 if (PyErr_Occurred()) SWIG_fail;
21782 }
21783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21784 return resultobj;
21785 fail:
21786 return NULL;
21787 }
21788
21789
21790 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21791 PyObject *resultobj = 0;
21792 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21793 wxWindow *arg2 = (wxWindow *) 0 ;
21794 int arg3 ;
21795 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21796 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21797 wxSize const &arg5_defvalue = wxDefaultSize ;
21798 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21799 long arg6 = (long) 0 ;
21800 wxString const &arg7_defvalue = wxPyEmptyString ;
21801 wxString *arg7 = (wxString *) &arg7_defvalue ;
21802 bool result;
21803 void *argp1 = 0 ;
21804 int res1 = 0 ;
21805 void *argp2 = 0 ;
21806 int res2 = 0 ;
21807 int val3 ;
21808 int ecode3 = 0 ;
21809 wxPoint temp4 ;
21810 wxSize temp5 ;
21811 long val6 ;
21812 int ecode6 = 0 ;
21813 bool temp7 = false ;
21814 PyObject * obj0 = 0 ;
21815 PyObject * obj1 = 0 ;
21816 PyObject * obj2 = 0 ;
21817 PyObject * obj3 = 0 ;
21818 PyObject * obj4 = 0 ;
21819 PyObject * obj5 = 0 ;
21820 PyObject * obj6 = 0 ;
21821 char * kwnames[] = {
21822 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21823 };
21824
21825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21827 if (!SWIG_IsOK(res1)) {
21828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21829 }
21830 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21831 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21832 if (!SWIG_IsOK(res2)) {
21833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21834 }
21835 arg2 = reinterpret_cast< wxWindow * >(argp2);
21836 ecode3 = SWIG_AsVal_int(obj2, &val3);
21837 if (!SWIG_IsOK(ecode3)) {
21838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21839 }
21840 arg3 = static_cast< int >(val3);
21841 if (obj3) {
21842 {
21843 arg4 = &temp4;
21844 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21845 }
21846 }
21847 if (obj4) {
21848 {
21849 arg5 = &temp5;
21850 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21851 }
21852 }
21853 if (obj5) {
21854 ecode6 = SWIG_AsVal_long(obj5, &val6);
21855 if (!SWIG_IsOK(ecode6)) {
21856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21857 }
21858 arg6 = static_cast< long >(val6);
21859 }
21860 if (obj6) {
21861 {
21862 arg7 = wxString_in_helper(obj6);
21863 if (arg7 == NULL) SWIG_fail;
21864 temp7 = true;
21865 }
21866 }
21867 {
21868 PyThreadState* __tstate = wxPyBeginAllowThreads();
21869 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21870 wxPyEndAllowThreads(__tstate);
21871 if (PyErr_Occurred()) SWIG_fail;
21872 }
21873 {
21874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21875 }
21876 {
21877 if (temp7)
21878 delete arg7;
21879 }
21880 return resultobj;
21881 fail:
21882 {
21883 if (temp7)
21884 delete arg7;
21885 }
21886 return NULL;
21887 }
21888
21889
21890 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21891 PyObject *resultobj = 0;
21892 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21893 wxChoice *result = 0 ;
21894 void *argp1 = 0 ;
21895 int res1 = 0 ;
21896 PyObject *swig_obj[1] ;
21897
21898 if (!args) SWIG_fail;
21899 swig_obj[0] = args;
21900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21901 if (!SWIG_IsOK(res1)) {
21902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21903 }
21904 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21905 {
21906 PyThreadState* __tstate = wxPyBeginAllowThreads();
21907 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21908 wxPyEndAllowThreads(__tstate);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 }
21911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21912 return resultobj;
21913 fail:
21914 return NULL;
21915 }
21916
21917
21918 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21919 PyObject *obj;
21920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21921 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21922 return SWIG_Py_Void();
21923 }
21924
21925 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21926 return SWIG_Python_InitShadowInstance(args);
21927 }
21928
21929 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21930 PyObject *resultobj = 0;
21931 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21932 int arg2 = (int) 0 ;
21933 int arg3 = (int) -1 ;
21934 int arg4 = (int) -1 ;
21935 wxChoicebookEvent *result = 0 ;
21936 int val1 ;
21937 int ecode1 = 0 ;
21938 int val2 ;
21939 int ecode2 = 0 ;
21940 int val3 ;
21941 int ecode3 = 0 ;
21942 int val4 ;
21943 int ecode4 = 0 ;
21944 PyObject * obj0 = 0 ;
21945 PyObject * obj1 = 0 ;
21946 PyObject * obj2 = 0 ;
21947 PyObject * obj3 = 0 ;
21948 char * kwnames[] = {
21949 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21950 };
21951
21952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21953 if (obj0) {
21954 ecode1 = SWIG_AsVal_int(obj0, &val1);
21955 if (!SWIG_IsOK(ecode1)) {
21956 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21957 }
21958 arg1 = static_cast< wxEventType >(val1);
21959 }
21960 if (obj1) {
21961 ecode2 = SWIG_AsVal_int(obj1, &val2);
21962 if (!SWIG_IsOK(ecode2)) {
21963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21964 }
21965 arg2 = static_cast< int >(val2);
21966 }
21967 if (obj2) {
21968 ecode3 = SWIG_AsVal_int(obj2, &val3);
21969 if (!SWIG_IsOK(ecode3)) {
21970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21971 }
21972 arg3 = static_cast< int >(val3);
21973 }
21974 if (obj3) {
21975 ecode4 = SWIG_AsVal_int(obj3, &val4);
21976 if (!SWIG_IsOK(ecode4)) {
21977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21978 }
21979 arg4 = static_cast< int >(val4);
21980 }
21981 {
21982 PyThreadState* __tstate = wxPyBeginAllowThreads();
21983 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21988 return resultobj;
21989 fail:
21990 return NULL;
21991 }
21992
21993
21994 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21995 PyObject *obj;
21996 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21997 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21998 return SWIG_Py_Void();
21999 }
22000
22001 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22002 return SWIG_Python_InitShadowInstance(args);
22003 }
22004
22005 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22006 PyObject *resultobj = 0;
22007 wxWindow *arg1 = (wxWindow *) 0 ;
22008 int arg2 ;
22009 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22010 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22011 wxSize const &arg4_defvalue = wxDefaultSize ;
22012 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22013 long arg5 = (long) wxBK_DEFAULT ;
22014 wxString const &arg6_defvalue = wxPyEmptyString ;
22015 wxString *arg6 = (wxString *) &arg6_defvalue ;
22016 wxTreebook *result = 0 ;
22017 void *argp1 = 0 ;
22018 int res1 = 0 ;
22019 int val2 ;
22020 int ecode2 = 0 ;
22021 wxPoint temp3 ;
22022 wxSize temp4 ;
22023 long val5 ;
22024 int ecode5 = 0 ;
22025 bool temp6 = false ;
22026 PyObject * obj0 = 0 ;
22027 PyObject * obj1 = 0 ;
22028 PyObject * obj2 = 0 ;
22029 PyObject * obj3 = 0 ;
22030 PyObject * obj4 = 0 ;
22031 PyObject * obj5 = 0 ;
22032 char * kwnames[] = {
22033 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22034 };
22035
22036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22038 if (!SWIG_IsOK(res1)) {
22039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
22040 }
22041 arg1 = reinterpret_cast< wxWindow * >(argp1);
22042 ecode2 = SWIG_AsVal_int(obj1, &val2);
22043 if (!SWIG_IsOK(ecode2)) {
22044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
22045 }
22046 arg2 = static_cast< int >(val2);
22047 if (obj2) {
22048 {
22049 arg3 = &temp3;
22050 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22051 }
22052 }
22053 if (obj3) {
22054 {
22055 arg4 = &temp4;
22056 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22057 }
22058 }
22059 if (obj4) {
22060 ecode5 = SWIG_AsVal_long(obj4, &val5);
22061 if (!SWIG_IsOK(ecode5)) {
22062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
22063 }
22064 arg5 = static_cast< long >(val5);
22065 }
22066 if (obj5) {
22067 {
22068 arg6 = wxString_in_helper(obj5);
22069 if (arg6 == NULL) SWIG_fail;
22070 temp6 = true;
22071 }
22072 }
22073 {
22074 if (!wxPyCheckForApp()) SWIG_fail;
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22081 {
22082 if (temp6)
22083 delete arg6;
22084 }
22085 return resultobj;
22086 fail:
22087 {
22088 if (temp6)
22089 delete arg6;
22090 }
22091 return NULL;
22092 }
22093
22094
22095 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22096 PyObject *resultobj = 0;
22097 wxTreebook *result = 0 ;
22098
22099 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22100 {
22101 if (!wxPyCheckForApp()) SWIG_fail;
22102 PyThreadState* __tstate = wxPyBeginAllowThreads();
22103 result = (wxTreebook *)new wxTreebook();
22104 wxPyEndAllowThreads(__tstate);
22105 if (PyErr_Occurred()) SWIG_fail;
22106 }
22107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22108 return resultobj;
22109 fail:
22110 return NULL;
22111 }
22112
22113
22114 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22115 PyObject *resultobj = 0;
22116 wxTreebook *arg1 = (wxTreebook *) 0 ;
22117 wxWindow *arg2 = (wxWindow *) 0 ;
22118 int arg3 ;
22119 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22120 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22121 wxSize const &arg5_defvalue = wxDefaultSize ;
22122 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22123 long arg6 = (long) wxBK_DEFAULT ;
22124 wxString const &arg7_defvalue = wxPyEmptyString ;
22125 wxString *arg7 = (wxString *) &arg7_defvalue ;
22126 bool result;
22127 void *argp1 = 0 ;
22128 int res1 = 0 ;
22129 void *argp2 = 0 ;
22130 int res2 = 0 ;
22131 int val3 ;
22132 int ecode3 = 0 ;
22133 wxPoint temp4 ;
22134 wxSize temp5 ;
22135 long val6 ;
22136 int ecode6 = 0 ;
22137 bool temp7 = false ;
22138 PyObject * obj0 = 0 ;
22139 PyObject * obj1 = 0 ;
22140 PyObject * obj2 = 0 ;
22141 PyObject * obj3 = 0 ;
22142 PyObject * obj4 = 0 ;
22143 PyObject * obj5 = 0 ;
22144 PyObject * obj6 = 0 ;
22145 char * kwnames[] = {
22146 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22147 };
22148
22149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22151 if (!SWIG_IsOK(res1)) {
22152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22153 }
22154 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22156 if (!SWIG_IsOK(res2)) {
22157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22158 }
22159 arg2 = reinterpret_cast< wxWindow * >(argp2);
22160 ecode3 = SWIG_AsVal_int(obj2, &val3);
22161 if (!SWIG_IsOK(ecode3)) {
22162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22163 }
22164 arg3 = static_cast< int >(val3);
22165 if (obj3) {
22166 {
22167 arg4 = &temp4;
22168 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22169 }
22170 }
22171 if (obj4) {
22172 {
22173 arg5 = &temp5;
22174 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22175 }
22176 }
22177 if (obj5) {
22178 ecode6 = SWIG_AsVal_long(obj5, &val6);
22179 if (!SWIG_IsOK(ecode6)) {
22180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22181 }
22182 arg6 = static_cast< long >(val6);
22183 }
22184 if (obj6) {
22185 {
22186 arg7 = wxString_in_helper(obj6);
22187 if (arg7 == NULL) SWIG_fail;
22188 temp7 = true;
22189 }
22190 }
22191 {
22192 PyThreadState* __tstate = wxPyBeginAllowThreads();
22193 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 {
22198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22199 }
22200 {
22201 if (temp7)
22202 delete arg7;
22203 }
22204 return resultobj;
22205 fail:
22206 {
22207 if (temp7)
22208 delete arg7;
22209 }
22210 return NULL;
22211 }
22212
22213
22214 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22215 PyObject *resultobj = 0;
22216 wxTreebook *arg1 = (wxTreebook *) 0 ;
22217 size_t arg2 ;
22218 wxWindow *arg3 = (wxWindow *) 0 ;
22219 wxString *arg4 = 0 ;
22220 bool arg5 = (bool) false ;
22221 int arg6 = (int) wxNOT_FOUND ;
22222 bool result;
22223 void *argp1 = 0 ;
22224 int res1 = 0 ;
22225 size_t val2 ;
22226 int ecode2 = 0 ;
22227 void *argp3 = 0 ;
22228 int res3 = 0 ;
22229 bool temp4 = false ;
22230 bool val5 ;
22231 int ecode5 = 0 ;
22232 int val6 ;
22233 int ecode6 = 0 ;
22234 PyObject * obj0 = 0 ;
22235 PyObject * obj1 = 0 ;
22236 PyObject * obj2 = 0 ;
22237 PyObject * obj3 = 0 ;
22238 PyObject * obj4 = 0 ;
22239 PyObject * obj5 = 0 ;
22240 char * kwnames[] = {
22241 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22242 };
22243
22244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22246 if (!SWIG_IsOK(res1)) {
22247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22248 }
22249 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22250 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22251 if (!SWIG_IsOK(ecode2)) {
22252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22253 }
22254 arg2 = static_cast< size_t >(val2);
22255 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22256 if (!SWIG_IsOK(res3)) {
22257 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22258 }
22259 arg3 = reinterpret_cast< wxWindow * >(argp3);
22260 {
22261 arg4 = wxString_in_helper(obj3);
22262 if (arg4 == NULL) SWIG_fail;
22263 temp4 = true;
22264 }
22265 if (obj4) {
22266 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22267 if (!SWIG_IsOK(ecode5)) {
22268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22269 }
22270 arg5 = static_cast< bool >(val5);
22271 }
22272 if (obj5) {
22273 ecode6 = SWIG_AsVal_int(obj5, &val6);
22274 if (!SWIG_IsOK(ecode6)) {
22275 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22276 }
22277 arg6 = static_cast< int >(val6);
22278 }
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 {
22286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22287 }
22288 {
22289 if (temp4)
22290 delete arg4;
22291 }
22292 return resultobj;
22293 fail:
22294 {
22295 if (temp4)
22296 delete arg4;
22297 }
22298 return NULL;
22299 }
22300
22301
22302 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22303 PyObject *resultobj = 0;
22304 wxTreebook *arg1 = (wxTreebook *) 0 ;
22305 wxWindow *arg2 = (wxWindow *) 0 ;
22306 wxString *arg3 = 0 ;
22307 bool arg4 = (bool) false ;
22308 int arg5 = (int) wxNOT_FOUND ;
22309 bool result;
22310 void *argp1 = 0 ;
22311 int res1 = 0 ;
22312 void *argp2 = 0 ;
22313 int res2 = 0 ;
22314 bool temp3 = false ;
22315 bool val4 ;
22316 int ecode4 = 0 ;
22317 int val5 ;
22318 int ecode5 = 0 ;
22319 PyObject * obj0 = 0 ;
22320 PyObject * obj1 = 0 ;
22321 PyObject * obj2 = 0 ;
22322 PyObject * obj3 = 0 ;
22323 PyObject * obj4 = 0 ;
22324 char * kwnames[] = {
22325 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22326 };
22327
22328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22330 if (!SWIG_IsOK(res1)) {
22331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22332 }
22333 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22334 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22335 if (!SWIG_IsOK(res2)) {
22336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22337 }
22338 arg2 = reinterpret_cast< wxWindow * >(argp2);
22339 {
22340 arg3 = wxString_in_helper(obj2);
22341 if (arg3 == NULL) SWIG_fail;
22342 temp3 = true;
22343 }
22344 if (obj3) {
22345 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22346 if (!SWIG_IsOK(ecode4)) {
22347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22348 }
22349 arg4 = static_cast< bool >(val4);
22350 }
22351 if (obj4) {
22352 ecode5 = SWIG_AsVal_int(obj4, &val5);
22353 if (!SWIG_IsOK(ecode5)) {
22354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22355 }
22356 arg5 = static_cast< int >(val5);
22357 }
22358 {
22359 PyThreadState* __tstate = wxPyBeginAllowThreads();
22360 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22361 wxPyEndAllowThreads(__tstate);
22362 if (PyErr_Occurred()) SWIG_fail;
22363 }
22364 {
22365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22366 }
22367 {
22368 if (temp3)
22369 delete arg3;
22370 }
22371 return resultobj;
22372 fail:
22373 {
22374 if (temp3)
22375 delete arg3;
22376 }
22377 return NULL;
22378 }
22379
22380
22381 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22382 PyObject *resultobj = 0;
22383 wxTreebook *arg1 = (wxTreebook *) 0 ;
22384 size_t arg2 ;
22385 bool result;
22386 void *argp1 = 0 ;
22387 int res1 = 0 ;
22388 size_t val2 ;
22389 int ecode2 = 0 ;
22390 PyObject * obj0 = 0 ;
22391 PyObject * obj1 = 0 ;
22392 char * kwnames[] = {
22393 (char *) "self",(char *) "pos", NULL
22394 };
22395
22396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22398 if (!SWIG_IsOK(res1)) {
22399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22400 }
22401 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22402 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22403 if (!SWIG_IsOK(ecode2)) {
22404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22405 }
22406 arg2 = static_cast< size_t >(val2);
22407 {
22408 PyThreadState* __tstate = wxPyBeginAllowThreads();
22409 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22410 wxPyEndAllowThreads(__tstate);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 {
22414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22415 }
22416 return resultobj;
22417 fail:
22418 return NULL;
22419 }
22420
22421
22422 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22423 PyObject *resultobj = 0;
22424 wxTreebook *arg1 = (wxTreebook *) 0 ;
22425 size_t arg2 ;
22426 bool arg3 = (bool) true ;
22427 bool result;
22428 void *argp1 = 0 ;
22429 int res1 = 0 ;
22430 size_t val2 ;
22431 int ecode2 = 0 ;
22432 bool val3 ;
22433 int ecode3 = 0 ;
22434 PyObject * obj0 = 0 ;
22435 PyObject * obj1 = 0 ;
22436 PyObject * obj2 = 0 ;
22437 char * kwnames[] = {
22438 (char *) "self",(char *) "pos",(char *) "expand", NULL
22439 };
22440
22441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22443 if (!SWIG_IsOK(res1)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22445 }
22446 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22447 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22448 if (!SWIG_IsOK(ecode2)) {
22449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22450 }
22451 arg2 = static_cast< size_t >(val2);
22452 if (obj2) {
22453 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22454 if (!SWIG_IsOK(ecode3)) {
22455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22456 }
22457 arg3 = static_cast< bool >(val3);
22458 }
22459 {
22460 PyThreadState* __tstate = wxPyBeginAllowThreads();
22461 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22462 wxPyEndAllowThreads(__tstate);
22463 if (PyErr_Occurred()) SWIG_fail;
22464 }
22465 {
22466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22467 }
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22475 PyObject *resultobj = 0;
22476 wxTreebook *arg1 = (wxTreebook *) 0 ;
22477 size_t arg2 ;
22478 bool result;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 size_t val2 ;
22482 int ecode2 = 0 ;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 char * kwnames[] = {
22486 (char *) "self",(char *) "pos", NULL
22487 };
22488
22489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22491 if (!SWIG_IsOK(res1)) {
22492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22493 }
22494 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22495 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22496 if (!SWIG_IsOK(ecode2)) {
22497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22498 }
22499 arg2 = static_cast< size_t >(val2);
22500 {
22501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22502 result = (bool)(arg1)->CollapseNode(arg2);
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 {
22507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22508 }
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22516 PyObject *resultobj = 0;
22517 wxTreebook *arg1 = (wxTreebook *) 0 ;
22518 size_t arg2 ;
22519 int result;
22520 void *argp1 = 0 ;
22521 int res1 = 0 ;
22522 size_t val2 ;
22523 int ecode2 = 0 ;
22524 PyObject * obj0 = 0 ;
22525 PyObject * obj1 = 0 ;
22526 char * kwnames[] = {
22527 (char *) "self",(char *) "pos", NULL
22528 };
22529
22530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22534 }
22535 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22536 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22537 if (!SWIG_IsOK(ecode2)) {
22538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22539 }
22540 arg2 = static_cast< size_t >(val2);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_From_int(static_cast< int >(result));
22548 return resultobj;
22549 fail:
22550 return NULL;
22551 }
22552
22553
22554 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22555 PyObject *resultobj = 0;
22556 wxTreebook *arg1 = (wxTreebook *) 0 ;
22557 wxPyTreeCtrl *result = 0 ;
22558 void *argp1 = 0 ;
22559 int res1 = 0 ;
22560 PyObject *swig_obj[1] ;
22561
22562 if (!args) SWIG_fail;
22563 swig_obj[0] = args;
22564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22565 if (!SWIG_IsOK(res1)) {
22566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22567 }
22568 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22569 {
22570 PyThreadState* __tstate = wxPyBeginAllowThreads();
22571 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22572 wxPyEndAllowThreads(__tstate);
22573 if (PyErr_Occurred()) SWIG_fail;
22574 }
22575 {
22576 resultobj = wxPyMake_wxObject(result, (bool)0);
22577 }
22578 return resultobj;
22579 fail:
22580 return NULL;
22581 }
22582
22583
22584 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22585 PyObject *obj;
22586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22587 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22588 return SWIG_Py_Void();
22589 }
22590
22591 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22592 return SWIG_Python_InitShadowInstance(args);
22593 }
22594
22595 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22596 PyObject *resultobj = 0;
22597 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22598 int arg2 = (int) 0 ;
22599 int arg3 = (int) wxNOT_FOUND ;
22600 int arg4 = (int) wxNOT_FOUND ;
22601 wxTreebookEvent *result = 0 ;
22602 int val1 ;
22603 int ecode1 = 0 ;
22604 int val2 ;
22605 int ecode2 = 0 ;
22606 int val3 ;
22607 int ecode3 = 0 ;
22608 int val4 ;
22609 int ecode4 = 0 ;
22610 PyObject * obj0 = 0 ;
22611 PyObject * obj1 = 0 ;
22612 PyObject * obj2 = 0 ;
22613 PyObject * obj3 = 0 ;
22614 char * kwnames[] = {
22615 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22616 };
22617
22618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22619 if (obj0) {
22620 ecode1 = SWIG_AsVal_int(obj0, &val1);
22621 if (!SWIG_IsOK(ecode1)) {
22622 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22623 }
22624 arg1 = static_cast< wxEventType >(val1);
22625 }
22626 if (obj1) {
22627 ecode2 = SWIG_AsVal_int(obj1, &val2);
22628 if (!SWIG_IsOK(ecode2)) {
22629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22630 }
22631 arg2 = static_cast< int >(val2);
22632 }
22633 if (obj2) {
22634 ecode3 = SWIG_AsVal_int(obj2, &val3);
22635 if (!SWIG_IsOK(ecode3)) {
22636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22637 }
22638 arg3 = static_cast< int >(val3);
22639 }
22640 if (obj3) {
22641 ecode4 = SWIG_AsVal_int(obj3, &val4);
22642 if (!SWIG_IsOK(ecode4)) {
22643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22644 }
22645 arg4 = static_cast< int >(val4);
22646 }
22647 {
22648 PyThreadState* __tstate = wxPyBeginAllowThreads();
22649 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22650 wxPyEndAllowThreads(__tstate);
22651 if (PyErr_Occurred()) SWIG_fail;
22652 }
22653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22654 return resultobj;
22655 fail:
22656 return NULL;
22657 }
22658
22659
22660 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22661 PyObject *obj;
22662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22663 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22664 return SWIG_Py_Void();
22665 }
22666
22667 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22668 return SWIG_Python_InitShadowInstance(args);
22669 }
22670
22671 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj = 0;
22673 wxWindow *arg1 = (wxWindow *) 0 ;
22674 int arg2 ;
22675 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22676 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22677 wxSize const &arg4_defvalue = wxDefaultSize ;
22678 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22679 long arg5 = (long) wxBK_DEFAULT ;
22680 wxString const &arg6_defvalue = wxPyEmptyString ;
22681 wxString *arg6 = (wxString *) &arg6_defvalue ;
22682 wxToolbook *result = 0 ;
22683 void *argp1 = 0 ;
22684 int res1 = 0 ;
22685 int val2 ;
22686 int ecode2 = 0 ;
22687 wxPoint temp3 ;
22688 wxSize temp4 ;
22689 long val5 ;
22690 int ecode5 = 0 ;
22691 bool temp6 = false ;
22692 PyObject * obj0 = 0 ;
22693 PyObject * obj1 = 0 ;
22694 PyObject * obj2 = 0 ;
22695 PyObject * obj3 = 0 ;
22696 PyObject * obj4 = 0 ;
22697 PyObject * obj5 = 0 ;
22698 char * kwnames[] = {
22699 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22700 };
22701
22702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22704 if (!SWIG_IsOK(res1)) {
22705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22706 }
22707 arg1 = reinterpret_cast< wxWindow * >(argp1);
22708 ecode2 = SWIG_AsVal_int(obj1, &val2);
22709 if (!SWIG_IsOK(ecode2)) {
22710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22711 }
22712 arg2 = static_cast< int >(val2);
22713 if (obj2) {
22714 {
22715 arg3 = &temp3;
22716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22717 }
22718 }
22719 if (obj3) {
22720 {
22721 arg4 = &temp4;
22722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22723 }
22724 }
22725 if (obj4) {
22726 ecode5 = SWIG_AsVal_long(obj4, &val5);
22727 if (!SWIG_IsOK(ecode5)) {
22728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22729 }
22730 arg5 = static_cast< long >(val5);
22731 }
22732 if (obj5) {
22733 {
22734 arg6 = wxString_in_helper(obj5);
22735 if (arg6 == NULL) SWIG_fail;
22736 temp6 = true;
22737 }
22738 }
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22746 {
22747 if (temp6)
22748 delete arg6;
22749 }
22750 return resultobj;
22751 fail:
22752 {
22753 if (temp6)
22754 delete arg6;
22755 }
22756 return NULL;
22757 }
22758
22759
22760 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22761 PyObject *resultobj = 0;
22762 wxToolbook *result = 0 ;
22763
22764 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 result = (wxToolbook *)new wxToolbook();
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22772 return resultobj;
22773 fail:
22774 return NULL;
22775 }
22776
22777
22778 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22779 PyObject *resultobj = 0;
22780 wxToolbook *arg1 = (wxToolbook *) 0 ;
22781 wxWindow *arg2 = (wxWindow *) 0 ;
22782 int arg3 ;
22783 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22784 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22785 wxSize const &arg5_defvalue = wxDefaultSize ;
22786 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22787 long arg6 = (long) 0 ;
22788 wxString const &arg7_defvalue = wxEmptyString ;
22789 wxString *arg7 = (wxString *) &arg7_defvalue ;
22790 bool result;
22791 void *argp1 = 0 ;
22792 int res1 = 0 ;
22793 void *argp2 = 0 ;
22794 int res2 = 0 ;
22795 int val3 ;
22796 int ecode3 = 0 ;
22797 wxPoint temp4 ;
22798 wxSize temp5 ;
22799 long val6 ;
22800 int ecode6 = 0 ;
22801 bool temp7 = false ;
22802 PyObject * obj0 = 0 ;
22803 PyObject * obj1 = 0 ;
22804 PyObject * obj2 = 0 ;
22805 PyObject * obj3 = 0 ;
22806 PyObject * obj4 = 0 ;
22807 PyObject * obj5 = 0 ;
22808 PyObject * obj6 = 0 ;
22809 char * kwnames[] = {
22810 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22811 };
22812
22813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22815 if (!SWIG_IsOK(res1)) {
22816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22817 }
22818 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22820 if (!SWIG_IsOK(res2)) {
22821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22822 }
22823 arg2 = reinterpret_cast< wxWindow * >(argp2);
22824 ecode3 = SWIG_AsVal_int(obj2, &val3);
22825 if (!SWIG_IsOK(ecode3)) {
22826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22827 }
22828 arg3 = static_cast< int >(val3);
22829 if (obj3) {
22830 {
22831 arg4 = &temp4;
22832 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22833 }
22834 }
22835 if (obj4) {
22836 {
22837 arg5 = &temp5;
22838 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22839 }
22840 }
22841 if (obj5) {
22842 ecode6 = SWIG_AsVal_long(obj5, &val6);
22843 if (!SWIG_IsOK(ecode6)) {
22844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22845 }
22846 arg6 = static_cast< long >(val6);
22847 }
22848 if (obj6) {
22849 {
22850 arg7 = wxString_in_helper(obj6);
22851 if (arg7 == NULL) SWIG_fail;
22852 temp7 = true;
22853 }
22854 }
22855 {
22856 PyThreadState* __tstate = wxPyBeginAllowThreads();
22857 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22858 wxPyEndAllowThreads(__tstate);
22859 if (PyErr_Occurred()) SWIG_fail;
22860 }
22861 {
22862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22863 }
22864 {
22865 if (temp7)
22866 delete arg7;
22867 }
22868 return resultobj;
22869 fail:
22870 {
22871 if (temp7)
22872 delete arg7;
22873 }
22874 return NULL;
22875 }
22876
22877
22878 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22879 PyObject *resultobj = 0;
22880 wxToolbook *arg1 = (wxToolbook *) 0 ;
22881 wxToolBarBase *result = 0 ;
22882 void *argp1 = 0 ;
22883 int res1 = 0 ;
22884 PyObject *swig_obj[1] ;
22885
22886 if (!args) SWIG_fail;
22887 swig_obj[0] = args;
22888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22889 if (!SWIG_IsOK(res1)) {
22890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22891 }
22892 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22893 {
22894 PyThreadState* __tstate = wxPyBeginAllowThreads();
22895 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22896 wxPyEndAllowThreads(__tstate);
22897 if (PyErr_Occurred()) SWIG_fail;
22898 }
22899 {
22900 resultobj = wxPyMake_wxObject(result, (bool)0);
22901 }
22902 return resultobj;
22903 fail:
22904 return NULL;
22905 }
22906
22907
22908 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22909 PyObject *resultobj = 0;
22910 wxToolbook *arg1 = (wxToolbook *) 0 ;
22911 void *argp1 = 0 ;
22912 int res1 = 0 ;
22913 PyObject *swig_obj[1] ;
22914
22915 if (!args) SWIG_fail;
22916 swig_obj[0] = args;
22917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22918 if (!SWIG_IsOK(res1)) {
22919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22920 }
22921 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 (arg1)->Realize();
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 resultobj = SWIG_Py_Void();
22929 return resultobj;
22930 fail:
22931 return NULL;
22932 }
22933
22934
22935 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22936 PyObject *obj;
22937 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22938 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22939 return SWIG_Py_Void();
22940 }
22941
22942 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22943 return SWIG_Python_InitShadowInstance(args);
22944 }
22945
22946 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22947 PyObject *resultobj = 0;
22948 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22949 int arg2 = (int) 0 ;
22950 int arg3 = (int) wxNOT_FOUND ;
22951 int arg4 = (int) wxNOT_FOUND ;
22952 wxToolbookEvent *result = 0 ;
22953 int val1 ;
22954 int ecode1 = 0 ;
22955 int val2 ;
22956 int ecode2 = 0 ;
22957 int val3 ;
22958 int ecode3 = 0 ;
22959 int val4 ;
22960 int ecode4 = 0 ;
22961 PyObject * obj0 = 0 ;
22962 PyObject * obj1 = 0 ;
22963 PyObject * obj2 = 0 ;
22964 PyObject * obj3 = 0 ;
22965 char * kwnames[] = {
22966 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22967 };
22968
22969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22970 if (obj0) {
22971 ecode1 = SWIG_AsVal_int(obj0, &val1);
22972 if (!SWIG_IsOK(ecode1)) {
22973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22974 }
22975 arg1 = static_cast< wxEventType >(val1);
22976 }
22977 if (obj1) {
22978 ecode2 = SWIG_AsVal_int(obj1, &val2);
22979 if (!SWIG_IsOK(ecode2)) {
22980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22981 }
22982 arg2 = static_cast< int >(val2);
22983 }
22984 if (obj2) {
22985 ecode3 = SWIG_AsVal_int(obj2, &val3);
22986 if (!SWIG_IsOK(ecode3)) {
22987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22988 }
22989 arg3 = static_cast< int >(val3);
22990 }
22991 if (obj3) {
22992 ecode4 = SWIG_AsVal_int(obj3, &val4);
22993 if (!SWIG_IsOK(ecode4)) {
22994 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22995 }
22996 arg4 = static_cast< int >(val4);
22997 }
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
23005 return resultobj;
23006 fail:
23007 return NULL;
23008 }
23009
23010
23011 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23012 PyObject *obj;
23013 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23014 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
23015 return SWIG_Py_Void();
23016 }
23017
23018 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23019 return SWIG_Python_InitShadowInstance(args);
23020 }
23021
23022 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23023 PyObject *resultobj = 0;
23024 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23025 int result;
23026 void *argp1 = 0 ;
23027 int res1 = 0 ;
23028 PyObject *swig_obj[1] ;
23029
23030 if (!args) SWIG_fail;
23031 swig_obj[0] = args;
23032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23033 if (!SWIG_IsOK(res1)) {
23034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23035 }
23036 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 result = (int)(arg1)->GetId();
23040 wxPyEndAllowThreads(__tstate);
23041 if (PyErr_Occurred()) SWIG_fail;
23042 }
23043 resultobj = SWIG_From_int(static_cast< int >(result));
23044 return resultobj;
23045 fail:
23046 return NULL;
23047 }
23048
23049
23050 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23051 PyObject *resultobj = 0;
23052 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23053 wxControl *result = 0 ;
23054 void *argp1 = 0 ;
23055 int res1 = 0 ;
23056 PyObject *swig_obj[1] ;
23057
23058 if (!args) SWIG_fail;
23059 swig_obj[0] = args;
23060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23061 if (!SWIG_IsOK(res1)) {
23062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23063 }
23064 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23065 {
23066 PyThreadState* __tstate = wxPyBeginAllowThreads();
23067 result = (wxControl *)(arg1)->GetControl();
23068 wxPyEndAllowThreads(__tstate);
23069 if (PyErr_Occurred()) SWIG_fail;
23070 }
23071 {
23072 resultobj = wxPyMake_wxObject(result, 0);
23073 }
23074 return resultobj;
23075 fail:
23076 return NULL;
23077 }
23078
23079
23080 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23081 PyObject *resultobj = 0;
23082 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23083 wxToolBarBase *result = 0 ;
23084 void *argp1 = 0 ;
23085 int res1 = 0 ;
23086 PyObject *swig_obj[1] ;
23087
23088 if (!args) SWIG_fail;
23089 swig_obj[0] = args;
23090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23091 if (!SWIG_IsOK(res1)) {
23092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23093 }
23094 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23095 {
23096 PyThreadState* __tstate = wxPyBeginAllowThreads();
23097 result = (wxToolBarBase *)(arg1)->GetToolBar();
23098 wxPyEndAllowThreads(__tstate);
23099 if (PyErr_Occurred()) SWIG_fail;
23100 }
23101 {
23102 resultobj = wxPyMake_wxObject(result, (bool)0);
23103 }
23104 return resultobj;
23105 fail:
23106 return NULL;
23107 }
23108
23109
23110 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23111 PyObject *resultobj = 0;
23112 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23113 int result;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 PyObject *swig_obj[1] ;
23117
23118 if (!args) SWIG_fail;
23119 swig_obj[0] = args;
23120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23121 if (!SWIG_IsOK(res1)) {
23122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23123 }
23124 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23125 {
23126 PyThreadState* __tstate = wxPyBeginAllowThreads();
23127 result = (int)(arg1)->IsButton();
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 resultobj = SWIG_From_int(static_cast< int >(result));
23132 return resultobj;
23133 fail:
23134 return NULL;
23135 }
23136
23137
23138 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23139 PyObject *resultobj = 0;
23140 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23141 int result;
23142 void *argp1 = 0 ;
23143 int res1 = 0 ;
23144 PyObject *swig_obj[1] ;
23145
23146 if (!args) SWIG_fail;
23147 swig_obj[0] = args;
23148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23151 }
23152 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 result = (int)(arg1)->IsControl();
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = SWIG_From_int(static_cast< int >(result));
23160 return resultobj;
23161 fail:
23162 return NULL;
23163 }
23164
23165
23166 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23167 PyObject *resultobj = 0;
23168 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23169 int result;
23170 void *argp1 = 0 ;
23171 int res1 = 0 ;
23172 PyObject *swig_obj[1] ;
23173
23174 if (!args) SWIG_fail;
23175 swig_obj[0] = args;
23176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23177 if (!SWIG_IsOK(res1)) {
23178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23179 }
23180 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23181 {
23182 PyThreadState* __tstate = wxPyBeginAllowThreads();
23183 result = (int)(arg1)->IsSeparator();
23184 wxPyEndAllowThreads(__tstate);
23185 if (PyErr_Occurred()) SWIG_fail;
23186 }
23187 resultobj = SWIG_From_int(static_cast< int >(result));
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23195 PyObject *resultobj = 0;
23196 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23197 int result;
23198 void *argp1 = 0 ;
23199 int res1 = 0 ;
23200 PyObject *swig_obj[1] ;
23201
23202 if (!args) SWIG_fail;
23203 swig_obj[0] = args;
23204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23207 }
23208 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 result = (int)(arg1)->GetStyle();
23212 wxPyEndAllowThreads(__tstate);
23213 if (PyErr_Occurred()) SWIG_fail;
23214 }
23215 resultobj = SWIG_From_int(static_cast< int >(result));
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23223 PyObject *resultobj = 0;
23224 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23225 wxItemKind result;
23226 void *argp1 = 0 ;
23227 int res1 = 0 ;
23228 PyObject *swig_obj[1] ;
23229
23230 if (!args) SWIG_fail;
23231 swig_obj[0] = args;
23232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23233 if (!SWIG_IsOK(res1)) {
23234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23235 }
23236 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23237 {
23238 PyThreadState* __tstate = wxPyBeginAllowThreads();
23239 result = (wxItemKind)(arg1)->GetKind();
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 resultobj = SWIG_From_int(static_cast< int >(result));
23244 return resultobj;
23245 fail:
23246 return NULL;
23247 }
23248
23249
23250 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23251 PyObject *resultobj = 0;
23252 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23253 bool result;
23254 void *argp1 = 0 ;
23255 int res1 = 0 ;
23256 PyObject *swig_obj[1] ;
23257
23258 if (!args) SWIG_fail;
23259 swig_obj[0] = args;
23260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23261 if (!SWIG_IsOK(res1)) {
23262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23263 }
23264 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 result = (bool)(arg1)->IsEnabled();
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 {
23272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23273 }
23274 return resultobj;
23275 fail:
23276 return NULL;
23277 }
23278
23279
23280 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23281 PyObject *resultobj = 0;
23282 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23283 bool result;
23284 void *argp1 = 0 ;
23285 int res1 = 0 ;
23286 PyObject *swig_obj[1] ;
23287
23288 if (!args) SWIG_fail;
23289 swig_obj[0] = args;
23290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23291 if (!SWIG_IsOK(res1)) {
23292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23293 }
23294 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 result = (bool)(arg1)->IsToggled();
23298 wxPyEndAllowThreads(__tstate);
23299 if (PyErr_Occurred()) SWIG_fail;
23300 }
23301 {
23302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23303 }
23304 return resultobj;
23305 fail:
23306 return NULL;
23307 }
23308
23309
23310 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23311 PyObject *resultobj = 0;
23312 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23313 bool result;
23314 void *argp1 = 0 ;
23315 int res1 = 0 ;
23316 PyObject *swig_obj[1] ;
23317
23318 if (!args) SWIG_fail;
23319 swig_obj[0] = args;
23320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23321 if (!SWIG_IsOK(res1)) {
23322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23323 }
23324 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (bool)(arg1)->CanBeToggled();
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 {
23332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23333 }
23334 return resultobj;
23335 fail:
23336 return NULL;
23337 }
23338
23339
23340 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23341 PyObject *resultobj = 0;
23342 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23343 wxBitmap *result = 0 ;
23344 void *argp1 = 0 ;
23345 int res1 = 0 ;
23346 PyObject *swig_obj[1] ;
23347
23348 if (!args) SWIG_fail;
23349 swig_obj[0] = args;
23350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23351 if (!SWIG_IsOK(res1)) {
23352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23353 }
23354 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23355 {
23356 PyThreadState* __tstate = wxPyBeginAllowThreads();
23357 {
23358 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23359 result = (wxBitmap *) &_result_ref;
23360 }
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 {
23365 wxBitmap* resultptr = new wxBitmap(*result);
23366 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23367 }
23368 return resultobj;
23369 fail:
23370 return NULL;
23371 }
23372
23373
23374 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23375 PyObject *resultobj = 0;
23376 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23377 wxBitmap *result = 0 ;
23378 void *argp1 = 0 ;
23379 int res1 = 0 ;
23380 PyObject *swig_obj[1] ;
23381
23382 if (!args) SWIG_fail;
23383 swig_obj[0] = args;
23384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23385 if (!SWIG_IsOK(res1)) {
23386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23387 }
23388 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 {
23392 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23393 result = (wxBitmap *) &_result_ref;
23394 }
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 {
23399 wxBitmap* resultptr = new wxBitmap(*result);
23400 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23401 }
23402 return resultobj;
23403 fail:
23404 return NULL;
23405 }
23406
23407
23408 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23409 PyObject *resultobj = 0;
23410 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23411 wxBitmap result;
23412 void *argp1 = 0 ;
23413 int res1 = 0 ;
23414 PyObject *swig_obj[1] ;
23415
23416 if (!args) SWIG_fail;
23417 swig_obj[0] = args;
23418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23419 if (!SWIG_IsOK(res1)) {
23420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23421 }
23422 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23423 {
23424 PyThreadState* __tstate = wxPyBeginAllowThreads();
23425 result = (arg1)->GetBitmap();
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
23429 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23430 return resultobj;
23431 fail:
23432 return NULL;
23433 }
23434
23435
23436 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23437 PyObject *resultobj = 0;
23438 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23439 wxString result;
23440 void *argp1 = 0 ;
23441 int res1 = 0 ;
23442 PyObject *swig_obj[1] ;
23443
23444 if (!args) SWIG_fail;
23445 swig_obj[0] = args;
23446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23447 if (!SWIG_IsOK(res1)) {
23448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23449 }
23450 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23451 {
23452 PyThreadState* __tstate = wxPyBeginAllowThreads();
23453 result = (arg1)->GetLabel();
23454 wxPyEndAllowThreads(__tstate);
23455 if (PyErr_Occurred()) SWIG_fail;
23456 }
23457 {
23458 #if wxUSE_UNICODE
23459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23460 #else
23461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23462 #endif
23463 }
23464 return resultobj;
23465 fail:
23466 return NULL;
23467 }
23468
23469
23470 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23471 PyObject *resultobj = 0;
23472 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23473 wxString result;
23474 void *argp1 = 0 ;
23475 int res1 = 0 ;
23476 PyObject *swig_obj[1] ;
23477
23478 if (!args) SWIG_fail;
23479 swig_obj[0] = args;
23480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23483 }
23484 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23485 {
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 result = (arg1)->GetShortHelp();
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 {
23492 #if wxUSE_UNICODE
23493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23494 #else
23495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23496 #endif
23497 }
23498 return resultobj;
23499 fail:
23500 return NULL;
23501 }
23502
23503
23504 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23505 PyObject *resultobj = 0;
23506 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23507 wxString result;
23508 void *argp1 = 0 ;
23509 int res1 = 0 ;
23510 PyObject *swig_obj[1] ;
23511
23512 if (!args) SWIG_fail;
23513 swig_obj[0] = args;
23514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23515 if (!SWIG_IsOK(res1)) {
23516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23517 }
23518 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 result = (arg1)->GetLongHelp();
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 {
23526 #if wxUSE_UNICODE
23527 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23528 #else
23529 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23530 #endif
23531 }
23532 return resultobj;
23533 fail:
23534 return NULL;
23535 }
23536
23537
23538 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23539 PyObject *resultobj = 0;
23540 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23541 bool arg2 ;
23542 bool result;
23543 void *argp1 = 0 ;
23544 int res1 = 0 ;
23545 bool val2 ;
23546 int ecode2 = 0 ;
23547 PyObject * obj0 = 0 ;
23548 PyObject * obj1 = 0 ;
23549 char * kwnames[] = {
23550 (char *) "self",(char *) "enable", NULL
23551 };
23552
23553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23555 if (!SWIG_IsOK(res1)) {
23556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23557 }
23558 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23559 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23560 if (!SWIG_IsOK(ecode2)) {
23561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23562 }
23563 arg2 = static_cast< bool >(val2);
23564 {
23565 PyThreadState* __tstate = wxPyBeginAllowThreads();
23566 result = (bool)(arg1)->Enable(arg2);
23567 wxPyEndAllowThreads(__tstate);
23568 if (PyErr_Occurred()) SWIG_fail;
23569 }
23570 {
23571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23572 }
23573 return resultobj;
23574 fail:
23575 return NULL;
23576 }
23577
23578
23579 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23580 PyObject *resultobj = 0;
23581 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23582 void *argp1 = 0 ;
23583 int res1 = 0 ;
23584 PyObject *swig_obj[1] ;
23585
23586 if (!args) SWIG_fail;
23587 swig_obj[0] = args;
23588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23589 if (!SWIG_IsOK(res1)) {
23590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23591 }
23592 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23593 {
23594 PyThreadState* __tstate = wxPyBeginAllowThreads();
23595 (arg1)->Toggle();
23596 wxPyEndAllowThreads(__tstate);
23597 if (PyErr_Occurred()) SWIG_fail;
23598 }
23599 resultobj = SWIG_Py_Void();
23600 return resultobj;
23601 fail:
23602 return NULL;
23603 }
23604
23605
23606 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23607 PyObject *resultobj = 0;
23608 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23609 bool arg2 ;
23610 bool result;
23611 void *argp1 = 0 ;
23612 int res1 = 0 ;
23613 bool val2 ;
23614 int ecode2 = 0 ;
23615 PyObject * obj0 = 0 ;
23616 PyObject * obj1 = 0 ;
23617 char * kwnames[] = {
23618 (char *) "self",(char *) "toggle", NULL
23619 };
23620
23621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23623 if (!SWIG_IsOK(res1)) {
23624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23625 }
23626 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23627 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23628 if (!SWIG_IsOK(ecode2)) {
23629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23630 }
23631 arg2 = static_cast< bool >(val2);
23632 {
23633 PyThreadState* __tstate = wxPyBeginAllowThreads();
23634 result = (bool)(arg1)->SetToggle(arg2);
23635 wxPyEndAllowThreads(__tstate);
23636 if (PyErr_Occurred()) SWIG_fail;
23637 }
23638 {
23639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23640 }
23641 return resultobj;
23642 fail:
23643 return NULL;
23644 }
23645
23646
23647 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23648 PyObject *resultobj = 0;
23649 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23650 wxString *arg2 = 0 ;
23651 bool result;
23652 void *argp1 = 0 ;
23653 int res1 = 0 ;
23654 bool temp2 = false ;
23655 PyObject * obj0 = 0 ;
23656 PyObject * obj1 = 0 ;
23657 char * kwnames[] = {
23658 (char *) "self",(char *) "help", NULL
23659 };
23660
23661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23665 }
23666 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23667 {
23668 arg2 = wxString_in_helper(obj1);
23669 if (arg2 == NULL) SWIG_fail;
23670 temp2 = true;
23671 }
23672 {
23673 PyThreadState* __tstate = wxPyBeginAllowThreads();
23674 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23675 wxPyEndAllowThreads(__tstate);
23676 if (PyErr_Occurred()) SWIG_fail;
23677 }
23678 {
23679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23680 }
23681 {
23682 if (temp2)
23683 delete arg2;
23684 }
23685 return resultobj;
23686 fail:
23687 {
23688 if (temp2)
23689 delete arg2;
23690 }
23691 return NULL;
23692 }
23693
23694
23695 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23696 PyObject *resultobj = 0;
23697 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23698 wxString *arg2 = 0 ;
23699 bool result;
23700 void *argp1 = 0 ;
23701 int res1 = 0 ;
23702 bool temp2 = false ;
23703 PyObject * obj0 = 0 ;
23704 PyObject * obj1 = 0 ;
23705 char * kwnames[] = {
23706 (char *) "self",(char *) "help", NULL
23707 };
23708
23709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23711 if (!SWIG_IsOK(res1)) {
23712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23713 }
23714 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23715 {
23716 arg2 = wxString_in_helper(obj1);
23717 if (arg2 == NULL) SWIG_fail;
23718 temp2 = true;
23719 }
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 {
23727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23728 }
23729 {
23730 if (temp2)
23731 delete arg2;
23732 }
23733 return resultobj;
23734 fail:
23735 {
23736 if (temp2)
23737 delete arg2;
23738 }
23739 return NULL;
23740 }
23741
23742
23743 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23744 PyObject *resultobj = 0;
23745 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23746 wxBitmap *arg2 = 0 ;
23747 void *argp1 = 0 ;
23748 int res1 = 0 ;
23749 void *argp2 = 0 ;
23750 int res2 = 0 ;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 char * kwnames[] = {
23754 (char *) "self",(char *) "bmp", NULL
23755 };
23756
23757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23759 if (!SWIG_IsOK(res1)) {
23760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23761 }
23762 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23763 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23764 if (!SWIG_IsOK(res2)) {
23765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23766 }
23767 if (!argp2) {
23768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23769 }
23770 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 resultobj = SWIG_Py_Void();
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23785 PyObject *resultobj = 0;
23786 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23787 wxBitmap *arg2 = 0 ;
23788 void *argp1 = 0 ;
23789 int res1 = 0 ;
23790 void *argp2 = 0 ;
23791 int res2 = 0 ;
23792 PyObject * obj0 = 0 ;
23793 PyObject * obj1 = 0 ;
23794 char * kwnames[] = {
23795 (char *) "self",(char *) "bmp", NULL
23796 };
23797
23798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23800 if (!SWIG_IsOK(res1)) {
23801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23802 }
23803 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23805 if (!SWIG_IsOK(res2)) {
23806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23807 }
23808 if (!argp2) {
23809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23810 }
23811 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23812 {
23813 PyThreadState* __tstate = wxPyBeginAllowThreads();
23814 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23815 wxPyEndAllowThreads(__tstate);
23816 if (PyErr_Occurred()) SWIG_fail;
23817 }
23818 resultobj = SWIG_Py_Void();
23819 return resultobj;
23820 fail:
23821 return NULL;
23822 }
23823
23824
23825 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23826 PyObject *resultobj = 0;
23827 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23828 wxString *arg2 = 0 ;
23829 void *argp1 = 0 ;
23830 int res1 = 0 ;
23831 bool temp2 = false ;
23832 PyObject * obj0 = 0 ;
23833 PyObject * obj1 = 0 ;
23834 char * kwnames[] = {
23835 (char *) "self",(char *) "label", NULL
23836 };
23837
23838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23840 if (!SWIG_IsOK(res1)) {
23841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23842 }
23843 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23844 {
23845 arg2 = wxString_in_helper(obj1);
23846 if (arg2 == NULL) SWIG_fail;
23847 temp2 = true;
23848 }
23849 {
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 (arg1)->SetLabel((wxString const &)*arg2);
23852 wxPyEndAllowThreads(__tstate);
23853 if (PyErr_Occurred()) SWIG_fail;
23854 }
23855 resultobj = SWIG_Py_Void();
23856 {
23857 if (temp2)
23858 delete arg2;
23859 }
23860 return resultobj;
23861 fail:
23862 {
23863 if (temp2)
23864 delete arg2;
23865 }
23866 return NULL;
23867 }
23868
23869
23870 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23871 PyObject *resultobj = 0;
23872 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23873 void *argp1 = 0 ;
23874 int res1 = 0 ;
23875 PyObject *swig_obj[1] ;
23876
23877 if (!args) SWIG_fail;
23878 swig_obj[0] = args;
23879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23880 if (!SWIG_IsOK(res1)) {
23881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23882 }
23883 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 (arg1)->Detach();
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 resultobj = SWIG_Py_Void();
23891 return resultobj;
23892 fail:
23893 return NULL;
23894 }
23895
23896
23897 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23898 PyObject *resultobj = 0;
23899 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23900 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23901 void *argp1 = 0 ;
23902 int res1 = 0 ;
23903 void *argp2 = 0 ;
23904 int res2 = 0 ;
23905 PyObject * obj0 = 0 ;
23906 PyObject * obj1 = 0 ;
23907 char * kwnames[] = {
23908 (char *) "self",(char *) "tbar", NULL
23909 };
23910
23911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23915 }
23916 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23917 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23918 if (!SWIG_IsOK(res2)) {
23919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23920 }
23921 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23922 {
23923 PyThreadState* __tstate = wxPyBeginAllowThreads();
23924 (arg1)->Attach(arg2);
23925 wxPyEndAllowThreads(__tstate);
23926 if (PyErr_Occurred()) SWIG_fail;
23927 }
23928 resultobj = SWIG_Py_Void();
23929 return resultobj;
23930 fail:
23931 return NULL;
23932 }
23933
23934
23935 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23936 PyObject *resultobj = 0;
23937 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23938 PyObject *result = 0 ;
23939 void *argp1 = 0 ;
23940 int res1 = 0 ;
23941 PyObject *swig_obj[1] ;
23942
23943 if (!args) SWIG_fail;
23944 swig_obj[0] = args;
23945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23946 if (!SWIG_IsOK(res1)) {
23947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23948 }
23949 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23953 wxPyEndAllowThreads(__tstate);
23954 if (PyErr_Occurred()) SWIG_fail;
23955 }
23956 resultobj = result;
23957 return resultobj;
23958 fail:
23959 return NULL;
23960 }
23961
23962
23963 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23964 PyObject *resultobj = 0;
23965 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23966 PyObject *arg2 = (PyObject *) 0 ;
23967 void *argp1 = 0 ;
23968 int res1 = 0 ;
23969 PyObject * obj0 = 0 ;
23970 PyObject * obj1 = 0 ;
23971 char * kwnames[] = {
23972 (char *) "self",(char *) "clientData", NULL
23973 };
23974
23975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23977 if (!SWIG_IsOK(res1)) {
23978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23979 }
23980 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23981 arg2 = obj1;
23982 {
23983 PyThreadState* __tstate = wxPyBeginAllowThreads();
23984 wxToolBarToolBase_SetClientData(arg1,arg2);
23985 wxPyEndAllowThreads(__tstate);
23986 if (PyErr_Occurred()) SWIG_fail;
23987 }
23988 resultobj = SWIG_Py_Void();
23989 return resultobj;
23990 fail:
23991 return NULL;
23992 }
23993
23994
23995 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23996 PyObject *obj;
23997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23998 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23999 return SWIG_Py_Void();
24000 }
24001
24002 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24003 PyObject *resultobj = 0;
24004 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24005 int arg2 ;
24006 wxString *arg3 = 0 ;
24007 wxBitmap *arg4 = 0 ;
24008 wxBitmap const &arg5_defvalue = wxNullBitmap ;
24009 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
24010 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
24011 wxString const &arg7_defvalue = wxPyEmptyString ;
24012 wxString *arg7 = (wxString *) &arg7_defvalue ;
24013 wxString const &arg8_defvalue = wxPyEmptyString ;
24014 wxString *arg8 = (wxString *) &arg8_defvalue ;
24015 PyObject *arg9 = (PyObject *) NULL ;
24016 wxToolBarToolBase *result = 0 ;
24017 void *argp1 = 0 ;
24018 int res1 = 0 ;
24019 int val2 ;
24020 int ecode2 = 0 ;
24021 bool temp3 = false ;
24022 void *argp4 = 0 ;
24023 int res4 = 0 ;
24024 void *argp5 = 0 ;
24025 int res5 = 0 ;
24026 int val6 ;
24027 int ecode6 = 0 ;
24028 bool temp7 = false ;
24029 bool temp8 = false ;
24030 PyObject * obj0 = 0 ;
24031 PyObject * obj1 = 0 ;
24032 PyObject * obj2 = 0 ;
24033 PyObject * obj3 = 0 ;
24034 PyObject * obj4 = 0 ;
24035 PyObject * obj5 = 0 ;
24036 PyObject * obj6 = 0 ;
24037 PyObject * obj7 = 0 ;
24038 PyObject * obj8 = 0 ;
24039 char * kwnames[] = {
24040 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24041 };
24042
24043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
24044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24045 if (!SWIG_IsOK(res1)) {
24046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24047 }
24048 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24049 ecode2 = SWIG_AsVal_int(obj1, &val2);
24050 if (!SWIG_IsOK(ecode2)) {
24051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
24052 }
24053 arg2 = static_cast< int >(val2);
24054 {
24055 arg3 = wxString_in_helper(obj2);
24056 if (arg3 == NULL) SWIG_fail;
24057 temp3 = true;
24058 }
24059 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24060 if (!SWIG_IsOK(res4)) {
24061 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24062 }
24063 if (!argp4) {
24064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24065 }
24066 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24067 if (obj4) {
24068 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24069 if (!SWIG_IsOK(res5)) {
24070 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24071 }
24072 if (!argp5) {
24073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24074 }
24075 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24076 }
24077 if (obj5) {
24078 ecode6 = SWIG_AsVal_int(obj5, &val6);
24079 if (!SWIG_IsOK(ecode6)) {
24080 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24081 }
24082 arg6 = static_cast< wxItemKind >(val6);
24083 }
24084 if (obj6) {
24085 {
24086 arg7 = wxString_in_helper(obj6);
24087 if (arg7 == NULL) SWIG_fail;
24088 temp7 = true;
24089 }
24090 }
24091 if (obj7) {
24092 {
24093 arg8 = wxString_in_helper(obj7);
24094 if (arg8 == NULL) SWIG_fail;
24095 temp8 = true;
24096 }
24097 }
24098 if (obj8) {
24099 arg9 = obj8;
24100 }
24101 {
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24104 wxPyEndAllowThreads(__tstate);
24105 if (PyErr_Occurred()) SWIG_fail;
24106 }
24107 {
24108 resultobj = wxPyMake_wxObject(result, (bool)0);
24109 }
24110 {
24111 if (temp3)
24112 delete arg3;
24113 }
24114 {
24115 if (temp7)
24116 delete arg7;
24117 }
24118 {
24119 if (temp8)
24120 delete arg8;
24121 }
24122 return resultobj;
24123 fail:
24124 {
24125 if (temp3)
24126 delete arg3;
24127 }
24128 {
24129 if (temp7)
24130 delete arg7;
24131 }
24132 {
24133 if (temp8)
24134 delete arg8;
24135 }
24136 return NULL;
24137 }
24138
24139
24140 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24141 PyObject *resultobj = 0;
24142 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24143 size_t arg2 ;
24144 int arg3 ;
24145 wxString *arg4 = 0 ;
24146 wxBitmap *arg5 = 0 ;
24147 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24148 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24149 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24150 wxString const &arg8_defvalue = wxPyEmptyString ;
24151 wxString *arg8 = (wxString *) &arg8_defvalue ;
24152 wxString const &arg9_defvalue = wxPyEmptyString ;
24153 wxString *arg9 = (wxString *) &arg9_defvalue ;
24154 PyObject *arg10 = (PyObject *) NULL ;
24155 wxToolBarToolBase *result = 0 ;
24156 void *argp1 = 0 ;
24157 int res1 = 0 ;
24158 size_t val2 ;
24159 int ecode2 = 0 ;
24160 int val3 ;
24161 int ecode3 = 0 ;
24162 bool temp4 = false ;
24163 void *argp5 = 0 ;
24164 int res5 = 0 ;
24165 void *argp6 = 0 ;
24166 int res6 = 0 ;
24167 int val7 ;
24168 int ecode7 = 0 ;
24169 bool temp8 = false ;
24170 bool temp9 = false ;
24171 PyObject * obj0 = 0 ;
24172 PyObject * obj1 = 0 ;
24173 PyObject * obj2 = 0 ;
24174 PyObject * obj3 = 0 ;
24175 PyObject * obj4 = 0 ;
24176 PyObject * obj5 = 0 ;
24177 PyObject * obj6 = 0 ;
24178 PyObject * obj7 = 0 ;
24179 PyObject * obj8 = 0 ;
24180 PyObject * obj9 = 0 ;
24181 char * kwnames[] = {
24182 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24183 };
24184
24185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24187 if (!SWIG_IsOK(res1)) {
24188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24189 }
24190 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24192 if (!SWIG_IsOK(ecode2)) {
24193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24194 }
24195 arg2 = static_cast< size_t >(val2);
24196 ecode3 = SWIG_AsVal_int(obj2, &val3);
24197 if (!SWIG_IsOK(ecode3)) {
24198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24199 }
24200 arg3 = static_cast< int >(val3);
24201 {
24202 arg4 = wxString_in_helper(obj3);
24203 if (arg4 == NULL) SWIG_fail;
24204 temp4 = true;
24205 }
24206 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24207 if (!SWIG_IsOK(res5)) {
24208 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24209 }
24210 if (!argp5) {
24211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24212 }
24213 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24214 if (obj5) {
24215 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24216 if (!SWIG_IsOK(res6)) {
24217 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24218 }
24219 if (!argp6) {
24220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24221 }
24222 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24223 }
24224 if (obj6) {
24225 ecode7 = SWIG_AsVal_int(obj6, &val7);
24226 if (!SWIG_IsOK(ecode7)) {
24227 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24228 }
24229 arg7 = static_cast< wxItemKind >(val7);
24230 }
24231 if (obj7) {
24232 {
24233 arg8 = wxString_in_helper(obj7);
24234 if (arg8 == NULL) SWIG_fail;
24235 temp8 = true;
24236 }
24237 }
24238 if (obj8) {
24239 {
24240 arg9 = wxString_in_helper(obj8);
24241 if (arg9 == NULL) SWIG_fail;
24242 temp9 = true;
24243 }
24244 }
24245 if (obj9) {
24246 arg10 = obj9;
24247 }
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 {
24255 resultobj = wxPyMake_wxObject(result, (bool)0);
24256 }
24257 {
24258 if (temp4)
24259 delete arg4;
24260 }
24261 {
24262 if (temp8)
24263 delete arg8;
24264 }
24265 {
24266 if (temp9)
24267 delete arg9;
24268 }
24269 return resultobj;
24270 fail:
24271 {
24272 if (temp4)
24273 delete arg4;
24274 }
24275 {
24276 if (temp8)
24277 delete arg8;
24278 }
24279 {
24280 if (temp9)
24281 delete arg9;
24282 }
24283 return NULL;
24284 }
24285
24286
24287 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24288 PyObject *resultobj = 0;
24289 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24290 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24291 wxToolBarToolBase *result = 0 ;
24292 void *argp1 = 0 ;
24293 int res1 = 0 ;
24294 void *argp2 = 0 ;
24295 int res2 = 0 ;
24296 PyObject * obj0 = 0 ;
24297 PyObject * obj1 = 0 ;
24298 char * kwnames[] = {
24299 (char *) "self",(char *) "tool", NULL
24300 };
24301
24302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24304 if (!SWIG_IsOK(res1)) {
24305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24306 }
24307 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24308 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24309 if (!SWIG_IsOK(res2)) {
24310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24311 }
24312 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24313 {
24314 PyThreadState* __tstate = wxPyBeginAllowThreads();
24315 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24316 wxPyEndAllowThreads(__tstate);
24317 if (PyErr_Occurred()) SWIG_fail;
24318 }
24319 {
24320 resultobj = wxPyMake_wxObject(result, (bool)0);
24321 }
24322 return resultobj;
24323 fail:
24324 return NULL;
24325 }
24326
24327
24328 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj = 0;
24330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24331 size_t arg2 ;
24332 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24333 wxToolBarToolBase *result = 0 ;
24334 void *argp1 = 0 ;
24335 int res1 = 0 ;
24336 size_t val2 ;
24337 int ecode2 = 0 ;
24338 void *argp3 = 0 ;
24339 int res3 = 0 ;
24340 PyObject * obj0 = 0 ;
24341 PyObject * obj1 = 0 ;
24342 PyObject * obj2 = 0 ;
24343 char * kwnames[] = {
24344 (char *) "self",(char *) "pos",(char *) "tool", NULL
24345 };
24346
24347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24351 }
24352 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24353 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24354 if (!SWIG_IsOK(ecode2)) {
24355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24356 }
24357 arg2 = static_cast< size_t >(val2);
24358 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24359 if (!SWIG_IsOK(res3)) {
24360 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24361 }
24362 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24363 {
24364 PyThreadState* __tstate = wxPyBeginAllowThreads();
24365 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24366 wxPyEndAllowThreads(__tstate);
24367 if (PyErr_Occurred()) SWIG_fail;
24368 }
24369 {
24370 resultobj = wxPyMake_wxObject(result, (bool)0);
24371 }
24372 return resultobj;
24373 fail:
24374 return NULL;
24375 }
24376
24377
24378 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24379 PyObject *resultobj = 0;
24380 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24381 wxControl *arg2 = (wxControl *) 0 ;
24382 wxString const &arg3_defvalue = wxEmptyString ;
24383 wxString *arg3 = (wxString *) &arg3_defvalue ;
24384 wxToolBarToolBase *result = 0 ;
24385 void *argp1 = 0 ;
24386 int res1 = 0 ;
24387 void *argp2 = 0 ;
24388 int res2 = 0 ;
24389 bool temp3 = false ;
24390 PyObject * obj0 = 0 ;
24391 PyObject * obj1 = 0 ;
24392 PyObject * obj2 = 0 ;
24393 char * kwnames[] = {
24394 (char *) "self",(char *) "control",(char *) "label", NULL
24395 };
24396
24397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ToolBarBase_AddControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24399 if (!SWIG_IsOK(res1)) {
24400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24401 }
24402 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24403 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24404 if (!SWIG_IsOK(res2)) {
24405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24406 }
24407 arg2 = reinterpret_cast< wxControl * >(argp2);
24408 if (obj2) {
24409 {
24410 arg3 = wxString_in_helper(obj2);
24411 if (arg3 == NULL) SWIG_fail;
24412 temp3 = true;
24413 }
24414 }
24415 {
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2,(wxString const &)*arg3);
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 {
24422 resultobj = wxPyMake_wxObject(result, (bool)0);
24423 }
24424 {
24425 if (temp3)
24426 delete arg3;
24427 }
24428 return resultobj;
24429 fail:
24430 {
24431 if (temp3)
24432 delete arg3;
24433 }
24434 return NULL;
24435 }
24436
24437
24438 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = 0;
24440 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24441 size_t arg2 ;
24442 wxControl *arg3 = (wxControl *) 0 ;
24443 wxString const &arg4_defvalue = wxEmptyString ;
24444 wxString *arg4 = (wxString *) &arg4_defvalue ;
24445 wxToolBarToolBase *result = 0 ;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 size_t val2 ;
24449 int ecode2 = 0 ;
24450 void *argp3 = 0 ;
24451 int res3 = 0 ;
24452 bool temp4 = false ;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 PyObject * obj2 = 0 ;
24456 PyObject * obj3 = 0 ;
24457 char * kwnames[] = {
24458 (char *) "self",(char *) "pos",(char *) "control",(char *) "label", NULL
24459 };
24460
24461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24463 if (!SWIG_IsOK(res1)) {
24464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24465 }
24466 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24467 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24468 if (!SWIG_IsOK(ecode2)) {
24469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24470 }
24471 arg2 = static_cast< size_t >(val2);
24472 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24473 if (!SWIG_IsOK(res3)) {
24474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24475 }
24476 arg3 = reinterpret_cast< wxControl * >(argp3);
24477 if (obj3) {
24478 {
24479 arg4 = wxString_in_helper(obj3);
24480 if (arg4 == NULL) SWIG_fail;
24481 temp4 = true;
24482 }
24483 }
24484 {
24485 PyThreadState* __tstate = wxPyBeginAllowThreads();
24486 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3,(wxString const &)*arg4);
24487 wxPyEndAllowThreads(__tstate);
24488 if (PyErr_Occurred()) SWIG_fail;
24489 }
24490 {
24491 resultobj = wxPyMake_wxObject(result, (bool)0);
24492 }
24493 {
24494 if (temp4)
24495 delete arg4;
24496 }
24497 return resultobj;
24498 fail:
24499 {
24500 if (temp4)
24501 delete arg4;
24502 }
24503 return NULL;
24504 }
24505
24506
24507 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24508 PyObject *resultobj = 0;
24509 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24510 int arg2 ;
24511 wxControl *result = 0 ;
24512 void *argp1 = 0 ;
24513 int res1 = 0 ;
24514 int val2 ;
24515 int ecode2 = 0 ;
24516 PyObject * obj0 = 0 ;
24517 PyObject * obj1 = 0 ;
24518 char * kwnames[] = {
24519 (char *) "self",(char *) "id", NULL
24520 };
24521
24522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24524 if (!SWIG_IsOK(res1)) {
24525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24526 }
24527 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24528 ecode2 = SWIG_AsVal_int(obj1, &val2);
24529 if (!SWIG_IsOK(ecode2)) {
24530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24531 }
24532 arg2 = static_cast< int >(val2);
24533 {
24534 PyThreadState* __tstate = wxPyBeginAllowThreads();
24535 result = (wxControl *)(arg1)->FindControl(arg2);
24536 wxPyEndAllowThreads(__tstate);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 }
24539 {
24540 resultobj = wxPyMake_wxObject(result, 0);
24541 }
24542 return resultobj;
24543 fail:
24544 return NULL;
24545 }
24546
24547
24548 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24549 PyObject *resultobj = 0;
24550 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24551 wxToolBarToolBase *result = 0 ;
24552 void *argp1 = 0 ;
24553 int res1 = 0 ;
24554 PyObject *swig_obj[1] ;
24555
24556 if (!args) SWIG_fail;
24557 swig_obj[0] = args;
24558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24559 if (!SWIG_IsOK(res1)) {
24560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24561 }
24562 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24566 wxPyEndAllowThreads(__tstate);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 {
24570 resultobj = wxPyMake_wxObject(result, (bool)0);
24571 }
24572 return resultobj;
24573 fail:
24574 return NULL;
24575 }
24576
24577
24578 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24579 PyObject *resultobj = 0;
24580 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24581 size_t arg2 ;
24582 wxToolBarToolBase *result = 0 ;
24583 void *argp1 = 0 ;
24584 int res1 = 0 ;
24585 size_t val2 ;
24586 int ecode2 = 0 ;
24587 PyObject * obj0 = 0 ;
24588 PyObject * obj1 = 0 ;
24589 char * kwnames[] = {
24590 (char *) "self",(char *) "pos", NULL
24591 };
24592
24593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24595 if (!SWIG_IsOK(res1)) {
24596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24597 }
24598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24599 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24600 if (!SWIG_IsOK(ecode2)) {
24601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24602 }
24603 arg2 = static_cast< size_t >(val2);
24604 {
24605 PyThreadState* __tstate = wxPyBeginAllowThreads();
24606 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24607 wxPyEndAllowThreads(__tstate);
24608 if (PyErr_Occurred()) SWIG_fail;
24609 }
24610 {
24611 resultobj = wxPyMake_wxObject(result, (bool)0);
24612 }
24613 return resultobj;
24614 fail:
24615 return NULL;
24616 }
24617
24618
24619 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj = 0;
24621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24622 int arg2 ;
24623 wxToolBarToolBase *result = 0 ;
24624 void *argp1 = 0 ;
24625 int res1 = 0 ;
24626 int val2 ;
24627 int ecode2 = 0 ;
24628 PyObject * obj0 = 0 ;
24629 PyObject * obj1 = 0 ;
24630 char * kwnames[] = {
24631 (char *) "self",(char *) "id", NULL
24632 };
24633
24634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24636 if (!SWIG_IsOK(res1)) {
24637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24638 }
24639 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24640 ecode2 = SWIG_AsVal_int(obj1, &val2);
24641 if (!SWIG_IsOK(ecode2)) {
24642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24643 }
24644 arg2 = static_cast< int >(val2);
24645 {
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 {
24652 resultobj = wxPyMake_wxObject(result, (bool)0);
24653 }
24654 return resultobj;
24655 fail:
24656 return NULL;
24657 }
24658
24659
24660 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24661 PyObject *resultobj = 0;
24662 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24663 size_t arg2 ;
24664 bool result;
24665 void *argp1 = 0 ;
24666 int res1 = 0 ;
24667 size_t val2 ;
24668 int ecode2 = 0 ;
24669 PyObject * obj0 = 0 ;
24670 PyObject * obj1 = 0 ;
24671 char * kwnames[] = {
24672 (char *) "self",(char *) "pos", NULL
24673 };
24674
24675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24677 if (!SWIG_IsOK(res1)) {
24678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24679 }
24680 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24681 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24682 if (!SWIG_IsOK(ecode2)) {
24683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24684 }
24685 arg2 = static_cast< size_t >(val2);
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 result = (bool)(arg1)->DeleteToolByPos(arg2);
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 {
24693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24694 }
24695 return resultobj;
24696 fail:
24697 return NULL;
24698 }
24699
24700
24701 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24702 PyObject *resultobj = 0;
24703 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24704 int arg2 ;
24705 bool result;
24706 void *argp1 = 0 ;
24707 int res1 = 0 ;
24708 int val2 ;
24709 int ecode2 = 0 ;
24710 PyObject * obj0 = 0 ;
24711 PyObject * obj1 = 0 ;
24712 char * kwnames[] = {
24713 (char *) "self",(char *) "id", NULL
24714 };
24715
24716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24718 if (!SWIG_IsOK(res1)) {
24719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24720 }
24721 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24722 ecode2 = SWIG_AsVal_int(obj1, &val2);
24723 if (!SWIG_IsOK(ecode2)) {
24724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24725 }
24726 arg2 = static_cast< int >(val2);
24727 {
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
24729 result = (bool)(arg1)->DeleteTool(arg2);
24730 wxPyEndAllowThreads(__tstate);
24731 if (PyErr_Occurred()) SWIG_fail;
24732 }
24733 {
24734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24735 }
24736 return resultobj;
24737 fail:
24738 return NULL;
24739 }
24740
24741
24742 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24743 PyObject *resultobj = 0;
24744 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24745 void *argp1 = 0 ;
24746 int res1 = 0 ;
24747 PyObject *swig_obj[1] ;
24748
24749 if (!args) SWIG_fail;
24750 swig_obj[0] = args;
24751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24752 if (!SWIG_IsOK(res1)) {
24753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24754 }
24755 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24756 {
24757 PyThreadState* __tstate = wxPyBeginAllowThreads();
24758 (arg1)->ClearTools();
24759 wxPyEndAllowThreads(__tstate);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 resultobj = SWIG_Py_Void();
24763 return resultobj;
24764 fail:
24765 return NULL;
24766 }
24767
24768
24769 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24770 PyObject *resultobj = 0;
24771 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24772 bool result;
24773 void *argp1 = 0 ;
24774 int res1 = 0 ;
24775 PyObject *swig_obj[1] ;
24776
24777 if (!args) SWIG_fail;
24778 swig_obj[0] = args;
24779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24780 if (!SWIG_IsOK(res1)) {
24781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24782 }
24783 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24784 {
24785 PyThreadState* __tstate = wxPyBeginAllowThreads();
24786 result = (bool)(arg1)->Realize();
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 {
24791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24792 }
24793 return resultobj;
24794 fail:
24795 return NULL;
24796 }
24797
24798
24799 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24800 PyObject *resultobj = 0;
24801 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24802 int arg2 ;
24803 bool arg3 ;
24804 void *argp1 = 0 ;
24805 int res1 = 0 ;
24806 int val2 ;
24807 int ecode2 = 0 ;
24808 bool val3 ;
24809 int ecode3 = 0 ;
24810 PyObject * obj0 = 0 ;
24811 PyObject * obj1 = 0 ;
24812 PyObject * obj2 = 0 ;
24813 char * kwnames[] = {
24814 (char *) "self",(char *) "id",(char *) "enable", NULL
24815 };
24816
24817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24819 if (!SWIG_IsOK(res1)) {
24820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24821 }
24822 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24823 ecode2 = SWIG_AsVal_int(obj1, &val2);
24824 if (!SWIG_IsOK(ecode2)) {
24825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24826 }
24827 arg2 = static_cast< int >(val2);
24828 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24829 if (!SWIG_IsOK(ecode3)) {
24830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24831 }
24832 arg3 = static_cast< bool >(val3);
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 (arg1)->EnableTool(arg2,arg3);
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_Py_Void();
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24847 PyObject *resultobj = 0;
24848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24849 int arg2 ;
24850 bool arg3 ;
24851 void *argp1 = 0 ;
24852 int res1 = 0 ;
24853 int val2 ;
24854 int ecode2 = 0 ;
24855 bool val3 ;
24856 int ecode3 = 0 ;
24857 PyObject * obj0 = 0 ;
24858 PyObject * obj1 = 0 ;
24859 PyObject * obj2 = 0 ;
24860 char * kwnames[] = {
24861 (char *) "self",(char *) "id",(char *) "toggle", NULL
24862 };
24863
24864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24866 if (!SWIG_IsOK(res1)) {
24867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24868 }
24869 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24870 ecode2 = SWIG_AsVal_int(obj1, &val2);
24871 if (!SWIG_IsOK(ecode2)) {
24872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24873 }
24874 arg2 = static_cast< int >(val2);
24875 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24876 if (!SWIG_IsOK(ecode3)) {
24877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24878 }
24879 arg3 = static_cast< bool >(val3);
24880 {
24881 PyThreadState* __tstate = wxPyBeginAllowThreads();
24882 (arg1)->ToggleTool(arg2,arg3);
24883 wxPyEndAllowThreads(__tstate);
24884 if (PyErr_Occurred()) SWIG_fail;
24885 }
24886 resultobj = SWIG_Py_Void();
24887 return resultobj;
24888 fail:
24889 return NULL;
24890 }
24891
24892
24893 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24894 PyObject *resultobj = 0;
24895 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24896 int arg2 ;
24897 bool arg3 ;
24898 void *argp1 = 0 ;
24899 int res1 = 0 ;
24900 int val2 ;
24901 int ecode2 = 0 ;
24902 bool val3 ;
24903 int ecode3 = 0 ;
24904 PyObject * obj0 = 0 ;
24905 PyObject * obj1 = 0 ;
24906 PyObject * obj2 = 0 ;
24907 char * kwnames[] = {
24908 (char *) "self",(char *) "id",(char *) "toggle", NULL
24909 };
24910
24911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24913 if (!SWIG_IsOK(res1)) {
24914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24915 }
24916 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24917 ecode2 = SWIG_AsVal_int(obj1, &val2);
24918 if (!SWIG_IsOK(ecode2)) {
24919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24920 }
24921 arg2 = static_cast< int >(val2);
24922 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24923 if (!SWIG_IsOK(ecode3)) {
24924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24925 }
24926 arg3 = static_cast< bool >(val3);
24927 {
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 (arg1)->SetToggle(arg2,arg3);
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 resultobj = SWIG_Py_Void();
24934 return resultobj;
24935 fail:
24936 return NULL;
24937 }
24938
24939
24940 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24941 PyObject *resultobj = 0;
24942 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24943 int arg2 ;
24944 PyObject *result = 0 ;
24945 void *argp1 = 0 ;
24946 int res1 = 0 ;
24947 int val2 ;
24948 int ecode2 = 0 ;
24949 PyObject * obj0 = 0 ;
24950 PyObject * obj1 = 0 ;
24951 char * kwnames[] = {
24952 (char *) "self",(char *) "id", NULL
24953 };
24954
24955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24957 if (!SWIG_IsOK(res1)) {
24958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24959 }
24960 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24961 ecode2 = SWIG_AsVal_int(obj1, &val2);
24962 if (!SWIG_IsOK(ecode2)) {
24963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24964 }
24965 arg2 = static_cast< int >(val2);
24966 {
24967 PyThreadState* __tstate = wxPyBeginAllowThreads();
24968 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24969 wxPyEndAllowThreads(__tstate);
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = result;
24973 return resultobj;
24974 fail:
24975 return NULL;
24976 }
24977
24978
24979 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj = 0;
24981 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24982 int arg2 ;
24983 PyObject *arg3 = (PyObject *) 0 ;
24984 void *argp1 = 0 ;
24985 int res1 = 0 ;
24986 int val2 ;
24987 int ecode2 = 0 ;
24988 PyObject * obj0 = 0 ;
24989 PyObject * obj1 = 0 ;
24990 PyObject * obj2 = 0 ;
24991 char * kwnames[] = {
24992 (char *) "self",(char *) "id",(char *) "clientData", NULL
24993 };
24994
24995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24997 if (!SWIG_IsOK(res1)) {
24998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24999 }
25000 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25001 ecode2 = SWIG_AsVal_int(obj1, &val2);
25002 if (!SWIG_IsOK(ecode2)) {
25003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
25004 }
25005 arg2 = static_cast< int >(val2);
25006 arg3 = obj2;
25007 {
25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
25009 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
25010 wxPyEndAllowThreads(__tstate);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 }
25013 resultobj = SWIG_Py_Void();
25014 return resultobj;
25015 fail:
25016 return NULL;
25017 }
25018
25019
25020 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj = 0;
25022 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25023 int arg2 ;
25024 int result;
25025 void *argp1 = 0 ;
25026 int res1 = 0 ;
25027 int val2 ;
25028 int ecode2 = 0 ;
25029 PyObject * obj0 = 0 ;
25030 PyObject * obj1 = 0 ;
25031 char * kwnames[] = {
25032 (char *) "self",(char *) "id", NULL
25033 };
25034
25035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
25036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25037 if (!SWIG_IsOK(res1)) {
25038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25039 }
25040 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25041 ecode2 = SWIG_AsVal_int(obj1, &val2);
25042 if (!SWIG_IsOK(ecode2)) {
25043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
25044 }
25045 arg2 = static_cast< int >(val2);
25046 {
25047 PyThreadState* __tstate = wxPyBeginAllowThreads();
25048 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
25049 wxPyEndAllowThreads(__tstate);
25050 if (PyErr_Occurred()) SWIG_fail;
25051 }
25052 resultobj = SWIG_From_int(static_cast< int >(result));
25053 return resultobj;
25054 fail:
25055 return NULL;
25056 }
25057
25058
25059 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25060 PyObject *resultobj = 0;
25061 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25062 int arg2 ;
25063 bool result;
25064 void *argp1 = 0 ;
25065 int res1 = 0 ;
25066 int val2 ;
25067 int ecode2 = 0 ;
25068 PyObject * obj0 = 0 ;
25069 PyObject * obj1 = 0 ;
25070 char * kwnames[] = {
25071 (char *) "self",(char *) "id", NULL
25072 };
25073
25074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
25075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25076 if (!SWIG_IsOK(res1)) {
25077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25078 }
25079 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25080 ecode2 = SWIG_AsVal_int(obj1, &val2);
25081 if (!SWIG_IsOK(ecode2)) {
25082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
25083 }
25084 arg2 = static_cast< int >(val2);
25085 {
25086 PyThreadState* __tstate = wxPyBeginAllowThreads();
25087 result = (bool)(arg1)->GetToolState(arg2);
25088 wxPyEndAllowThreads(__tstate);
25089 if (PyErr_Occurred()) SWIG_fail;
25090 }
25091 {
25092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25093 }
25094 return resultobj;
25095 fail:
25096 return NULL;
25097 }
25098
25099
25100 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25101 PyObject *resultobj = 0;
25102 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25103 int arg2 ;
25104 bool result;
25105 void *argp1 = 0 ;
25106 int res1 = 0 ;
25107 int val2 ;
25108 int ecode2 = 0 ;
25109 PyObject * obj0 = 0 ;
25110 PyObject * obj1 = 0 ;
25111 char * kwnames[] = {
25112 (char *) "self",(char *) "id", NULL
25113 };
25114
25115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25117 if (!SWIG_IsOK(res1)) {
25118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25119 }
25120 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25121 ecode2 = SWIG_AsVal_int(obj1, &val2);
25122 if (!SWIG_IsOK(ecode2)) {
25123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25124 }
25125 arg2 = static_cast< int >(val2);
25126 {
25127 PyThreadState* __tstate = wxPyBeginAllowThreads();
25128 result = (bool)(arg1)->GetToolEnabled(arg2);
25129 wxPyEndAllowThreads(__tstate);
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 {
25133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25134 }
25135 return resultobj;
25136 fail:
25137 return NULL;
25138 }
25139
25140
25141 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25142 PyObject *resultobj = 0;
25143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25144 int arg2 ;
25145 wxString *arg3 = 0 ;
25146 void *argp1 = 0 ;
25147 int res1 = 0 ;
25148 int val2 ;
25149 int ecode2 = 0 ;
25150 bool temp3 = false ;
25151 PyObject * obj0 = 0 ;
25152 PyObject * obj1 = 0 ;
25153 PyObject * obj2 = 0 ;
25154 char * kwnames[] = {
25155 (char *) "self",(char *) "id",(char *) "helpString", NULL
25156 };
25157
25158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25160 if (!SWIG_IsOK(res1)) {
25161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25162 }
25163 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25164 ecode2 = SWIG_AsVal_int(obj1, &val2);
25165 if (!SWIG_IsOK(ecode2)) {
25166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25167 }
25168 arg2 = static_cast< int >(val2);
25169 {
25170 arg3 = wxString_in_helper(obj2);
25171 if (arg3 == NULL) SWIG_fail;
25172 temp3 = true;
25173 }
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_Py_Void();
25181 {
25182 if (temp3)
25183 delete arg3;
25184 }
25185 return resultobj;
25186 fail:
25187 {
25188 if (temp3)
25189 delete arg3;
25190 }
25191 return NULL;
25192 }
25193
25194
25195 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25196 PyObject *resultobj = 0;
25197 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25198 int arg2 ;
25199 wxString result;
25200 void *argp1 = 0 ;
25201 int res1 = 0 ;
25202 int val2 ;
25203 int ecode2 = 0 ;
25204 PyObject * obj0 = 0 ;
25205 PyObject * obj1 = 0 ;
25206 char * kwnames[] = {
25207 (char *) "self",(char *) "id", NULL
25208 };
25209
25210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25212 if (!SWIG_IsOK(res1)) {
25213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25214 }
25215 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25216 ecode2 = SWIG_AsVal_int(obj1, &val2);
25217 if (!SWIG_IsOK(ecode2)) {
25218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25219 }
25220 arg2 = static_cast< int >(val2);
25221 {
25222 PyThreadState* __tstate = wxPyBeginAllowThreads();
25223 result = (arg1)->GetToolShortHelp(arg2);
25224 wxPyEndAllowThreads(__tstate);
25225 if (PyErr_Occurred()) SWIG_fail;
25226 }
25227 {
25228 #if wxUSE_UNICODE
25229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25230 #else
25231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25232 #endif
25233 }
25234 return resultobj;
25235 fail:
25236 return NULL;
25237 }
25238
25239
25240 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25241 PyObject *resultobj = 0;
25242 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25243 int arg2 ;
25244 wxString *arg3 = 0 ;
25245 void *argp1 = 0 ;
25246 int res1 = 0 ;
25247 int val2 ;
25248 int ecode2 = 0 ;
25249 bool temp3 = false ;
25250 PyObject * obj0 = 0 ;
25251 PyObject * obj1 = 0 ;
25252 PyObject * obj2 = 0 ;
25253 char * kwnames[] = {
25254 (char *) "self",(char *) "id",(char *) "helpString", NULL
25255 };
25256
25257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25259 if (!SWIG_IsOK(res1)) {
25260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25261 }
25262 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25263 ecode2 = SWIG_AsVal_int(obj1, &val2);
25264 if (!SWIG_IsOK(ecode2)) {
25265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25266 }
25267 arg2 = static_cast< int >(val2);
25268 {
25269 arg3 = wxString_in_helper(obj2);
25270 if (arg3 == NULL) SWIG_fail;
25271 temp3 = true;
25272 }
25273 {
25274 PyThreadState* __tstate = wxPyBeginAllowThreads();
25275 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25276 wxPyEndAllowThreads(__tstate);
25277 if (PyErr_Occurred()) SWIG_fail;
25278 }
25279 resultobj = SWIG_Py_Void();
25280 {
25281 if (temp3)
25282 delete arg3;
25283 }
25284 return resultobj;
25285 fail:
25286 {
25287 if (temp3)
25288 delete arg3;
25289 }
25290 return NULL;
25291 }
25292
25293
25294 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25295 PyObject *resultobj = 0;
25296 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25297 int arg2 ;
25298 wxString result;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 int val2 ;
25302 int ecode2 = 0 ;
25303 PyObject * obj0 = 0 ;
25304 PyObject * obj1 = 0 ;
25305 char * kwnames[] = {
25306 (char *) "self",(char *) "id", NULL
25307 };
25308
25309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25313 }
25314 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25315 ecode2 = SWIG_AsVal_int(obj1, &val2);
25316 if (!SWIG_IsOK(ecode2)) {
25317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25318 }
25319 arg2 = static_cast< int >(val2);
25320 {
25321 PyThreadState* __tstate = wxPyBeginAllowThreads();
25322 result = (arg1)->GetToolLongHelp(arg2);
25323 wxPyEndAllowThreads(__tstate);
25324 if (PyErr_Occurred()) SWIG_fail;
25325 }
25326 {
25327 #if wxUSE_UNICODE
25328 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25329 #else
25330 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25331 #endif
25332 }
25333 return resultobj;
25334 fail:
25335 return NULL;
25336 }
25337
25338
25339 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25340 PyObject *resultobj = 0;
25341 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25342 int arg2 ;
25343 int arg3 ;
25344 void *argp1 = 0 ;
25345 int res1 = 0 ;
25346 int val2 ;
25347 int ecode2 = 0 ;
25348 int val3 ;
25349 int ecode3 = 0 ;
25350 PyObject * obj0 = 0 ;
25351 PyObject * obj1 = 0 ;
25352 PyObject * obj2 = 0 ;
25353 char * kwnames[] = {
25354 (char *) "self",(char *) "x",(char *) "y", NULL
25355 };
25356
25357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25359 if (!SWIG_IsOK(res1)) {
25360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25361 }
25362 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25363 ecode2 = SWIG_AsVal_int(obj1, &val2);
25364 if (!SWIG_IsOK(ecode2)) {
25365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25366 }
25367 arg2 = static_cast< int >(val2);
25368 ecode3 = SWIG_AsVal_int(obj2, &val3);
25369 if (!SWIG_IsOK(ecode3)) {
25370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25371 }
25372 arg3 = static_cast< int >(val3);
25373 {
25374 PyThreadState* __tstate = wxPyBeginAllowThreads();
25375 (arg1)->SetMargins(arg2,arg3);
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = SWIG_Py_Void();
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25387 PyObject *resultobj = 0;
25388 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25389 wxSize *arg2 = 0 ;
25390 void *argp1 = 0 ;
25391 int res1 = 0 ;
25392 wxSize temp2 ;
25393 PyObject * obj0 = 0 ;
25394 PyObject * obj1 = 0 ;
25395 char * kwnames[] = {
25396 (char *) "self",(char *) "size", NULL
25397 };
25398
25399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25401 if (!SWIG_IsOK(res1)) {
25402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25403 }
25404 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25405 {
25406 arg2 = &temp2;
25407 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25408 }
25409 {
25410 PyThreadState* __tstate = wxPyBeginAllowThreads();
25411 (arg1)->SetMargins((wxSize const &)*arg2);
25412 wxPyEndAllowThreads(__tstate);
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = SWIG_Py_Void();
25416 return resultobj;
25417 fail:
25418 return NULL;
25419 }
25420
25421
25422 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25423 PyObject *resultobj = 0;
25424 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25425 int arg2 ;
25426 void *argp1 = 0 ;
25427 int res1 = 0 ;
25428 int val2 ;
25429 int ecode2 = 0 ;
25430 PyObject * obj0 = 0 ;
25431 PyObject * obj1 = 0 ;
25432 char * kwnames[] = {
25433 (char *) "self",(char *) "packing", NULL
25434 };
25435
25436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25438 if (!SWIG_IsOK(res1)) {
25439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25440 }
25441 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25442 ecode2 = SWIG_AsVal_int(obj1, &val2);
25443 if (!SWIG_IsOK(ecode2)) {
25444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25445 }
25446 arg2 = static_cast< int >(val2);
25447 {
25448 PyThreadState* __tstate = wxPyBeginAllowThreads();
25449 (arg1)->SetToolPacking(arg2);
25450 wxPyEndAllowThreads(__tstate);
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = SWIG_Py_Void();
25454 return resultobj;
25455 fail:
25456 return NULL;
25457 }
25458
25459
25460 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25461 PyObject *resultobj = 0;
25462 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25463 int arg2 ;
25464 void *argp1 = 0 ;
25465 int res1 = 0 ;
25466 int val2 ;
25467 int ecode2 = 0 ;
25468 PyObject * obj0 = 0 ;
25469 PyObject * obj1 = 0 ;
25470 char * kwnames[] = {
25471 (char *) "self",(char *) "separation", NULL
25472 };
25473
25474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25476 if (!SWIG_IsOK(res1)) {
25477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25478 }
25479 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25480 ecode2 = SWIG_AsVal_int(obj1, &val2);
25481 if (!SWIG_IsOK(ecode2)) {
25482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25483 }
25484 arg2 = static_cast< int >(val2);
25485 {
25486 PyThreadState* __tstate = wxPyBeginAllowThreads();
25487 (arg1)->SetToolSeparation(arg2);
25488 wxPyEndAllowThreads(__tstate);
25489 if (PyErr_Occurred()) SWIG_fail;
25490 }
25491 resultobj = SWIG_Py_Void();
25492 return resultobj;
25493 fail:
25494 return NULL;
25495 }
25496
25497
25498 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25499 PyObject *resultobj = 0;
25500 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25501 wxSize result;
25502 void *argp1 = 0 ;
25503 int res1 = 0 ;
25504 PyObject *swig_obj[1] ;
25505
25506 if (!args) SWIG_fail;
25507 swig_obj[0] = args;
25508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25509 if (!SWIG_IsOK(res1)) {
25510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25511 }
25512 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25513 {
25514 PyThreadState* __tstate = wxPyBeginAllowThreads();
25515 result = (arg1)->GetToolMargins();
25516 wxPyEndAllowThreads(__tstate);
25517 if (PyErr_Occurred()) SWIG_fail;
25518 }
25519 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25520 return resultobj;
25521 fail:
25522 return NULL;
25523 }
25524
25525
25526 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25527 PyObject *resultobj = 0;
25528 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25529 wxSize result;
25530 void *argp1 = 0 ;
25531 int res1 = 0 ;
25532 PyObject *swig_obj[1] ;
25533
25534 if (!args) SWIG_fail;
25535 swig_obj[0] = args;
25536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25537 if (!SWIG_IsOK(res1)) {
25538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25539 }
25540 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25541 {
25542 PyThreadState* __tstate = wxPyBeginAllowThreads();
25543 result = (arg1)->GetMargins();
25544 wxPyEndAllowThreads(__tstate);
25545 if (PyErr_Occurred()) SWIG_fail;
25546 }
25547 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25548 return resultobj;
25549 fail:
25550 return NULL;
25551 }
25552
25553
25554 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25555 PyObject *resultobj = 0;
25556 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25557 int result;
25558 void *argp1 = 0 ;
25559 int res1 = 0 ;
25560 PyObject *swig_obj[1] ;
25561
25562 if (!args) SWIG_fail;
25563 swig_obj[0] = args;
25564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25567 }
25568 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25569 {
25570 PyThreadState* __tstate = wxPyBeginAllowThreads();
25571 result = (int)(arg1)->GetToolPacking();
25572 wxPyEndAllowThreads(__tstate);
25573 if (PyErr_Occurred()) SWIG_fail;
25574 }
25575 resultobj = SWIG_From_int(static_cast< int >(result));
25576 return resultobj;
25577 fail:
25578 return NULL;
25579 }
25580
25581
25582 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25583 PyObject *resultobj = 0;
25584 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25585 int result;
25586 void *argp1 = 0 ;
25587 int res1 = 0 ;
25588 PyObject *swig_obj[1] ;
25589
25590 if (!args) SWIG_fail;
25591 swig_obj[0] = args;
25592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25593 if (!SWIG_IsOK(res1)) {
25594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25595 }
25596 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25597 {
25598 PyThreadState* __tstate = wxPyBeginAllowThreads();
25599 result = (int)(arg1)->GetToolSeparation();
25600 wxPyEndAllowThreads(__tstate);
25601 if (PyErr_Occurred()) SWIG_fail;
25602 }
25603 resultobj = SWIG_From_int(static_cast< int >(result));
25604 return resultobj;
25605 fail:
25606 return NULL;
25607 }
25608
25609
25610 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25611 PyObject *resultobj = 0;
25612 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25613 int arg2 ;
25614 void *argp1 = 0 ;
25615 int res1 = 0 ;
25616 int val2 ;
25617 int ecode2 = 0 ;
25618 PyObject * obj0 = 0 ;
25619 PyObject * obj1 = 0 ;
25620 char * kwnames[] = {
25621 (char *) "self",(char *) "nRows", NULL
25622 };
25623
25624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25626 if (!SWIG_IsOK(res1)) {
25627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25628 }
25629 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25630 ecode2 = SWIG_AsVal_int(obj1, &val2);
25631 if (!SWIG_IsOK(ecode2)) {
25632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25633 }
25634 arg2 = static_cast< int >(val2);
25635 {
25636 PyThreadState* __tstate = wxPyBeginAllowThreads();
25637 (arg1)->SetRows(arg2);
25638 wxPyEndAllowThreads(__tstate);
25639 if (PyErr_Occurred()) SWIG_fail;
25640 }
25641 resultobj = SWIG_Py_Void();
25642 return resultobj;
25643 fail:
25644 return NULL;
25645 }
25646
25647
25648 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25649 PyObject *resultobj = 0;
25650 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25651 int arg2 ;
25652 int arg3 ;
25653 void *argp1 = 0 ;
25654 int res1 = 0 ;
25655 int val2 ;
25656 int ecode2 = 0 ;
25657 int val3 ;
25658 int ecode3 = 0 ;
25659 PyObject * obj0 = 0 ;
25660 PyObject * obj1 = 0 ;
25661 PyObject * obj2 = 0 ;
25662 char * kwnames[] = {
25663 (char *) "self",(char *) "rows",(char *) "cols", NULL
25664 };
25665
25666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25668 if (!SWIG_IsOK(res1)) {
25669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25670 }
25671 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25672 ecode2 = SWIG_AsVal_int(obj1, &val2);
25673 if (!SWIG_IsOK(ecode2)) {
25674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25675 }
25676 arg2 = static_cast< int >(val2);
25677 ecode3 = SWIG_AsVal_int(obj2, &val3);
25678 if (!SWIG_IsOK(ecode3)) {
25679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25680 }
25681 arg3 = static_cast< int >(val3);
25682 {
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 (arg1)->SetMaxRowsCols(arg2,arg3);
25685 wxPyEndAllowThreads(__tstate);
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
25688 resultobj = SWIG_Py_Void();
25689 return resultobj;
25690 fail:
25691 return NULL;
25692 }
25693
25694
25695 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25696 PyObject *resultobj = 0;
25697 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25698 int result;
25699 void *argp1 = 0 ;
25700 int res1 = 0 ;
25701 PyObject *swig_obj[1] ;
25702
25703 if (!args) SWIG_fail;
25704 swig_obj[0] = args;
25705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25706 if (!SWIG_IsOK(res1)) {
25707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25708 }
25709 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25710 {
25711 PyThreadState* __tstate = wxPyBeginAllowThreads();
25712 result = (int)(arg1)->GetMaxRows();
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 resultobj = SWIG_From_int(static_cast< int >(result));
25717 return resultobj;
25718 fail:
25719 return NULL;
25720 }
25721
25722
25723 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25724 PyObject *resultobj = 0;
25725 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25726 int result;
25727 void *argp1 = 0 ;
25728 int res1 = 0 ;
25729 PyObject *swig_obj[1] ;
25730
25731 if (!args) SWIG_fail;
25732 swig_obj[0] = args;
25733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25734 if (!SWIG_IsOK(res1)) {
25735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25736 }
25737 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25738 {
25739 PyThreadState* __tstate = wxPyBeginAllowThreads();
25740 result = (int)(arg1)->GetMaxCols();
25741 wxPyEndAllowThreads(__tstate);
25742 if (PyErr_Occurred()) SWIG_fail;
25743 }
25744 resultobj = SWIG_From_int(static_cast< int >(result));
25745 return resultobj;
25746 fail:
25747 return NULL;
25748 }
25749
25750
25751 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25752 PyObject *resultobj = 0;
25753 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25754 wxSize *arg2 = 0 ;
25755 void *argp1 = 0 ;
25756 int res1 = 0 ;
25757 wxSize temp2 ;
25758 PyObject * obj0 = 0 ;
25759 PyObject * obj1 = 0 ;
25760 char * kwnames[] = {
25761 (char *) "self",(char *) "size", NULL
25762 };
25763
25764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25766 if (!SWIG_IsOK(res1)) {
25767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25768 }
25769 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25770 {
25771 arg2 = &temp2;
25772 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25773 }
25774 {
25775 PyThreadState* __tstate = wxPyBeginAllowThreads();
25776 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25777 wxPyEndAllowThreads(__tstate);
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 resultobj = SWIG_Py_Void();
25781 return resultobj;
25782 fail:
25783 return NULL;
25784 }
25785
25786
25787 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25788 PyObject *resultobj = 0;
25789 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25790 wxSize result;
25791 void *argp1 = 0 ;
25792 int res1 = 0 ;
25793 PyObject *swig_obj[1] ;
25794
25795 if (!args) SWIG_fail;
25796 swig_obj[0] = args;
25797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25798 if (!SWIG_IsOK(res1)) {
25799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25800 }
25801 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25802 {
25803 PyThreadState* __tstate = wxPyBeginAllowThreads();
25804 result = (arg1)->GetToolBitmapSize();
25805 wxPyEndAllowThreads(__tstate);
25806 if (PyErr_Occurred()) SWIG_fail;
25807 }
25808 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25809 return resultobj;
25810 fail:
25811 return NULL;
25812 }
25813
25814
25815 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25816 PyObject *resultobj = 0;
25817 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25818 wxSize result;
25819 void *argp1 = 0 ;
25820 int res1 = 0 ;
25821 PyObject *swig_obj[1] ;
25822
25823 if (!args) SWIG_fail;
25824 swig_obj[0] = args;
25825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25826 if (!SWIG_IsOK(res1)) {
25827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25828 }
25829 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25830 {
25831 PyThreadState* __tstate = wxPyBeginAllowThreads();
25832 result = (arg1)->GetToolSize();
25833 wxPyEndAllowThreads(__tstate);
25834 if (PyErr_Occurred()) SWIG_fail;
25835 }
25836 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25837 return resultobj;
25838 fail:
25839 return NULL;
25840 }
25841
25842
25843 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25844 PyObject *resultobj = 0;
25845 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25846 int arg2 ;
25847 int arg3 ;
25848 wxToolBarToolBase *result = 0 ;
25849 void *argp1 = 0 ;
25850 int res1 = 0 ;
25851 int val2 ;
25852 int ecode2 = 0 ;
25853 int val3 ;
25854 int ecode3 = 0 ;
25855 PyObject * obj0 = 0 ;
25856 PyObject * obj1 = 0 ;
25857 PyObject * obj2 = 0 ;
25858 char * kwnames[] = {
25859 (char *) "self",(char *) "x",(char *) "y", NULL
25860 };
25861
25862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25864 if (!SWIG_IsOK(res1)) {
25865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25866 }
25867 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25868 ecode2 = SWIG_AsVal_int(obj1, &val2);
25869 if (!SWIG_IsOK(ecode2)) {
25870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25871 }
25872 arg2 = static_cast< int >(val2);
25873 ecode3 = SWIG_AsVal_int(obj2, &val3);
25874 if (!SWIG_IsOK(ecode3)) {
25875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25876 }
25877 arg3 = static_cast< int >(val3);
25878 {
25879 PyThreadState* __tstate = wxPyBeginAllowThreads();
25880 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25881 wxPyEndAllowThreads(__tstate);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 {
25885 resultobj = wxPyMake_wxObject(result, (bool)0);
25886 }
25887 return resultobj;
25888 fail:
25889 return NULL;
25890 }
25891
25892
25893 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25894 PyObject *resultobj = 0;
25895 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25896 int arg2 ;
25897 wxToolBarToolBase *result = 0 ;
25898 void *argp1 = 0 ;
25899 int res1 = 0 ;
25900 int val2 ;
25901 int ecode2 = 0 ;
25902 PyObject * obj0 = 0 ;
25903 PyObject * obj1 = 0 ;
25904 char * kwnames[] = {
25905 (char *) "self",(char *) "toolid", NULL
25906 };
25907
25908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25910 if (!SWIG_IsOK(res1)) {
25911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25912 }
25913 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25914 ecode2 = SWIG_AsVal_int(obj1, &val2);
25915 if (!SWIG_IsOK(ecode2)) {
25916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25917 }
25918 arg2 = static_cast< int >(val2);
25919 {
25920 PyThreadState* __tstate = wxPyBeginAllowThreads();
25921 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25922 wxPyEndAllowThreads(__tstate);
25923 if (PyErr_Occurred()) SWIG_fail;
25924 }
25925 {
25926 resultobj = wxPyMake_wxObject(result, (bool)0);
25927 }
25928 return resultobj;
25929 fail:
25930 return NULL;
25931 }
25932
25933
25934 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25935 PyObject *resultobj = 0;
25936 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25937 bool result;
25938 void *argp1 = 0 ;
25939 int res1 = 0 ;
25940 PyObject *swig_obj[1] ;
25941
25942 if (!args) SWIG_fail;
25943 swig_obj[0] = args;
25944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25945 if (!SWIG_IsOK(res1)) {
25946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25947 }
25948 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25949 {
25950 PyThreadState* __tstate = wxPyBeginAllowThreads();
25951 result = (bool)(arg1)->IsVertical();
25952 wxPyEndAllowThreads(__tstate);
25953 if (PyErr_Occurred()) SWIG_fail;
25954 }
25955 {
25956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25957 }
25958 return resultobj;
25959 fail:
25960 return NULL;
25961 }
25962
25963
25964 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25965 PyObject *resultobj = 0;
25966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25967 size_t result;
25968 void *argp1 = 0 ;
25969 int res1 = 0 ;
25970 PyObject *swig_obj[1] ;
25971
25972 if (!args) SWIG_fail;
25973 swig_obj[0] = args;
25974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25975 if (!SWIG_IsOK(res1)) {
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25977 }
25978 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25982 wxPyEndAllowThreads(__tstate);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25986 return resultobj;
25987 fail:
25988 return NULL;
25989 }
25990
25991
25992 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 PyObject *obj;
25994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25995 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25996 return SWIG_Py_Void();
25997 }
25998
25999 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26000 PyObject *resultobj = 0;
26001 wxWindow *arg1 = (wxWindow *) 0 ;
26002 int arg2 = (int) -1 ;
26003 wxPoint const &arg3_defvalue = wxDefaultPosition ;
26004 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
26005 wxSize const &arg4_defvalue = wxDefaultSize ;
26006 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
26007 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26008 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
26009 wxString *arg6 = (wxString *) &arg6_defvalue ;
26010 wxToolBar *result = 0 ;
26011 void *argp1 = 0 ;
26012 int res1 = 0 ;
26013 int val2 ;
26014 int ecode2 = 0 ;
26015 wxPoint temp3 ;
26016 wxSize temp4 ;
26017 long val5 ;
26018 int ecode5 = 0 ;
26019 bool temp6 = false ;
26020 PyObject * obj0 = 0 ;
26021 PyObject * obj1 = 0 ;
26022 PyObject * obj2 = 0 ;
26023 PyObject * obj3 = 0 ;
26024 PyObject * obj4 = 0 ;
26025 PyObject * obj5 = 0 ;
26026 char * kwnames[] = {
26027 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26028 };
26029
26030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
26032 if (!SWIG_IsOK(res1)) {
26033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
26034 }
26035 arg1 = reinterpret_cast< wxWindow * >(argp1);
26036 if (obj1) {
26037 ecode2 = SWIG_AsVal_int(obj1, &val2);
26038 if (!SWIG_IsOK(ecode2)) {
26039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
26040 }
26041 arg2 = static_cast< int >(val2);
26042 }
26043 if (obj2) {
26044 {
26045 arg3 = &temp3;
26046 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26047 }
26048 }
26049 if (obj3) {
26050 {
26051 arg4 = &temp4;
26052 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
26053 }
26054 }
26055 if (obj4) {
26056 ecode5 = SWIG_AsVal_long(obj4, &val5);
26057 if (!SWIG_IsOK(ecode5)) {
26058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
26059 }
26060 arg5 = static_cast< long >(val5);
26061 }
26062 if (obj5) {
26063 {
26064 arg6 = wxString_in_helper(obj5);
26065 if (arg6 == NULL) SWIG_fail;
26066 temp6 = true;
26067 }
26068 }
26069 {
26070 if (!wxPyCheckForApp()) SWIG_fail;
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
26073 wxPyEndAllowThreads(__tstate);
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
26077 {
26078 if (temp6)
26079 delete arg6;
26080 }
26081 return resultobj;
26082 fail:
26083 {
26084 if (temp6)
26085 delete arg6;
26086 }
26087 return NULL;
26088 }
26089
26090
26091 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26092 PyObject *resultobj = 0;
26093 wxToolBar *result = 0 ;
26094
26095 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26096 {
26097 if (!wxPyCheckForApp()) SWIG_fail;
26098 PyThreadState* __tstate = wxPyBeginAllowThreads();
26099 result = (wxToolBar *)new wxToolBar();
26100 wxPyEndAllowThreads(__tstate);
26101 if (PyErr_Occurred()) SWIG_fail;
26102 }
26103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26104 return resultobj;
26105 fail:
26106 return NULL;
26107 }
26108
26109
26110 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26111 PyObject *resultobj = 0;
26112 wxToolBar *arg1 = (wxToolBar *) 0 ;
26113 wxWindow *arg2 = (wxWindow *) 0 ;
26114 int arg3 = (int) -1 ;
26115 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26116 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26117 wxSize const &arg5_defvalue = wxDefaultSize ;
26118 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26119 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26120 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26121 wxString *arg7 = (wxString *) &arg7_defvalue ;
26122 bool result;
26123 void *argp1 = 0 ;
26124 int res1 = 0 ;
26125 void *argp2 = 0 ;
26126 int res2 = 0 ;
26127 int val3 ;
26128 int ecode3 = 0 ;
26129 wxPoint temp4 ;
26130 wxSize temp5 ;
26131 long val6 ;
26132 int ecode6 = 0 ;
26133 bool temp7 = false ;
26134 PyObject * obj0 = 0 ;
26135 PyObject * obj1 = 0 ;
26136 PyObject * obj2 = 0 ;
26137 PyObject * obj3 = 0 ;
26138 PyObject * obj4 = 0 ;
26139 PyObject * obj5 = 0 ;
26140 PyObject * obj6 = 0 ;
26141 char * kwnames[] = {
26142 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26143 };
26144
26145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26147 if (!SWIG_IsOK(res1)) {
26148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26149 }
26150 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26151 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26152 if (!SWIG_IsOK(res2)) {
26153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26154 }
26155 arg2 = reinterpret_cast< wxWindow * >(argp2);
26156 if (obj2) {
26157 ecode3 = SWIG_AsVal_int(obj2, &val3);
26158 if (!SWIG_IsOK(ecode3)) {
26159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26160 }
26161 arg3 = static_cast< int >(val3);
26162 }
26163 if (obj3) {
26164 {
26165 arg4 = &temp4;
26166 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26167 }
26168 }
26169 if (obj4) {
26170 {
26171 arg5 = &temp5;
26172 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26173 }
26174 }
26175 if (obj5) {
26176 ecode6 = SWIG_AsVal_long(obj5, &val6);
26177 if (!SWIG_IsOK(ecode6)) {
26178 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26179 }
26180 arg6 = static_cast< long >(val6);
26181 }
26182 if (obj6) {
26183 {
26184 arg7 = wxString_in_helper(obj6);
26185 if (arg7 == NULL) SWIG_fail;
26186 temp7 = true;
26187 }
26188 }
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26192 wxPyEndAllowThreads(__tstate);
26193 if (PyErr_Occurred()) SWIG_fail;
26194 }
26195 {
26196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26197 }
26198 {
26199 if (temp7)
26200 delete arg7;
26201 }
26202 return resultobj;
26203 fail:
26204 {
26205 if (temp7)
26206 delete arg7;
26207 }
26208 return NULL;
26209 }
26210
26211
26212 SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj = 0;
26214 wxToolBar *arg1 = (wxToolBar *) 0 ;
26215 int arg2 ;
26216 wxBitmap *arg3 = 0 ;
26217 void *argp1 = 0 ;
26218 int res1 = 0 ;
26219 int val2 ;
26220 int ecode2 = 0 ;
26221 void *argp3 = 0 ;
26222 int res3 = 0 ;
26223 PyObject * obj0 = 0 ;
26224 PyObject * obj1 = 0 ;
26225 PyObject * obj2 = 0 ;
26226 char * kwnames[] = {
26227 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26228 };
26229
26230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26232 if (!SWIG_IsOK(res1)) {
26233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26234 }
26235 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26236 ecode2 = SWIG_AsVal_int(obj1, &val2);
26237 if (!SWIG_IsOK(ecode2)) {
26238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'");
26239 }
26240 arg2 = static_cast< int >(val2);
26241 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26242 if (!SWIG_IsOK(res3)) {
26243 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26244 }
26245 if (!argp3) {
26246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26247 }
26248 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26249 {
26250 PyThreadState* __tstate = wxPyBeginAllowThreads();
26251 (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3);
26252 wxPyEndAllowThreads(__tstate);
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 resultobj = SWIG_Py_Void();
26256 return resultobj;
26257 fail:
26258 return NULL;
26259 }
26260
26261
26262 SWIGINTERN PyObject *_wrap_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26263 PyObject *resultobj = 0;
26264 wxToolBar *arg1 = (wxToolBar *) 0 ;
26265 int arg2 ;
26266 wxBitmap *arg3 = 0 ;
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 int val2 ;
26270 int ecode2 = 0 ;
26271 void *argp3 = 0 ;
26272 int res3 = 0 ;
26273 PyObject * obj0 = 0 ;
26274 PyObject * obj1 = 0 ;
26275 PyObject * obj2 = 0 ;
26276 char * kwnames[] = {
26277 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26278 };
26279
26280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26282 if (!SWIG_IsOK(res1)) {
26283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26284 }
26285 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26286 ecode2 = SWIG_AsVal_int(obj1, &val2);
26287 if (!SWIG_IsOK(ecode2)) {
26288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'");
26289 }
26290 arg2 = static_cast< int >(val2);
26291 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26292 if (!SWIG_IsOK(res3)) {
26293 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26294 }
26295 if (!argp3) {
26296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26297 }
26298 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26299 {
26300 PyThreadState* __tstate = wxPyBeginAllowThreads();
26301 (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3);
26302 wxPyEndAllowThreads(__tstate);
26303 if (PyErr_Occurred()) SWIG_fail;
26304 }
26305 resultobj = SWIG_Py_Void();
26306 return resultobj;
26307 fail:
26308 return NULL;
26309 }
26310
26311
26312 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26313 PyObject *resultobj = 0;
26314 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26315 SwigValueWrapper<wxVisualAttributes > result;
26316 int val1 ;
26317 int ecode1 = 0 ;
26318 PyObject * obj0 = 0 ;
26319 char * kwnames[] = {
26320 (char *) "variant", NULL
26321 };
26322
26323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26324 if (obj0) {
26325 ecode1 = SWIG_AsVal_int(obj0, &val1);
26326 if (!SWIG_IsOK(ecode1)) {
26327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26328 }
26329 arg1 = static_cast< wxWindowVariant >(val1);
26330 }
26331 {
26332 if (!wxPyCheckForApp()) SWIG_fail;
26333 PyThreadState* __tstate = wxPyBeginAllowThreads();
26334 result = wxToolBar::GetClassDefaultAttributes(arg1);
26335 wxPyEndAllowThreads(__tstate);
26336 if (PyErr_Occurred()) SWIG_fail;
26337 }
26338 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26339 return resultobj;
26340 fail:
26341 return NULL;
26342 }
26343
26344
26345 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26346 PyObject *obj;
26347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26348 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26349 return SWIG_Py_Void();
26350 }
26351
26352 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26353 return SWIG_Python_InitShadowInstance(args);
26354 }
26355
26356 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26357 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26358 return 1;
26359 }
26360
26361
26362 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26363 PyObject *pyobj = 0;
26364
26365 {
26366 #if wxUSE_UNICODE
26367 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26368 #else
26369 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26370 #endif
26371 }
26372 return pyobj;
26373 }
26374
26375
26376 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26377 PyObject *resultobj = 0;
26378 wxColour const &arg1_defvalue = wxNullColour ;
26379 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26380 wxColour const &arg2_defvalue = wxNullColour ;
26381 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26382 wxFont const &arg3_defvalue = wxNullFont ;
26383 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26384 wxListItemAttr *result = 0 ;
26385 wxColour temp1 ;
26386 wxColour temp2 ;
26387 void *argp3 = 0 ;
26388 int res3 = 0 ;
26389 PyObject * obj0 = 0 ;
26390 PyObject * obj1 = 0 ;
26391 PyObject * obj2 = 0 ;
26392 char * kwnames[] = {
26393 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26394 };
26395
26396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26397 if (obj0) {
26398 {
26399 arg1 = &temp1;
26400 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26401 }
26402 }
26403 if (obj1) {
26404 {
26405 arg2 = &temp2;
26406 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26407 }
26408 }
26409 if (obj2) {
26410 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26411 if (!SWIG_IsOK(res3)) {
26412 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26413 }
26414 if (!argp3) {
26415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26416 }
26417 arg3 = reinterpret_cast< wxFont * >(argp3);
26418 }
26419 {
26420 PyThreadState* __tstate = wxPyBeginAllowThreads();
26421 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26422 wxPyEndAllowThreads(__tstate);
26423 if (PyErr_Occurred()) SWIG_fail;
26424 }
26425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26426 return resultobj;
26427 fail:
26428 return NULL;
26429 }
26430
26431
26432 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26433 PyObject *resultobj = 0;
26434 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26435 void *argp1 = 0 ;
26436 int res1 = 0 ;
26437 PyObject *swig_obj[1] ;
26438
26439 if (!args) SWIG_fail;
26440 swig_obj[0] = args;
26441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26442 if (!SWIG_IsOK(res1)) {
26443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26444 }
26445 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26446 {
26447 PyThreadState* __tstate = wxPyBeginAllowThreads();
26448 delete arg1;
26449
26450 wxPyEndAllowThreads(__tstate);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 }
26453 resultobj = SWIG_Py_Void();
26454 return resultobj;
26455 fail:
26456 return NULL;
26457 }
26458
26459
26460 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26461 PyObject *resultobj = 0;
26462 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26463 wxColour *arg2 = 0 ;
26464 void *argp1 = 0 ;
26465 int res1 = 0 ;
26466 wxColour temp2 ;
26467 PyObject * obj0 = 0 ;
26468 PyObject * obj1 = 0 ;
26469 char * kwnames[] = {
26470 (char *) "self",(char *) "colText", NULL
26471 };
26472
26473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26475 if (!SWIG_IsOK(res1)) {
26476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26477 }
26478 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26479 {
26480 arg2 = &temp2;
26481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26482 }
26483 {
26484 PyThreadState* __tstate = wxPyBeginAllowThreads();
26485 (arg1)->SetTextColour((wxColour const &)*arg2);
26486 wxPyEndAllowThreads(__tstate);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 }
26489 resultobj = SWIG_Py_Void();
26490 return resultobj;
26491 fail:
26492 return NULL;
26493 }
26494
26495
26496 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26497 PyObject *resultobj = 0;
26498 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26499 wxColour *arg2 = 0 ;
26500 void *argp1 = 0 ;
26501 int res1 = 0 ;
26502 wxColour temp2 ;
26503 PyObject * obj0 = 0 ;
26504 PyObject * obj1 = 0 ;
26505 char * kwnames[] = {
26506 (char *) "self",(char *) "colBack", NULL
26507 };
26508
26509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26511 if (!SWIG_IsOK(res1)) {
26512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26513 }
26514 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26515 {
26516 arg2 = &temp2;
26517 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26518 }
26519 {
26520 PyThreadState* __tstate = wxPyBeginAllowThreads();
26521 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26522 wxPyEndAllowThreads(__tstate);
26523 if (PyErr_Occurred()) SWIG_fail;
26524 }
26525 resultobj = SWIG_Py_Void();
26526 return resultobj;
26527 fail:
26528 return NULL;
26529 }
26530
26531
26532 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26533 PyObject *resultobj = 0;
26534 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26535 wxFont *arg2 = 0 ;
26536 void *argp1 = 0 ;
26537 int res1 = 0 ;
26538 void *argp2 = 0 ;
26539 int res2 = 0 ;
26540 PyObject * obj0 = 0 ;
26541 PyObject * obj1 = 0 ;
26542 char * kwnames[] = {
26543 (char *) "self",(char *) "font", NULL
26544 };
26545
26546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26548 if (!SWIG_IsOK(res1)) {
26549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26550 }
26551 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26553 if (!SWIG_IsOK(res2)) {
26554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26555 }
26556 if (!argp2) {
26557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26558 }
26559 arg2 = reinterpret_cast< wxFont * >(argp2);
26560 {
26561 PyThreadState* __tstate = wxPyBeginAllowThreads();
26562 (arg1)->SetFont((wxFont const &)*arg2);
26563 wxPyEndAllowThreads(__tstate);
26564 if (PyErr_Occurred()) SWIG_fail;
26565 }
26566 resultobj = SWIG_Py_Void();
26567 return resultobj;
26568 fail:
26569 return NULL;
26570 }
26571
26572
26573 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26574 PyObject *resultobj = 0;
26575 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26576 bool result;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 PyObject *swig_obj[1] ;
26580
26581 if (!args) SWIG_fail;
26582 swig_obj[0] = args;
26583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26584 if (!SWIG_IsOK(res1)) {
26585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26586 }
26587 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 result = (bool)(arg1)->HasTextColour();
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 {
26595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26596 }
26597 return resultobj;
26598 fail:
26599 return NULL;
26600 }
26601
26602
26603 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26604 PyObject *resultobj = 0;
26605 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26606 bool result;
26607 void *argp1 = 0 ;
26608 int res1 = 0 ;
26609 PyObject *swig_obj[1] ;
26610
26611 if (!args) SWIG_fail;
26612 swig_obj[0] = args;
26613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26614 if (!SWIG_IsOK(res1)) {
26615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26616 }
26617 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26618 {
26619 PyThreadState* __tstate = wxPyBeginAllowThreads();
26620 result = (bool)(arg1)->HasBackgroundColour();
26621 wxPyEndAllowThreads(__tstate);
26622 if (PyErr_Occurred()) SWIG_fail;
26623 }
26624 {
26625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26626 }
26627 return resultobj;
26628 fail:
26629 return NULL;
26630 }
26631
26632
26633 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26634 PyObject *resultobj = 0;
26635 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26636 bool result;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 PyObject *swig_obj[1] ;
26640
26641 if (!args) SWIG_fail;
26642 swig_obj[0] = args;
26643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26644 if (!SWIG_IsOK(res1)) {
26645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26646 }
26647 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26648 {
26649 PyThreadState* __tstate = wxPyBeginAllowThreads();
26650 result = (bool)(arg1)->HasFont();
26651 wxPyEndAllowThreads(__tstate);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 {
26655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26656 }
26657 return resultobj;
26658 fail:
26659 return NULL;
26660 }
26661
26662
26663 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26664 PyObject *resultobj = 0;
26665 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26666 wxColour result;
26667 void *argp1 = 0 ;
26668 int res1 = 0 ;
26669 PyObject *swig_obj[1] ;
26670
26671 if (!args) SWIG_fail;
26672 swig_obj[0] = args;
26673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26674 if (!SWIG_IsOK(res1)) {
26675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26676 }
26677 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26678 {
26679 PyThreadState* __tstate = wxPyBeginAllowThreads();
26680 result = (arg1)->GetTextColour();
26681 wxPyEndAllowThreads(__tstate);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26685 return resultobj;
26686 fail:
26687 return NULL;
26688 }
26689
26690
26691 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26692 PyObject *resultobj = 0;
26693 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26694 wxColour result;
26695 void *argp1 = 0 ;
26696 int res1 = 0 ;
26697 PyObject *swig_obj[1] ;
26698
26699 if (!args) SWIG_fail;
26700 swig_obj[0] = args;
26701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26702 if (!SWIG_IsOK(res1)) {
26703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26704 }
26705 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26706 {
26707 PyThreadState* __tstate = wxPyBeginAllowThreads();
26708 result = (arg1)->GetBackgroundColour();
26709 wxPyEndAllowThreads(__tstate);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 }
26712 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26713 return resultobj;
26714 fail:
26715 return NULL;
26716 }
26717
26718
26719 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26720 PyObject *resultobj = 0;
26721 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26722 wxFont result;
26723 void *argp1 = 0 ;
26724 int res1 = 0 ;
26725 PyObject *swig_obj[1] ;
26726
26727 if (!args) SWIG_fail;
26728 swig_obj[0] = args;
26729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26730 if (!SWIG_IsOK(res1)) {
26731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26732 }
26733 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26734 {
26735 PyThreadState* __tstate = wxPyBeginAllowThreads();
26736 result = (arg1)->GetFont();
26737 wxPyEndAllowThreads(__tstate);
26738 if (PyErr_Occurred()) SWIG_fail;
26739 }
26740 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26741 return resultobj;
26742 fail:
26743 return NULL;
26744 }
26745
26746
26747 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26748 PyObject *resultobj = 0;
26749 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26750 wxListItemAttr *arg2 = 0 ;
26751 void *argp1 = 0 ;
26752 int res1 = 0 ;
26753 void *argp2 = 0 ;
26754 int res2 = 0 ;
26755 PyObject * obj0 = 0 ;
26756 PyObject * obj1 = 0 ;
26757 char * kwnames[] = {
26758 (char *) "self",(char *) "source", NULL
26759 };
26760
26761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26763 if (!SWIG_IsOK(res1)) {
26764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26765 }
26766 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26768 if (!SWIG_IsOK(res2)) {
26769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26770 }
26771 if (!argp2) {
26772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26773 }
26774 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26775 {
26776 PyThreadState* __tstate = wxPyBeginAllowThreads();
26777 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 resultobj = SWIG_Py_Void();
26782 return resultobj;
26783 fail:
26784 return NULL;
26785 }
26786
26787
26788 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26789 PyObject *resultobj = 0;
26790 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26791 void *argp1 = 0 ;
26792 int res1 = 0 ;
26793 PyObject *swig_obj[1] ;
26794
26795 if (!args) SWIG_fail;
26796 swig_obj[0] = args;
26797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26798 if (!SWIG_IsOK(res1)) {
26799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26800 }
26801 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26802 {
26803 PyThreadState* __tstate = wxPyBeginAllowThreads();
26804 wxListItemAttr_Destroy(arg1);
26805 wxPyEndAllowThreads(__tstate);
26806 if (PyErr_Occurred()) SWIG_fail;
26807 }
26808 resultobj = SWIG_Py_Void();
26809 return resultobj;
26810 fail:
26811 return NULL;
26812 }
26813
26814
26815 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26816 PyObject *obj;
26817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26818 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26819 return SWIG_Py_Void();
26820 }
26821
26822 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26823 return SWIG_Python_InitShadowInstance(args);
26824 }
26825
26826 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26827 PyObject *resultobj = 0;
26828 wxListItem *result = 0 ;
26829
26830 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26831 {
26832 PyThreadState* __tstate = wxPyBeginAllowThreads();
26833 result = (wxListItem *)new wxListItem();
26834 wxPyEndAllowThreads(__tstate);
26835 if (PyErr_Occurred()) SWIG_fail;
26836 }
26837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26838 return resultobj;
26839 fail:
26840 return NULL;
26841 }
26842
26843
26844 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26845 PyObject *resultobj = 0;
26846 wxListItem *arg1 = (wxListItem *) 0 ;
26847 void *argp1 = 0 ;
26848 int res1 = 0 ;
26849 PyObject *swig_obj[1] ;
26850
26851 if (!args) SWIG_fail;
26852 swig_obj[0] = args;
26853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26854 if (!SWIG_IsOK(res1)) {
26855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26856 }
26857 arg1 = reinterpret_cast< wxListItem * >(argp1);
26858 {
26859 PyThreadState* __tstate = wxPyBeginAllowThreads();
26860 delete arg1;
26861
26862 wxPyEndAllowThreads(__tstate);
26863 if (PyErr_Occurred()) SWIG_fail;
26864 }
26865 resultobj = SWIG_Py_Void();
26866 return resultobj;
26867 fail:
26868 return NULL;
26869 }
26870
26871
26872 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26873 PyObject *resultobj = 0;
26874 wxListItem *arg1 = (wxListItem *) 0 ;
26875 void *argp1 = 0 ;
26876 int res1 = 0 ;
26877 PyObject *swig_obj[1] ;
26878
26879 if (!args) SWIG_fail;
26880 swig_obj[0] = args;
26881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26882 if (!SWIG_IsOK(res1)) {
26883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26884 }
26885 arg1 = reinterpret_cast< wxListItem * >(argp1);
26886 {
26887 PyThreadState* __tstate = wxPyBeginAllowThreads();
26888 (arg1)->Clear();
26889 wxPyEndAllowThreads(__tstate);
26890 if (PyErr_Occurred()) SWIG_fail;
26891 }
26892 resultobj = SWIG_Py_Void();
26893 return resultobj;
26894 fail:
26895 return NULL;
26896 }
26897
26898
26899 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26900 PyObject *resultobj = 0;
26901 wxListItem *arg1 = (wxListItem *) 0 ;
26902 void *argp1 = 0 ;
26903 int res1 = 0 ;
26904 PyObject *swig_obj[1] ;
26905
26906 if (!args) SWIG_fail;
26907 swig_obj[0] = args;
26908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26909 if (!SWIG_IsOK(res1)) {
26910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26911 }
26912 arg1 = reinterpret_cast< wxListItem * >(argp1);
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 (arg1)->ClearAttributes();
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_Py_Void();
26920 return resultobj;
26921 fail:
26922 return NULL;
26923 }
26924
26925
26926 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26927 PyObject *resultobj = 0;
26928 wxListItem *arg1 = (wxListItem *) 0 ;
26929 long arg2 ;
26930 void *argp1 = 0 ;
26931 int res1 = 0 ;
26932 long val2 ;
26933 int ecode2 = 0 ;
26934 PyObject * obj0 = 0 ;
26935 PyObject * obj1 = 0 ;
26936 char * kwnames[] = {
26937 (char *) "self",(char *) "mask", NULL
26938 };
26939
26940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26942 if (!SWIG_IsOK(res1)) {
26943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26944 }
26945 arg1 = reinterpret_cast< wxListItem * >(argp1);
26946 ecode2 = SWIG_AsVal_long(obj1, &val2);
26947 if (!SWIG_IsOK(ecode2)) {
26948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26949 }
26950 arg2 = static_cast< long >(val2);
26951 {
26952 PyThreadState* __tstate = wxPyBeginAllowThreads();
26953 (arg1)->SetMask(arg2);
26954 wxPyEndAllowThreads(__tstate);
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 resultobj = SWIG_Py_Void();
26958 return resultobj;
26959 fail:
26960 return NULL;
26961 }
26962
26963
26964 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26965 PyObject *resultobj = 0;
26966 wxListItem *arg1 = (wxListItem *) 0 ;
26967 long arg2 ;
26968 void *argp1 = 0 ;
26969 int res1 = 0 ;
26970 long val2 ;
26971 int ecode2 = 0 ;
26972 PyObject * obj0 = 0 ;
26973 PyObject * obj1 = 0 ;
26974 char * kwnames[] = {
26975 (char *) "self",(char *) "id", NULL
26976 };
26977
26978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26980 if (!SWIG_IsOK(res1)) {
26981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26982 }
26983 arg1 = reinterpret_cast< wxListItem * >(argp1);
26984 ecode2 = SWIG_AsVal_long(obj1, &val2);
26985 if (!SWIG_IsOK(ecode2)) {
26986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26987 }
26988 arg2 = static_cast< long >(val2);
26989 {
26990 PyThreadState* __tstate = wxPyBeginAllowThreads();
26991 (arg1)->SetId(arg2);
26992 wxPyEndAllowThreads(__tstate);
26993 if (PyErr_Occurred()) SWIG_fail;
26994 }
26995 resultobj = SWIG_Py_Void();
26996 return resultobj;
26997 fail:
26998 return NULL;
26999 }
27000
27001
27002 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27003 PyObject *resultobj = 0;
27004 wxListItem *arg1 = (wxListItem *) 0 ;
27005 int arg2 ;
27006 void *argp1 = 0 ;
27007 int res1 = 0 ;
27008 int val2 ;
27009 int ecode2 = 0 ;
27010 PyObject * obj0 = 0 ;
27011 PyObject * obj1 = 0 ;
27012 char * kwnames[] = {
27013 (char *) "self",(char *) "col", NULL
27014 };
27015
27016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
27017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27018 if (!SWIG_IsOK(res1)) {
27019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27020 }
27021 arg1 = reinterpret_cast< wxListItem * >(argp1);
27022 ecode2 = SWIG_AsVal_int(obj1, &val2);
27023 if (!SWIG_IsOK(ecode2)) {
27024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
27025 }
27026 arg2 = static_cast< int >(val2);
27027 {
27028 PyThreadState* __tstate = wxPyBeginAllowThreads();
27029 (arg1)->SetColumn(arg2);
27030 wxPyEndAllowThreads(__tstate);
27031 if (PyErr_Occurred()) SWIG_fail;
27032 }
27033 resultobj = SWIG_Py_Void();
27034 return resultobj;
27035 fail:
27036 return NULL;
27037 }
27038
27039
27040 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27041 PyObject *resultobj = 0;
27042 wxListItem *arg1 = (wxListItem *) 0 ;
27043 long arg2 ;
27044 void *argp1 = 0 ;
27045 int res1 = 0 ;
27046 long val2 ;
27047 int ecode2 = 0 ;
27048 PyObject * obj0 = 0 ;
27049 PyObject * obj1 = 0 ;
27050 char * kwnames[] = {
27051 (char *) "self",(char *) "state", NULL
27052 };
27053
27054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
27055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27056 if (!SWIG_IsOK(res1)) {
27057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27058 }
27059 arg1 = reinterpret_cast< wxListItem * >(argp1);
27060 ecode2 = SWIG_AsVal_long(obj1, &val2);
27061 if (!SWIG_IsOK(ecode2)) {
27062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
27063 }
27064 arg2 = static_cast< long >(val2);
27065 {
27066 PyThreadState* __tstate = wxPyBeginAllowThreads();
27067 (arg1)->SetState(arg2);
27068 wxPyEndAllowThreads(__tstate);
27069 if (PyErr_Occurred()) SWIG_fail;
27070 }
27071 resultobj = SWIG_Py_Void();
27072 return resultobj;
27073 fail:
27074 return NULL;
27075 }
27076
27077
27078 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27079 PyObject *resultobj = 0;
27080 wxListItem *arg1 = (wxListItem *) 0 ;
27081 long arg2 ;
27082 void *argp1 = 0 ;
27083 int res1 = 0 ;
27084 long val2 ;
27085 int ecode2 = 0 ;
27086 PyObject * obj0 = 0 ;
27087 PyObject * obj1 = 0 ;
27088 char * kwnames[] = {
27089 (char *) "self",(char *) "stateMask", NULL
27090 };
27091
27092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
27093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27094 if (!SWIG_IsOK(res1)) {
27095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27096 }
27097 arg1 = reinterpret_cast< wxListItem * >(argp1);
27098 ecode2 = SWIG_AsVal_long(obj1, &val2);
27099 if (!SWIG_IsOK(ecode2)) {
27100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
27101 }
27102 arg2 = static_cast< long >(val2);
27103 {
27104 PyThreadState* __tstate = wxPyBeginAllowThreads();
27105 (arg1)->SetStateMask(arg2);
27106 wxPyEndAllowThreads(__tstate);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_Py_Void();
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27117 PyObject *resultobj = 0;
27118 wxListItem *arg1 = (wxListItem *) 0 ;
27119 wxString *arg2 = 0 ;
27120 void *argp1 = 0 ;
27121 int res1 = 0 ;
27122 bool temp2 = false ;
27123 PyObject * obj0 = 0 ;
27124 PyObject * obj1 = 0 ;
27125 char * kwnames[] = {
27126 (char *) "self",(char *) "text", NULL
27127 };
27128
27129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
27130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27131 if (!SWIG_IsOK(res1)) {
27132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27133 }
27134 arg1 = reinterpret_cast< wxListItem * >(argp1);
27135 {
27136 arg2 = wxString_in_helper(obj1);
27137 if (arg2 == NULL) SWIG_fail;
27138 temp2 = true;
27139 }
27140 {
27141 PyThreadState* __tstate = wxPyBeginAllowThreads();
27142 (arg1)->SetText((wxString const &)*arg2);
27143 wxPyEndAllowThreads(__tstate);
27144 if (PyErr_Occurred()) SWIG_fail;
27145 }
27146 resultobj = SWIG_Py_Void();
27147 {
27148 if (temp2)
27149 delete arg2;
27150 }
27151 return resultobj;
27152 fail:
27153 {
27154 if (temp2)
27155 delete arg2;
27156 }
27157 return NULL;
27158 }
27159
27160
27161 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27162 PyObject *resultobj = 0;
27163 wxListItem *arg1 = (wxListItem *) 0 ;
27164 int arg2 ;
27165 void *argp1 = 0 ;
27166 int res1 = 0 ;
27167 int val2 ;
27168 int ecode2 = 0 ;
27169 PyObject * obj0 = 0 ;
27170 PyObject * obj1 = 0 ;
27171 char * kwnames[] = {
27172 (char *) "self",(char *) "image", NULL
27173 };
27174
27175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
27176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27177 if (!SWIG_IsOK(res1)) {
27178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27179 }
27180 arg1 = reinterpret_cast< wxListItem * >(argp1);
27181 ecode2 = SWIG_AsVal_int(obj1, &val2);
27182 if (!SWIG_IsOK(ecode2)) {
27183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
27184 }
27185 arg2 = static_cast< int >(val2);
27186 {
27187 PyThreadState* __tstate = wxPyBeginAllowThreads();
27188 (arg1)->SetImage(arg2);
27189 wxPyEndAllowThreads(__tstate);
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 resultobj = SWIG_Py_Void();
27193 return resultobj;
27194 fail:
27195 return NULL;
27196 }
27197
27198
27199 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27200 PyObject *resultobj = 0;
27201 wxListItem *arg1 = (wxListItem *) 0 ;
27202 long arg2 ;
27203 void *argp1 = 0 ;
27204 int res1 = 0 ;
27205 long val2 ;
27206 int ecode2 = 0 ;
27207 PyObject * obj0 = 0 ;
27208 PyObject * obj1 = 0 ;
27209 char * kwnames[] = {
27210 (char *) "self",(char *) "data", NULL
27211 };
27212
27213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27215 if (!SWIG_IsOK(res1)) {
27216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27217 }
27218 arg1 = reinterpret_cast< wxListItem * >(argp1);
27219 ecode2 = SWIG_AsVal_long(obj1, &val2);
27220 if (!SWIG_IsOK(ecode2)) {
27221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27222 }
27223 arg2 = static_cast< long >(val2);
27224 {
27225 PyThreadState* __tstate = wxPyBeginAllowThreads();
27226 (arg1)->SetData(arg2);
27227 wxPyEndAllowThreads(__tstate);
27228 if (PyErr_Occurred()) SWIG_fail;
27229 }
27230 resultobj = SWIG_Py_Void();
27231 return resultobj;
27232 fail:
27233 return NULL;
27234 }
27235
27236
27237 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27238 PyObject *resultobj = 0;
27239 wxListItem *arg1 = (wxListItem *) 0 ;
27240 int arg2 ;
27241 void *argp1 = 0 ;
27242 int res1 = 0 ;
27243 int val2 ;
27244 int ecode2 = 0 ;
27245 PyObject * obj0 = 0 ;
27246 PyObject * obj1 = 0 ;
27247 char * kwnames[] = {
27248 (char *) "self",(char *) "width", NULL
27249 };
27250
27251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27253 if (!SWIG_IsOK(res1)) {
27254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27255 }
27256 arg1 = reinterpret_cast< wxListItem * >(argp1);
27257 ecode2 = SWIG_AsVal_int(obj1, &val2);
27258 if (!SWIG_IsOK(ecode2)) {
27259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27260 }
27261 arg2 = static_cast< int >(val2);
27262 {
27263 PyThreadState* __tstate = wxPyBeginAllowThreads();
27264 (arg1)->SetWidth(arg2);
27265 wxPyEndAllowThreads(__tstate);
27266 if (PyErr_Occurred()) SWIG_fail;
27267 }
27268 resultobj = SWIG_Py_Void();
27269 return resultobj;
27270 fail:
27271 return NULL;
27272 }
27273
27274
27275 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27276 PyObject *resultobj = 0;
27277 wxListItem *arg1 = (wxListItem *) 0 ;
27278 wxListColumnFormat arg2 ;
27279 void *argp1 = 0 ;
27280 int res1 = 0 ;
27281 int val2 ;
27282 int ecode2 = 0 ;
27283 PyObject * obj0 = 0 ;
27284 PyObject * obj1 = 0 ;
27285 char * kwnames[] = {
27286 (char *) "self",(char *) "align", NULL
27287 };
27288
27289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27291 if (!SWIG_IsOK(res1)) {
27292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27293 }
27294 arg1 = reinterpret_cast< wxListItem * >(argp1);
27295 ecode2 = SWIG_AsVal_int(obj1, &val2);
27296 if (!SWIG_IsOK(ecode2)) {
27297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27298 }
27299 arg2 = static_cast< wxListColumnFormat >(val2);
27300 {
27301 PyThreadState* __tstate = wxPyBeginAllowThreads();
27302 (arg1)->SetAlign(arg2);
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 resultobj = SWIG_Py_Void();
27307 return resultobj;
27308 fail:
27309 return NULL;
27310 }
27311
27312
27313 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj = 0;
27315 wxListItem *arg1 = (wxListItem *) 0 ;
27316 wxColour *arg2 = 0 ;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 wxColour temp2 ;
27320 PyObject * obj0 = 0 ;
27321 PyObject * obj1 = 0 ;
27322 char * kwnames[] = {
27323 (char *) "self",(char *) "colText", NULL
27324 };
27325
27326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27328 if (!SWIG_IsOK(res1)) {
27329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27330 }
27331 arg1 = reinterpret_cast< wxListItem * >(argp1);
27332 {
27333 arg2 = &temp2;
27334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27335 }
27336 {
27337 PyThreadState* __tstate = wxPyBeginAllowThreads();
27338 (arg1)->SetTextColour((wxColour const &)*arg2);
27339 wxPyEndAllowThreads(__tstate);
27340 if (PyErr_Occurred()) SWIG_fail;
27341 }
27342 resultobj = SWIG_Py_Void();
27343 return resultobj;
27344 fail:
27345 return NULL;
27346 }
27347
27348
27349 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27350 PyObject *resultobj = 0;
27351 wxListItem *arg1 = (wxListItem *) 0 ;
27352 wxColour *arg2 = 0 ;
27353 void *argp1 = 0 ;
27354 int res1 = 0 ;
27355 wxColour temp2 ;
27356 PyObject * obj0 = 0 ;
27357 PyObject * obj1 = 0 ;
27358 char * kwnames[] = {
27359 (char *) "self",(char *) "colBack", NULL
27360 };
27361
27362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27364 if (!SWIG_IsOK(res1)) {
27365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27366 }
27367 arg1 = reinterpret_cast< wxListItem * >(argp1);
27368 {
27369 arg2 = &temp2;
27370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27371 }
27372 {
27373 PyThreadState* __tstate = wxPyBeginAllowThreads();
27374 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27375 wxPyEndAllowThreads(__tstate);
27376 if (PyErr_Occurred()) SWIG_fail;
27377 }
27378 resultobj = SWIG_Py_Void();
27379 return resultobj;
27380 fail:
27381 return NULL;
27382 }
27383
27384
27385 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27386 PyObject *resultobj = 0;
27387 wxListItem *arg1 = (wxListItem *) 0 ;
27388 wxFont *arg2 = 0 ;
27389 void *argp1 = 0 ;
27390 int res1 = 0 ;
27391 void *argp2 = 0 ;
27392 int res2 = 0 ;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 char * kwnames[] = {
27396 (char *) "self",(char *) "font", NULL
27397 };
27398
27399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27401 if (!SWIG_IsOK(res1)) {
27402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27403 }
27404 arg1 = reinterpret_cast< wxListItem * >(argp1);
27405 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27406 if (!SWIG_IsOK(res2)) {
27407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27408 }
27409 if (!argp2) {
27410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27411 }
27412 arg2 = reinterpret_cast< wxFont * >(argp2);
27413 {
27414 PyThreadState* __tstate = wxPyBeginAllowThreads();
27415 (arg1)->SetFont((wxFont const &)*arg2);
27416 wxPyEndAllowThreads(__tstate);
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
27419 resultobj = SWIG_Py_Void();
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27427 PyObject *resultobj = 0;
27428 wxListItem *arg1 = (wxListItem *) 0 ;
27429 long result;
27430 void *argp1 = 0 ;
27431 int res1 = 0 ;
27432 PyObject *swig_obj[1] ;
27433
27434 if (!args) SWIG_fail;
27435 swig_obj[0] = args;
27436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27437 if (!SWIG_IsOK(res1)) {
27438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27439 }
27440 arg1 = reinterpret_cast< wxListItem * >(argp1);
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 result = (long)(arg1)->GetMask();
27444 wxPyEndAllowThreads(__tstate);
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 resultobj = SWIG_From_long(static_cast< long >(result));
27448 return resultobj;
27449 fail:
27450 return NULL;
27451 }
27452
27453
27454 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27455 PyObject *resultobj = 0;
27456 wxListItem *arg1 = (wxListItem *) 0 ;
27457 long result;
27458 void *argp1 = 0 ;
27459 int res1 = 0 ;
27460 PyObject *swig_obj[1] ;
27461
27462 if (!args) SWIG_fail;
27463 swig_obj[0] = args;
27464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27465 if (!SWIG_IsOK(res1)) {
27466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27467 }
27468 arg1 = reinterpret_cast< wxListItem * >(argp1);
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (long)(arg1)->GetId();
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 resultobj = SWIG_From_long(static_cast< long >(result));
27476 return resultobj;
27477 fail:
27478 return NULL;
27479 }
27480
27481
27482 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27483 PyObject *resultobj = 0;
27484 wxListItem *arg1 = (wxListItem *) 0 ;
27485 int result;
27486 void *argp1 = 0 ;
27487 int res1 = 0 ;
27488 PyObject *swig_obj[1] ;
27489
27490 if (!args) SWIG_fail;
27491 swig_obj[0] = args;
27492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27493 if (!SWIG_IsOK(res1)) {
27494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27495 }
27496 arg1 = reinterpret_cast< wxListItem * >(argp1);
27497 {
27498 PyThreadState* __tstate = wxPyBeginAllowThreads();
27499 result = (int)(arg1)->GetColumn();
27500 wxPyEndAllowThreads(__tstate);
27501 if (PyErr_Occurred()) SWIG_fail;
27502 }
27503 resultobj = SWIG_From_int(static_cast< int >(result));
27504 return resultobj;
27505 fail:
27506 return NULL;
27507 }
27508
27509
27510 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27511 PyObject *resultobj = 0;
27512 wxListItem *arg1 = (wxListItem *) 0 ;
27513 long result;
27514 void *argp1 = 0 ;
27515 int res1 = 0 ;
27516 PyObject *swig_obj[1] ;
27517
27518 if (!args) SWIG_fail;
27519 swig_obj[0] = args;
27520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27521 if (!SWIG_IsOK(res1)) {
27522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27523 }
27524 arg1 = reinterpret_cast< wxListItem * >(argp1);
27525 {
27526 PyThreadState* __tstate = wxPyBeginAllowThreads();
27527 result = (long)(arg1)->GetState();
27528 wxPyEndAllowThreads(__tstate);
27529 if (PyErr_Occurred()) SWIG_fail;
27530 }
27531 resultobj = SWIG_From_long(static_cast< long >(result));
27532 return resultobj;
27533 fail:
27534 return NULL;
27535 }
27536
27537
27538 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27539 PyObject *resultobj = 0;
27540 wxListItem *arg1 = (wxListItem *) 0 ;
27541 wxString *result = 0 ;
27542 void *argp1 = 0 ;
27543 int res1 = 0 ;
27544 PyObject *swig_obj[1] ;
27545
27546 if (!args) SWIG_fail;
27547 swig_obj[0] = args;
27548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27549 if (!SWIG_IsOK(res1)) {
27550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27551 }
27552 arg1 = reinterpret_cast< wxListItem * >(argp1);
27553 {
27554 PyThreadState* __tstate = wxPyBeginAllowThreads();
27555 {
27556 wxString const &_result_ref = (arg1)->GetText();
27557 result = (wxString *) &_result_ref;
27558 }
27559 wxPyEndAllowThreads(__tstate);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 {
27563 #if wxUSE_UNICODE
27564 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27565 #else
27566 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27567 #endif
27568 }
27569 return resultobj;
27570 fail:
27571 return NULL;
27572 }
27573
27574
27575 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27576 PyObject *resultobj = 0;
27577 wxListItem *arg1 = (wxListItem *) 0 ;
27578 int result;
27579 void *argp1 = 0 ;
27580 int res1 = 0 ;
27581 PyObject *swig_obj[1] ;
27582
27583 if (!args) SWIG_fail;
27584 swig_obj[0] = args;
27585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27586 if (!SWIG_IsOK(res1)) {
27587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27588 }
27589 arg1 = reinterpret_cast< wxListItem * >(argp1);
27590 {
27591 PyThreadState* __tstate = wxPyBeginAllowThreads();
27592 result = (int)(arg1)->GetImage();
27593 wxPyEndAllowThreads(__tstate);
27594 if (PyErr_Occurred()) SWIG_fail;
27595 }
27596 resultobj = SWIG_From_int(static_cast< int >(result));
27597 return resultobj;
27598 fail:
27599 return NULL;
27600 }
27601
27602
27603 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27604 PyObject *resultobj = 0;
27605 wxListItem *arg1 = (wxListItem *) 0 ;
27606 long result;
27607 void *argp1 = 0 ;
27608 int res1 = 0 ;
27609 PyObject *swig_obj[1] ;
27610
27611 if (!args) SWIG_fail;
27612 swig_obj[0] = args;
27613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27614 if (!SWIG_IsOK(res1)) {
27615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27616 }
27617 arg1 = reinterpret_cast< wxListItem * >(argp1);
27618 {
27619 PyThreadState* __tstate = wxPyBeginAllowThreads();
27620 result = (long)(arg1)->GetData();
27621 wxPyEndAllowThreads(__tstate);
27622 if (PyErr_Occurred()) SWIG_fail;
27623 }
27624 resultobj = SWIG_From_long(static_cast< long >(result));
27625 return resultobj;
27626 fail:
27627 return NULL;
27628 }
27629
27630
27631 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27632 PyObject *resultobj = 0;
27633 wxListItem *arg1 = (wxListItem *) 0 ;
27634 int result;
27635 void *argp1 = 0 ;
27636 int res1 = 0 ;
27637 PyObject *swig_obj[1] ;
27638
27639 if (!args) SWIG_fail;
27640 swig_obj[0] = args;
27641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27642 if (!SWIG_IsOK(res1)) {
27643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27644 }
27645 arg1 = reinterpret_cast< wxListItem * >(argp1);
27646 {
27647 PyThreadState* __tstate = wxPyBeginAllowThreads();
27648 result = (int)(arg1)->GetWidth();
27649 wxPyEndAllowThreads(__tstate);
27650 if (PyErr_Occurred()) SWIG_fail;
27651 }
27652 resultobj = SWIG_From_int(static_cast< int >(result));
27653 return resultobj;
27654 fail:
27655 return NULL;
27656 }
27657
27658
27659 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27660 PyObject *resultobj = 0;
27661 wxListItem *arg1 = (wxListItem *) 0 ;
27662 wxListColumnFormat result;
27663 void *argp1 = 0 ;
27664 int res1 = 0 ;
27665 PyObject *swig_obj[1] ;
27666
27667 if (!args) SWIG_fail;
27668 swig_obj[0] = args;
27669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27670 if (!SWIG_IsOK(res1)) {
27671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27672 }
27673 arg1 = reinterpret_cast< wxListItem * >(argp1);
27674 {
27675 PyThreadState* __tstate = wxPyBeginAllowThreads();
27676 result = (wxListColumnFormat)(arg1)->GetAlign();
27677 wxPyEndAllowThreads(__tstate);
27678 if (PyErr_Occurred()) SWIG_fail;
27679 }
27680 resultobj = SWIG_From_int(static_cast< int >(result));
27681 return resultobj;
27682 fail:
27683 return NULL;
27684 }
27685
27686
27687 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27688 PyObject *resultobj = 0;
27689 wxListItem *arg1 = (wxListItem *) 0 ;
27690 wxListItemAttr *result = 0 ;
27691 void *argp1 = 0 ;
27692 int res1 = 0 ;
27693 PyObject *swig_obj[1] ;
27694
27695 if (!args) SWIG_fail;
27696 swig_obj[0] = args;
27697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27698 if (!SWIG_IsOK(res1)) {
27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27700 }
27701 arg1 = reinterpret_cast< wxListItem * >(argp1);
27702 {
27703 PyThreadState* __tstate = wxPyBeginAllowThreads();
27704 result = (wxListItemAttr *)(arg1)->GetAttributes();
27705 wxPyEndAllowThreads(__tstate);
27706 if (PyErr_Occurred()) SWIG_fail;
27707 }
27708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27709 return resultobj;
27710 fail:
27711 return NULL;
27712 }
27713
27714
27715 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27716 PyObject *resultobj = 0;
27717 wxListItem *arg1 = (wxListItem *) 0 ;
27718 bool result;
27719 void *argp1 = 0 ;
27720 int res1 = 0 ;
27721 PyObject *swig_obj[1] ;
27722
27723 if (!args) SWIG_fail;
27724 swig_obj[0] = args;
27725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27726 if (!SWIG_IsOK(res1)) {
27727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27728 }
27729 arg1 = reinterpret_cast< wxListItem * >(argp1);
27730 {
27731 PyThreadState* __tstate = wxPyBeginAllowThreads();
27732 result = (bool)(arg1)->HasAttributes();
27733 wxPyEndAllowThreads(__tstate);
27734 if (PyErr_Occurred()) SWIG_fail;
27735 }
27736 {
27737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27738 }
27739 return resultobj;
27740 fail:
27741 return NULL;
27742 }
27743
27744
27745 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27746 PyObject *resultobj = 0;
27747 wxListItem *arg1 = (wxListItem *) 0 ;
27748 wxColour result;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 PyObject *swig_obj[1] ;
27752
27753 if (!args) SWIG_fail;
27754 swig_obj[0] = args;
27755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27756 if (!SWIG_IsOK(res1)) {
27757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27758 }
27759 arg1 = reinterpret_cast< wxListItem * >(argp1);
27760 {
27761 PyThreadState* __tstate = wxPyBeginAllowThreads();
27762 result = ((wxListItem const *)arg1)->GetTextColour();
27763 wxPyEndAllowThreads(__tstate);
27764 if (PyErr_Occurred()) SWIG_fail;
27765 }
27766 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27767 return resultobj;
27768 fail:
27769 return NULL;
27770 }
27771
27772
27773 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27774 PyObject *resultobj = 0;
27775 wxListItem *arg1 = (wxListItem *) 0 ;
27776 wxColour result;
27777 void *argp1 = 0 ;
27778 int res1 = 0 ;
27779 PyObject *swig_obj[1] ;
27780
27781 if (!args) SWIG_fail;
27782 swig_obj[0] = args;
27783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27784 if (!SWIG_IsOK(res1)) {
27785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27786 }
27787 arg1 = reinterpret_cast< wxListItem * >(argp1);
27788 {
27789 PyThreadState* __tstate = wxPyBeginAllowThreads();
27790 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27791 wxPyEndAllowThreads(__tstate);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27795 return resultobj;
27796 fail:
27797 return NULL;
27798 }
27799
27800
27801 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27802 PyObject *resultobj = 0;
27803 wxListItem *arg1 = (wxListItem *) 0 ;
27804 wxFont result;
27805 void *argp1 = 0 ;
27806 int res1 = 0 ;
27807 PyObject *swig_obj[1] ;
27808
27809 if (!args) SWIG_fail;
27810 swig_obj[0] = args;
27811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27812 if (!SWIG_IsOK(res1)) {
27813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27814 }
27815 arg1 = reinterpret_cast< wxListItem * >(argp1);
27816 {
27817 PyThreadState* __tstate = wxPyBeginAllowThreads();
27818 result = ((wxListItem const *)arg1)->GetFont();
27819 wxPyEndAllowThreads(__tstate);
27820 if (PyErr_Occurred()) SWIG_fail;
27821 }
27822 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27823 return resultobj;
27824 fail:
27825 return NULL;
27826 }
27827
27828
27829 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27830 PyObject *resultobj = 0;
27831 wxListItem *arg1 = (wxListItem *) 0 ;
27832 long arg2 ;
27833 void *argp1 = 0 ;
27834 int res1 = 0 ;
27835 long val2 ;
27836 int ecode2 = 0 ;
27837 PyObject *swig_obj[2] ;
27838
27839 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27841 if (!SWIG_IsOK(res1)) {
27842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27843 }
27844 arg1 = reinterpret_cast< wxListItem * >(argp1);
27845 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27846 if (!SWIG_IsOK(ecode2)) {
27847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27848 }
27849 arg2 = static_cast< long >(val2);
27850 if (arg1) (arg1)->m_mask = arg2;
27851
27852 resultobj = SWIG_Py_Void();
27853 return resultobj;
27854 fail:
27855 return NULL;
27856 }
27857
27858
27859 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27860 PyObject *resultobj = 0;
27861 wxListItem *arg1 = (wxListItem *) 0 ;
27862 long result;
27863 void *argp1 = 0 ;
27864 int res1 = 0 ;
27865 PyObject *swig_obj[1] ;
27866
27867 if (!args) SWIG_fail;
27868 swig_obj[0] = args;
27869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27872 }
27873 arg1 = reinterpret_cast< wxListItem * >(argp1);
27874 result = (long) ((arg1)->m_mask);
27875 resultobj = SWIG_From_long(static_cast< long >(result));
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27883 PyObject *resultobj = 0;
27884 wxListItem *arg1 = (wxListItem *) 0 ;
27885 long arg2 ;
27886 void *argp1 = 0 ;
27887 int res1 = 0 ;
27888 long val2 ;
27889 int ecode2 = 0 ;
27890 PyObject *swig_obj[2] ;
27891
27892 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27894 if (!SWIG_IsOK(res1)) {
27895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27896 }
27897 arg1 = reinterpret_cast< wxListItem * >(argp1);
27898 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27899 if (!SWIG_IsOK(ecode2)) {
27900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27901 }
27902 arg2 = static_cast< long >(val2);
27903 if (arg1) (arg1)->m_itemId = arg2;
27904
27905 resultobj = SWIG_Py_Void();
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27913 PyObject *resultobj = 0;
27914 wxListItem *arg1 = (wxListItem *) 0 ;
27915 long result;
27916 void *argp1 = 0 ;
27917 int res1 = 0 ;
27918 PyObject *swig_obj[1] ;
27919
27920 if (!args) SWIG_fail;
27921 swig_obj[0] = args;
27922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27925 }
27926 arg1 = reinterpret_cast< wxListItem * >(argp1);
27927 result = (long) ((arg1)->m_itemId);
27928 resultobj = SWIG_From_long(static_cast< long >(result));
27929 return resultobj;
27930 fail:
27931 return NULL;
27932 }
27933
27934
27935 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936 PyObject *resultobj = 0;
27937 wxListItem *arg1 = (wxListItem *) 0 ;
27938 int arg2 ;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 int val2 ;
27942 int ecode2 = 0 ;
27943 PyObject *swig_obj[2] ;
27944
27945 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27947 if (!SWIG_IsOK(res1)) {
27948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27949 }
27950 arg1 = reinterpret_cast< wxListItem * >(argp1);
27951 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27952 if (!SWIG_IsOK(ecode2)) {
27953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27954 }
27955 arg2 = static_cast< int >(val2);
27956 if (arg1) (arg1)->m_col = arg2;
27957
27958 resultobj = SWIG_Py_Void();
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27966 PyObject *resultobj = 0;
27967 wxListItem *arg1 = (wxListItem *) 0 ;
27968 int result;
27969 void *argp1 = 0 ;
27970 int res1 = 0 ;
27971 PyObject *swig_obj[1] ;
27972
27973 if (!args) SWIG_fail;
27974 swig_obj[0] = args;
27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27978 }
27979 arg1 = reinterpret_cast< wxListItem * >(argp1);
27980 result = (int) ((arg1)->m_col);
27981 resultobj = SWIG_From_int(static_cast< int >(result));
27982 return resultobj;
27983 fail:
27984 return NULL;
27985 }
27986
27987
27988 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxListItem *arg1 = (wxListItem *) 0 ;
27991 long arg2 ;
27992 void *argp1 = 0 ;
27993 int res1 = 0 ;
27994 long val2 ;
27995 int ecode2 = 0 ;
27996 PyObject *swig_obj[2] ;
27997
27998 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28002 }
28003 arg1 = reinterpret_cast< wxListItem * >(argp1);
28004 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28005 if (!SWIG_IsOK(ecode2)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
28007 }
28008 arg2 = static_cast< long >(val2);
28009 if (arg1) (arg1)->m_state = arg2;
28010
28011 resultobj = SWIG_Py_Void();
28012 return resultobj;
28013 fail:
28014 return NULL;
28015 }
28016
28017
28018 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28019 PyObject *resultobj = 0;
28020 wxListItem *arg1 = (wxListItem *) 0 ;
28021 long result;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 PyObject *swig_obj[1] ;
28025
28026 if (!args) SWIG_fail;
28027 swig_obj[0] = args;
28028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28029 if (!SWIG_IsOK(res1)) {
28030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28031 }
28032 arg1 = reinterpret_cast< wxListItem * >(argp1);
28033 result = (long) ((arg1)->m_state);
28034 resultobj = SWIG_From_long(static_cast< long >(result));
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *resultobj = 0;
28043 wxListItem *arg1 = (wxListItem *) 0 ;
28044 long arg2 ;
28045 void *argp1 = 0 ;
28046 int res1 = 0 ;
28047 long val2 ;
28048 int ecode2 = 0 ;
28049 PyObject *swig_obj[2] ;
28050
28051 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
28052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28053 if (!SWIG_IsOK(res1)) {
28054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28055 }
28056 arg1 = reinterpret_cast< wxListItem * >(argp1);
28057 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28058 if (!SWIG_IsOK(ecode2)) {
28059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
28060 }
28061 arg2 = static_cast< long >(val2);
28062 if (arg1) (arg1)->m_stateMask = arg2;
28063
28064 resultobj = SWIG_Py_Void();
28065 return resultobj;
28066 fail:
28067 return NULL;
28068 }
28069
28070
28071 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28072 PyObject *resultobj = 0;
28073 wxListItem *arg1 = (wxListItem *) 0 ;
28074 long result;
28075 void *argp1 = 0 ;
28076 int res1 = 0 ;
28077 PyObject *swig_obj[1] ;
28078
28079 if (!args) SWIG_fail;
28080 swig_obj[0] = args;
28081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28082 if (!SWIG_IsOK(res1)) {
28083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28084 }
28085 arg1 = reinterpret_cast< wxListItem * >(argp1);
28086 result = (long) ((arg1)->m_stateMask);
28087 resultobj = SWIG_From_long(static_cast< long >(result));
28088 return resultobj;
28089 fail:
28090 return NULL;
28091 }
28092
28093
28094 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28095 PyObject *resultobj = 0;
28096 wxListItem *arg1 = (wxListItem *) 0 ;
28097 wxString *arg2 = (wxString *) 0 ;
28098 void *argp1 = 0 ;
28099 int res1 = 0 ;
28100 bool temp2 = false ;
28101 PyObject *swig_obj[2] ;
28102
28103 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
28104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28105 if (!SWIG_IsOK(res1)) {
28106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28107 }
28108 arg1 = reinterpret_cast< wxListItem * >(argp1);
28109 {
28110 arg2 = wxString_in_helper(swig_obj[1]);
28111 if (arg2 == NULL) SWIG_fail;
28112 temp2 = true;
28113 }
28114 if (arg1) (arg1)->m_text = *arg2;
28115
28116 resultobj = SWIG_Py_Void();
28117 {
28118 if (temp2)
28119 delete arg2;
28120 }
28121 return resultobj;
28122 fail:
28123 {
28124 if (temp2)
28125 delete arg2;
28126 }
28127 return NULL;
28128 }
28129
28130
28131 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28132 PyObject *resultobj = 0;
28133 wxListItem *arg1 = (wxListItem *) 0 ;
28134 wxString *result = 0 ;
28135 void *argp1 = 0 ;
28136 int res1 = 0 ;
28137 PyObject *swig_obj[1] ;
28138
28139 if (!args) SWIG_fail;
28140 swig_obj[0] = args;
28141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28142 if (!SWIG_IsOK(res1)) {
28143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28144 }
28145 arg1 = reinterpret_cast< wxListItem * >(argp1);
28146 result = (wxString *)& ((arg1)->m_text);
28147 {
28148 #if wxUSE_UNICODE
28149 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28150 #else
28151 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28152 #endif
28153 }
28154 return resultobj;
28155 fail:
28156 return NULL;
28157 }
28158
28159
28160 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28161 PyObject *resultobj = 0;
28162 wxListItem *arg1 = (wxListItem *) 0 ;
28163 int arg2 ;
28164 void *argp1 = 0 ;
28165 int res1 = 0 ;
28166 int val2 ;
28167 int ecode2 = 0 ;
28168 PyObject *swig_obj[2] ;
28169
28170 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
28171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28172 if (!SWIG_IsOK(res1)) {
28173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28174 }
28175 arg1 = reinterpret_cast< wxListItem * >(argp1);
28176 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28177 if (!SWIG_IsOK(ecode2)) {
28178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
28179 }
28180 arg2 = static_cast< int >(val2);
28181 if (arg1) (arg1)->m_image = arg2;
28182
28183 resultobj = SWIG_Py_Void();
28184 return resultobj;
28185 fail:
28186 return NULL;
28187 }
28188
28189
28190 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28191 PyObject *resultobj = 0;
28192 wxListItem *arg1 = (wxListItem *) 0 ;
28193 int result;
28194 void *argp1 = 0 ;
28195 int res1 = 0 ;
28196 PyObject *swig_obj[1] ;
28197
28198 if (!args) SWIG_fail;
28199 swig_obj[0] = args;
28200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28201 if (!SWIG_IsOK(res1)) {
28202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28203 }
28204 arg1 = reinterpret_cast< wxListItem * >(argp1);
28205 result = (int) ((arg1)->m_image);
28206 resultobj = SWIG_From_int(static_cast< int >(result));
28207 return resultobj;
28208 fail:
28209 return NULL;
28210 }
28211
28212
28213 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28214 PyObject *resultobj = 0;
28215 wxListItem *arg1 = (wxListItem *) 0 ;
28216 long arg2 ;
28217 void *argp1 = 0 ;
28218 int res1 = 0 ;
28219 long val2 ;
28220 int ecode2 = 0 ;
28221 PyObject *swig_obj[2] ;
28222
28223 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28225 if (!SWIG_IsOK(res1)) {
28226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28227 }
28228 arg1 = reinterpret_cast< wxListItem * >(argp1);
28229 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28230 if (!SWIG_IsOK(ecode2)) {
28231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28232 }
28233 arg2 = static_cast< long >(val2);
28234 if (arg1) (arg1)->m_data = arg2;
28235
28236 resultobj = SWIG_Py_Void();
28237 return resultobj;
28238 fail:
28239 return NULL;
28240 }
28241
28242
28243 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28244 PyObject *resultobj = 0;
28245 wxListItem *arg1 = (wxListItem *) 0 ;
28246 long result;
28247 void *argp1 = 0 ;
28248 int res1 = 0 ;
28249 PyObject *swig_obj[1] ;
28250
28251 if (!args) SWIG_fail;
28252 swig_obj[0] = args;
28253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28254 if (!SWIG_IsOK(res1)) {
28255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28256 }
28257 arg1 = reinterpret_cast< wxListItem * >(argp1);
28258 result = (long) ((arg1)->m_data);
28259 resultobj = SWIG_From_long(static_cast< long >(result));
28260 return resultobj;
28261 fail:
28262 return NULL;
28263 }
28264
28265
28266 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28267 PyObject *resultobj = 0;
28268 wxListItem *arg1 = (wxListItem *) 0 ;
28269 int arg2 ;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 int val2 ;
28273 int ecode2 = 0 ;
28274 PyObject *swig_obj[2] ;
28275
28276 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28278 if (!SWIG_IsOK(res1)) {
28279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28280 }
28281 arg1 = reinterpret_cast< wxListItem * >(argp1);
28282 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28283 if (!SWIG_IsOK(ecode2)) {
28284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28285 }
28286 arg2 = static_cast< int >(val2);
28287 if (arg1) (arg1)->m_format = arg2;
28288
28289 resultobj = SWIG_Py_Void();
28290 return resultobj;
28291 fail:
28292 return NULL;
28293 }
28294
28295
28296 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28297 PyObject *resultobj = 0;
28298 wxListItem *arg1 = (wxListItem *) 0 ;
28299 int result;
28300 void *argp1 = 0 ;
28301 int res1 = 0 ;
28302 PyObject *swig_obj[1] ;
28303
28304 if (!args) SWIG_fail;
28305 swig_obj[0] = args;
28306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28307 if (!SWIG_IsOK(res1)) {
28308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28309 }
28310 arg1 = reinterpret_cast< wxListItem * >(argp1);
28311 result = (int) ((arg1)->m_format);
28312 resultobj = SWIG_From_int(static_cast< int >(result));
28313 return resultobj;
28314 fail:
28315 return NULL;
28316 }
28317
28318
28319 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28320 PyObject *resultobj = 0;
28321 wxListItem *arg1 = (wxListItem *) 0 ;
28322 int arg2 ;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 int val2 ;
28326 int ecode2 = 0 ;
28327 PyObject *swig_obj[2] ;
28328
28329 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28331 if (!SWIG_IsOK(res1)) {
28332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28333 }
28334 arg1 = reinterpret_cast< wxListItem * >(argp1);
28335 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28336 if (!SWIG_IsOK(ecode2)) {
28337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28338 }
28339 arg2 = static_cast< int >(val2);
28340 if (arg1) (arg1)->m_width = arg2;
28341
28342 resultobj = SWIG_Py_Void();
28343 return resultobj;
28344 fail:
28345 return NULL;
28346 }
28347
28348
28349 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28350 PyObject *resultobj = 0;
28351 wxListItem *arg1 = (wxListItem *) 0 ;
28352 int result;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 PyObject *swig_obj[1] ;
28356
28357 if (!args) SWIG_fail;
28358 swig_obj[0] = args;
28359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28360 if (!SWIG_IsOK(res1)) {
28361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28362 }
28363 arg1 = reinterpret_cast< wxListItem * >(argp1);
28364 result = (int) ((arg1)->m_width);
28365 resultobj = SWIG_From_int(static_cast< int >(result));
28366 return resultobj;
28367 fail:
28368 return NULL;
28369 }
28370
28371
28372 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28373 PyObject *obj;
28374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28375 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28376 return SWIG_Py_Void();
28377 }
28378
28379 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28380 return SWIG_Python_InitShadowInstance(args);
28381 }
28382
28383 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28384 PyObject *resultobj = 0;
28385 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28386 int arg2 = (int) 0 ;
28387 wxListEvent *result = 0 ;
28388 int val1 ;
28389 int ecode1 = 0 ;
28390 int val2 ;
28391 int ecode2 = 0 ;
28392 PyObject * obj0 = 0 ;
28393 PyObject * obj1 = 0 ;
28394 char * kwnames[] = {
28395 (char *) "commandType",(char *) "id", NULL
28396 };
28397
28398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28399 if (obj0) {
28400 ecode1 = SWIG_AsVal_int(obj0, &val1);
28401 if (!SWIG_IsOK(ecode1)) {
28402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28403 }
28404 arg1 = static_cast< wxEventType >(val1);
28405 }
28406 if (obj1) {
28407 ecode2 = SWIG_AsVal_int(obj1, &val2);
28408 if (!SWIG_IsOK(ecode2)) {
28409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28410 }
28411 arg2 = static_cast< int >(val2);
28412 }
28413 {
28414 PyThreadState* __tstate = wxPyBeginAllowThreads();
28415 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28416 wxPyEndAllowThreads(__tstate);
28417 if (PyErr_Occurred()) SWIG_fail;
28418 }
28419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28420 return resultobj;
28421 fail:
28422 return NULL;
28423 }
28424
28425
28426 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28427 PyObject *resultobj = 0;
28428 wxListEvent *arg1 = (wxListEvent *) 0 ;
28429 int arg2 ;
28430 void *argp1 = 0 ;
28431 int res1 = 0 ;
28432 int val2 ;
28433 int ecode2 = 0 ;
28434 PyObject *swig_obj[2] ;
28435
28436 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28440 }
28441 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28442 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28443 if (!SWIG_IsOK(ecode2)) {
28444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28445 }
28446 arg2 = static_cast< int >(val2);
28447 if (arg1) (arg1)->m_code = arg2;
28448
28449 resultobj = SWIG_Py_Void();
28450 return resultobj;
28451 fail:
28452 return NULL;
28453 }
28454
28455
28456 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28457 PyObject *resultobj = 0;
28458 wxListEvent *arg1 = (wxListEvent *) 0 ;
28459 int result;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 PyObject *swig_obj[1] ;
28463
28464 if (!args) SWIG_fail;
28465 swig_obj[0] = args;
28466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28467 if (!SWIG_IsOK(res1)) {
28468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28469 }
28470 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28471 result = (int) ((arg1)->m_code);
28472 resultobj = SWIG_From_int(static_cast< int >(result));
28473 return resultobj;
28474 fail:
28475 return NULL;
28476 }
28477
28478
28479 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28480 PyObject *resultobj = 0;
28481 wxListEvent *arg1 = (wxListEvent *) 0 ;
28482 long arg2 ;
28483 void *argp1 = 0 ;
28484 int res1 = 0 ;
28485 long val2 ;
28486 int ecode2 = 0 ;
28487 PyObject *swig_obj[2] ;
28488
28489 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28491 if (!SWIG_IsOK(res1)) {
28492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28493 }
28494 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28495 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28496 if (!SWIG_IsOK(ecode2)) {
28497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28498 }
28499 arg2 = static_cast< long >(val2);
28500 if (arg1) (arg1)->m_oldItemIndex = arg2;
28501
28502 resultobj = SWIG_Py_Void();
28503 return resultobj;
28504 fail:
28505 return NULL;
28506 }
28507
28508
28509 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28510 PyObject *resultobj = 0;
28511 wxListEvent *arg1 = (wxListEvent *) 0 ;
28512 long result;
28513 void *argp1 = 0 ;
28514 int res1 = 0 ;
28515 PyObject *swig_obj[1] ;
28516
28517 if (!args) SWIG_fail;
28518 swig_obj[0] = args;
28519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28522 }
28523 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28524 result = (long) ((arg1)->m_oldItemIndex);
28525 resultobj = SWIG_From_long(static_cast< long >(result));
28526 return resultobj;
28527 fail:
28528 return NULL;
28529 }
28530
28531
28532 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28533 PyObject *resultobj = 0;
28534 wxListEvent *arg1 = (wxListEvent *) 0 ;
28535 long arg2 ;
28536 void *argp1 = 0 ;
28537 int res1 = 0 ;
28538 long val2 ;
28539 int ecode2 = 0 ;
28540 PyObject *swig_obj[2] ;
28541
28542 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28544 if (!SWIG_IsOK(res1)) {
28545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28546 }
28547 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28548 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28549 if (!SWIG_IsOK(ecode2)) {
28550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28551 }
28552 arg2 = static_cast< long >(val2);
28553 if (arg1) (arg1)->m_itemIndex = arg2;
28554
28555 resultobj = SWIG_Py_Void();
28556 return resultobj;
28557 fail:
28558 return NULL;
28559 }
28560
28561
28562 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28563 PyObject *resultobj = 0;
28564 wxListEvent *arg1 = (wxListEvent *) 0 ;
28565 long result;
28566 void *argp1 = 0 ;
28567 int res1 = 0 ;
28568 PyObject *swig_obj[1] ;
28569
28570 if (!args) SWIG_fail;
28571 swig_obj[0] = args;
28572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28573 if (!SWIG_IsOK(res1)) {
28574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28575 }
28576 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28577 result = (long) ((arg1)->m_itemIndex);
28578 resultobj = SWIG_From_long(static_cast< long >(result));
28579 return resultobj;
28580 fail:
28581 return NULL;
28582 }
28583
28584
28585 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28586 PyObject *resultobj = 0;
28587 wxListEvent *arg1 = (wxListEvent *) 0 ;
28588 int arg2 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 int val2 ;
28592 int ecode2 = 0 ;
28593 PyObject *swig_obj[2] ;
28594
28595 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28597 if (!SWIG_IsOK(res1)) {
28598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28599 }
28600 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28601 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28602 if (!SWIG_IsOK(ecode2)) {
28603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28604 }
28605 arg2 = static_cast< int >(val2);
28606 if (arg1) (arg1)->m_col = arg2;
28607
28608 resultobj = SWIG_Py_Void();
28609 return resultobj;
28610 fail:
28611 return NULL;
28612 }
28613
28614
28615 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28616 PyObject *resultobj = 0;
28617 wxListEvent *arg1 = (wxListEvent *) 0 ;
28618 int 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_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28628 }
28629 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28630 result = (int) ((arg1)->m_col);
28631 resultobj = SWIG_From_int(static_cast< int >(result));
28632 return resultobj;
28633 fail:
28634 return NULL;
28635 }
28636
28637
28638 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28639 PyObject *resultobj = 0;
28640 wxListEvent *arg1 = (wxListEvent *) 0 ;
28641 wxPoint *arg2 = (wxPoint *) 0 ;
28642 void *argp1 = 0 ;
28643 int res1 = 0 ;
28644 void *argp2 = 0 ;
28645 int res2 = 0 ;
28646 PyObject *swig_obj[2] ;
28647
28648 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28650 if (!SWIG_IsOK(res1)) {
28651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28652 }
28653 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28654 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28655 if (!SWIG_IsOK(res2)) {
28656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28657 }
28658 arg2 = reinterpret_cast< wxPoint * >(argp2);
28659 if (arg1) (arg1)->m_pointDrag = *arg2;
28660
28661 resultobj = SWIG_Py_Void();
28662 return resultobj;
28663 fail:
28664 return NULL;
28665 }
28666
28667
28668 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28669 PyObject *resultobj = 0;
28670 wxListEvent *arg1 = (wxListEvent *) 0 ;
28671 wxPoint *result = 0 ;
28672 void *argp1 = 0 ;
28673 int res1 = 0 ;
28674 PyObject *swig_obj[1] ;
28675
28676 if (!args) SWIG_fail;
28677 swig_obj[0] = args;
28678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28679 if (!SWIG_IsOK(res1)) {
28680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28681 }
28682 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28683 result = (wxPoint *)& ((arg1)->m_pointDrag);
28684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28692 PyObject *resultobj = 0;
28693 wxListEvent *arg1 = (wxListEvent *) 0 ;
28694 wxListItem *result = 0 ;
28695 void *argp1 = 0 ;
28696 int res1 = 0 ;
28697 PyObject *swig_obj[1] ;
28698
28699 if (!args) SWIG_fail;
28700 swig_obj[0] = args;
28701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28702 if (!SWIG_IsOK(res1)) {
28703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28704 }
28705 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28706 result = (wxListItem *)& ((arg1)->m_item);
28707 {
28708 resultobj = wxPyMake_wxObject(result, 0);
28709 }
28710 return resultobj;
28711 fail:
28712 return NULL;
28713 }
28714
28715
28716 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28717 PyObject *resultobj = 0;
28718 wxListEvent *arg1 = (wxListEvent *) 0 ;
28719 int result;
28720 void *argp1 = 0 ;
28721 int res1 = 0 ;
28722 PyObject *swig_obj[1] ;
28723
28724 if (!args) SWIG_fail;
28725 swig_obj[0] = args;
28726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28727 if (!SWIG_IsOK(res1)) {
28728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28729 }
28730 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28731 {
28732 PyThreadState* __tstate = wxPyBeginAllowThreads();
28733 result = (int)(arg1)->GetKeyCode();
28734 wxPyEndAllowThreads(__tstate);
28735 if (PyErr_Occurred()) SWIG_fail;
28736 }
28737 resultobj = SWIG_From_int(static_cast< int >(result));
28738 return resultobj;
28739 fail:
28740 return NULL;
28741 }
28742
28743
28744 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28745 PyObject *resultobj = 0;
28746 wxListEvent *arg1 = (wxListEvent *) 0 ;
28747 long result;
28748 void *argp1 = 0 ;
28749 int res1 = 0 ;
28750 PyObject *swig_obj[1] ;
28751
28752 if (!args) SWIG_fail;
28753 swig_obj[0] = args;
28754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28755 if (!SWIG_IsOK(res1)) {
28756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28757 }
28758 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28759 {
28760 PyThreadState* __tstate = wxPyBeginAllowThreads();
28761 result = (long)(arg1)->GetIndex();
28762 wxPyEndAllowThreads(__tstate);
28763 if (PyErr_Occurred()) SWIG_fail;
28764 }
28765 resultobj = SWIG_From_long(static_cast< long >(result));
28766 return resultobj;
28767 fail:
28768 return NULL;
28769 }
28770
28771
28772 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28773 PyObject *resultobj = 0;
28774 wxListEvent *arg1 = (wxListEvent *) 0 ;
28775 int result;
28776 void *argp1 = 0 ;
28777 int res1 = 0 ;
28778 PyObject *swig_obj[1] ;
28779
28780 if (!args) SWIG_fail;
28781 swig_obj[0] = args;
28782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28783 if (!SWIG_IsOK(res1)) {
28784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28785 }
28786 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28787 {
28788 PyThreadState* __tstate = wxPyBeginAllowThreads();
28789 result = (int)(arg1)->GetColumn();
28790 wxPyEndAllowThreads(__tstate);
28791 if (PyErr_Occurred()) SWIG_fail;
28792 }
28793 resultobj = SWIG_From_int(static_cast< int >(result));
28794 return resultobj;
28795 fail:
28796 return NULL;
28797 }
28798
28799
28800 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28801 PyObject *resultobj = 0;
28802 wxListEvent *arg1 = (wxListEvent *) 0 ;
28803 wxPoint result;
28804 void *argp1 = 0 ;
28805 int res1 = 0 ;
28806 PyObject *swig_obj[1] ;
28807
28808 if (!args) SWIG_fail;
28809 swig_obj[0] = args;
28810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28811 if (!SWIG_IsOK(res1)) {
28812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28813 }
28814 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28815 {
28816 PyThreadState* __tstate = wxPyBeginAllowThreads();
28817 result = (arg1)->GetPoint();
28818 wxPyEndAllowThreads(__tstate);
28819 if (PyErr_Occurred()) SWIG_fail;
28820 }
28821 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28822 return resultobj;
28823 fail:
28824 return NULL;
28825 }
28826
28827
28828 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28829 PyObject *resultobj = 0;
28830 wxListEvent *arg1 = (wxListEvent *) 0 ;
28831 wxString *result = 0 ;
28832 void *argp1 = 0 ;
28833 int res1 = 0 ;
28834 PyObject *swig_obj[1] ;
28835
28836 if (!args) SWIG_fail;
28837 swig_obj[0] = args;
28838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28839 if (!SWIG_IsOK(res1)) {
28840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28841 }
28842 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28843 {
28844 PyThreadState* __tstate = wxPyBeginAllowThreads();
28845 {
28846 wxString const &_result_ref = (arg1)->GetLabel();
28847 result = (wxString *) &_result_ref;
28848 }
28849 wxPyEndAllowThreads(__tstate);
28850 if (PyErr_Occurred()) SWIG_fail;
28851 }
28852 {
28853 #if wxUSE_UNICODE
28854 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28855 #else
28856 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28857 #endif
28858 }
28859 return resultobj;
28860 fail:
28861 return NULL;
28862 }
28863
28864
28865 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28866 PyObject *resultobj = 0;
28867 wxListEvent *arg1 = (wxListEvent *) 0 ;
28868 wxString *result = 0 ;
28869 void *argp1 = 0 ;
28870 int res1 = 0 ;
28871 PyObject *swig_obj[1] ;
28872
28873 if (!args) SWIG_fail;
28874 swig_obj[0] = args;
28875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28878 }
28879 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28880 {
28881 PyThreadState* __tstate = wxPyBeginAllowThreads();
28882 {
28883 wxString const &_result_ref = (arg1)->GetText();
28884 result = (wxString *) &_result_ref;
28885 }
28886 wxPyEndAllowThreads(__tstate);
28887 if (PyErr_Occurred()) SWIG_fail;
28888 }
28889 {
28890 #if wxUSE_UNICODE
28891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28892 #else
28893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28894 #endif
28895 }
28896 return resultobj;
28897 fail:
28898 return NULL;
28899 }
28900
28901
28902 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28903 PyObject *resultobj = 0;
28904 wxListEvent *arg1 = (wxListEvent *) 0 ;
28905 int result;
28906 void *argp1 = 0 ;
28907 int res1 = 0 ;
28908 PyObject *swig_obj[1] ;
28909
28910 if (!args) SWIG_fail;
28911 swig_obj[0] = args;
28912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28913 if (!SWIG_IsOK(res1)) {
28914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28915 }
28916 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28917 {
28918 PyThreadState* __tstate = wxPyBeginAllowThreads();
28919 result = (int)(arg1)->GetImage();
28920 wxPyEndAllowThreads(__tstate);
28921 if (PyErr_Occurred()) SWIG_fail;
28922 }
28923 resultobj = SWIG_From_int(static_cast< int >(result));
28924 return resultobj;
28925 fail:
28926 return NULL;
28927 }
28928
28929
28930 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28931 PyObject *resultobj = 0;
28932 wxListEvent *arg1 = (wxListEvent *) 0 ;
28933 long result;
28934 void *argp1 = 0 ;
28935 int res1 = 0 ;
28936 PyObject *swig_obj[1] ;
28937
28938 if (!args) SWIG_fail;
28939 swig_obj[0] = args;
28940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28941 if (!SWIG_IsOK(res1)) {
28942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28943 }
28944 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28945 {
28946 PyThreadState* __tstate = wxPyBeginAllowThreads();
28947 result = (long)(arg1)->GetData();
28948 wxPyEndAllowThreads(__tstate);
28949 if (PyErr_Occurred()) SWIG_fail;
28950 }
28951 resultobj = SWIG_From_long(static_cast< long >(result));
28952 return resultobj;
28953 fail:
28954 return NULL;
28955 }
28956
28957
28958 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28959 PyObject *resultobj = 0;
28960 wxListEvent *arg1 = (wxListEvent *) 0 ;
28961 long result;
28962 void *argp1 = 0 ;
28963 int res1 = 0 ;
28964 PyObject *swig_obj[1] ;
28965
28966 if (!args) SWIG_fail;
28967 swig_obj[0] = args;
28968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28969 if (!SWIG_IsOK(res1)) {
28970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28971 }
28972 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28973 {
28974 PyThreadState* __tstate = wxPyBeginAllowThreads();
28975 result = (long)(arg1)->GetMask();
28976 wxPyEndAllowThreads(__tstate);
28977 if (PyErr_Occurred()) SWIG_fail;
28978 }
28979 resultobj = SWIG_From_long(static_cast< long >(result));
28980 return resultobj;
28981 fail:
28982 return NULL;
28983 }
28984
28985
28986 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28987 PyObject *resultobj = 0;
28988 wxListEvent *arg1 = (wxListEvent *) 0 ;
28989 wxListItem *result = 0 ;
28990 void *argp1 = 0 ;
28991 int res1 = 0 ;
28992 PyObject *swig_obj[1] ;
28993
28994 if (!args) SWIG_fail;
28995 swig_obj[0] = args;
28996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28997 if (!SWIG_IsOK(res1)) {
28998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28999 }
29000 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29001 {
29002 PyThreadState* __tstate = wxPyBeginAllowThreads();
29003 {
29004 wxListItem const &_result_ref = (arg1)->GetItem();
29005 result = (wxListItem *) &_result_ref;
29006 }
29007 wxPyEndAllowThreads(__tstate);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
29011 return resultobj;
29012 fail:
29013 return NULL;
29014 }
29015
29016
29017 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29018 PyObject *resultobj = 0;
29019 wxListEvent *arg1 = (wxListEvent *) 0 ;
29020 long result;
29021 void *argp1 = 0 ;
29022 int res1 = 0 ;
29023 PyObject *swig_obj[1] ;
29024
29025 if (!args) SWIG_fail;
29026 swig_obj[0] = args;
29027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29028 if (!SWIG_IsOK(res1)) {
29029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
29030 }
29031 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29032 {
29033 PyThreadState* __tstate = wxPyBeginAllowThreads();
29034 result = (long)(arg1)->GetCacheFrom();
29035 wxPyEndAllowThreads(__tstate);
29036 if (PyErr_Occurred()) SWIG_fail;
29037 }
29038 resultobj = SWIG_From_long(static_cast< long >(result));
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29046 PyObject *resultobj = 0;
29047 wxListEvent *arg1 = (wxListEvent *) 0 ;
29048 long result;
29049 void *argp1 = 0 ;
29050 int res1 = 0 ;
29051 PyObject *swig_obj[1] ;
29052
29053 if (!args) SWIG_fail;
29054 swig_obj[0] = args;
29055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29056 if (!SWIG_IsOK(res1)) {
29057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
29058 }
29059 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29060 {
29061 PyThreadState* __tstate = wxPyBeginAllowThreads();
29062 result = (long)(arg1)->GetCacheTo();
29063 wxPyEndAllowThreads(__tstate);
29064 if (PyErr_Occurred()) SWIG_fail;
29065 }
29066 resultobj = SWIG_From_long(static_cast< long >(result));
29067 return resultobj;
29068 fail:
29069 return NULL;
29070 }
29071
29072
29073 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29074 PyObject *resultobj = 0;
29075 wxListEvent *arg1 = (wxListEvent *) 0 ;
29076 bool result;
29077 void *argp1 = 0 ;
29078 int res1 = 0 ;
29079 PyObject *swig_obj[1] ;
29080
29081 if (!args) SWIG_fail;
29082 swig_obj[0] = args;
29083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29084 if (!SWIG_IsOK(res1)) {
29085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
29086 }
29087 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29088 {
29089 PyThreadState* __tstate = wxPyBeginAllowThreads();
29090 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
29091 wxPyEndAllowThreads(__tstate);
29092 if (PyErr_Occurred()) SWIG_fail;
29093 }
29094 {
29095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29096 }
29097 return resultobj;
29098 fail:
29099 return NULL;
29100 }
29101
29102
29103 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29104 PyObject *resultobj = 0;
29105 wxListEvent *arg1 = (wxListEvent *) 0 ;
29106 bool arg2 ;
29107 void *argp1 = 0 ;
29108 int res1 = 0 ;
29109 bool val2 ;
29110 int ecode2 = 0 ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 char * kwnames[] = {
29114 (char *) "self",(char *) "editCancelled", NULL
29115 };
29116
29117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
29118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29119 if (!SWIG_IsOK(res1)) {
29120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
29121 }
29122 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29123 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29124 if (!SWIG_IsOK(ecode2)) {
29125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
29126 }
29127 arg2 = static_cast< bool >(val2);
29128 {
29129 PyThreadState* __tstate = wxPyBeginAllowThreads();
29130 (arg1)->SetEditCanceled(arg2);
29131 wxPyEndAllowThreads(__tstate);
29132 if (PyErr_Occurred()) SWIG_fail;
29133 }
29134 resultobj = SWIG_Py_Void();
29135 return resultobj;
29136 fail:
29137 return NULL;
29138 }
29139
29140
29141 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29142 PyObject *obj;
29143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29144 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
29145 return SWIG_Py_Void();
29146 }
29147
29148 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29149 return SWIG_Python_InitShadowInstance(args);
29150 }
29151
29152 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29153 PyObject *resultobj = 0;
29154 wxWindow *arg1 = (wxWindow *) 0 ;
29155 int arg2 = (int) -1 ;
29156 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29157 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29158 wxSize const &arg4_defvalue = wxDefaultSize ;
29159 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29160 long arg5 = (long) wxLC_ICON ;
29161 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29162 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29163 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
29164 wxString *arg7 = (wxString *) &arg7_defvalue ;
29165 wxPyListCtrl *result = 0 ;
29166 void *argp1 = 0 ;
29167 int res1 = 0 ;
29168 int val2 ;
29169 int ecode2 = 0 ;
29170 wxPoint temp3 ;
29171 wxSize temp4 ;
29172 long val5 ;
29173 int ecode5 = 0 ;
29174 void *argp6 = 0 ;
29175 int res6 = 0 ;
29176 bool temp7 = false ;
29177 PyObject * obj0 = 0 ;
29178 PyObject * obj1 = 0 ;
29179 PyObject * obj2 = 0 ;
29180 PyObject * obj3 = 0 ;
29181 PyObject * obj4 = 0 ;
29182 PyObject * obj5 = 0 ;
29183 PyObject * obj6 = 0 ;
29184 char * kwnames[] = {
29185 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29186 };
29187
29188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29190 if (!SWIG_IsOK(res1)) {
29191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29192 }
29193 arg1 = reinterpret_cast< wxWindow * >(argp1);
29194 if (obj1) {
29195 ecode2 = SWIG_AsVal_int(obj1, &val2);
29196 if (!SWIG_IsOK(ecode2)) {
29197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29198 }
29199 arg2 = static_cast< int >(val2);
29200 }
29201 if (obj2) {
29202 {
29203 arg3 = &temp3;
29204 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29205 }
29206 }
29207 if (obj3) {
29208 {
29209 arg4 = &temp4;
29210 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29211 }
29212 }
29213 if (obj4) {
29214 ecode5 = SWIG_AsVal_long(obj4, &val5);
29215 if (!SWIG_IsOK(ecode5)) {
29216 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29217 }
29218 arg5 = static_cast< long >(val5);
29219 }
29220 if (obj5) {
29221 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29222 if (!SWIG_IsOK(res6)) {
29223 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29224 }
29225 if (!argp6) {
29226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29227 }
29228 arg6 = reinterpret_cast< wxValidator * >(argp6);
29229 }
29230 if (obj6) {
29231 {
29232 arg7 = wxString_in_helper(obj6);
29233 if (arg7 == NULL) SWIG_fail;
29234 temp7 = true;
29235 }
29236 }
29237 {
29238 if (!wxPyCheckForApp()) SWIG_fail;
29239 PyThreadState* __tstate = wxPyBeginAllowThreads();
29240 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29241 wxPyEndAllowThreads(__tstate);
29242 if (PyErr_Occurred()) SWIG_fail;
29243 }
29244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29245 {
29246 if (temp7)
29247 delete arg7;
29248 }
29249 return resultobj;
29250 fail:
29251 {
29252 if (temp7)
29253 delete arg7;
29254 }
29255 return NULL;
29256 }
29257
29258
29259 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29260 PyObject *resultobj = 0;
29261 wxPyListCtrl *result = 0 ;
29262
29263 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29264 {
29265 if (!wxPyCheckForApp()) SWIG_fail;
29266 PyThreadState* __tstate = wxPyBeginAllowThreads();
29267 result = (wxPyListCtrl *)new wxPyListCtrl();
29268 wxPyEndAllowThreads(__tstate);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29272 return resultobj;
29273 fail:
29274 return NULL;
29275 }
29276
29277
29278 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29279 PyObject *resultobj = 0;
29280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29281 wxWindow *arg2 = (wxWindow *) 0 ;
29282 int arg3 = (int) -1 ;
29283 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29284 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29285 wxSize const &arg5_defvalue = wxDefaultSize ;
29286 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29287 long arg6 = (long) wxLC_ICON ;
29288 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29289 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29290 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29291 wxString *arg8 = (wxString *) &arg8_defvalue ;
29292 bool result;
29293 void *argp1 = 0 ;
29294 int res1 = 0 ;
29295 void *argp2 = 0 ;
29296 int res2 = 0 ;
29297 int val3 ;
29298 int ecode3 = 0 ;
29299 wxPoint temp4 ;
29300 wxSize temp5 ;
29301 long val6 ;
29302 int ecode6 = 0 ;
29303 void *argp7 = 0 ;
29304 int res7 = 0 ;
29305 bool temp8 = false ;
29306 PyObject * obj0 = 0 ;
29307 PyObject * obj1 = 0 ;
29308 PyObject * obj2 = 0 ;
29309 PyObject * obj3 = 0 ;
29310 PyObject * obj4 = 0 ;
29311 PyObject * obj5 = 0 ;
29312 PyObject * obj6 = 0 ;
29313 PyObject * obj7 = 0 ;
29314 char * kwnames[] = {
29315 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29316 };
29317
29318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29320 if (!SWIG_IsOK(res1)) {
29321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29322 }
29323 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29325 if (!SWIG_IsOK(res2)) {
29326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29327 }
29328 arg2 = reinterpret_cast< wxWindow * >(argp2);
29329 if (obj2) {
29330 ecode3 = SWIG_AsVal_int(obj2, &val3);
29331 if (!SWIG_IsOK(ecode3)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29333 }
29334 arg3 = static_cast< int >(val3);
29335 }
29336 if (obj3) {
29337 {
29338 arg4 = &temp4;
29339 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29340 }
29341 }
29342 if (obj4) {
29343 {
29344 arg5 = &temp5;
29345 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29346 }
29347 }
29348 if (obj5) {
29349 ecode6 = SWIG_AsVal_long(obj5, &val6);
29350 if (!SWIG_IsOK(ecode6)) {
29351 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29352 }
29353 arg6 = static_cast< long >(val6);
29354 }
29355 if (obj6) {
29356 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29357 if (!SWIG_IsOK(res7)) {
29358 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29359 }
29360 if (!argp7) {
29361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29362 }
29363 arg7 = reinterpret_cast< wxValidator * >(argp7);
29364 }
29365 if (obj7) {
29366 {
29367 arg8 = wxString_in_helper(obj7);
29368 if (arg8 == NULL) SWIG_fail;
29369 temp8 = true;
29370 }
29371 }
29372 {
29373 PyThreadState* __tstate = wxPyBeginAllowThreads();
29374 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29375 wxPyEndAllowThreads(__tstate);
29376 if (PyErr_Occurred()) SWIG_fail;
29377 }
29378 {
29379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29380 }
29381 {
29382 if (temp8)
29383 delete arg8;
29384 }
29385 return resultobj;
29386 fail:
29387 {
29388 if (temp8)
29389 delete arg8;
29390 }
29391 return NULL;
29392 }
29393
29394
29395 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29396 PyObject *resultobj = 0;
29397 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29398 PyObject *arg2 = (PyObject *) 0 ;
29399 PyObject *arg3 = (PyObject *) 0 ;
29400 void *argp1 = 0 ;
29401 int res1 = 0 ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 char * kwnames[] = {
29406 (char *) "self",(char *) "self",(char *) "_class", NULL
29407 };
29408
29409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29411 if (!SWIG_IsOK(res1)) {
29412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29413 }
29414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29415 arg2 = obj1;
29416 arg3 = obj2;
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 (arg1)->_setCallbackInfo(arg2,arg3);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_Py_Void();
29424 return resultobj;
29425 fail:
29426 return NULL;
29427 }
29428
29429
29430 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj = 0;
29432 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29433 int arg2 ;
29434 wxListItem *result = 0 ;
29435 void *argp1 = 0 ;
29436 int res1 = 0 ;
29437 int val2 ;
29438 int ecode2 = 0 ;
29439 PyObject * obj0 = 0 ;
29440 PyObject * obj1 = 0 ;
29441 char * kwnames[] = {
29442 (char *) "self",(char *) "col", NULL
29443 };
29444
29445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29447 if (!SWIG_IsOK(res1)) {
29448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29449 }
29450 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29451 ecode2 = SWIG_AsVal_int(obj1, &val2);
29452 if (!SWIG_IsOK(ecode2)) {
29453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29454 }
29455 arg2 = static_cast< int >(val2);
29456 {
29457 PyThreadState* __tstate = wxPyBeginAllowThreads();
29458 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29459 wxPyEndAllowThreads(__tstate);
29460 if (PyErr_Occurred()) SWIG_fail;
29461 }
29462 {
29463 resultobj = wxPyMake_wxObject(result, 0);
29464 }
29465 return resultobj;
29466 fail:
29467 return NULL;
29468 }
29469
29470
29471 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29472 PyObject *resultobj = 0;
29473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29474 int arg2 ;
29475 wxListItem *arg3 = 0 ;
29476 bool result;
29477 void *argp1 = 0 ;
29478 int res1 = 0 ;
29479 int val2 ;
29480 int ecode2 = 0 ;
29481 void *argp3 = 0 ;
29482 int res3 = 0 ;
29483 PyObject * obj0 = 0 ;
29484 PyObject * obj1 = 0 ;
29485 PyObject * obj2 = 0 ;
29486 char * kwnames[] = {
29487 (char *) "self",(char *) "col",(char *) "item", NULL
29488 };
29489
29490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29494 }
29495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29496 ecode2 = SWIG_AsVal_int(obj1, &val2);
29497 if (!SWIG_IsOK(ecode2)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29499 }
29500 arg2 = static_cast< int >(val2);
29501 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29502 if (!SWIG_IsOK(res3)) {
29503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29504 }
29505 if (!argp3) {
29506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29507 }
29508 arg3 = reinterpret_cast< wxListItem * >(argp3);
29509 {
29510 PyThreadState* __tstate = wxPyBeginAllowThreads();
29511 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29512 wxPyEndAllowThreads(__tstate);
29513 if (PyErr_Occurred()) SWIG_fail;
29514 }
29515 {
29516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29517 }
29518 return resultobj;
29519 fail:
29520 return NULL;
29521 }
29522
29523
29524 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29525 PyObject *resultobj = 0;
29526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29527 int arg2 ;
29528 int result;
29529 void *argp1 = 0 ;
29530 int res1 = 0 ;
29531 int val2 ;
29532 int ecode2 = 0 ;
29533 PyObject * obj0 = 0 ;
29534 PyObject * obj1 = 0 ;
29535 char * kwnames[] = {
29536 (char *) "self",(char *) "col", NULL
29537 };
29538
29539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29541 if (!SWIG_IsOK(res1)) {
29542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29543 }
29544 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29545 ecode2 = SWIG_AsVal_int(obj1, &val2);
29546 if (!SWIG_IsOK(ecode2)) {
29547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29548 }
29549 arg2 = static_cast< int >(val2);
29550 {
29551 PyThreadState* __tstate = wxPyBeginAllowThreads();
29552 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29553 wxPyEndAllowThreads(__tstate);
29554 if (PyErr_Occurred()) SWIG_fail;
29555 }
29556 resultobj = SWIG_From_int(static_cast< int >(result));
29557 return resultobj;
29558 fail:
29559 return NULL;
29560 }
29561
29562
29563 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29564 PyObject *resultobj = 0;
29565 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29566 int arg2 ;
29567 int arg3 ;
29568 bool result;
29569 void *argp1 = 0 ;
29570 int res1 = 0 ;
29571 int val2 ;
29572 int ecode2 = 0 ;
29573 int val3 ;
29574 int ecode3 = 0 ;
29575 PyObject * obj0 = 0 ;
29576 PyObject * obj1 = 0 ;
29577 PyObject * obj2 = 0 ;
29578 char * kwnames[] = {
29579 (char *) "self",(char *) "col",(char *) "width", NULL
29580 };
29581
29582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29584 if (!SWIG_IsOK(res1)) {
29585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29586 }
29587 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29588 ecode2 = SWIG_AsVal_int(obj1, &val2);
29589 if (!SWIG_IsOK(ecode2)) {
29590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29591 }
29592 arg2 = static_cast< int >(val2);
29593 ecode3 = SWIG_AsVal_int(obj2, &val3);
29594 if (!SWIG_IsOK(ecode3)) {
29595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29596 }
29597 arg3 = static_cast< int >(val3);
29598 {
29599 PyThreadState* __tstate = wxPyBeginAllowThreads();
29600 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29601 wxPyEndAllowThreads(__tstate);
29602 if (PyErr_Occurred()) SWIG_fail;
29603 }
29604 {
29605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29606 }
29607 return resultobj;
29608 fail:
29609 return NULL;
29610 }
29611
29612
29613 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29614 PyObject *resultobj = 0;
29615 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29616 int result;
29617 void *argp1 = 0 ;
29618 int res1 = 0 ;
29619 PyObject *swig_obj[1] ;
29620
29621 if (!args) SWIG_fail;
29622 swig_obj[0] = args;
29623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29624 if (!SWIG_IsOK(res1)) {
29625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29626 }
29627 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29628 {
29629 PyThreadState* __tstate = wxPyBeginAllowThreads();
29630 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29631 wxPyEndAllowThreads(__tstate);
29632 if (PyErr_Occurred()) SWIG_fail;
29633 }
29634 resultobj = SWIG_From_int(static_cast< int >(result));
29635 return resultobj;
29636 fail:
29637 return NULL;
29638 }
29639
29640
29641 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29642 PyObject *resultobj = 0;
29643 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29644 wxRect result;
29645 void *argp1 = 0 ;
29646 int res1 = 0 ;
29647 PyObject *swig_obj[1] ;
29648
29649 if (!args) SWIG_fail;
29650 swig_obj[0] = args;
29651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29652 if (!SWIG_IsOK(res1)) {
29653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29654 }
29655 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29656 {
29657 PyThreadState* __tstate = wxPyBeginAllowThreads();
29658 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29659 wxPyEndAllowThreads(__tstate);
29660 if (PyErr_Occurred()) SWIG_fail;
29661 }
29662 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29663 return resultobj;
29664 fail:
29665 return NULL;
29666 }
29667
29668
29669 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29670 PyObject *resultobj = 0;
29671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29672 wxTextCtrl *result = 0 ;
29673 void *argp1 = 0 ;
29674 int res1 = 0 ;
29675 PyObject *swig_obj[1] ;
29676
29677 if (!args) SWIG_fail;
29678 swig_obj[0] = args;
29679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29682 }
29683 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29684 {
29685 PyThreadState* __tstate = wxPyBeginAllowThreads();
29686 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29687 wxPyEndAllowThreads(__tstate);
29688 if (PyErr_Occurred()) SWIG_fail;
29689 }
29690 {
29691 resultobj = wxPyMake_wxObject(result, 0);
29692 }
29693 return resultobj;
29694 fail:
29695 return NULL;
29696 }
29697
29698
29699 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29700 PyObject *resultobj = 0;
29701 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29702 long arg2 ;
29703 int arg3 = (int) 0 ;
29704 wxListItem *result = 0 ;
29705 void *argp1 = 0 ;
29706 int res1 = 0 ;
29707 long val2 ;
29708 int ecode2 = 0 ;
29709 int val3 ;
29710 int ecode3 = 0 ;
29711 PyObject * obj0 = 0 ;
29712 PyObject * obj1 = 0 ;
29713 PyObject * obj2 = 0 ;
29714 char * kwnames[] = {
29715 (char *) "self",(char *) "itemId",(char *) "col", NULL
29716 };
29717
29718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29720 if (!SWIG_IsOK(res1)) {
29721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29722 }
29723 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29724 ecode2 = SWIG_AsVal_long(obj1, &val2);
29725 if (!SWIG_IsOK(ecode2)) {
29726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29727 }
29728 arg2 = static_cast< long >(val2);
29729 if (obj2) {
29730 ecode3 = SWIG_AsVal_int(obj2, &val3);
29731 if (!SWIG_IsOK(ecode3)) {
29732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29733 }
29734 arg3 = static_cast< int >(val3);
29735 }
29736 {
29737 PyThreadState* __tstate = wxPyBeginAllowThreads();
29738 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29739 wxPyEndAllowThreads(__tstate);
29740 if (PyErr_Occurred()) SWIG_fail;
29741 }
29742 {
29743 resultobj = wxPyMake_wxObject(result, 0);
29744 }
29745 return resultobj;
29746 fail:
29747 return NULL;
29748 }
29749
29750
29751 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29752 PyObject *resultobj = 0;
29753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29754 wxListItem *arg2 = 0 ;
29755 bool result;
29756 void *argp1 = 0 ;
29757 int res1 = 0 ;
29758 void *argp2 = 0 ;
29759 int res2 = 0 ;
29760 PyObject * obj0 = 0 ;
29761 PyObject * obj1 = 0 ;
29762 char * kwnames[] = {
29763 (char *) "self",(char *) "info", NULL
29764 };
29765
29766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29768 if (!SWIG_IsOK(res1)) {
29769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29770 }
29771 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29773 if (!SWIG_IsOK(res2)) {
29774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29775 }
29776 if (!argp2) {
29777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29778 }
29779 arg2 = reinterpret_cast< wxListItem * >(argp2);
29780 {
29781 PyThreadState* __tstate = wxPyBeginAllowThreads();
29782 result = (bool)(arg1)->SetItem(*arg2);
29783 wxPyEndAllowThreads(__tstate);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 {
29787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29788 }
29789 return resultobj;
29790 fail:
29791 return NULL;
29792 }
29793
29794
29795 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29796 PyObject *resultobj = 0;
29797 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29798 long arg2 ;
29799 int arg3 ;
29800 wxString *arg4 = 0 ;
29801 int arg5 = (int) -1 ;
29802 long result;
29803 void *argp1 = 0 ;
29804 int res1 = 0 ;
29805 long val2 ;
29806 int ecode2 = 0 ;
29807 int val3 ;
29808 int ecode3 = 0 ;
29809 bool temp4 = false ;
29810 int val5 ;
29811 int ecode5 = 0 ;
29812 PyObject * obj0 = 0 ;
29813 PyObject * obj1 = 0 ;
29814 PyObject * obj2 = 0 ;
29815 PyObject * obj3 = 0 ;
29816 PyObject * obj4 = 0 ;
29817 char * kwnames[] = {
29818 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29819 };
29820
29821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29823 if (!SWIG_IsOK(res1)) {
29824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29825 }
29826 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29827 ecode2 = SWIG_AsVal_long(obj1, &val2);
29828 if (!SWIG_IsOK(ecode2)) {
29829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29830 }
29831 arg2 = static_cast< long >(val2);
29832 ecode3 = SWIG_AsVal_int(obj2, &val3);
29833 if (!SWIG_IsOK(ecode3)) {
29834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29835 }
29836 arg3 = static_cast< int >(val3);
29837 {
29838 arg4 = wxString_in_helper(obj3);
29839 if (arg4 == NULL) SWIG_fail;
29840 temp4 = true;
29841 }
29842 if (obj4) {
29843 ecode5 = SWIG_AsVal_int(obj4, &val5);
29844 if (!SWIG_IsOK(ecode5)) {
29845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29846 }
29847 arg5 = static_cast< int >(val5);
29848 }
29849 {
29850 PyThreadState* __tstate = wxPyBeginAllowThreads();
29851 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29852 wxPyEndAllowThreads(__tstate);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 resultobj = SWIG_From_long(static_cast< long >(result));
29856 {
29857 if (temp4)
29858 delete arg4;
29859 }
29860 return resultobj;
29861 fail:
29862 {
29863 if (temp4)
29864 delete arg4;
29865 }
29866 return NULL;
29867 }
29868
29869
29870 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29871 PyObject *resultobj = 0;
29872 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29873 long arg2 ;
29874 long arg3 ;
29875 int result;
29876 void *argp1 = 0 ;
29877 int res1 = 0 ;
29878 long val2 ;
29879 int ecode2 = 0 ;
29880 long val3 ;
29881 int ecode3 = 0 ;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 char * kwnames[] = {
29886 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29887 };
29888
29889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29891 if (!SWIG_IsOK(res1)) {
29892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29893 }
29894 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29895 ecode2 = SWIG_AsVal_long(obj1, &val2);
29896 if (!SWIG_IsOK(ecode2)) {
29897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29898 }
29899 arg2 = static_cast< long >(val2);
29900 ecode3 = SWIG_AsVal_long(obj2, &val3);
29901 if (!SWIG_IsOK(ecode3)) {
29902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29903 }
29904 arg3 = static_cast< long >(val3);
29905 {
29906 PyThreadState* __tstate = wxPyBeginAllowThreads();
29907 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29908 wxPyEndAllowThreads(__tstate);
29909 if (PyErr_Occurred()) SWIG_fail;
29910 }
29911 resultobj = SWIG_From_int(static_cast< int >(result));
29912 return resultobj;
29913 fail:
29914 return NULL;
29915 }
29916
29917
29918 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29919 PyObject *resultobj = 0;
29920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29921 long arg2 ;
29922 long arg3 ;
29923 long arg4 ;
29924 bool result;
29925 void *argp1 = 0 ;
29926 int res1 = 0 ;
29927 long val2 ;
29928 int ecode2 = 0 ;
29929 long val3 ;
29930 int ecode3 = 0 ;
29931 long val4 ;
29932 int ecode4 = 0 ;
29933 PyObject * obj0 = 0 ;
29934 PyObject * obj1 = 0 ;
29935 PyObject * obj2 = 0 ;
29936 PyObject * obj3 = 0 ;
29937 char * kwnames[] = {
29938 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29939 };
29940
29941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29943 if (!SWIG_IsOK(res1)) {
29944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29945 }
29946 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29947 ecode2 = SWIG_AsVal_long(obj1, &val2);
29948 if (!SWIG_IsOK(ecode2)) {
29949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29950 }
29951 arg2 = static_cast< long >(val2);
29952 ecode3 = SWIG_AsVal_long(obj2, &val3);
29953 if (!SWIG_IsOK(ecode3)) {
29954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29955 }
29956 arg3 = static_cast< long >(val3);
29957 ecode4 = SWIG_AsVal_long(obj3, &val4);
29958 if (!SWIG_IsOK(ecode4)) {
29959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29960 }
29961 arg4 = static_cast< long >(val4);
29962 {
29963 PyThreadState* __tstate = wxPyBeginAllowThreads();
29964 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29965 wxPyEndAllowThreads(__tstate);
29966 if (PyErr_Occurred()) SWIG_fail;
29967 }
29968 {
29969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29970 }
29971 return resultobj;
29972 fail:
29973 return NULL;
29974 }
29975
29976
29977 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29978 PyObject *resultobj = 0;
29979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29980 long arg2 ;
29981 int arg3 ;
29982 int arg4 = (int) -1 ;
29983 bool result;
29984 void *argp1 = 0 ;
29985 int res1 = 0 ;
29986 long val2 ;
29987 int ecode2 = 0 ;
29988 int val3 ;
29989 int ecode3 = 0 ;
29990 int val4 ;
29991 int ecode4 = 0 ;
29992 PyObject * obj0 = 0 ;
29993 PyObject * obj1 = 0 ;
29994 PyObject * obj2 = 0 ;
29995 PyObject * obj3 = 0 ;
29996 char * kwnames[] = {
29997 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29998 };
29999
30000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30002 if (!SWIG_IsOK(res1)) {
30003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30004 }
30005 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30006 ecode2 = SWIG_AsVal_long(obj1, &val2);
30007 if (!SWIG_IsOK(ecode2)) {
30008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
30009 }
30010 arg2 = static_cast< long >(val2);
30011 ecode3 = SWIG_AsVal_int(obj2, &val3);
30012 if (!SWIG_IsOK(ecode3)) {
30013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
30014 }
30015 arg3 = static_cast< int >(val3);
30016 if (obj3) {
30017 ecode4 = SWIG_AsVal_int(obj3, &val4);
30018 if (!SWIG_IsOK(ecode4)) {
30019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
30020 }
30021 arg4 = static_cast< int >(val4);
30022 }
30023 {
30024 PyThreadState* __tstate = wxPyBeginAllowThreads();
30025 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
30026 wxPyEndAllowThreads(__tstate);
30027 if (PyErr_Occurred()) SWIG_fail;
30028 }
30029 {
30030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30031 }
30032 return resultobj;
30033 fail:
30034 return NULL;
30035 }
30036
30037
30038 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30039 PyObject *resultobj = 0;
30040 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30041 long arg2 ;
30042 long arg3 ;
30043 int arg4 ;
30044 bool result;
30045 void *argp1 = 0 ;
30046 int res1 = 0 ;
30047 long val2 ;
30048 int ecode2 = 0 ;
30049 long val3 ;
30050 int ecode3 = 0 ;
30051 int val4 ;
30052 int ecode4 = 0 ;
30053 PyObject * obj0 = 0 ;
30054 PyObject * obj1 = 0 ;
30055 PyObject * obj2 = 0 ;
30056 PyObject * obj3 = 0 ;
30057 char * kwnames[] = {
30058 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
30059 };
30060
30061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30063 if (!SWIG_IsOK(res1)) {
30064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30065 }
30066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30067 ecode2 = SWIG_AsVal_long(obj1, &val2);
30068 if (!SWIG_IsOK(ecode2)) {
30069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
30070 }
30071 arg2 = static_cast< long >(val2);
30072 ecode3 = SWIG_AsVal_long(obj2, &val3);
30073 if (!SWIG_IsOK(ecode3)) {
30074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
30075 }
30076 arg3 = static_cast< long >(val3);
30077 ecode4 = SWIG_AsVal_int(obj3, &val4);
30078 if (!SWIG_IsOK(ecode4)) {
30079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
30080 }
30081 arg4 = static_cast< int >(val4);
30082 {
30083 PyThreadState* __tstate = wxPyBeginAllowThreads();
30084 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
30085 wxPyEndAllowThreads(__tstate);
30086 if (PyErr_Occurred()) SWIG_fail;
30087 }
30088 {
30089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30090 }
30091 return resultobj;
30092 fail:
30093 return NULL;
30094 }
30095
30096
30097 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30098 PyObject *resultobj = 0;
30099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30100 long arg2 ;
30101 wxString result;
30102 void *argp1 = 0 ;
30103 int res1 = 0 ;
30104 long val2 ;
30105 int ecode2 = 0 ;
30106 PyObject * obj0 = 0 ;
30107 PyObject * obj1 = 0 ;
30108 char * kwnames[] = {
30109 (char *) "self",(char *) "item", NULL
30110 };
30111
30112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
30113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30114 if (!SWIG_IsOK(res1)) {
30115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30116 }
30117 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30118 ecode2 = SWIG_AsVal_long(obj1, &val2);
30119 if (!SWIG_IsOK(ecode2)) {
30120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
30121 }
30122 arg2 = static_cast< long >(val2);
30123 {
30124 PyThreadState* __tstate = wxPyBeginAllowThreads();
30125 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
30126 wxPyEndAllowThreads(__tstate);
30127 if (PyErr_Occurred()) SWIG_fail;
30128 }
30129 {
30130 #if wxUSE_UNICODE
30131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30132 #else
30133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30134 #endif
30135 }
30136 return resultobj;
30137 fail:
30138 return NULL;
30139 }
30140
30141
30142 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30143 PyObject *resultobj = 0;
30144 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30145 long arg2 ;
30146 wxString *arg3 = 0 ;
30147 void *argp1 = 0 ;
30148 int res1 = 0 ;
30149 long val2 ;
30150 int ecode2 = 0 ;
30151 bool temp3 = false ;
30152 PyObject * obj0 = 0 ;
30153 PyObject * obj1 = 0 ;
30154 PyObject * obj2 = 0 ;
30155 char * kwnames[] = {
30156 (char *) "self",(char *) "item",(char *) "str", NULL
30157 };
30158
30159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30161 if (!SWIG_IsOK(res1)) {
30162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30163 }
30164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30165 ecode2 = SWIG_AsVal_long(obj1, &val2);
30166 if (!SWIG_IsOK(ecode2)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
30168 }
30169 arg2 = static_cast< long >(val2);
30170 {
30171 arg3 = wxString_in_helper(obj2);
30172 if (arg3 == NULL) SWIG_fail;
30173 temp3 = true;
30174 }
30175 {
30176 PyThreadState* __tstate = wxPyBeginAllowThreads();
30177 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 resultobj = SWIG_Py_Void();
30182 {
30183 if (temp3)
30184 delete arg3;
30185 }
30186 return resultobj;
30187 fail:
30188 {
30189 if (temp3)
30190 delete arg3;
30191 }
30192 return NULL;
30193 }
30194
30195
30196 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30197 PyObject *resultobj = 0;
30198 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30199 long arg2 ;
30200 long result;
30201 void *argp1 = 0 ;
30202 int res1 = 0 ;
30203 long val2 ;
30204 int ecode2 = 0 ;
30205 PyObject * obj0 = 0 ;
30206 PyObject * obj1 = 0 ;
30207 char * kwnames[] = {
30208 (char *) "self",(char *) "item", NULL
30209 };
30210
30211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30213 if (!SWIG_IsOK(res1)) {
30214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30215 }
30216 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30217 ecode2 = SWIG_AsVal_long(obj1, &val2);
30218 if (!SWIG_IsOK(ecode2)) {
30219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30220 }
30221 arg2 = static_cast< long >(val2);
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30225 wxPyEndAllowThreads(__tstate);
30226 if (PyErr_Occurred()) SWIG_fail;
30227 }
30228 resultobj = SWIG_From_long(static_cast< long >(result));
30229 return resultobj;
30230 fail:
30231 return NULL;
30232 }
30233
30234
30235 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30236 PyObject *resultobj = 0;
30237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30238 long arg2 ;
30239 long arg3 ;
30240 bool result;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 long val2 ;
30244 int ecode2 = 0 ;
30245 long val3 ;
30246 int ecode3 = 0 ;
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 PyObject * obj2 = 0 ;
30250 char * kwnames[] = {
30251 (char *) "self",(char *) "item",(char *) "data", NULL
30252 };
30253
30254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30256 if (!SWIG_IsOK(res1)) {
30257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30258 }
30259 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30260 ecode2 = SWIG_AsVal_long(obj1, &val2);
30261 if (!SWIG_IsOK(ecode2)) {
30262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30263 }
30264 arg2 = static_cast< long >(val2);
30265 ecode3 = SWIG_AsVal_long(obj2, &val3);
30266 if (!SWIG_IsOK(ecode3)) {
30267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30268 }
30269 arg3 = static_cast< long >(val3);
30270 {
30271 PyThreadState* __tstate = wxPyBeginAllowThreads();
30272 result = (bool)(arg1)->SetItemData(arg2,arg3);
30273 wxPyEndAllowThreads(__tstate);
30274 if (PyErr_Occurred()) SWIG_fail;
30275 }
30276 {
30277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30278 }
30279 return resultobj;
30280 fail:
30281 return NULL;
30282 }
30283
30284
30285 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30286 PyObject *resultobj = 0;
30287 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30288 long arg2 ;
30289 wxPoint result;
30290 void *argp1 = 0 ;
30291 int res1 = 0 ;
30292 long val2 ;
30293 int ecode2 = 0 ;
30294 PyObject * obj0 = 0 ;
30295 PyObject * obj1 = 0 ;
30296 char * kwnames[] = {
30297 (char *) "self",(char *) "item", NULL
30298 };
30299
30300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30302 if (!SWIG_IsOK(res1)) {
30303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30304 }
30305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30306 ecode2 = SWIG_AsVal_long(obj1, &val2);
30307 if (!SWIG_IsOK(ecode2)) {
30308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30309 }
30310 arg2 = static_cast< long >(val2);
30311 {
30312 PyThreadState* __tstate = wxPyBeginAllowThreads();
30313 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30314 wxPyEndAllowThreads(__tstate);
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
30317 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30318 return resultobj;
30319 fail:
30320 return NULL;
30321 }
30322
30323
30324 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30325 PyObject *resultobj = 0;
30326 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30327 long arg2 ;
30328 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30329 wxRect result;
30330 void *argp1 = 0 ;
30331 int res1 = 0 ;
30332 long val2 ;
30333 int ecode2 = 0 ;
30334 int val3 ;
30335 int ecode3 = 0 ;
30336 PyObject * obj0 = 0 ;
30337 PyObject * obj1 = 0 ;
30338 PyObject * obj2 = 0 ;
30339 char * kwnames[] = {
30340 (char *) "self",(char *) "item",(char *) "code", NULL
30341 };
30342
30343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30345 if (!SWIG_IsOK(res1)) {
30346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30347 }
30348 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30349 ecode2 = SWIG_AsVal_long(obj1, &val2);
30350 if (!SWIG_IsOK(ecode2)) {
30351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30352 }
30353 arg2 = static_cast< long >(val2);
30354 if (obj2) {
30355 ecode3 = SWIG_AsVal_int(obj2, &val3);
30356 if (!SWIG_IsOK(ecode3)) {
30357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30358 }
30359 arg3 = static_cast< int >(val3);
30360 }
30361 {
30362 PyThreadState* __tstate = wxPyBeginAllowThreads();
30363 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30364 wxPyEndAllowThreads(__tstate);
30365 if (PyErr_Occurred()) SWIG_fail;
30366 }
30367 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30368 return resultobj;
30369 fail:
30370 return NULL;
30371 }
30372
30373
30374 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30375 PyObject *resultobj = 0;
30376 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30377 long arg2 ;
30378 wxPoint *arg3 = 0 ;
30379 bool result;
30380 void *argp1 = 0 ;
30381 int res1 = 0 ;
30382 long val2 ;
30383 int ecode2 = 0 ;
30384 wxPoint temp3 ;
30385 PyObject * obj0 = 0 ;
30386 PyObject * obj1 = 0 ;
30387 PyObject * obj2 = 0 ;
30388 char * kwnames[] = {
30389 (char *) "self",(char *) "item",(char *) "pos", NULL
30390 };
30391
30392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30394 if (!SWIG_IsOK(res1)) {
30395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30396 }
30397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30398 ecode2 = SWIG_AsVal_long(obj1, &val2);
30399 if (!SWIG_IsOK(ecode2)) {
30400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30401 }
30402 arg2 = static_cast< long >(val2);
30403 {
30404 arg3 = &temp3;
30405 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30406 }
30407 {
30408 PyThreadState* __tstate = wxPyBeginAllowThreads();
30409 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30410 wxPyEndAllowThreads(__tstate);
30411 if (PyErr_Occurred()) SWIG_fail;
30412 }
30413 {
30414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30415 }
30416 return resultobj;
30417 fail:
30418 return NULL;
30419 }
30420
30421
30422 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30423 PyObject *resultobj = 0;
30424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30425 int result;
30426 void *argp1 = 0 ;
30427 int res1 = 0 ;
30428 PyObject *swig_obj[1] ;
30429
30430 if (!args) SWIG_fail;
30431 swig_obj[0] = args;
30432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30433 if (!SWIG_IsOK(res1)) {
30434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30435 }
30436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30437 {
30438 PyThreadState* __tstate = wxPyBeginAllowThreads();
30439 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30440 wxPyEndAllowThreads(__tstate);
30441 if (PyErr_Occurred()) SWIG_fail;
30442 }
30443 resultobj = SWIG_From_int(static_cast< int >(result));
30444 return resultobj;
30445 fail:
30446 return NULL;
30447 }
30448
30449
30450 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30451 PyObject *resultobj = 0;
30452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30453 int result;
30454 void *argp1 = 0 ;
30455 int res1 = 0 ;
30456 PyObject *swig_obj[1] ;
30457
30458 if (!args) SWIG_fail;
30459 swig_obj[0] = args;
30460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30461 if (!SWIG_IsOK(res1)) {
30462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30463 }
30464 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30465 {
30466 PyThreadState* __tstate = wxPyBeginAllowThreads();
30467 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30468 wxPyEndAllowThreads(__tstate);
30469 if (PyErr_Occurred()) SWIG_fail;
30470 }
30471 resultobj = SWIG_From_int(static_cast< int >(result));
30472 return resultobj;
30473 fail:
30474 return NULL;
30475 }
30476
30477
30478 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30479 PyObject *resultobj = 0;
30480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30481 wxSize result;
30482 void *argp1 = 0 ;
30483 int res1 = 0 ;
30484 PyObject *swig_obj[1] ;
30485
30486 if (!args) SWIG_fail;
30487 swig_obj[0] = args;
30488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30489 if (!SWIG_IsOK(res1)) {
30490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30491 }
30492 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30493 {
30494 PyThreadState* __tstate = wxPyBeginAllowThreads();
30495 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30496 wxPyEndAllowThreads(__tstate);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30500 return resultobj;
30501 fail:
30502 return NULL;
30503 }
30504
30505
30506 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30507 PyObject *resultobj = 0;
30508 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30509 int arg2 ;
30510 bool arg3 = (bool) false ;
30511 void *argp1 = 0 ;
30512 int res1 = 0 ;
30513 int val2 ;
30514 int ecode2 = 0 ;
30515 bool val3 ;
30516 int ecode3 = 0 ;
30517 PyObject * obj0 = 0 ;
30518 PyObject * obj1 = 0 ;
30519 PyObject * obj2 = 0 ;
30520 char * kwnames[] = {
30521 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30522 };
30523
30524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30526 if (!SWIG_IsOK(res1)) {
30527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30528 }
30529 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30530 ecode2 = SWIG_AsVal_int(obj1, &val2);
30531 if (!SWIG_IsOK(ecode2)) {
30532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30533 }
30534 arg2 = static_cast< int >(val2);
30535 if (obj2) {
30536 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30537 if (!SWIG_IsOK(ecode3)) {
30538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30539 }
30540 arg3 = static_cast< bool >(val3);
30541 }
30542 {
30543 PyThreadState* __tstate = wxPyBeginAllowThreads();
30544 (arg1)->SetItemSpacing(arg2,arg3);
30545 wxPyEndAllowThreads(__tstate);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 resultobj = SWIG_Py_Void();
30549 return resultobj;
30550 fail:
30551 return NULL;
30552 }
30553
30554
30555 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30556 PyObject *resultobj = 0;
30557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30558 int result;
30559 void *argp1 = 0 ;
30560 int res1 = 0 ;
30561 PyObject *swig_obj[1] ;
30562
30563 if (!args) SWIG_fail;
30564 swig_obj[0] = args;
30565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30566 if (!SWIG_IsOK(res1)) {
30567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30568 }
30569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30570 {
30571 PyThreadState* __tstate = wxPyBeginAllowThreads();
30572 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30573 wxPyEndAllowThreads(__tstate);
30574 if (PyErr_Occurred()) SWIG_fail;
30575 }
30576 resultobj = SWIG_From_int(static_cast< int >(result));
30577 return resultobj;
30578 fail:
30579 return NULL;
30580 }
30581
30582
30583 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30584 PyObject *resultobj = 0;
30585 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30586 wxColour result;
30587 void *argp1 = 0 ;
30588 int res1 = 0 ;
30589 PyObject *swig_obj[1] ;
30590
30591 if (!args) SWIG_fail;
30592 swig_obj[0] = args;
30593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30596 }
30597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30598 {
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30601 wxPyEndAllowThreads(__tstate);
30602 if (PyErr_Occurred()) SWIG_fail;
30603 }
30604 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30605 return resultobj;
30606 fail:
30607 return NULL;
30608 }
30609
30610
30611 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30612 PyObject *resultobj = 0;
30613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30614 wxColour *arg2 = 0 ;
30615 void *argp1 = 0 ;
30616 int res1 = 0 ;
30617 wxColour temp2 ;
30618 PyObject * obj0 = 0 ;
30619 PyObject * obj1 = 0 ;
30620 char * kwnames[] = {
30621 (char *) "self",(char *) "col", NULL
30622 };
30623
30624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30626 if (!SWIG_IsOK(res1)) {
30627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30628 }
30629 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30630 {
30631 arg2 = &temp2;
30632 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30633 }
30634 {
30635 PyThreadState* __tstate = wxPyBeginAllowThreads();
30636 (arg1)->SetTextColour((wxColour const &)*arg2);
30637 wxPyEndAllowThreads(__tstate);
30638 if (PyErr_Occurred()) SWIG_fail;
30639 }
30640 resultobj = SWIG_Py_Void();
30641 return resultobj;
30642 fail:
30643 return NULL;
30644 }
30645
30646
30647 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30648 PyObject *resultobj = 0;
30649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30650 long result;
30651 void *argp1 = 0 ;
30652 int res1 = 0 ;
30653 PyObject *swig_obj[1] ;
30654
30655 if (!args) SWIG_fail;
30656 swig_obj[0] = args;
30657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30658 if (!SWIG_IsOK(res1)) {
30659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30660 }
30661 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30662 {
30663 PyThreadState* __tstate = wxPyBeginAllowThreads();
30664 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30665 wxPyEndAllowThreads(__tstate);
30666 if (PyErr_Occurred()) SWIG_fail;
30667 }
30668 resultobj = SWIG_From_long(static_cast< long >(result));
30669 return resultobj;
30670 fail:
30671 return NULL;
30672 }
30673
30674
30675 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30676 PyObject *resultobj = 0;
30677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30678 long arg2 ;
30679 bool arg3 = (bool) true ;
30680 void *argp1 = 0 ;
30681 int res1 = 0 ;
30682 long val2 ;
30683 int ecode2 = 0 ;
30684 bool val3 ;
30685 int ecode3 = 0 ;
30686 PyObject * obj0 = 0 ;
30687 PyObject * obj1 = 0 ;
30688 PyObject * obj2 = 0 ;
30689 char * kwnames[] = {
30690 (char *) "self",(char *) "style",(char *) "add", NULL
30691 };
30692
30693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30695 if (!SWIG_IsOK(res1)) {
30696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30697 }
30698 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30699 ecode2 = SWIG_AsVal_long(obj1, &val2);
30700 if (!SWIG_IsOK(ecode2)) {
30701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30702 }
30703 arg2 = static_cast< long >(val2);
30704 if (obj2) {
30705 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30706 if (!SWIG_IsOK(ecode3)) {
30707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30708 }
30709 arg3 = static_cast< bool >(val3);
30710 }
30711 {
30712 PyThreadState* __tstate = wxPyBeginAllowThreads();
30713 (arg1)->SetSingleStyle(arg2,arg3);
30714 wxPyEndAllowThreads(__tstate);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
30717 resultobj = SWIG_Py_Void();
30718 return resultobj;
30719 fail:
30720 return NULL;
30721 }
30722
30723
30724 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30725 PyObject *resultobj = 0;
30726 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30727 long arg2 ;
30728 int arg3 = (int) wxLIST_NEXT_ALL ;
30729 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30730 long result;
30731 void *argp1 = 0 ;
30732 int res1 = 0 ;
30733 long val2 ;
30734 int ecode2 = 0 ;
30735 int val3 ;
30736 int ecode3 = 0 ;
30737 int val4 ;
30738 int ecode4 = 0 ;
30739 PyObject * obj0 = 0 ;
30740 PyObject * obj1 = 0 ;
30741 PyObject * obj2 = 0 ;
30742 PyObject * obj3 = 0 ;
30743 char * kwnames[] = {
30744 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30745 };
30746
30747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30749 if (!SWIG_IsOK(res1)) {
30750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30751 }
30752 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30753 ecode2 = SWIG_AsVal_long(obj1, &val2);
30754 if (!SWIG_IsOK(ecode2)) {
30755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30756 }
30757 arg2 = static_cast< long >(val2);
30758 if (obj2) {
30759 ecode3 = SWIG_AsVal_int(obj2, &val3);
30760 if (!SWIG_IsOK(ecode3)) {
30761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30762 }
30763 arg3 = static_cast< int >(val3);
30764 }
30765 if (obj3) {
30766 ecode4 = SWIG_AsVal_int(obj3, &val4);
30767 if (!SWIG_IsOK(ecode4)) {
30768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30769 }
30770 arg4 = static_cast< int >(val4);
30771 }
30772 {
30773 PyThreadState* __tstate = wxPyBeginAllowThreads();
30774 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30775 wxPyEndAllowThreads(__tstate);
30776 if (PyErr_Occurred()) SWIG_fail;
30777 }
30778 resultobj = SWIG_From_long(static_cast< long >(result));
30779 return resultobj;
30780 fail:
30781 return NULL;
30782 }
30783
30784
30785 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30786 PyObject *resultobj = 0;
30787 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30788 int arg2 ;
30789 wxImageList *result = 0 ;
30790 void *argp1 = 0 ;
30791 int res1 = 0 ;
30792 int val2 ;
30793 int ecode2 = 0 ;
30794 PyObject * obj0 = 0 ;
30795 PyObject * obj1 = 0 ;
30796 char * kwnames[] = {
30797 (char *) "self",(char *) "which", NULL
30798 };
30799
30800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) 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_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30804 }
30805 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30806 ecode2 = SWIG_AsVal_int(obj1, &val2);
30807 if (!SWIG_IsOK(ecode2)) {
30808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30809 }
30810 arg2 = static_cast< int >(val2);
30811 {
30812 PyThreadState* __tstate = wxPyBeginAllowThreads();
30813 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30814 wxPyEndAllowThreads(__tstate);
30815 if (PyErr_Occurred()) SWIG_fail;
30816 }
30817 {
30818 resultobj = wxPyMake_wxObject(result, (bool)0);
30819 }
30820 return resultobj;
30821 fail:
30822 return NULL;
30823 }
30824
30825
30826 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30827 PyObject *resultobj = 0;
30828 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30829 wxImageList *arg2 = (wxImageList *) 0 ;
30830 int arg3 ;
30831 void *argp1 = 0 ;
30832 int res1 = 0 ;
30833 void *argp2 = 0 ;
30834 int res2 = 0 ;
30835 int val3 ;
30836 int ecode3 = 0 ;
30837 PyObject * obj0 = 0 ;
30838 PyObject * obj1 = 0 ;
30839 PyObject * obj2 = 0 ;
30840 char * kwnames[] = {
30841 (char *) "self",(char *) "imageList",(char *) "which", NULL
30842 };
30843
30844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) 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_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30848 }
30849 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30851 if (!SWIG_IsOK(res2)) {
30852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30853 }
30854 arg2 = reinterpret_cast< wxImageList * >(argp2);
30855 ecode3 = SWIG_AsVal_int(obj2, &val3);
30856 if (!SWIG_IsOK(ecode3)) {
30857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30858 }
30859 arg3 = static_cast< int >(val3);
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 (arg1)->SetImageList(arg2,arg3);
30863 wxPyEndAllowThreads(__tstate);
30864 if (PyErr_Occurred()) SWIG_fail;
30865 }
30866 resultobj = SWIG_Py_Void();
30867 return resultobj;
30868 fail:
30869 return NULL;
30870 }
30871
30872
30873 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30874 PyObject *resultobj = 0;
30875 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30876 wxImageList *arg2 = (wxImageList *) 0 ;
30877 int arg3 ;
30878 void *argp1 = 0 ;
30879 int res1 = 0 ;
30880 int res2 = 0 ;
30881 int val3 ;
30882 int ecode3 = 0 ;
30883 PyObject * obj0 = 0 ;
30884 PyObject * obj1 = 0 ;
30885 PyObject * obj2 = 0 ;
30886 char * kwnames[] = {
30887 (char *) "self",(char *) "imageList",(char *) "which", NULL
30888 };
30889
30890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30892 if (!SWIG_IsOK(res1)) {
30893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30894 }
30895 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30896 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30897 if (!SWIG_IsOK(res2)) {
30898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30899 }
30900 ecode3 = SWIG_AsVal_int(obj2, &val3);
30901 if (!SWIG_IsOK(ecode3)) {
30902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30903 }
30904 arg3 = static_cast< int >(val3);
30905 {
30906 PyThreadState* __tstate = wxPyBeginAllowThreads();
30907 (arg1)->AssignImageList(arg2,arg3);
30908 wxPyEndAllowThreads(__tstate);
30909 if (PyErr_Occurred()) SWIG_fail;
30910 }
30911 resultobj = SWIG_Py_Void();
30912 return resultobj;
30913 fail:
30914 return NULL;
30915 }
30916
30917
30918 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30919 PyObject *resultobj = 0;
30920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30921 bool result;
30922 void *argp1 = 0 ;
30923 int res1 = 0 ;
30924 PyObject *swig_obj[1] ;
30925
30926 if (!args) SWIG_fail;
30927 swig_obj[0] = args;
30928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30929 if (!SWIG_IsOK(res1)) {
30930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30931 }
30932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30933 {
30934 PyThreadState* __tstate = wxPyBeginAllowThreads();
30935 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30936 wxPyEndAllowThreads(__tstate);
30937 if (PyErr_Occurred()) SWIG_fail;
30938 }
30939 {
30940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30941 }
30942 return resultobj;
30943 fail:
30944 return NULL;
30945 }
30946
30947
30948 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30949 PyObject *resultobj = 0;
30950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30951 bool result;
30952 void *argp1 = 0 ;
30953 int res1 = 0 ;
30954 PyObject *swig_obj[1] ;
30955
30956 if (!args) SWIG_fail;
30957 swig_obj[0] = args;
30958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30959 if (!SWIG_IsOK(res1)) {
30960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30961 }
30962 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30963 {
30964 PyThreadState* __tstate = wxPyBeginAllowThreads();
30965 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 {
30970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30971 }
30972 return resultobj;
30973 fail:
30974 return NULL;
30975 }
30976
30977
30978 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30979 PyObject *resultobj = 0;
30980 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30981 long arg2 ;
30982 void *argp1 = 0 ;
30983 int res1 = 0 ;
30984 long val2 ;
30985 int ecode2 = 0 ;
30986 PyObject * obj0 = 0 ;
30987 PyObject * obj1 = 0 ;
30988 char * kwnames[] = {
30989 (char *) "self",(char *) "item", NULL
30990 };
30991
30992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30994 if (!SWIG_IsOK(res1)) {
30995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30996 }
30997 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30998 ecode2 = SWIG_AsVal_long(obj1, &val2);
30999 if (!SWIG_IsOK(ecode2)) {
31000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
31001 }
31002 arg2 = static_cast< long >(val2);
31003 {
31004 PyThreadState* __tstate = wxPyBeginAllowThreads();
31005 (arg1)->RefreshItem(arg2);
31006 wxPyEndAllowThreads(__tstate);
31007 if (PyErr_Occurred()) SWIG_fail;
31008 }
31009 resultobj = SWIG_Py_Void();
31010 return resultobj;
31011 fail:
31012 return NULL;
31013 }
31014
31015
31016 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31017 PyObject *resultobj = 0;
31018 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31019 long arg2 ;
31020 long arg3 ;
31021 void *argp1 = 0 ;
31022 int res1 = 0 ;
31023 long val2 ;
31024 int ecode2 = 0 ;
31025 long val3 ;
31026 int ecode3 = 0 ;
31027 PyObject * obj0 = 0 ;
31028 PyObject * obj1 = 0 ;
31029 PyObject * obj2 = 0 ;
31030 char * kwnames[] = {
31031 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
31032 };
31033
31034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31036 if (!SWIG_IsOK(res1)) {
31037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31038 }
31039 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31040 ecode2 = SWIG_AsVal_long(obj1, &val2);
31041 if (!SWIG_IsOK(ecode2)) {
31042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
31043 }
31044 arg2 = static_cast< long >(val2);
31045 ecode3 = SWIG_AsVal_long(obj2, &val3);
31046 if (!SWIG_IsOK(ecode3)) {
31047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
31048 }
31049 arg3 = static_cast< long >(val3);
31050 {
31051 PyThreadState* __tstate = wxPyBeginAllowThreads();
31052 (arg1)->RefreshItems(arg2,arg3);
31053 wxPyEndAllowThreads(__tstate);
31054 if (PyErr_Occurred()) SWIG_fail;
31055 }
31056 resultobj = SWIG_Py_Void();
31057 return resultobj;
31058 fail:
31059 return NULL;
31060 }
31061
31062
31063 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31064 PyObject *resultobj = 0;
31065 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31066 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
31067 bool result;
31068 void *argp1 = 0 ;
31069 int res1 = 0 ;
31070 int val2 ;
31071 int ecode2 = 0 ;
31072 PyObject * obj0 = 0 ;
31073 PyObject * obj1 = 0 ;
31074 char * kwnames[] = {
31075 (char *) "self",(char *) "flag", NULL
31076 };
31077
31078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
31079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31080 if (!SWIG_IsOK(res1)) {
31081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31082 }
31083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31084 if (obj1) {
31085 ecode2 = SWIG_AsVal_int(obj1, &val2);
31086 if (!SWIG_IsOK(ecode2)) {
31087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
31088 }
31089 arg2 = static_cast< int >(val2);
31090 }
31091 {
31092 PyThreadState* __tstate = wxPyBeginAllowThreads();
31093 result = (bool)(arg1)->Arrange(arg2);
31094 wxPyEndAllowThreads(__tstate);
31095 if (PyErr_Occurred()) SWIG_fail;
31096 }
31097 {
31098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31099 }
31100 return resultobj;
31101 fail:
31102 return NULL;
31103 }
31104
31105
31106 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31107 PyObject *resultobj = 0;
31108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31109 long arg2 ;
31110 bool result;
31111 void *argp1 = 0 ;
31112 int res1 = 0 ;
31113 long val2 ;
31114 int ecode2 = 0 ;
31115 PyObject * obj0 = 0 ;
31116 PyObject * obj1 = 0 ;
31117 char * kwnames[] = {
31118 (char *) "self",(char *) "item", NULL
31119 };
31120
31121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
31122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31123 if (!SWIG_IsOK(res1)) {
31124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31125 }
31126 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31127 ecode2 = SWIG_AsVal_long(obj1, &val2);
31128 if (!SWIG_IsOK(ecode2)) {
31129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
31130 }
31131 arg2 = static_cast< long >(val2);
31132 {
31133 PyThreadState* __tstate = wxPyBeginAllowThreads();
31134 result = (bool)(arg1)->DeleteItem(arg2);
31135 wxPyEndAllowThreads(__tstate);
31136 if (PyErr_Occurred()) SWIG_fail;
31137 }
31138 {
31139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31140 }
31141 return resultobj;
31142 fail:
31143 return NULL;
31144 }
31145
31146
31147 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31148 PyObject *resultobj = 0;
31149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31150 bool result;
31151 void *argp1 = 0 ;
31152 int res1 = 0 ;
31153 PyObject *swig_obj[1] ;
31154
31155 if (!args) SWIG_fail;
31156 swig_obj[0] = args;
31157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31158 if (!SWIG_IsOK(res1)) {
31159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31160 }
31161 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31162 {
31163 PyThreadState* __tstate = wxPyBeginAllowThreads();
31164 result = (bool)(arg1)->DeleteAllItems();
31165 wxPyEndAllowThreads(__tstate);
31166 if (PyErr_Occurred()) SWIG_fail;
31167 }
31168 {
31169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31170 }
31171 return resultobj;
31172 fail:
31173 return NULL;
31174 }
31175
31176
31177 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31178 PyObject *resultobj = 0;
31179 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31180 int arg2 ;
31181 bool result;
31182 void *argp1 = 0 ;
31183 int res1 = 0 ;
31184 int val2 ;
31185 int ecode2 = 0 ;
31186 PyObject * obj0 = 0 ;
31187 PyObject * obj1 = 0 ;
31188 char * kwnames[] = {
31189 (char *) "self",(char *) "col", NULL
31190 };
31191
31192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
31193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31196 }
31197 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31198 ecode2 = SWIG_AsVal_int(obj1, &val2);
31199 if (!SWIG_IsOK(ecode2)) {
31200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
31201 }
31202 arg2 = static_cast< int >(val2);
31203 {
31204 PyThreadState* __tstate = wxPyBeginAllowThreads();
31205 result = (bool)(arg1)->DeleteColumn(arg2);
31206 wxPyEndAllowThreads(__tstate);
31207 if (PyErr_Occurred()) SWIG_fail;
31208 }
31209 {
31210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31211 }
31212 return resultobj;
31213 fail:
31214 return NULL;
31215 }
31216
31217
31218 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31219 PyObject *resultobj = 0;
31220 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31221 bool result;
31222 void *argp1 = 0 ;
31223 int res1 = 0 ;
31224 PyObject *swig_obj[1] ;
31225
31226 if (!args) SWIG_fail;
31227 swig_obj[0] = args;
31228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31229 if (!SWIG_IsOK(res1)) {
31230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31231 }
31232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31233 {
31234 PyThreadState* __tstate = wxPyBeginAllowThreads();
31235 result = (bool)(arg1)->DeleteAllColumns();
31236 wxPyEndAllowThreads(__tstate);
31237 if (PyErr_Occurred()) SWIG_fail;
31238 }
31239 {
31240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31241 }
31242 return resultobj;
31243 fail:
31244 return NULL;
31245 }
31246
31247
31248 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31249 PyObject *resultobj = 0;
31250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31251 void *argp1 = 0 ;
31252 int res1 = 0 ;
31253 PyObject *swig_obj[1] ;
31254
31255 if (!args) SWIG_fail;
31256 swig_obj[0] = args;
31257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31258 if (!SWIG_IsOK(res1)) {
31259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31260 }
31261 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31262 {
31263 PyThreadState* __tstate = wxPyBeginAllowThreads();
31264 (arg1)->ClearAll();
31265 wxPyEndAllowThreads(__tstate);
31266 if (PyErr_Occurred()) SWIG_fail;
31267 }
31268 resultobj = SWIG_Py_Void();
31269 return resultobj;
31270 fail:
31271 return NULL;
31272 }
31273
31274
31275 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31276 PyObject *resultobj = 0;
31277 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31278 long arg2 ;
31279 void *argp1 = 0 ;
31280 int res1 = 0 ;
31281 long val2 ;
31282 int ecode2 = 0 ;
31283 PyObject * obj0 = 0 ;
31284 PyObject * obj1 = 0 ;
31285 char * kwnames[] = {
31286 (char *) "self",(char *) "item", NULL
31287 };
31288
31289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31291 if (!SWIG_IsOK(res1)) {
31292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31293 }
31294 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31295 ecode2 = SWIG_AsVal_long(obj1, &val2);
31296 if (!SWIG_IsOK(ecode2)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31298 }
31299 arg2 = static_cast< long >(val2);
31300 {
31301 PyThreadState* __tstate = wxPyBeginAllowThreads();
31302 (arg1)->EditLabel(arg2);
31303 wxPyEndAllowThreads(__tstate);
31304 if (PyErr_Occurred()) SWIG_fail;
31305 }
31306 resultobj = SWIG_Py_Void();
31307 return resultobj;
31308 fail:
31309 return NULL;
31310 }
31311
31312
31313 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31314 PyObject *resultobj = 0;
31315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31316 long arg2 ;
31317 bool result;
31318 void *argp1 = 0 ;
31319 int res1 = 0 ;
31320 long val2 ;
31321 int ecode2 = 0 ;
31322 PyObject * obj0 = 0 ;
31323 PyObject * obj1 = 0 ;
31324 char * kwnames[] = {
31325 (char *) "self",(char *) "item", NULL
31326 };
31327
31328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31330 if (!SWIG_IsOK(res1)) {
31331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31332 }
31333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31334 ecode2 = SWIG_AsVal_long(obj1, &val2);
31335 if (!SWIG_IsOK(ecode2)) {
31336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31337 }
31338 arg2 = static_cast< long >(val2);
31339 {
31340 PyThreadState* __tstate = wxPyBeginAllowThreads();
31341 result = (bool)(arg1)->EnsureVisible(arg2);
31342 wxPyEndAllowThreads(__tstate);
31343 if (PyErr_Occurred()) SWIG_fail;
31344 }
31345 {
31346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31347 }
31348 return resultobj;
31349 fail:
31350 return NULL;
31351 }
31352
31353
31354 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31355 PyObject *resultobj = 0;
31356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31357 long arg2 ;
31358 wxString *arg3 = 0 ;
31359 bool arg4 = (bool) false ;
31360 long result;
31361 void *argp1 = 0 ;
31362 int res1 = 0 ;
31363 long val2 ;
31364 int ecode2 = 0 ;
31365 bool temp3 = false ;
31366 bool val4 ;
31367 int ecode4 = 0 ;
31368 PyObject * obj0 = 0 ;
31369 PyObject * obj1 = 0 ;
31370 PyObject * obj2 = 0 ;
31371 PyObject * obj3 = 0 ;
31372 char * kwnames[] = {
31373 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31374 };
31375
31376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31378 if (!SWIG_IsOK(res1)) {
31379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31380 }
31381 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31382 ecode2 = SWIG_AsVal_long(obj1, &val2);
31383 if (!SWIG_IsOK(ecode2)) {
31384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31385 }
31386 arg2 = static_cast< long >(val2);
31387 {
31388 arg3 = wxString_in_helper(obj2);
31389 if (arg3 == NULL) SWIG_fail;
31390 temp3 = true;
31391 }
31392 if (obj3) {
31393 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31394 if (!SWIG_IsOK(ecode4)) {
31395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31396 }
31397 arg4 = static_cast< bool >(val4);
31398 }
31399 {
31400 PyThreadState* __tstate = wxPyBeginAllowThreads();
31401 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31402 wxPyEndAllowThreads(__tstate);
31403 if (PyErr_Occurred()) SWIG_fail;
31404 }
31405 resultobj = SWIG_From_long(static_cast< long >(result));
31406 {
31407 if (temp3)
31408 delete arg3;
31409 }
31410 return resultobj;
31411 fail:
31412 {
31413 if (temp3)
31414 delete arg3;
31415 }
31416 return NULL;
31417 }
31418
31419
31420 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31421 PyObject *resultobj = 0;
31422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31423 long arg2 ;
31424 long arg3 ;
31425 long result;
31426 void *argp1 = 0 ;
31427 int res1 = 0 ;
31428 long val2 ;
31429 int ecode2 = 0 ;
31430 long val3 ;
31431 int ecode3 = 0 ;
31432 PyObject * obj0 = 0 ;
31433 PyObject * obj1 = 0 ;
31434 PyObject * obj2 = 0 ;
31435 char * kwnames[] = {
31436 (char *) "self",(char *) "start",(char *) "data", NULL
31437 };
31438
31439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31441 if (!SWIG_IsOK(res1)) {
31442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31443 }
31444 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31445 ecode2 = SWIG_AsVal_long(obj1, &val2);
31446 if (!SWIG_IsOK(ecode2)) {
31447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31448 }
31449 arg2 = static_cast< long >(val2);
31450 ecode3 = SWIG_AsVal_long(obj2, &val3);
31451 if (!SWIG_IsOK(ecode3)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31453 }
31454 arg3 = static_cast< long >(val3);
31455 {
31456 PyThreadState* __tstate = wxPyBeginAllowThreads();
31457 result = (long)(arg1)->FindItem(arg2,arg3);
31458 wxPyEndAllowThreads(__tstate);
31459 if (PyErr_Occurred()) SWIG_fail;
31460 }
31461 resultobj = SWIG_From_long(static_cast< long >(result));
31462 return resultobj;
31463 fail:
31464 return NULL;
31465 }
31466
31467
31468 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31469 PyObject *resultobj = 0;
31470 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31471 long arg2 ;
31472 wxPoint *arg3 = 0 ;
31473 int arg4 ;
31474 long result;
31475 void *argp1 = 0 ;
31476 int res1 = 0 ;
31477 long val2 ;
31478 int ecode2 = 0 ;
31479 wxPoint temp3 ;
31480 int val4 ;
31481 int ecode4 = 0 ;
31482 PyObject * obj0 = 0 ;
31483 PyObject * obj1 = 0 ;
31484 PyObject * obj2 = 0 ;
31485 PyObject * obj3 = 0 ;
31486 char * kwnames[] = {
31487 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31488 };
31489
31490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31492 if (!SWIG_IsOK(res1)) {
31493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31494 }
31495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31496 ecode2 = SWIG_AsVal_long(obj1, &val2);
31497 if (!SWIG_IsOK(ecode2)) {
31498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31499 }
31500 arg2 = static_cast< long >(val2);
31501 {
31502 arg3 = &temp3;
31503 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31504 }
31505 ecode4 = SWIG_AsVal_int(obj3, &val4);
31506 if (!SWIG_IsOK(ecode4)) {
31507 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31508 }
31509 arg4 = static_cast< int >(val4);
31510 {
31511 PyThreadState* __tstate = wxPyBeginAllowThreads();
31512 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31513 wxPyEndAllowThreads(__tstate);
31514 if (PyErr_Occurred()) SWIG_fail;
31515 }
31516 resultobj = SWIG_From_long(static_cast< long >(result));
31517 return resultobj;
31518 fail:
31519 return NULL;
31520 }
31521
31522
31523 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31524 PyObject *resultobj = 0;
31525 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31526 wxPoint *arg2 = 0 ;
31527 int *arg3 = 0 ;
31528 long result;
31529 void *argp1 = 0 ;
31530 int res1 = 0 ;
31531 wxPoint temp2 ;
31532 int temp3 ;
31533 int res3 = SWIG_TMPOBJ ;
31534 PyObject * obj0 = 0 ;
31535 PyObject * obj1 = 0 ;
31536 char * kwnames[] = {
31537 (char *) "self",(char *) "point", NULL
31538 };
31539
31540 arg3 = &temp3;
31541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31543 if (!SWIG_IsOK(res1)) {
31544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31545 }
31546 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31547 {
31548 arg2 = &temp2;
31549 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31550 }
31551 {
31552 PyThreadState* __tstate = wxPyBeginAllowThreads();
31553 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31554 wxPyEndAllowThreads(__tstate);
31555 if (PyErr_Occurred()) SWIG_fail;
31556 }
31557 resultobj = SWIG_From_long(static_cast< long >(result));
31558 if (SWIG_IsTmpObj(res3)) {
31559 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31560 } else {
31561 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31562 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31563 }
31564 return resultobj;
31565 fail:
31566 return NULL;
31567 }
31568
31569
31570 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31571 PyObject *resultobj = 0;
31572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31573 wxPoint *arg2 = 0 ;
31574 int *arg3 = 0 ;
31575 long *arg4 = (long *) 0 ;
31576 long result;
31577 void *argp1 = 0 ;
31578 int res1 = 0 ;
31579 wxPoint temp2 ;
31580 int temp3 ;
31581 int res3 = SWIG_TMPOBJ ;
31582 long temp4 ;
31583 int res4 = SWIG_TMPOBJ ;
31584 PyObject * obj0 = 0 ;
31585 PyObject * obj1 = 0 ;
31586 char * kwnames[] = {
31587 (char *) "self",(char *) "point", NULL
31588 };
31589
31590 arg3 = &temp3;
31591 arg4 = &temp4;
31592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31594 if (!SWIG_IsOK(res1)) {
31595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31596 }
31597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31598 {
31599 arg2 = &temp2;
31600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31601 }
31602 {
31603 PyThreadState* __tstate = wxPyBeginAllowThreads();
31604 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 resultobj = SWIG_From_long(static_cast< long >(result));
31609 if (SWIG_IsTmpObj(res3)) {
31610 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31611 } else {
31612 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31614 }
31615 if (SWIG_IsTmpObj(res4)) {
31616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31617 } else {
31618 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31620 }
31621 return resultobj;
31622 fail:
31623 return NULL;
31624 }
31625
31626
31627 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31628 PyObject *resultobj = 0;
31629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31630 wxListItem *arg2 = 0 ;
31631 long result;
31632 void *argp1 = 0 ;
31633 int res1 = 0 ;
31634 void *argp2 = 0 ;
31635 int res2 = 0 ;
31636 PyObject * obj0 = 0 ;
31637 PyObject * obj1 = 0 ;
31638 char * kwnames[] = {
31639 (char *) "self",(char *) "info", NULL
31640 };
31641
31642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31644 if (!SWIG_IsOK(res1)) {
31645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31646 }
31647 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31649 if (!SWIG_IsOK(res2)) {
31650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31651 }
31652 if (!argp2) {
31653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31654 }
31655 arg2 = reinterpret_cast< wxListItem * >(argp2);
31656 {
31657 PyThreadState* __tstate = wxPyBeginAllowThreads();
31658 result = (long)(arg1)->InsertItem(*arg2);
31659 wxPyEndAllowThreads(__tstate);
31660 if (PyErr_Occurred()) SWIG_fail;
31661 }
31662 resultobj = SWIG_From_long(static_cast< long >(result));
31663 return resultobj;
31664 fail:
31665 return NULL;
31666 }
31667
31668
31669 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31670 PyObject *resultobj = 0;
31671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31672 long arg2 ;
31673 wxString *arg3 = 0 ;
31674 int arg4 = (int) -1 ;
31675 long result;
31676 void *argp1 = 0 ;
31677 int res1 = 0 ;
31678 long val2 ;
31679 int ecode2 = 0 ;
31680 bool temp3 = false ;
31681 int val4 ;
31682 int ecode4 = 0 ;
31683 PyObject * obj0 = 0 ;
31684 PyObject * obj1 = 0 ;
31685 PyObject * obj2 = 0 ;
31686 PyObject * obj3 = 0 ;
31687 char * kwnames[] = {
31688 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31689 };
31690
31691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31693 if (!SWIG_IsOK(res1)) {
31694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31695 }
31696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31697 ecode2 = SWIG_AsVal_long(obj1, &val2);
31698 if (!SWIG_IsOK(ecode2)) {
31699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31700 }
31701 arg2 = static_cast< long >(val2);
31702 {
31703 arg3 = wxString_in_helper(obj2);
31704 if (arg3 == NULL) SWIG_fail;
31705 temp3 = true;
31706 }
31707 if (obj3) {
31708 ecode4 = SWIG_AsVal_int(obj3, &val4);
31709 if (!SWIG_IsOK(ecode4)) {
31710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31711 }
31712 arg4 = static_cast< int >(val4);
31713 }
31714 {
31715 PyThreadState* __tstate = wxPyBeginAllowThreads();
31716 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31717 wxPyEndAllowThreads(__tstate);
31718 if (PyErr_Occurred()) SWIG_fail;
31719 }
31720 resultobj = SWIG_From_long(static_cast< long >(result));
31721 {
31722 if (temp3)
31723 delete arg3;
31724 }
31725 return resultobj;
31726 fail:
31727 {
31728 if (temp3)
31729 delete arg3;
31730 }
31731 return NULL;
31732 }
31733
31734
31735 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31736 PyObject *resultobj = 0;
31737 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31738 long arg2 ;
31739 int arg3 ;
31740 long result;
31741 void *argp1 = 0 ;
31742 int res1 = 0 ;
31743 long val2 ;
31744 int ecode2 = 0 ;
31745 int val3 ;
31746 int ecode3 = 0 ;
31747 PyObject * obj0 = 0 ;
31748 PyObject * obj1 = 0 ;
31749 PyObject * obj2 = 0 ;
31750 char * kwnames[] = {
31751 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31752 };
31753
31754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31756 if (!SWIG_IsOK(res1)) {
31757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31758 }
31759 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31760 ecode2 = SWIG_AsVal_long(obj1, &val2);
31761 if (!SWIG_IsOK(ecode2)) {
31762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31763 }
31764 arg2 = static_cast< long >(val2);
31765 ecode3 = SWIG_AsVal_int(obj2, &val3);
31766 if (!SWIG_IsOK(ecode3)) {
31767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31768 }
31769 arg3 = static_cast< int >(val3);
31770 {
31771 PyThreadState* __tstate = wxPyBeginAllowThreads();
31772 result = (long)(arg1)->InsertItem(arg2,arg3);
31773 wxPyEndAllowThreads(__tstate);
31774 if (PyErr_Occurred()) SWIG_fail;
31775 }
31776 resultobj = SWIG_From_long(static_cast< long >(result));
31777 return resultobj;
31778 fail:
31779 return NULL;
31780 }
31781
31782
31783 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31784 PyObject *resultobj = 0;
31785 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31786 long arg2 ;
31787 wxString *arg3 = 0 ;
31788 int arg4 ;
31789 long result;
31790 void *argp1 = 0 ;
31791 int res1 = 0 ;
31792 long val2 ;
31793 int ecode2 = 0 ;
31794 bool temp3 = false ;
31795 int val4 ;
31796 int ecode4 = 0 ;
31797 PyObject * obj0 = 0 ;
31798 PyObject * obj1 = 0 ;
31799 PyObject * obj2 = 0 ;
31800 PyObject * obj3 = 0 ;
31801 char * kwnames[] = {
31802 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31803 };
31804
31805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31807 if (!SWIG_IsOK(res1)) {
31808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31809 }
31810 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31811 ecode2 = SWIG_AsVal_long(obj1, &val2);
31812 if (!SWIG_IsOK(ecode2)) {
31813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31814 }
31815 arg2 = static_cast< long >(val2);
31816 {
31817 arg3 = wxString_in_helper(obj2);
31818 if (arg3 == NULL) SWIG_fail;
31819 temp3 = true;
31820 }
31821 ecode4 = SWIG_AsVal_int(obj3, &val4);
31822 if (!SWIG_IsOK(ecode4)) {
31823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31824 }
31825 arg4 = static_cast< int >(val4);
31826 {
31827 PyThreadState* __tstate = wxPyBeginAllowThreads();
31828 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31829 wxPyEndAllowThreads(__tstate);
31830 if (PyErr_Occurred()) SWIG_fail;
31831 }
31832 resultobj = SWIG_From_long(static_cast< long >(result));
31833 {
31834 if (temp3)
31835 delete arg3;
31836 }
31837 return resultobj;
31838 fail:
31839 {
31840 if (temp3)
31841 delete arg3;
31842 }
31843 return NULL;
31844 }
31845
31846
31847 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31848 PyObject *resultobj = 0;
31849 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31850 long arg2 ;
31851 wxListItem *arg3 = 0 ;
31852 long result;
31853 void *argp1 = 0 ;
31854 int res1 = 0 ;
31855 long val2 ;
31856 int ecode2 = 0 ;
31857 void *argp3 = 0 ;
31858 int res3 = 0 ;
31859 PyObject * obj0 = 0 ;
31860 PyObject * obj1 = 0 ;
31861 PyObject * obj2 = 0 ;
31862 char * kwnames[] = {
31863 (char *) "self",(char *) "col",(char *) "info", NULL
31864 };
31865
31866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31868 if (!SWIG_IsOK(res1)) {
31869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31870 }
31871 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31872 ecode2 = SWIG_AsVal_long(obj1, &val2);
31873 if (!SWIG_IsOK(ecode2)) {
31874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31875 }
31876 arg2 = static_cast< long >(val2);
31877 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31878 if (!SWIG_IsOK(res3)) {
31879 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31880 }
31881 if (!argp3) {
31882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31883 }
31884 arg3 = reinterpret_cast< wxListItem * >(argp3);
31885 {
31886 PyThreadState* __tstate = wxPyBeginAllowThreads();
31887 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31888 wxPyEndAllowThreads(__tstate);
31889 if (PyErr_Occurred()) SWIG_fail;
31890 }
31891 resultobj = SWIG_From_long(static_cast< long >(result));
31892 return resultobj;
31893 fail:
31894 return NULL;
31895 }
31896
31897
31898 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31899 PyObject *resultobj = 0;
31900 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31901 long arg2 ;
31902 wxString *arg3 = 0 ;
31903 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31904 int arg5 = (int) -1 ;
31905 long result;
31906 void *argp1 = 0 ;
31907 int res1 = 0 ;
31908 long val2 ;
31909 int ecode2 = 0 ;
31910 bool temp3 = false ;
31911 int val4 ;
31912 int ecode4 = 0 ;
31913 int val5 ;
31914 int ecode5 = 0 ;
31915 PyObject * obj0 = 0 ;
31916 PyObject * obj1 = 0 ;
31917 PyObject * obj2 = 0 ;
31918 PyObject * obj3 = 0 ;
31919 PyObject * obj4 = 0 ;
31920 char * kwnames[] = {
31921 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31922 };
31923
31924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31926 if (!SWIG_IsOK(res1)) {
31927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31928 }
31929 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31930 ecode2 = SWIG_AsVal_long(obj1, &val2);
31931 if (!SWIG_IsOK(ecode2)) {
31932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31933 }
31934 arg2 = static_cast< long >(val2);
31935 {
31936 arg3 = wxString_in_helper(obj2);
31937 if (arg3 == NULL) SWIG_fail;
31938 temp3 = true;
31939 }
31940 if (obj3) {
31941 ecode4 = SWIG_AsVal_int(obj3, &val4);
31942 if (!SWIG_IsOK(ecode4)) {
31943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31944 }
31945 arg4 = static_cast< int >(val4);
31946 }
31947 if (obj4) {
31948 ecode5 = SWIG_AsVal_int(obj4, &val5);
31949 if (!SWIG_IsOK(ecode5)) {
31950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31951 }
31952 arg5 = static_cast< int >(val5);
31953 }
31954 {
31955 PyThreadState* __tstate = wxPyBeginAllowThreads();
31956 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 resultobj = SWIG_From_long(static_cast< long >(result));
31961 {
31962 if (temp3)
31963 delete arg3;
31964 }
31965 return resultobj;
31966 fail:
31967 {
31968 if (temp3)
31969 delete arg3;
31970 }
31971 return NULL;
31972 }
31973
31974
31975 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31976 PyObject *resultobj = 0;
31977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31978 long arg2 ;
31979 void *argp1 = 0 ;
31980 int res1 = 0 ;
31981 long val2 ;
31982 int ecode2 = 0 ;
31983 PyObject * obj0 = 0 ;
31984 PyObject * obj1 = 0 ;
31985 char * kwnames[] = {
31986 (char *) "self",(char *) "count", NULL
31987 };
31988
31989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31991 if (!SWIG_IsOK(res1)) {
31992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31993 }
31994 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31995 ecode2 = SWIG_AsVal_long(obj1, &val2);
31996 if (!SWIG_IsOK(ecode2)) {
31997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31998 }
31999 arg2 = static_cast< long >(val2);
32000 {
32001 PyThreadState* __tstate = wxPyBeginAllowThreads();
32002 (arg1)->SetItemCount(arg2);
32003 wxPyEndAllowThreads(__tstate);
32004 if (PyErr_Occurred()) SWIG_fail;
32005 }
32006 resultobj = SWIG_Py_Void();
32007 return resultobj;
32008 fail:
32009 return NULL;
32010 }
32011
32012
32013 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32014 PyObject *resultobj = 0;
32015 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32016 int arg2 ;
32017 int arg3 ;
32018 bool result;
32019 void *argp1 = 0 ;
32020 int res1 = 0 ;
32021 int val2 ;
32022 int ecode2 = 0 ;
32023 int val3 ;
32024 int ecode3 = 0 ;
32025 PyObject * obj0 = 0 ;
32026 PyObject * obj1 = 0 ;
32027 PyObject * obj2 = 0 ;
32028 char * kwnames[] = {
32029 (char *) "self",(char *) "dx",(char *) "dy", NULL
32030 };
32031
32032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32034 if (!SWIG_IsOK(res1)) {
32035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32036 }
32037 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32038 ecode2 = SWIG_AsVal_int(obj1, &val2);
32039 if (!SWIG_IsOK(ecode2)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
32041 }
32042 arg2 = static_cast< int >(val2);
32043 ecode3 = SWIG_AsVal_int(obj2, &val3);
32044 if (!SWIG_IsOK(ecode3)) {
32045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
32046 }
32047 arg3 = static_cast< int >(val3);
32048 {
32049 PyThreadState* __tstate = wxPyBeginAllowThreads();
32050 result = (bool)(arg1)->ScrollList(arg2,arg3);
32051 wxPyEndAllowThreads(__tstate);
32052 if (PyErr_Occurred()) SWIG_fail;
32053 }
32054 {
32055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32056 }
32057 return resultobj;
32058 fail:
32059 return NULL;
32060 }
32061
32062
32063 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32064 PyObject *resultobj = 0;
32065 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32066 long arg2 ;
32067 wxColour *arg3 = 0 ;
32068 void *argp1 = 0 ;
32069 int res1 = 0 ;
32070 long val2 ;
32071 int ecode2 = 0 ;
32072 wxColour temp3 ;
32073 PyObject * obj0 = 0 ;
32074 PyObject * obj1 = 0 ;
32075 PyObject * obj2 = 0 ;
32076 char * kwnames[] = {
32077 (char *) "self",(char *) "item",(char *) "col", NULL
32078 };
32079
32080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32082 if (!SWIG_IsOK(res1)) {
32083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32084 }
32085 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32086 ecode2 = SWIG_AsVal_long(obj1, &val2);
32087 if (!SWIG_IsOK(ecode2)) {
32088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32089 }
32090 arg2 = static_cast< long >(val2);
32091 {
32092 arg3 = &temp3;
32093 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32094 }
32095 {
32096 PyThreadState* __tstate = wxPyBeginAllowThreads();
32097 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
32098 wxPyEndAllowThreads(__tstate);
32099 if (PyErr_Occurred()) SWIG_fail;
32100 }
32101 resultobj = SWIG_Py_Void();
32102 return resultobj;
32103 fail:
32104 return NULL;
32105 }
32106
32107
32108 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32109 PyObject *resultobj = 0;
32110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32111 long arg2 ;
32112 wxColour result;
32113 void *argp1 = 0 ;
32114 int res1 = 0 ;
32115 long val2 ;
32116 int ecode2 = 0 ;
32117 PyObject * obj0 = 0 ;
32118 PyObject * obj1 = 0 ;
32119 char * kwnames[] = {
32120 (char *) "self",(char *) "item", NULL
32121 };
32122
32123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
32124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32125 if (!SWIG_IsOK(res1)) {
32126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32127 }
32128 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32129 ecode2 = SWIG_AsVal_long(obj1, &val2);
32130 if (!SWIG_IsOK(ecode2)) {
32131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32132 }
32133 arg2 = static_cast< long >(val2);
32134 {
32135 PyThreadState* __tstate = wxPyBeginAllowThreads();
32136 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
32137 wxPyEndAllowThreads(__tstate);
32138 if (PyErr_Occurred()) SWIG_fail;
32139 }
32140 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32141 return resultobj;
32142 fail:
32143 return NULL;
32144 }
32145
32146
32147 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32148 PyObject *resultobj = 0;
32149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32150 long arg2 ;
32151 wxColour *arg3 = 0 ;
32152 void *argp1 = 0 ;
32153 int res1 = 0 ;
32154 long val2 ;
32155 int ecode2 = 0 ;
32156 wxColour temp3 ;
32157 PyObject * obj0 = 0 ;
32158 PyObject * obj1 = 0 ;
32159 PyObject * obj2 = 0 ;
32160 char * kwnames[] = {
32161 (char *) "self",(char *) "item",(char *) "col", NULL
32162 };
32163
32164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32166 if (!SWIG_IsOK(res1)) {
32167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32168 }
32169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32170 ecode2 = SWIG_AsVal_long(obj1, &val2);
32171 if (!SWIG_IsOK(ecode2)) {
32172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32173 }
32174 arg2 = static_cast< long >(val2);
32175 {
32176 arg3 = &temp3;
32177 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32178 }
32179 {
32180 PyThreadState* __tstate = wxPyBeginAllowThreads();
32181 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
32182 wxPyEndAllowThreads(__tstate);
32183 if (PyErr_Occurred()) SWIG_fail;
32184 }
32185 resultobj = SWIG_Py_Void();
32186 return resultobj;
32187 fail:
32188 return NULL;
32189 }
32190
32191
32192 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32193 PyObject *resultobj = 0;
32194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32195 long arg2 ;
32196 wxColour result;
32197 void *argp1 = 0 ;
32198 int res1 = 0 ;
32199 long val2 ;
32200 int ecode2 = 0 ;
32201 PyObject * obj0 = 0 ;
32202 PyObject * obj1 = 0 ;
32203 char * kwnames[] = {
32204 (char *) "self",(char *) "item", NULL
32205 };
32206
32207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32209 if (!SWIG_IsOK(res1)) {
32210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32211 }
32212 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32213 ecode2 = SWIG_AsVal_long(obj1, &val2);
32214 if (!SWIG_IsOK(ecode2)) {
32215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32216 }
32217 arg2 = static_cast< long >(val2);
32218 {
32219 PyThreadState* __tstate = wxPyBeginAllowThreads();
32220 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32221 wxPyEndAllowThreads(__tstate);
32222 if (PyErr_Occurred()) SWIG_fail;
32223 }
32224 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32225 return resultobj;
32226 fail:
32227 return NULL;
32228 }
32229
32230
32231 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32232 PyObject *resultobj = 0;
32233 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32234 long arg2 ;
32235 wxFont *arg3 = 0 ;
32236 void *argp1 = 0 ;
32237 int res1 = 0 ;
32238 long val2 ;
32239 int ecode2 = 0 ;
32240 void *argp3 = 0 ;
32241 int res3 = 0 ;
32242 PyObject * obj0 = 0 ;
32243 PyObject * obj1 = 0 ;
32244 PyObject * obj2 = 0 ;
32245 char * kwnames[] = {
32246 (char *) "self",(char *) "item",(char *) "f", NULL
32247 };
32248
32249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32251 if (!SWIG_IsOK(res1)) {
32252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32253 }
32254 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32255 ecode2 = SWIG_AsVal_long(obj1, &val2);
32256 if (!SWIG_IsOK(ecode2)) {
32257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32258 }
32259 arg2 = static_cast< long >(val2);
32260 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32261 if (!SWIG_IsOK(res3)) {
32262 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32263 }
32264 if (!argp3) {
32265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32266 }
32267 arg3 = reinterpret_cast< wxFont * >(argp3);
32268 {
32269 PyThreadState* __tstate = wxPyBeginAllowThreads();
32270 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32271 wxPyEndAllowThreads(__tstate);
32272 if (PyErr_Occurred()) SWIG_fail;
32273 }
32274 resultobj = SWIG_Py_Void();
32275 return resultobj;
32276 fail:
32277 return NULL;
32278 }
32279
32280
32281 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32282 PyObject *resultobj = 0;
32283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32284 long arg2 ;
32285 wxFont result;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 long val2 ;
32289 int ecode2 = 0 ;
32290 PyObject * obj0 = 0 ;
32291 PyObject * obj1 = 0 ;
32292 char * kwnames[] = {
32293 (char *) "self",(char *) "item", NULL
32294 };
32295
32296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32298 if (!SWIG_IsOK(res1)) {
32299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32300 }
32301 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32302 ecode2 = SWIG_AsVal_long(obj1, &val2);
32303 if (!SWIG_IsOK(ecode2)) {
32304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32305 }
32306 arg2 = static_cast< long >(val2);
32307 {
32308 PyThreadState* __tstate = wxPyBeginAllowThreads();
32309 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32310 wxPyEndAllowThreads(__tstate);
32311 if (PyErr_Occurred()) SWIG_fail;
32312 }
32313 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32314 return resultobj;
32315 fail:
32316 return NULL;
32317 }
32318
32319
32320 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32321 PyObject *resultobj = 0;
32322 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32323 PyObject *arg2 = (PyObject *) 0 ;
32324 bool result;
32325 void *argp1 = 0 ;
32326 int res1 = 0 ;
32327 PyObject * obj0 = 0 ;
32328 PyObject * obj1 = 0 ;
32329 char * kwnames[] = {
32330 (char *) "self",(char *) "func", NULL
32331 };
32332
32333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32335 if (!SWIG_IsOK(res1)) {
32336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32337 }
32338 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32339 arg2 = obj1;
32340 {
32341 PyThreadState* __tstate = wxPyBeginAllowThreads();
32342 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32343 wxPyEndAllowThreads(__tstate);
32344 if (PyErr_Occurred()) SWIG_fail;
32345 }
32346 {
32347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32348 }
32349 return resultobj;
32350 fail:
32351 return NULL;
32352 }
32353
32354
32355 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32356 PyObject *resultobj = 0;
32357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32358 wxWindow *result = 0 ;
32359 void *argp1 = 0 ;
32360 int res1 = 0 ;
32361 PyObject *swig_obj[1] ;
32362
32363 if (!args) SWIG_fail;
32364 swig_obj[0] = args;
32365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32366 if (!SWIG_IsOK(res1)) {
32367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32368 }
32369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32370 {
32371 PyThreadState* __tstate = wxPyBeginAllowThreads();
32372 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32373 wxPyEndAllowThreads(__tstate);
32374 if (PyErr_Occurred()) SWIG_fail;
32375 }
32376 {
32377 resultobj = wxPyMake_wxObject(result, 0);
32378 }
32379 return resultobj;
32380 fail:
32381 return NULL;
32382 }
32383
32384
32385 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32386 PyObject *resultobj = 0;
32387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32388 SwigValueWrapper<wxVisualAttributes > result;
32389 int val1 ;
32390 int ecode1 = 0 ;
32391 PyObject * obj0 = 0 ;
32392 char * kwnames[] = {
32393 (char *) "variant", NULL
32394 };
32395
32396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32397 if (obj0) {
32398 ecode1 = SWIG_AsVal_int(obj0, &val1);
32399 if (!SWIG_IsOK(ecode1)) {
32400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32401 }
32402 arg1 = static_cast< wxWindowVariant >(val1);
32403 }
32404 {
32405 if (!wxPyCheckForApp()) SWIG_fail;
32406 PyThreadState* __tstate = wxPyBeginAllowThreads();
32407 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32408 wxPyEndAllowThreads(__tstate);
32409 if (PyErr_Occurred()) SWIG_fail;
32410 }
32411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32412 return resultobj;
32413 fail:
32414 return NULL;
32415 }
32416
32417
32418 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32419 PyObject *obj;
32420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32421 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32422 return SWIG_Py_Void();
32423 }
32424
32425 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32426 return SWIG_Python_InitShadowInstance(args);
32427 }
32428
32429 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32430 PyObject *resultobj = 0;
32431 wxWindow *arg1 = (wxWindow *) 0 ;
32432 int arg2 = (int) -1 ;
32433 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32434 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32435 wxSize const &arg4_defvalue = wxDefaultSize ;
32436 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32437 long arg5 = (long) wxLC_REPORT ;
32438 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32439 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32440 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32441 wxString *arg7 = (wxString *) &arg7_defvalue ;
32442 wxListView *result = 0 ;
32443 void *argp1 = 0 ;
32444 int res1 = 0 ;
32445 int val2 ;
32446 int ecode2 = 0 ;
32447 wxPoint temp3 ;
32448 wxSize temp4 ;
32449 long val5 ;
32450 int ecode5 = 0 ;
32451 void *argp6 = 0 ;
32452 int res6 = 0 ;
32453 bool temp7 = false ;
32454 PyObject * obj0 = 0 ;
32455 PyObject * obj1 = 0 ;
32456 PyObject * obj2 = 0 ;
32457 PyObject * obj3 = 0 ;
32458 PyObject * obj4 = 0 ;
32459 PyObject * obj5 = 0 ;
32460 PyObject * obj6 = 0 ;
32461 char * kwnames[] = {
32462 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32463 };
32464
32465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32467 if (!SWIG_IsOK(res1)) {
32468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32469 }
32470 arg1 = reinterpret_cast< wxWindow * >(argp1);
32471 if (obj1) {
32472 ecode2 = SWIG_AsVal_int(obj1, &val2);
32473 if (!SWIG_IsOK(ecode2)) {
32474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32475 }
32476 arg2 = static_cast< int >(val2);
32477 }
32478 if (obj2) {
32479 {
32480 arg3 = &temp3;
32481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32482 }
32483 }
32484 if (obj3) {
32485 {
32486 arg4 = &temp4;
32487 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32488 }
32489 }
32490 if (obj4) {
32491 ecode5 = SWIG_AsVal_long(obj4, &val5);
32492 if (!SWIG_IsOK(ecode5)) {
32493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32494 }
32495 arg5 = static_cast< long >(val5);
32496 }
32497 if (obj5) {
32498 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32499 if (!SWIG_IsOK(res6)) {
32500 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32501 }
32502 if (!argp6) {
32503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32504 }
32505 arg6 = reinterpret_cast< wxValidator * >(argp6);
32506 }
32507 if (obj6) {
32508 {
32509 arg7 = wxString_in_helper(obj6);
32510 if (arg7 == NULL) SWIG_fail;
32511 temp7 = true;
32512 }
32513 }
32514 {
32515 if (!wxPyCheckForApp()) SWIG_fail;
32516 PyThreadState* __tstate = wxPyBeginAllowThreads();
32517 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32518 wxPyEndAllowThreads(__tstate);
32519 if (PyErr_Occurred()) SWIG_fail;
32520 }
32521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32522 {
32523 if (temp7)
32524 delete arg7;
32525 }
32526 return resultobj;
32527 fail:
32528 {
32529 if (temp7)
32530 delete arg7;
32531 }
32532 return NULL;
32533 }
32534
32535
32536 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32537 PyObject *resultobj = 0;
32538 wxListView *result = 0 ;
32539
32540 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32541 {
32542 if (!wxPyCheckForApp()) SWIG_fail;
32543 PyThreadState* __tstate = wxPyBeginAllowThreads();
32544 result = (wxListView *)new wxListView();
32545 wxPyEndAllowThreads(__tstate);
32546 if (PyErr_Occurred()) SWIG_fail;
32547 }
32548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32549 return resultobj;
32550 fail:
32551 return NULL;
32552 }
32553
32554
32555 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32556 PyObject *resultobj = 0;
32557 wxListView *arg1 = (wxListView *) 0 ;
32558 wxWindow *arg2 = (wxWindow *) 0 ;
32559 int arg3 = (int) -1 ;
32560 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32561 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32562 wxSize const &arg5_defvalue = wxDefaultSize ;
32563 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32564 long arg6 = (long) wxLC_REPORT ;
32565 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32566 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32567 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32568 wxString *arg8 = (wxString *) &arg8_defvalue ;
32569 bool result;
32570 void *argp1 = 0 ;
32571 int res1 = 0 ;
32572 void *argp2 = 0 ;
32573 int res2 = 0 ;
32574 int val3 ;
32575 int ecode3 = 0 ;
32576 wxPoint temp4 ;
32577 wxSize temp5 ;
32578 long val6 ;
32579 int ecode6 = 0 ;
32580 void *argp7 = 0 ;
32581 int res7 = 0 ;
32582 bool temp8 = false ;
32583 PyObject * obj0 = 0 ;
32584 PyObject * obj1 = 0 ;
32585 PyObject * obj2 = 0 ;
32586 PyObject * obj3 = 0 ;
32587 PyObject * obj4 = 0 ;
32588 PyObject * obj5 = 0 ;
32589 PyObject * obj6 = 0 ;
32590 PyObject * obj7 = 0 ;
32591 char * kwnames[] = {
32592 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32593 };
32594
32595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32597 if (!SWIG_IsOK(res1)) {
32598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32599 }
32600 arg1 = reinterpret_cast< wxListView * >(argp1);
32601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32602 if (!SWIG_IsOK(res2)) {
32603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32604 }
32605 arg2 = reinterpret_cast< wxWindow * >(argp2);
32606 if (obj2) {
32607 ecode3 = SWIG_AsVal_int(obj2, &val3);
32608 if (!SWIG_IsOK(ecode3)) {
32609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32610 }
32611 arg3 = static_cast< int >(val3);
32612 }
32613 if (obj3) {
32614 {
32615 arg4 = &temp4;
32616 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32617 }
32618 }
32619 if (obj4) {
32620 {
32621 arg5 = &temp5;
32622 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32623 }
32624 }
32625 if (obj5) {
32626 ecode6 = SWIG_AsVal_long(obj5, &val6);
32627 if (!SWIG_IsOK(ecode6)) {
32628 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32629 }
32630 arg6 = static_cast< long >(val6);
32631 }
32632 if (obj6) {
32633 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32634 if (!SWIG_IsOK(res7)) {
32635 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32636 }
32637 if (!argp7) {
32638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32639 }
32640 arg7 = reinterpret_cast< wxValidator * >(argp7);
32641 }
32642 if (obj7) {
32643 {
32644 arg8 = wxString_in_helper(obj7);
32645 if (arg8 == NULL) SWIG_fail;
32646 temp8 = true;
32647 }
32648 }
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
32651 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 {
32656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32657 }
32658 {
32659 if (temp8)
32660 delete arg8;
32661 }
32662 return resultobj;
32663 fail:
32664 {
32665 if (temp8)
32666 delete arg8;
32667 }
32668 return NULL;
32669 }
32670
32671
32672 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32673 PyObject *resultobj = 0;
32674 wxListView *arg1 = (wxListView *) 0 ;
32675 long arg2 ;
32676 bool arg3 = (bool) true ;
32677 void *argp1 = 0 ;
32678 int res1 = 0 ;
32679 long val2 ;
32680 int ecode2 = 0 ;
32681 bool val3 ;
32682 int ecode3 = 0 ;
32683 PyObject * obj0 = 0 ;
32684 PyObject * obj1 = 0 ;
32685 PyObject * obj2 = 0 ;
32686 char * kwnames[] = {
32687 (char *) "self",(char *) "n",(char *) "on", NULL
32688 };
32689
32690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32692 if (!SWIG_IsOK(res1)) {
32693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32694 }
32695 arg1 = reinterpret_cast< wxListView * >(argp1);
32696 ecode2 = SWIG_AsVal_long(obj1, &val2);
32697 if (!SWIG_IsOK(ecode2)) {
32698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32699 }
32700 arg2 = static_cast< long >(val2);
32701 if (obj2) {
32702 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32703 if (!SWIG_IsOK(ecode3)) {
32704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32705 }
32706 arg3 = static_cast< bool >(val3);
32707 }
32708 {
32709 PyThreadState* __tstate = wxPyBeginAllowThreads();
32710 (arg1)->Select(arg2,arg3);
32711 wxPyEndAllowThreads(__tstate);
32712 if (PyErr_Occurred()) SWIG_fail;
32713 }
32714 resultobj = SWIG_Py_Void();
32715 return resultobj;
32716 fail:
32717 return NULL;
32718 }
32719
32720
32721 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32722 PyObject *resultobj = 0;
32723 wxListView *arg1 = (wxListView *) 0 ;
32724 long arg2 ;
32725 void *argp1 = 0 ;
32726 int res1 = 0 ;
32727 long val2 ;
32728 int ecode2 = 0 ;
32729 PyObject * obj0 = 0 ;
32730 PyObject * obj1 = 0 ;
32731 char * kwnames[] = {
32732 (char *) "self",(char *) "index", NULL
32733 };
32734
32735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32737 if (!SWIG_IsOK(res1)) {
32738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32739 }
32740 arg1 = reinterpret_cast< wxListView * >(argp1);
32741 ecode2 = SWIG_AsVal_long(obj1, &val2);
32742 if (!SWIG_IsOK(ecode2)) {
32743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32744 }
32745 arg2 = static_cast< long >(val2);
32746 {
32747 PyThreadState* __tstate = wxPyBeginAllowThreads();
32748 (arg1)->Focus(arg2);
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 resultobj = SWIG_Py_Void();
32753 return resultobj;
32754 fail:
32755 return NULL;
32756 }
32757
32758
32759 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32760 PyObject *resultobj = 0;
32761 wxListView *arg1 = (wxListView *) 0 ;
32762 long result;
32763 void *argp1 = 0 ;
32764 int res1 = 0 ;
32765 PyObject *swig_obj[1] ;
32766
32767 if (!args) SWIG_fail;
32768 swig_obj[0] = args;
32769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32770 if (!SWIG_IsOK(res1)) {
32771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32772 }
32773 arg1 = reinterpret_cast< wxListView * >(argp1);
32774 {
32775 PyThreadState* __tstate = wxPyBeginAllowThreads();
32776 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32777 wxPyEndAllowThreads(__tstate);
32778 if (PyErr_Occurred()) SWIG_fail;
32779 }
32780 resultobj = SWIG_From_long(static_cast< long >(result));
32781 return resultobj;
32782 fail:
32783 return NULL;
32784 }
32785
32786
32787 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32788 PyObject *resultobj = 0;
32789 wxListView *arg1 = (wxListView *) 0 ;
32790 long arg2 ;
32791 long result;
32792 void *argp1 = 0 ;
32793 int res1 = 0 ;
32794 long val2 ;
32795 int ecode2 = 0 ;
32796 PyObject * obj0 = 0 ;
32797 PyObject * obj1 = 0 ;
32798 char * kwnames[] = {
32799 (char *) "self",(char *) "item", NULL
32800 };
32801
32802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32804 if (!SWIG_IsOK(res1)) {
32805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32806 }
32807 arg1 = reinterpret_cast< wxListView * >(argp1);
32808 ecode2 = SWIG_AsVal_long(obj1, &val2);
32809 if (!SWIG_IsOK(ecode2)) {
32810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32811 }
32812 arg2 = static_cast< long >(val2);
32813 {
32814 PyThreadState* __tstate = wxPyBeginAllowThreads();
32815 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32816 wxPyEndAllowThreads(__tstate);
32817 if (PyErr_Occurred()) SWIG_fail;
32818 }
32819 resultobj = SWIG_From_long(static_cast< long >(result));
32820 return resultobj;
32821 fail:
32822 return NULL;
32823 }
32824
32825
32826 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32827 PyObject *resultobj = 0;
32828 wxListView *arg1 = (wxListView *) 0 ;
32829 long result;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 PyObject *swig_obj[1] ;
32833
32834 if (!args) SWIG_fail;
32835 swig_obj[0] = args;
32836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32839 }
32840 arg1 = reinterpret_cast< wxListView * >(argp1);
32841 {
32842 PyThreadState* __tstate = wxPyBeginAllowThreads();
32843 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32844 wxPyEndAllowThreads(__tstate);
32845 if (PyErr_Occurred()) SWIG_fail;
32846 }
32847 resultobj = SWIG_From_long(static_cast< long >(result));
32848 return resultobj;
32849 fail:
32850 return NULL;
32851 }
32852
32853
32854 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32855 PyObject *resultobj = 0;
32856 wxListView *arg1 = (wxListView *) 0 ;
32857 long arg2 ;
32858 bool result;
32859 void *argp1 = 0 ;
32860 int res1 = 0 ;
32861 long val2 ;
32862 int ecode2 = 0 ;
32863 PyObject * obj0 = 0 ;
32864 PyObject * obj1 = 0 ;
32865 char * kwnames[] = {
32866 (char *) "self",(char *) "index", NULL
32867 };
32868
32869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32871 if (!SWIG_IsOK(res1)) {
32872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32873 }
32874 arg1 = reinterpret_cast< wxListView * >(argp1);
32875 ecode2 = SWIG_AsVal_long(obj1, &val2);
32876 if (!SWIG_IsOK(ecode2)) {
32877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32878 }
32879 arg2 = static_cast< long >(val2);
32880 {
32881 PyThreadState* __tstate = wxPyBeginAllowThreads();
32882 result = (bool)(arg1)->IsSelected(arg2);
32883 wxPyEndAllowThreads(__tstate);
32884 if (PyErr_Occurred()) SWIG_fail;
32885 }
32886 {
32887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32888 }
32889 return resultobj;
32890 fail:
32891 return NULL;
32892 }
32893
32894
32895 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32896 PyObject *resultobj = 0;
32897 wxListView *arg1 = (wxListView *) 0 ;
32898 int arg2 ;
32899 int arg3 ;
32900 void *argp1 = 0 ;
32901 int res1 = 0 ;
32902 int val2 ;
32903 int ecode2 = 0 ;
32904 int val3 ;
32905 int ecode3 = 0 ;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32908 PyObject * obj2 = 0 ;
32909 char * kwnames[] = {
32910 (char *) "self",(char *) "col",(char *) "image", NULL
32911 };
32912
32913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32915 if (!SWIG_IsOK(res1)) {
32916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32917 }
32918 arg1 = reinterpret_cast< wxListView * >(argp1);
32919 ecode2 = SWIG_AsVal_int(obj1, &val2);
32920 if (!SWIG_IsOK(ecode2)) {
32921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32922 }
32923 arg2 = static_cast< int >(val2);
32924 ecode3 = SWIG_AsVal_int(obj2, &val3);
32925 if (!SWIG_IsOK(ecode3)) {
32926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32927 }
32928 arg3 = static_cast< int >(val3);
32929 {
32930 PyThreadState* __tstate = wxPyBeginAllowThreads();
32931 (arg1)->SetColumnImage(arg2,arg3);
32932 wxPyEndAllowThreads(__tstate);
32933 if (PyErr_Occurred()) SWIG_fail;
32934 }
32935 resultobj = SWIG_Py_Void();
32936 return resultobj;
32937 fail:
32938 return NULL;
32939 }
32940
32941
32942 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32943 PyObject *resultobj = 0;
32944 wxListView *arg1 = (wxListView *) 0 ;
32945 int arg2 ;
32946 void *argp1 = 0 ;
32947 int res1 = 0 ;
32948 int val2 ;
32949 int ecode2 = 0 ;
32950 PyObject * obj0 = 0 ;
32951 PyObject * obj1 = 0 ;
32952 char * kwnames[] = {
32953 (char *) "self",(char *) "col", NULL
32954 };
32955
32956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32958 if (!SWIG_IsOK(res1)) {
32959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32960 }
32961 arg1 = reinterpret_cast< wxListView * >(argp1);
32962 ecode2 = SWIG_AsVal_int(obj1, &val2);
32963 if (!SWIG_IsOK(ecode2)) {
32964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32965 }
32966 arg2 = static_cast< int >(val2);
32967 {
32968 PyThreadState* __tstate = wxPyBeginAllowThreads();
32969 (arg1)->ClearColumnImage(arg2);
32970 wxPyEndAllowThreads(__tstate);
32971 if (PyErr_Occurred()) SWIG_fail;
32972 }
32973 resultobj = SWIG_Py_Void();
32974 return resultobj;
32975 fail:
32976 return NULL;
32977 }
32978
32979
32980 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32981 PyObject *obj;
32982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32983 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32984 return SWIG_Py_Void();
32985 }
32986
32987 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32988 return SWIG_Python_InitShadowInstance(args);
32989 }
32990
32991 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32992 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32993 return 1;
32994 }
32995
32996
32997 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32998 PyObject *pyobj = 0;
32999
33000 {
33001 #if wxUSE_UNICODE
33002 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
33003 #else
33004 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
33005 #endif
33006 }
33007 return pyobj;
33008 }
33009
33010
33011 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33012 PyObject *resultobj = 0;
33013 wxTreeItemId *result = 0 ;
33014
33015 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
33016 {
33017 PyThreadState* __tstate = wxPyBeginAllowThreads();
33018 result = (wxTreeItemId *)new wxTreeItemId();
33019 wxPyEndAllowThreads(__tstate);
33020 if (PyErr_Occurred()) SWIG_fail;
33021 }
33022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
33023 return resultobj;
33024 fail:
33025 return NULL;
33026 }
33027
33028
33029 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33030 PyObject *resultobj = 0;
33031 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33032 void *argp1 = 0 ;
33033 int res1 = 0 ;
33034 PyObject *swig_obj[1] ;
33035
33036 if (!args) SWIG_fail;
33037 swig_obj[0] = args;
33038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
33039 if (!SWIG_IsOK(res1)) {
33040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33041 }
33042 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33043 {
33044 PyThreadState* __tstate = wxPyBeginAllowThreads();
33045 delete arg1;
33046
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_Py_Void();
33051 return resultobj;
33052 fail:
33053 return NULL;
33054 }
33055
33056
33057 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33058 PyObject *resultobj = 0;
33059 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33060 bool result;
33061 void *argp1 = 0 ;
33062 int res1 = 0 ;
33063 PyObject *swig_obj[1] ;
33064
33065 if (!args) SWIG_fail;
33066 swig_obj[0] = args;
33067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33068 if (!SWIG_IsOK(res1)) {
33069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
33070 }
33071 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33072 {
33073 PyThreadState* __tstate = wxPyBeginAllowThreads();
33074 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
33075 wxPyEndAllowThreads(__tstate);
33076 if (PyErr_Occurred()) SWIG_fail;
33077 }
33078 {
33079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33080 }
33081 return resultobj;
33082 fail:
33083 return NULL;
33084 }
33085
33086
33087 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33088 PyObject *resultobj = 0;
33089 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33090 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33091 bool result;
33092 void *argp1 = 0 ;
33093 int res1 = 0 ;
33094 void *argp2 = 0 ;
33095 int res2 = 0 ;
33096 PyObject * obj0 = 0 ;
33097 PyObject * obj1 = 0 ;
33098 char * kwnames[] = {
33099 (char *) "self",(char *) "other", NULL
33100 };
33101
33102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
33103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33104 if (!SWIG_IsOK(res1)) {
33105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33106 }
33107 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33109 if (!SWIG_IsOK(res2)) {
33110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33111 }
33112 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33113 {
33114 PyThreadState* __tstate = wxPyBeginAllowThreads();
33115 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 {
33120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33121 }
33122 return resultobj;
33123 fail:
33124 return NULL;
33125 }
33126
33127
33128 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33129 PyObject *resultobj = 0;
33130 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33131 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33132 bool result;
33133 void *argp1 = 0 ;
33134 int res1 = 0 ;
33135 void *argp2 = 0 ;
33136 int res2 = 0 ;
33137 PyObject * obj0 = 0 ;
33138 PyObject * obj1 = 0 ;
33139 char * kwnames[] = {
33140 (char *) "self",(char *) "other", NULL
33141 };
33142
33143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
33144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33145 if (!SWIG_IsOK(res1)) {
33146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33147 }
33148 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33149 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33150 if (!SWIG_IsOK(res2)) {
33151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33152 }
33153 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33154 {
33155 PyThreadState* __tstate = wxPyBeginAllowThreads();
33156 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
33157 wxPyEndAllowThreads(__tstate);
33158 if (PyErr_Occurred()) SWIG_fail;
33159 }
33160 {
33161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33162 }
33163 return resultobj;
33164 fail:
33165 return NULL;
33166 }
33167
33168
33169 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33170 PyObject *resultobj = 0;
33171 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33172 void *arg2 = (void *) 0 ;
33173 void *argp1 = 0 ;
33174 int res1 = 0 ;
33175 int res2 ;
33176 PyObject *swig_obj[2] ;
33177
33178 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
33179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33180 if (!SWIG_IsOK(res1)) {
33181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33182 }
33183 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33184 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
33185 if (!SWIG_IsOK(res2)) {
33186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
33187 }
33188 if (arg1) (arg1)->m_pItem = arg2;
33189
33190 resultobj = SWIG_Py_Void();
33191 return resultobj;
33192 fail:
33193 return NULL;
33194 }
33195
33196
33197 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33198 PyObject *resultobj = 0;
33199 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33200 void *result = 0 ;
33201 void *argp1 = 0 ;
33202 int res1 = 0 ;
33203 PyObject *swig_obj[1] ;
33204
33205 if (!args) SWIG_fail;
33206 swig_obj[0] = args;
33207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33208 if (!SWIG_IsOK(res1)) {
33209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33210 }
33211 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33212 result = (void *) ((arg1)->m_pItem);
33213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33214 return resultobj;
33215 fail:
33216 return NULL;
33217 }
33218
33219
33220 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33221 PyObject *obj;
33222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33223 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33224 return SWIG_Py_Void();
33225 }
33226
33227 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33228 return SWIG_Python_InitShadowInstance(args);
33229 }
33230
33231 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33232 PyObject *resultobj = 0;
33233 PyObject *arg1 = (PyObject *) NULL ;
33234 wxPyTreeItemData *result = 0 ;
33235 PyObject * obj0 = 0 ;
33236 char * kwnames[] = {
33237 (char *) "obj", NULL
33238 };
33239
33240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33241 if (obj0) {
33242 arg1 = obj0;
33243 }
33244 {
33245 PyThreadState* __tstate = wxPyBeginAllowThreads();
33246 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33247 wxPyEndAllowThreads(__tstate);
33248 if (PyErr_Occurred()) SWIG_fail;
33249 }
33250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33251 return resultobj;
33252 fail:
33253 return NULL;
33254 }
33255
33256
33257 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33258 PyObject *resultobj = 0;
33259 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33260 void *argp1 = 0 ;
33261 int res1 = 0 ;
33262 PyObject *swig_obj[1] ;
33263
33264 if (!args) SWIG_fail;
33265 swig_obj[0] = args;
33266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33267 if (!SWIG_IsOK(res1)) {
33268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33269 }
33270 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33271 {
33272 PyThreadState* __tstate = wxPyBeginAllowThreads();
33273 delete arg1;
33274
33275 wxPyEndAllowThreads(__tstate);
33276 if (PyErr_Occurred()) SWIG_fail;
33277 }
33278 resultobj = SWIG_Py_Void();
33279 return resultobj;
33280 fail:
33281 return NULL;
33282 }
33283
33284
33285 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33286 PyObject *resultobj = 0;
33287 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33288 PyObject *result = 0 ;
33289 void *argp1 = 0 ;
33290 int res1 = 0 ;
33291 PyObject *swig_obj[1] ;
33292
33293 if (!args) SWIG_fail;
33294 swig_obj[0] = args;
33295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33296 if (!SWIG_IsOK(res1)) {
33297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33298 }
33299 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33300 {
33301 PyThreadState* __tstate = wxPyBeginAllowThreads();
33302 result = (PyObject *)(arg1)->GetData();
33303 wxPyEndAllowThreads(__tstate);
33304 if (PyErr_Occurred()) SWIG_fail;
33305 }
33306 resultobj = result;
33307 return resultobj;
33308 fail:
33309 return NULL;
33310 }
33311
33312
33313 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33314 PyObject *resultobj = 0;
33315 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33316 PyObject *arg2 = (PyObject *) 0 ;
33317 void *argp1 = 0 ;
33318 int res1 = 0 ;
33319 PyObject * obj0 = 0 ;
33320 PyObject * obj1 = 0 ;
33321 char * kwnames[] = {
33322 (char *) "self",(char *) "obj", NULL
33323 };
33324
33325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33327 if (!SWIG_IsOK(res1)) {
33328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33329 }
33330 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33331 arg2 = obj1;
33332 {
33333 PyThreadState* __tstate = wxPyBeginAllowThreads();
33334 (arg1)->SetData(arg2);
33335 wxPyEndAllowThreads(__tstate);
33336 if (PyErr_Occurred()) SWIG_fail;
33337 }
33338 resultobj = SWIG_Py_Void();
33339 return resultobj;
33340 fail:
33341 return NULL;
33342 }
33343
33344
33345 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33346 PyObject *resultobj = 0;
33347 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33348 wxTreeItemId *result = 0 ;
33349 void *argp1 = 0 ;
33350 int res1 = 0 ;
33351 PyObject *swig_obj[1] ;
33352
33353 if (!args) SWIG_fail;
33354 swig_obj[0] = args;
33355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33356 if (!SWIG_IsOK(res1)) {
33357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33358 }
33359 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33360 {
33361 PyThreadState* __tstate = wxPyBeginAllowThreads();
33362 {
33363 wxTreeItemId const &_result_ref = (arg1)->GetId();
33364 result = (wxTreeItemId *) &_result_ref;
33365 }
33366 wxPyEndAllowThreads(__tstate);
33367 if (PyErr_Occurred()) SWIG_fail;
33368 }
33369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33370 return resultobj;
33371 fail:
33372 return NULL;
33373 }
33374
33375
33376 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33377 PyObject *resultobj = 0;
33378 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33379 wxTreeItemId *arg2 = 0 ;
33380 void *argp1 = 0 ;
33381 int res1 = 0 ;
33382 void *argp2 = 0 ;
33383 int res2 = 0 ;
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 char * kwnames[] = {
33387 (char *) "self",(char *) "id", NULL
33388 };
33389
33390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33392 if (!SWIG_IsOK(res1)) {
33393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33394 }
33395 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33397 if (!SWIG_IsOK(res2)) {
33398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33399 }
33400 if (!argp2) {
33401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33402 }
33403 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33404 {
33405 PyThreadState* __tstate = wxPyBeginAllowThreads();
33406 (arg1)->SetId((wxTreeItemId const &)*arg2);
33407 wxPyEndAllowThreads(__tstate);
33408 if (PyErr_Occurred()) SWIG_fail;
33409 }
33410 resultobj = SWIG_Py_Void();
33411 return resultobj;
33412 fail:
33413 return NULL;
33414 }
33415
33416
33417 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33418 PyObject *resultobj = 0;
33419 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33420 void *argp1 = 0 ;
33421 int res1 = 0 ;
33422 PyObject *swig_obj[1] ;
33423
33424 if (!args) SWIG_fail;
33425 swig_obj[0] = args;
33426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33427 if (!SWIG_IsOK(res1)) {
33428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33429 }
33430 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33431 {
33432 PyThreadState* __tstate = wxPyBeginAllowThreads();
33433 wxPyTreeItemData_Destroy(arg1);
33434 wxPyEndAllowThreads(__tstate);
33435 if (PyErr_Occurred()) SWIG_fail;
33436 }
33437 resultobj = SWIG_Py_Void();
33438 return resultobj;
33439 fail:
33440 return NULL;
33441 }
33442
33443
33444 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33445 PyObject *obj;
33446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33447 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33448 return SWIG_Py_Void();
33449 }
33450
33451 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33452 return SWIG_Python_InitShadowInstance(args);
33453 }
33454
33455 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33456 {
33457 void *argp = 0;
33458 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33459 if (!SWIG_IsOK(res)) {
33460 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33461 }
33462 if (!argp) {
33463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33464 } else {
33465 wxTreeItemId * temp;
33466 temp = reinterpret_cast< wxTreeItemId * >(argp);
33467 wxNullTreeItemId = *temp;
33468 if (SWIG_IsNewObj(res)) delete temp;
33469 }
33470 }
33471 return 0;
33472 fail:
33473 return 1;
33474 }
33475
33476
33477 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33478 PyObject *pyobj = 0;
33479
33480 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33481 return pyobj;
33482 }
33483
33484
33485 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33486 PyObject *resultobj = 0;
33487 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33488 int arg2 = (int) 0 ;
33489 wxTreeEvent *result = 0 ;
33490 int val1 ;
33491 int ecode1 = 0 ;
33492 int val2 ;
33493 int ecode2 = 0 ;
33494
33495 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33496 if (swig_obj[0]) {
33497 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33498 if (!SWIG_IsOK(ecode1)) {
33499 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33500 }
33501 arg1 = static_cast< wxEventType >(val1);
33502 }
33503 if (swig_obj[1]) {
33504 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33505 if (!SWIG_IsOK(ecode2)) {
33506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33507 }
33508 arg2 = static_cast< int >(val2);
33509 }
33510 {
33511 PyThreadState* __tstate = wxPyBeginAllowThreads();
33512 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33513 wxPyEndAllowThreads(__tstate);
33514 if (PyErr_Occurred()) SWIG_fail;
33515 }
33516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33517 return resultobj;
33518 fail:
33519 return NULL;
33520 }
33521
33522
33523 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33524 PyObject *resultobj = 0;
33525 wxEventType arg1 ;
33526 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33527 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33528 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33529 wxTreeEvent *result = 0 ;
33530 int val1 ;
33531 int ecode1 = 0 ;
33532 void *argp2 = 0 ;
33533 int res2 = 0 ;
33534 void *argp3 = 0 ;
33535 int res3 = 0 ;
33536
33537 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33538 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33539 if (!SWIG_IsOK(ecode1)) {
33540 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33541 }
33542 arg1 = static_cast< wxEventType >(val1);
33543 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33544 if (!SWIG_IsOK(res2)) {
33545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33546 }
33547 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33548 if (swig_obj[2]) {
33549 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33550 if (!SWIG_IsOK(res3)) {
33551 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33552 }
33553 if (!argp3) {
33554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33555 }
33556 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33557 }
33558 {
33559 PyThreadState* __tstate = wxPyBeginAllowThreads();
33560 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33561 wxPyEndAllowThreads(__tstate);
33562 if (PyErr_Occurred()) SWIG_fail;
33563 }
33564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33565 return resultobj;
33566 fail:
33567 return NULL;
33568 }
33569
33570
33571 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33572 int argc;
33573 PyObject *argv[4];
33574
33575 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33576 --argc;
33577 if ((argc >= 0) && (argc <= 2)) {
33578 int _v = 0;
33579 if (argc > 1) {
33580 {
33581 {
33582 int res = SWIG_AsVal_int(argv[1], NULL);
33583 _v = SWIG_CheckState(res);
33584 }
33585 }
33586 if (!_v) goto check_1;
33587 }
33588 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33589 }
33590 check_1:
33591
33592 if ((argc >= 2) && (argc <= 3)) {
33593 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33594 }
33595
33596 fail:
33597 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33598 return NULL;
33599 }
33600
33601
33602 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33603 PyObject *resultobj = 0;
33604 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33605 wxTreeItemId result;
33606 void *argp1 = 0 ;
33607 int res1 = 0 ;
33608 PyObject *swig_obj[1] ;
33609
33610 if (!args) SWIG_fail;
33611 swig_obj[0] = args;
33612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33613 if (!SWIG_IsOK(res1)) {
33614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33615 }
33616 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33617 {
33618 PyThreadState* __tstate = wxPyBeginAllowThreads();
33619 result = ((wxTreeEvent const *)arg1)->GetItem();
33620 wxPyEndAllowThreads(__tstate);
33621 if (PyErr_Occurred()) SWIG_fail;
33622 }
33623 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33624 return resultobj;
33625 fail:
33626 return NULL;
33627 }
33628
33629
33630 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33631 PyObject *resultobj = 0;
33632 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33633 wxTreeItemId *arg2 = 0 ;
33634 void *argp1 = 0 ;
33635 int res1 = 0 ;
33636 void *argp2 = 0 ;
33637 int res2 = 0 ;
33638 PyObject * obj0 = 0 ;
33639 PyObject * obj1 = 0 ;
33640 char * kwnames[] = {
33641 (char *) "self",(char *) "item", NULL
33642 };
33643
33644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33646 if (!SWIG_IsOK(res1)) {
33647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33648 }
33649 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33651 if (!SWIG_IsOK(res2)) {
33652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33653 }
33654 if (!argp2) {
33655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33656 }
33657 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33658 {
33659 PyThreadState* __tstate = wxPyBeginAllowThreads();
33660 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33661 wxPyEndAllowThreads(__tstate);
33662 if (PyErr_Occurred()) SWIG_fail;
33663 }
33664 resultobj = SWIG_Py_Void();
33665 return resultobj;
33666 fail:
33667 return NULL;
33668 }
33669
33670
33671 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33672 PyObject *resultobj = 0;
33673 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33674 wxTreeItemId result;
33675 void *argp1 = 0 ;
33676 int res1 = 0 ;
33677 PyObject *swig_obj[1] ;
33678
33679 if (!args) SWIG_fail;
33680 swig_obj[0] = args;
33681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33682 if (!SWIG_IsOK(res1)) {
33683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33684 }
33685 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33686 {
33687 PyThreadState* __tstate = wxPyBeginAllowThreads();
33688 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33689 wxPyEndAllowThreads(__tstate);
33690 if (PyErr_Occurred()) SWIG_fail;
33691 }
33692 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33693 return resultobj;
33694 fail:
33695 return NULL;
33696 }
33697
33698
33699 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33700 PyObject *resultobj = 0;
33701 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33702 wxTreeItemId *arg2 = 0 ;
33703 void *argp1 = 0 ;
33704 int res1 = 0 ;
33705 void *argp2 = 0 ;
33706 int res2 = 0 ;
33707 PyObject * obj0 = 0 ;
33708 PyObject * obj1 = 0 ;
33709 char * kwnames[] = {
33710 (char *) "self",(char *) "item", NULL
33711 };
33712
33713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33715 if (!SWIG_IsOK(res1)) {
33716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33717 }
33718 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33720 if (!SWIG_IsOK(res2)) {
33721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33722 }
33723 if (!argp2) {
33724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33725 }
33726 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33727 {
33728 PyThreadState* __tstate = wxPyBeginAllowThreads();
33729 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33730 wxPyEndAllowThreads(__tstate);
33731 if (PyErr_Occurred()) SWIG_fail;
33732 }
33733 resultobj = SWIG_Py_Void();
33734 return resultobj;
33735 fail:
33736 return NULL;
33737 }
33738
33739
33740 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33741 PyObject *resultobj = 0;
33742 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33743 wxPoint result;
33744 void *argp1 = 0 ;
33745 int res1 = 0 ;
33746 PyObject *swig_obj[1] ;
33747
33748 if (!args) SWIG_fail;
33749 swig_obj[0] = args;
33750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33751 if (!SWIG_IsOK(res1)) {
33752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33753 }
33754 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33755 {
33756 PyThreadState* __tstate = wxPyBeginAllowThreads();
33757 result = ((wxTreeEvent const *)arg1)->GetPoint();
33758 wxPyEndAllowThreads(__tstate);
33759 if (PyErr_Occurred()) SWIG_fail;
33760 }
33761 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33762 return resultobj;
33763 fail:
33764 return NULL;
33765 }
33766
33767
33768 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33769 PyObject *resultobj = 0;
33770 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33771 wxPoint *arg2 = 0 ;
33772 void *argp1 = 0 ;
33773 int res1 = 0 ;
33774 wxPoint temp2 ;
33775 PyObject * obj0 = 0 ;
33776 PyObject * obj1 = 0 ;
33777 char * kwnames[] = {
33778 (char *) "self",(char *) "pt", NULL
33779 };
33780
33781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33783 if (!SWIG_IsOK(res1)) {
33784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33785 }
33786 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33787 {
33788 arg2 = &temp2;
33789 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33790 }
33791 {
33792 PyThreadState* __tstate = wxPyBeginAllowThreads();
33793 (arg1)->SetPoint((wxPoint const &)*arg2);
33794 wxPyEndAllowThreads(__tstate);
33795 if (PyErr_Occurred()) SWIG_fail;
33796 }
33797 resultobj = SWIG_Py_Void();
33798 return resultobj;
33799 fail:
33800 return NULL;
33801 }
33802
33803
33804 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33805 PyObject *resultobj = 0;
33806 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33807 wxKeyEvent *result = 0 ;
33808 void *argp1 = 0 ;
33809 int res1 = 0 ;
33810 PyObject *swig_obj[1] ;
33811
33812 if (!args) SWIG_fail;
33813 swig_obj[0] = args;
33814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33815 if (!SWIG_IsOK(res1)) {
33816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33817 }
33818 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33819 {
33820 PyThreadState* __tstate = wxPyBeginAllowThreads();
33821 {
33822 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33823 result = (wxKeyEvent *) &_result_ref;
33824 }
33825 wxPyEndAllowThreads(__tstate);
33826 if (PyErr_Occurred()) SWIG_fail;
33827 }
33828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33829 return resultobj;
33830 fail:
33831 return NULL;
33832 }
33833
33834
33835 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33836 PyObject *resultobj = 0;
33837 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33838 int result;
33839 void *argp1 = 0 ;
33840 int res1 = 0 ;
33841 PyObject *swig_obj[1] ;
33842
33843 if (!args) SWIG_fail;
33844 swig_obj[0] = args;
33845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33846 if (!SWIG_IsOK(res1)) {
33847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33848 }
33849 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33850 {
33851 PyThreadState* __tstate = wxPyBeginAllowThreads();
33852 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33853 wxPyEndAllowThreads(__tstate);
33854 if (PyErr_Occurred()) SWIG_fail;
33855 }
33856 resultobj = SWIG_From_int(static_cast< int >(result));
33857 return resultobj;
33858 fail:
33859 return NULL;
33860 }
33861
33862
33863 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33864 PyObject *resultobj = 0;
33865 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33866 wxKeyEvent *arg2 = 0 ;
33867 void *argp1 = 0 ;
33868 int res1 = 0 ;
33869 void *argp2 = 0 ;
33870 int res2 = 0 ;
33871 PyObject * obj0 = 0 ;
33872 PyObject * obj1 = 0 ;
33873 char * kwnames[] = {
33874 (char *) "self",(char *) "evt", NULL
33875 };
33876
33877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",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_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33881 }
33882 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33884 if (!SWIG_IsOK(res2)) {
33885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33886 }
33887 if (!argp2) {
33888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33889 }
33890 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33891 {
33892 PyThreadState* __tstate = wxPyBeginAllowThreads();
33893 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33894 wxPyEndAllowThreads(__tstate);
33895 if (PyErr_Occurred()) SWIG_fail;
33896 }
33897 resultobj = SWIG_Py_Void();
33898 return resultobj;
33899 fail:
33900 return NULL;
33901 }
33902
33903
33904 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33905 PyObject *resultobj = 0;
33906 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33907 wxString *result = 0 ;
33908 void *argp1 = 0 ;
33909 int res1 = 0 ;
33910 PyObject *swig_obj[1] ;
33911
33912 if (!args) SWIG_fail;
33913 swig_obj[0] = args;
33914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33915 if (!SWIG_IsOK(res1)) {
33916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33917 }
33918 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33919 {
33920 PyThreadState* __tstate = wxPyBeginAllowThreads();
33921 {
33922 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33923 result = (wxString *) &_result_ref;
33924 }
33925 wxPyEndAllowThreads(__tstate);
33926 if (PyErr_Occurred()) SWIG_fail;
33927 }
33928 {
33929 #if wxUSE_UNICODE
33930 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33931 #else
33932 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33933 #endif
33934 }
33935 return resultobj;
33936 fail:
33937 return NULL;
33938 }
33939
33940
33941 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33942 PyObject *resultobj = 0;
33943 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33944 wxString *arg2 = 0 ;
33945 void *argp1 = 0 ;
33946 int res1 = 0 ;
33947 bool temp2 = false ;
33948 PyObject * obj0 = 0 ;
33949 PyObject * obj1 = 0 ;
33950 char * kwnames[] = {
33951 (char *) "self",(char *) "label", NULL
33952 };
33953
33954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33956 if (!SWIG_IsOK(res1)) {
33957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33958 }
33959 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33960 {
33961 arg2 = wxString_in_helper(obj1);
33962 if (arg2 == NULL) SWIG_fail;
33963 temp2 = true;
33964 }
33965 {
33966 PyThreadState* __tstate = wxPyBeginAllowThreads();
33967 (arg1)->SetLabel((wxString const &)*arg2);
33968 wxPyEndAllowThreads(__tstate);
33969 if (PyErr_Occurred()) SWIG_fail;
33970 }
33971 resultobj = SWIG_Py_Void();
33972 {
33973 if (temp2)
33974 delete arg2;
33975 }
33976 return resultobj;
33977 fail:
33978 {
33979 if (temp2)
33980 delete arg2;
33981 }
33982 return NULL;
33983 }
33984
33985
33986 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33987 PyObject *resultobj = 0;
33988 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33989 bool result;
33990 void *argp1 = 0 ;
33991 int res1 = 0 ;
33992 PyObject *swig_obj[1] ;
33993
33994 if (!args) SWIG_fail;
33995 swig_obj[0] = args;
33996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33997 if (!SWIG_IsOK(res1)) {
33998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33999 }
34000 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34001 {
34002 PyThreadState* __tstate = wxPyBeginAllowThreads();
34003 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
34004 wxPyEndAllowThreads(__tstate);
34005 if (PyErr_Occurred()) SWIG_fail;
34006 }
34007 {
34008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34009 }
34010 return resultobj;
34011 fail:
34012 return NULL;
34013 }
34014
34015
34016 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34017 PyObject *resultobj = 0;
34018 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34019 bool arg2 ;
34020 void *argp1 = 0 ;
34021 int res1 = 0 ;
34022 bool val2 ;
34023 int ecode2 = 0 ;
34024 PyObject * obj0 = 0 ;
34025 PyObject * obj1 = 0 ;
34026 char * kwnames[] = {
34027 (char *) "self",(char *) "editCancelled", NULL
34028 };
34029
34030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
34031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34034 }
34035 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34036 ecode2 = SWIG_AsVal_bool(obj1, &val2);
34037 if (!SWIG_IsOK(ecode2)) {
34038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
34039 }
34040 arg2 = static_cast< bool >(val2);
34041 {
34042 PyThreadState* __tstate = wxPyBeginAllowThreads();
34043 (arg1)->SetEditCanceled(arg2);
34044 wxPyEndAllowThreads(__tstate);
34045 if (PyErr_Occurred()) SWIG_fail;
34046 }
34047 resultobj = SWIG_Py_Void();
34048 return resultobj;
34049 fail:
34050 return NULL;
34051 }
34052
34053
34054 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34055 PyObject *resultobj = 0;
34056 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34057 wxString *arg2 = 0 ;
34058 void *argp1 = 0 ;
34059 int res1 = 0 ;
34060 bool temp2 = false ;
34061 PyObject * obj0 = 0 ;
34062 PyObject * obj1 = 0 ;
34063 char * kwnames[] = {
34064 (char *) "self",(char *) "toolTip", NULL
34065 };
34066
34067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
34068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34069 if (!SWIG_IsOK(res1)) {
34070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34071 }
34072 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34073 {
34074 arg2 = wxString_in_helper(obj1);
34075 if (arg2 == NULL) SWIG_fail;
34076 temp2 = true;
34077 }
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 (arg1)->SetToolTip((wxString const &)*arg2);
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_Py_Void();
34085 {
34086 if (temp2)
34087 delete arg2;
34088 }
34089 return resultobj;
34090 fail:
34091 {
34092 if (temp2)
34093 delete arg2;
34094 }
34095 return NULL;
34096 }
34097
34098
34099 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34100 PyObject *resultobj = 0;
34101 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34102 wxString result;
34103 void *argp1 = 0 ;
34104 int res1 = 0 ;
34105 PyObject *swig_obj[1] ;
34106
34107 if (!args) SWIG_fail;
34108 swig_obj[0] = args;
34109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34110 if (!SWIG_IsOK(res1)) {
34111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34112 }
34113 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34114 {
34115 PyThreadState* __tstate = wxPyBeginAllowThreads();
34116 result = (arg1)->GetToolTip();
34117 wxPyEndAllowThreads(__tstate);
34118 if (PyErr_Occurred()) SWIG_fail;
34119 }
34120 {
34121 #if wxUSE_UNICODE
34122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34123 #else
34124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34125 #endif
34126 }
34127 return resultobj;
34128 fail:
34129 return NULL;
34130 }
34131
34132
34133 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34134 PyObject *obj;
34135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34136 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
34137 return SWIG_Py_Void();
34138 }
34139
34140 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34141 return SWIG_Python_InitShadowInstance(args);
34142 }
34143
34144 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34145 PyObject *resultobj = 0;
34146 wxWindow *arg1 = (wxWindow *) 0 ;
34147 int arg2 = (int) -1 ;
34148 wxPoint const &arg3_defvalue = wxDefaultPosition ;
34149 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
34150 wxSize const &arg4_defvalue = wxDefaultSize ;
34151 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34152 long arg5 = (long) wxTR_DEFAULT_STYLE ;
34153 wxValidator const &arg6_defvalue = wxDefaultValidator ;
34154 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
34155 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
34156 wxString *arg7 = (wxString *) &arg7_defvalue ;
34157 wxPyTreeCtrl *result = 0 ;
34158 void *argp1 = 0 ;
34159 int res1 = 0 ;
34160 int val2 ;
34161 int ecode2 = 0 ;
34162 wxPoint temp3 ;
34163 wxSize temp4 ;
34164 long val5 ;
34165 int ecode5 = 0 ;
34166 void *argp6 = 0 ;
34167 int res6 = 0 ;
34168 bool temp7 = false ;
34169 PyObject * obj0 = 0 ;
34170 PyObject * obj1 = 0 ;
34171 PyObject * obj2 = 0 ;
34172 PyObject * obj3 = 0 ;
34173 PyObject * obj4 = 0 ;
34174 PyObject * obj5 = 0 ;
34175 PyObject * obj6 = 0 ;
34176 char * kwnames[] = {
34177 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34178 };
34179
34180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34182 if (!SWIG_IsOK(res1)) {
34183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
34184 }
34185 arg1 = reinterpret_cast< wxWindow * >(argp1);
34186 if (obj1) {
34187 ecode2 = SWIG_AsVal_int(obj1, &val2);
34188 if (!SWIG_IsOK(ecode2)) {
34189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34190 }
34191 arg2 = static_cast< int >(val2);
34192 }
34193 if (obj2) {
34194 {
34195 arg3 = &temp3;
34196 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34197 }
34198 }
34199 if (obj3) {
34200 {
34201 arg4 = &temp4;
34202 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34203 }
34204 }
34205 if (obj4) {
34206 ecode5 = SWIG_AsVal_long(obj4, &val5);
34207 if (!SWIG_IsOK(ecode5)) {
34208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34209 }
34210 arg5 = static_cast< long >(val5);
34211 }
34212 if (obj5) {
34213 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34214 if (!SWIG_IsOK(res6)) {
34215 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34216 }
34217 if (!argp6) {
34218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34219 }
34220 arg6 = reinterpret_cast< wxValidator * >(argp6);
34221 }
34222 if (obj6) {
34223 {
34224 arg7 = wxString_in_helper(obj6);
34225 if (arg7 == NULL) SWIG_fail;
34226 temp7 = true;
34227 }
34228 }
34229 {
34230 if (!wxPyCheckForApp()) SWIG_fail;
34231 PyThreadState* __tstate = wxPyBeginAllowThreads();
34232 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34233 wxPyEndAllowThreads(__tstate);
34234 if (PyErr_Occurred()) SWIG_fail;
34235 }
34236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34237 {
34238 if (temp7)
34239 delete arg7;
34240 }
34241 return resultobj;
34242 fail:
34243 {
34244 if (temp7)
34245 delete arg7;
34246 }
34247 return NULL;
34248 }
34249
34250
34251 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34252 PyObject *resultobj = 0;
34253 wxPyTreeCtrl *result = 0 ;
34254
34255 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34256 {
34257 if (!wxPyCheckForApp()) SWIG_fail;
34258 PyThreadState* __tstate = wxPyBeginAllowThreads();
34259 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34260 wxPyEndAllowThreads(__tstate);
34261 if (PyErr_Occurred()) SWIG_fail;
34262 }
34263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34264 return resultobj;
34265 fail:
34266 return NULL;
34267 }
34268
34269
34270 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34271 PyObject *resultobj = 0;
34272 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34273 wxWindow *arg2 = (wxWindow *) 0 ;
34274 int arg3 = (int) -1 ;
34275 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34276 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34277 wxSize const &arg5_defvalue = wxDefaultSize ;
34278 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34279 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34280 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34281 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34282 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34283 wxString *arg8 = (wxString *) &arg8_defvalue ;
34284 bool result;
34285 void *argp1 = 0 ;
34286 int res1 = 0 ;
34287 void *argp2 = 0 ;
34288 int res2 = 0 ;
34289 int val3 ;
34290 int ecode3 = 0 ;
34291 wxPoint temp4 ;
34292 wxSize temp5 ;
34293 long val6 ;
34294 int ecode6 = 0 ;
34295 void *argp7 = 0 ;
34296 int res7 = 0 ;
34297 bool temp8 = false ;
34298 PyObject * obj0 = 0 ;
34299 PyObject * obj1 = 0 ;
34300 PyObject * obj2 = 0 ;
34301 PyObject * obj3 = 0 ;
34302 PyObject * obj4 = 0 ;
34303 PyObject * obj5 = 0 ;
34304 PyObject * obj6 = 0 ;
34305 PyObject * obj7 = 0 ;
34306 char * kwnames[] = {
34307 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34308 };
34309
34310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34312 if (!SWIG_IsOK(res1)) {
34313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34314 }
34315 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34316 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34317 if (!SWIG_IsOK(res2)) {
34318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34319 }
34320 arg2 = reinterpret_cast< wxWindow * >(argp2);
34321 if (obj2) {
34322 ecode3 = SWIG_AsVal_int(obj2, &val3);
34323 if (!SWIG_IsOK(ecode3)) {
34324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34325 }
34326 arg3 = static_cast< int >(val3);
34327 }
34328 if (obj3) {
34329 {
34330 arg4 = &temp4;
34331 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34332 }
34333 }
34334 if (obj4) {
34335 {
34336 arg5 = &temp5;
34337 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34338 }
34339 }
34340 if (obj5) {
34341 ecode6 = SWIG_AsVal_long(obj5, &val6);
34342 if (!SWIG_IsOK(ecode6)) {
34343 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34344 }
34345 arg6 = static_cast< long >(val6);
34346 }
34347 if (obj6) {
34348 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34349 if (!SWIG_IsOK(res7)) {
34350 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34351 }
34352 if (!argp7) {
34353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34354 }
34355 arg7 = reinterpret_cast< wxValidator * >(argp7);
34356 }
34357 if (obj7) {
34358 {
34359 arg8 = wxString_in_helper(obj7);
34360 if (arg8 == NULL) SWIG_fail;
34361 temp8 = true;
34362 }
34363 }
34364 {
34365 PyThreadState* __tstate = wxPyBeginAllowThreads();
34366 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34367 wxPyEndAllowThreads(__tstate);
34368 if (PyErr_Occurred()) SWIG_fail;
34369 }
34370 {
34371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34372 }
34373 {
34374 if (temp8)
34375 delete arg8;
34376 }
34377 return resultobj;
34378 fail:
34379 {
34380 if (temp8)
34381 delete arg8;
34382 }
34383 return NULL;
34384 }
34385
34386
34387 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34388 PyObject *resultobj = 0;
34389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34390 PyObject *arg2 = (PyObject *) 0 ;
34391 PyObject *arg3 = (PyObject *) 0 ;
34392 void *argp1 = 0 ;
34393 int res1 = 0 ;
34394 PyObject * obj0 = 0 ;
34395 PyObject * obj1 = 0 ;
34396 PyObject * obj2 = 0 ;
34397 char * kwnames[] = {
34398 (char *) "self",(char *) "self",(char *) "_class", NULL
34399 };
34400
34401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34403 if (!SWIG_IsOK(res1)) {
34404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34405 }
34406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34407 arg2 = obj1;
34408 arg3 = obj2;
34409 {
34410 PyThreadState* __tstate = wxPyBeginAllowThreads();
34411 (arg1)->_setCallbackInfo(arg2,arg3);
34412 wxPyEndAllowThreads(__tstate);
34413 if (PyErr_Occurred()) SWIG_fail;
34414 }
34415 resultobj = SWIG_Py_Void();
34416 return resultobj;
34417 fail:
34418 return NULL;
34419 }
34420
34421
34422 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34423 PyObject *resultobj = 0;
34424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34425 unsigned int result;
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_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34435 }
34436 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34437 {
34438 PyThreadState* __tstate = wxPyBeginAllowThreads();
34439 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34440 wxPyEndAllowThreads(__tstate);
34441 if (PyErr_Occurred()) SWIG_fail;
34442 }
34443 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34444 return resultobj;
34445 fail:
34446 return NULL;
34447 }
34448
34449
34450 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34451 PyObject *resultobj = 0;
34452 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34453 unsigned int result;
34454 void *argp1 = 0 ;
34455 int res1 = 0 ;
34456 PyObject *swig_obj[1] ;
34457
34458 if (!args) SWIG_fail;
34459 swig_obj[0] = args;
34460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34461 if (!SWIG_IsOK(res1)) {
34462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34463 }
34464 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34468 wxPyEndAllowThreads(__tstate);
34469 if (PyErr_Occurred()) SWIG_fail;
34470 }
34471 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34472 return resultobj;
34473 fail:
34474 return NULL;
34475 }
34476
34477
34478 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34479 PyObject *resultobj = 0;
34480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34481 unsigned int arg2 ;
34482 void *argp1 = 0 ;
34483 int res1 = 0 ;
34484 unsigned int val2 ;
34485 int ecode2 = 0 ;
34486 PyObject * obj0 = 0 ;
34487 PyObject * obj1 = 0 ;
34488 char * kwnames[] = {
34489 (char *) "self",(char *) "indent", NULL
34490 };
34491
34492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34494 if (!SWIG_IsOK(res1)) {
34495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34496 }
34497 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34498 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34499 if (!SWIG_IsOK(ecode2)) {
34500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34501 }
34502 arg2 = static_cast< unsigned int >(val2);
34503 {
34504 PyThreadState* __tstate = wxPyBeginAllowThreads();
34505 (arg1)->SetIndent(arg2);
34506 wxPyEndAllowThreads(__tstate);
34507 if (PyErr_Occurred()) SWIG_fail;
34508 }
34509 resultobj = SWIG_Py_Void();
34510 return resultobj;
34511 fail:
34512 return NULL;
34513 }
34514
34515
34516 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34517 PyObject *resultobj = 0;
34518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34519 unsigned int result;
34520 void *argp1 = 0 ;
34521 int res1 = 0 ;
34522 PyObject *swig_obj[1] ;
34523
34524 if (!args) SWIG_fail;
34525 swig_obj[0] = args;
34526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34527 if (!SWIG_IsOK(res1)) {
34528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34529 }
34530 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34531 {
34532 PyThreadState* __tstate = wxPyBeginAllowThreads();
34533 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34534 wxPyEndAllowThreads(__tstate);
34535 if (PyErr_Occurred()) SWIG_fail;
34536 }
34537 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34538 return resultobj;
34539 fail:
34540 return NULL;
34541 }
34542
34543
34544 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34545 PyObject *resultobj = 0;
34546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34547 unsigned int arg2 ;
34548 void *argp1 = 0 ;
34549 int res1 = 0 ;
34550 unsigned int val2 ;
34551 int ecode2 = 0 ;
34552 PyObject * obj0 = 0 ;
34553 PyObject * obj1 = 0 ;
34554 char * kwnames[] = {
34555 (char *) "self",(char *) "spacing", NULL
34556 };
34557
34558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34560 if (!SWIG_IsOK(res1)) {
34561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34562 }
34563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34564 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34565 if (!SWIG_IsOK(ecode2)) {
34566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34567 }
34568 arg2 = static_cast< unsigned int >(val2);
34569 {
34570 PyThreadState* __tstate = wxPyBeginAllowThreads();
34571 (arg1)->SetSpacing(arg2);
34572 wxPyEndAllowThreads(__tstate);
34573 if (PyErr_Occurred()) SWIG_fail;
34574 }
34575 resultobj = SWIG_Py_Void();
34576 return resultobj;
34577 fail:
34578 return NULL;
34579 }
34580
34581
34582 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34583 PyObject *resultobj = 0;
34584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34585 wxImageList *result = 0 ;
34586 void *argp1 = 0 ;
34587 int res1 = 0 ;
34588 PyObject *swig_obj[1] ;
34589
34590 if (!args) SWIG_fail;
34591 swig_obj[0] = args;
34592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34593 if (!SWIG_IsOK(res1)) {
34594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34595 }
34596 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34597 {
34598 PyThreadState* __tstate = wxPyBeginAllowThreads();
34599 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34600 wxPyEndAllowThreads(__tstate);
34601 if (PyErr_Occurred()) SWIG_fail;
34602 }
34603 {
34604 resultobj = wxPyMake_wxObject(result, (bool)0);
34605 }
34606 return resultobj;
34607 fail:
34608 return NULL;
34609 }
34610
34611
34612 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34613 PyObject *resultobj = 0;
34614 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34615 wxImageList *result = 0 ;
34616 void *argp1 = 0 ;
34617 int res1 = 0 ;
34618 PyObject *swig_obj[1] ;
34619
34620 if (!args) SWIG_fail;
34621 swig_obj[0] = args;
34622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34623 if (!SWIG_IsOK(res1)) {
34624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34625 }
34626 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34627 {
34628 PyThreadState* __tstate = wxPyBeginAllowThreads();
34629 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34630 wxPyEndAllowThreads(__tstate);
34631 if (PyErr_Occurred()) SWIG_fail;
34632 }
34633 {
34634 resultobj = wxPyMake_wxObject(result, (bool)0);
34635 }
34636 return resultobj;
34637 fail:
34638 return NULL;
34639 }
34640
34641
34642 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34643 PyObject *resultobj = 0;
34644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34645 wxImageList *arg2 = (wxImageList *) 0 ;
34646 void *argp1 = 0 ;
34647 int res1 = 0 ;
34648 void *argp2 = 0 ;
34649 int res2 = 0 ;
34650 PyObject * obj0 = 0 ;
34651 PyObject * obj1 = 0 ;
34652 char * kwnames[] = {
34653 (char *) "self",(char *) "imageList", NULL
34654 };
34655
34656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34658 if (!SWIG_IsOK(res1)) {
34659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34660 }
34661 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34662 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34663 if (!SWIG_IsOK(res2)) {
34664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34665 }
34666 arg2 = reinterpret_cast< wxImageList * >(argp2);
34667 {
34668 PyThreadState* __tstate = wxPyBeginAllowThreads();
34669 (arg1)->SetImageList(arg2);
34670 wxPyEndAllowThreads(__tstate);
34671 if (PyErr_Occurred()) SWIG_fail;
34672 }
34673 resultobj = SWIG_Py_Void();
34674 return resultobj;
34675 fail:
34676 return NULL;
34677 }
34678
34679
34680 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34681 PyObject *resultobj = 0;
34682 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34683 wxImageList *arg2 = (wxImageList *) 0 ;
34684 void *argp1 = 0 ;
34685 int res1 = 0 ;
34686 void *argp2 = 0 ;
34687 int res2 = 0 ;
34688 PyObject * obj0 = 0 ;
34689 PyObject * obj1 = 0 ;
34690 char * kwnames[] = {
34691 (char *) "self",(char *) "imageList", NULL
34692 };
34693
34694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34696 if (!SWIG_IsOK(res1)) {
34697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34698 }
34699 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34701 if (!SWIG_IsOK(res2)) {
34702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34703 }
34704 arg2 = reinterpret_cast< wxImageList * >(argp2);
34705 {
34706 PyThreadState* __tstate = wxPyBeginAllowThreads();
34707 (arg1)->SetStateImageList(arg2);
34708 wxPyEndAllowThreads(__tstate);
34709 if (PyErr_Occurred()) SWIG_fail;
34710 }
34711 resultobj = SWIG_Py_Void();
34712 return resultobj;
34713 fail:
34714 return NULL;
34715 }
34716
34717
34718 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34719 PyObject *resultobj = 0;
34720 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34721 wxImageList *arg2 = (wxImageList *) 0 ;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 int res2 = 0 ;
34725 PyObject * obj0 = 0 ;
34726 PyObject * obj1 = 0 ;
34727 char * kwnames[] = {
34728 (char *) "self",(char *) "imageList", NULL
34729 };
34730
34731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34733 if (!SWIG_IsOK(res1)) {
34734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34735 }
34736 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34737 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34738 if (!SWIG_IsOK(res2)) {
34739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34740 }
34741 {
34742 PyThreadState* __tstate = wxPyBeginAllowThreads();
34743 (arg1)->AssignImageList(arg2);
34744 wxPyEndAllowThreads(__tstate);
34745 if (PyErr_Occurred()) SWIG_fail;
34746 }
34747 resultobj = SWIG_Py_Void();
34748 return resultobj;
34749 fail:
34750 return NULL;
34751 }
34752
34753
34754 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34755 PyObject *resultobj = 0;
34756 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34757 wxImageList *arg2 = (wxImageList *) 0 ;
34758 void *argp1 = 0 ;
34759 int res1 = 0 ;
34760 int res2 = 0 ;
34761 PyObject * obj0 = 0 ;
34762 PyObject * obj1 = 0 ;
34763 char * kwnames[] = {
34764 (char *) "self",(char *) "imageList", NULL
34765 };
34766
34767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34769 if (!SWIG_IsOK(res1)) {
34770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34771 }
34772 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34773 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34774 if (!SWIG_IsOK(res2)) {
34775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34776 }
34777 {
34778 PyThreadState* __tstate = wxPyBeginAllowThreads();
34779 (arg1)->AssignStateImageList(arg2);
34780 wxPyEndAllowThreads(__tstate);
34781 if (PyErr_Occurred()) SWIG_fail;
34782 }
34783 resultobj = SWIG_Py_Void();
34784 return resultobj;
34785 fail:
34786 return NULL;
34787 }
34788
34789
34790 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34791 PyObject *resultobj = 0;
34792 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34793 wxTreeItemId *arg2 = 0 ;
34794 wxString result;
34795 void *argp1 = 0 ;
34796 int res1 = 0 ;
34797 void *argp2 = 0 ;
34798 int res2 = 0 ;
34799 PyObject * obj0 = 0 ;
34800 PyObject * obj1 = 0 ;
34801 char * kwnames[] = {
34802 (char *) "self",(char *) "item", NULL
34803 };
34804
34805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34807 if (!SWIG_IsOK(res1)) {
34808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34809 }
34810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34812 if (!SWIG_IsOK(res2)) {
34813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34814 }
34815 if (!argp2) {
34816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34817 }
34818 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34819 {
34820 PyThreadState* __tstate = wxPyBeginAllowThreads();
34821 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34822 wxPyEndAllowThreads(__tstate);
34823 if (PyErr_Occurred()) SWIG_fail;
34824 }
34825 {
34826 #if wxUSE_UNICODE
34827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34828 #else
34829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34830 #endif
34831 }
34832 return resultobj;
34833 fail:
34834 return NULL;
34835 }
34836
34837
34838 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34839 PyObject *resultobj = 0;
34840 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34841 wxTreeItemId *arg2 = 0 ;
34842 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34843 int result;
34844 void *argp1 = 0 ;
34845 int res1 = 0 ;
34846 void *argp2 = 0 ;
34847 int res2 = 0 ;
34848 int val3 ;
34849 int ecode3 = 0 ;
34850 PyObject * obj0 = 0 ;
34851 PyObject * obj1 = 0 ;
34852 PyObject * obj2 = 0 ;
34853 char * kwnames[] = {
34854 (char *) "self",(char *) "item",(char *) "which", NULL
34855 };
34856
34857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34859 if (!SWIG_IsOK(res1)) {
34860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34861 }
34862 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34864 if (!SWIG_IsOK(res2)) {
34865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34866 }
34867 if (!argp2) {
34868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34869 }
34870 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34871 if (obj2) {
34872 ecode3 = SWIG_AsVal_int(obj2, &val3);
34873 if (!SWIG_IsOK(ecode3)) {
34874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34875 }
34876 arg3 = static_cast< wxTreeItemIcon >(val3);
34877 }
34878 {
34879 PyThreadState* __tstate = wxPyBeginAllowThreads();
34880 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34881 wxPyEndAllowThreads(__tstate);
34882 if (PyErr_Occurred()) SWIG_fail;
34883 }
34884 resultobj = SWIG_From_int(static_cast< int >(result));
34885 return resultobj;
34886 fail:
34887 return NULL;
34888 }
34889
34890
34891 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34892 PyObject *resultobj = 0;
34893 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34894 wxTreeItemId *arg2 = 0 ;
34895 wxPyTreeItemData *result = 0 ;
34896 void *argp1 = 0 ;
34897 int res1 = 0 ;
34898 void *argp2 = 0 ;
34899 int res2 = 0 ;
34900 PyObject * obj0 = 0 ;
34901 PyObject * obj1 = 0 ;
34902 char * kwnames[] = {
34903 (char *) "self",(char *) "item", NULL
34904 };
34905
34906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34908 if (!SWIG_IsOK(res1)) {
34909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34910 }
34911 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34913 if (!SWIG_IsOK(res2)) {
34914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34915 }
34916 if (!argp2) {
34917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34918 }
34919 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34920 {
34921 PyThreadState* __tstate = wxPyBeginAllowThreads();
34922 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34923 wxPyEndAllowThreads(__tstate);
34924 if (PyErr_Occurred()) SWIG_fail;
34925 }
34926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34927 return resultobj;
34928 fail:
34929 return NULL;
34930 }
34931
34932
34933 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34934 PyObject *resultobj = 0;
34935 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34936 wxTreeItemId *arg2 = 0 ;
34937 PyObject *result = 0 ;
34938 void *argp1 = 0 ;
34939 int res1 = 0 ;
34940 void *argp2 = 0 ;
34941 int res2 = 0 ;
34942 PyObject * obj0 = 0 ;
34943 PyObject * obj1 = 0 ;
34944 char * kwnames[] = {
34945 (char *) "self",(char *) "item", NULL
34946 };
34947
34948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34950 if (!SWIG_IsOK(res1)) {
34951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34952 }
34953 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34955 if (!SWIG_IsOK(res2)) {
34956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34957 }
34958 if (!argp2) {
34959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34960 }
34961 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34962 {
34963 PyThreadState* __tstate = wxPyBeginAllowThreads();
34964 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34965 wxPyEndAllowThreads(__tstate);
34966 if (PyErr_Occurred()) SWIG_fail;
34967 }
34968 resultobj = result;
34969 return resultobj;
34970 fail:
34971 return NULL;
34972 }
34973
34974
34975 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34976 PyObject *resultobj = 0;
34977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34978 wxTreeItemId *arg2 = 0 ;
34979 wxColour result;
34980 void *argp1 = 0 ;
34981 int res1 = 0 ;
34982 void *argp2 = 0 ;
34983 int res2 = 0 ;
34984 PyObject * obj0 = 0 ;
34985 PyObject * obj1 = 0 ;
34986 char * kwnames[] = {
34987 (char *) "self",(char *) "item", NULL
34988 };
34989
34990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) 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_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34999 }
35000 if (!argp2) {
35001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35004 {
35005 PyThreadState* __tstate = wxPyBeginAllowThreads();
35006 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
35007 wxPyEndAllowThreads(__tstate);
35008 if (PyErr_Occurred()) SWIG_fail;
35009 }
35010 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
35011 return resultobj;
35012 fail:
35013 return NULL;
35014 }
35015
35016
35017 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35018 PyObject *resultobj = 0;
35019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35020 wxTreeItemId *arg2 = 0 ;
35021 wxColour result;
35022 void *argp1 = 0 ;
35023 int res1 = 0 ;
35024 void *argp2 = 0 ;
35025 int res2 = 0 ;
35026 PyObject * obj0 = 0 ;
35027 PyObject * obj1 = 0 ;
35028 char * kwnames[] = {
35029 (char *) "self",(char *) "item", NULL
35030 };
35031
35032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
35033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35036 }
35037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35039 if (!SWIG_IsOK(res2)) {
35040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35041 }
35042 if (!argp2) {
35043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35044 }
35045 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35046 {
35047 PyThreadState* __tstate = wxPyBeginAllowThreads();
35048 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
35049 wxPyEndAllowThreads(__tstate);
35050 if (PyErr_Occurred()) SWIG_fail;
35051 }
35052 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
35053 return resultobj;
35054 fail:
35055 return NULL;
35056 }
35057
35058
35059 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35060 PyObject *resultobj = 0;
35061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35062 wxTreeItemId *arg2 = 0 ;
35063 wxFont result;
35064 void *argp1 = 0 ;
35065 int res1 = 0 ;
35066 void *argp2 = 0 ;
35067 int res2 = 0 ;
35068 PyObject * obj0 = 0 ;
35069 PyObject * obj1 = 0 ;
35070 char * kwnames[] = {
35071 (char *) "self",(char *) "item", NULL
35072 };
35073
35074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
35075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35076 if (!SWIG_IsOK(res1)) {
35077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35078 }
35079 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35081 if (!SWIG_IsOK(res2)) {
35082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35083 }
35084 if (!argp2) {
35085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35086 }
35087 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35088 {
35089 PyThreadState* __tstate = wxPyBeginAllowThreads();
35090 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
35091 wxPyEndAllowThreads(__tstate);
35092 if (PyErr_Occurred()) SWIG_fail;
35093 }
35094 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
35095 return resultobj;
35096 fail:
35097 return NULL;
35098 }
35099
35100
35101 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35102 PyObject *resultobj = 0;
35103 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35104 wxTreeItemId *arg2 = 0 ;
35105 wxString *arg3 = 0 ;
35106 void *argp1 = 0 ;
35107 int res1 = 0 ;
35108 void *argp2 = 0 ;
35109 int res2 = 0 ;
35110 bool temp3 = false ;
35111 PyObject * obj0 = 0 ;
35112 PyObject * obj1 = 0 ;
35113 PyObject * obj2 = 0 ;
35114 char * kwnames[] = {
35115 (char *) "self",(char *) "item",(char *) "text", NULL
35116 };
35117
35118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35120 if (!SWIG_IsOK(res1)) {
35121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35122 }
35123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35125 if (!SWIG_IsOK(res2)) {
35126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35127 }
35128 if (!argp2) {
35129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35130 }
35131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35132 {
35133 arg3 = wxString_in_helper(obj2);
35134 if (arg3 == NULL) SWIG_fail;
35135 temp3 = true;
35136 }
35137 {
35138 PyThreadState* __tstate = wxPyBeginAllowThreads();
35139 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
35140 wxPyEndAllowThreads(__tstate);
35141 if (PyErr_Occurred()) SWIG_fail;
35142 }
35143 resultobj = SWIG_Py_Void();
35144 {
35145 if (temp3)
35146 delete arg3;
35147 }
35148 return resultobj;
35149 fail:
35150 {
35151 if (temp3)
35152 delete arg3;
35153 }
35154 return NULL;
35155 }
35156
35157
35158 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35159 PyObject *resultobj = 0;
35160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35161 wxTreeItemId *arg2 = 0 ;
35162 int arg3 ;
35163 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
35164 void *argp1 = 0 ;
35165 int res1 = 0 ;
35166 void *argp2 = 0 ;
35167 int res2 = 0 ;
35168 int val3 ;
35169 int ecode3 = 0 ;
35170 int val4 ;
35171 int ecode4 = 0 ;
35172 PyObject * obj0 = 0 ;
35173 PyObject * obj1 = 0 ;
35174 PyObject * obj2 = 0 ;
35175 PyObject * obj3 = 0 ;
35176 char * kwnames[] = {
35177 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
35178 };
35179
35180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35182 if (!SWIG_IsOK(res1)) {
35183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35184 }
35185 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35187 if (!SWIG_IsOK(res2)) {
35188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35189 }
35190 if (!argp2) {
35191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35192 }
35193 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35194 ecode3 = SWIG_AsVal_int(obj2, &val3);
35195 if (!SWIG_IsOK(ecode3)) {
35196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35197 }
35198 arg3 = static_cast< int >(val3);
35199 if (obj3) {
35200 ecode4 = SWIG_AsVal_int(obj3, &val4);
35201 if (!SWIG_IsOK(ecode4)) {
35202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35203 }
35204 arg4 = static_cast< wxTreeItemIcon >(val4);
35205 }
35206 {
35207 PyThreadState* __tstate = wxPyBeginAllowThreads();
35208 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35209 wxPyEndAllowThreads(__tstate);
35210 if (PyErr_Occurred()) SWIG_fail;
35211 }
35212 resultobj = SWIG_Py_Void();
35213 return resultobj;
35214 fail:
35215 return NULL;
35216 }
35217
35218
35219 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35220 PyObject *resultobj = 0;
35221 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35222 wxTreeItemId *arg2 = 0 ;
35223 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35224 void *argp1 = 0 ;
35225 int res1 = 0 ;
35226 void *argp2 = 0 ;
35227 int res2 = 0 ;
35228 int res3 = 0 ;
35229 PyObject * obj0 = 0 ;
35230 PyObject * obj1 = 0 ;
35231 PyObject * obj2 = 0 ;
35232 char * kwnames[] = {
35233 (char *) "self",(char *) "item",(char *) "data", NULL
35234 };
35235
35236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35238 if (!SWIG_IsOK(res1)) {
35239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35240 }
35241 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35243 if (!SWIG_IsOK(res2)) {
35244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35245 }
35246 if (!argp2) {
35247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35248 }
35249 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35250 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35251 if (!SWIG_IsOK(res3)) {
35252 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35253 }
35254 {
35255 PyThreadState* __tstate = wxPyBeginAllowThreads();
35256 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35257 wxPyEndAllowThreads(__tstate);
35258 if (PyErr_Occurred()) SWIG_fail;
35259 }
35260 resultobj = SWIG_Py_Void();
35261 return resultobj;
35262 fail:
35263 return NULL;
35264 }
35265
35266
35267 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35268 PyObject *resultobj = 0;
35269 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35270 wxTreeItemId *arg2 = 0 ;
35271 PyObject *arg3 = (PyObject *) 0 ;
35272 void *argp1 = 0 ;
35273 int res1 = 0 ;
35274 void *argp2 = 0 ;
35275 int res2 = 0 ;
35276 PyObject * obj0 = 0 ;
35277 PyObject * obj1 = 0 ;
35278 PyObject * obj2 = 0 ;
35279 char * kwnames[] = {
35280 (char *) "self",(char *) "item",(char *) "obj", NULL
35281 };
35282
35283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35285 if (!SWIG_IsOK(res1)) {
35286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35287 }
35288 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35290 if (!SWIG_IsOK(res2)) {
35291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35292 }
35293 if (!argp2) {
35294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35295 }
35296 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35297 arg3 = obj2;
35298 {
35299 PyThreadState* __tstate = wxPyBeginAllowThreads();
35300 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35301 wxPyEndAllowThreads(__tstate);
35302 if (PyErr_Occurred()) SWIG_fail;
35303 }
35304 resultobj = SWIG_Py_Void();
35305 return resultobj;
35306 fail:
35307 return NULL;
35308 }
35309
35310
35311 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35312 PyObject *resultobj = 0;
35313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35314 wxTreeItemId *arg2 = 0 ;
35315 bool arg3 = (bool) true ;
35316 void *argp1 = 0 ;
35317 int res1 = 0 ;
35318 void *argp2 = 0 ;
35319 int res2 = 0 ;
35320 bool val3 ;
35321 int ecode3 = 0 ;
35322 PyObject * obj0 = 0 ;
35323 PyObject * obj1 = 0 ;
35324 PyObject * obj2 = 0 ;
35325 char * kwnames[] = {
35326 (char *) "self",(char *) "item",(char *) "has", NULL
35327 };
35328
35329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35331 if (!SWIG_IsOK(res1)) {
35332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35333 }
35334 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35336 if (!SWIG_IsOK(res2)) {
35337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35338 }
35339 if (!argp2) {
35340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35341 }
35342 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35343 if (obj2) {
35344 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35345 if (!SWIG_IsOK(ecode3)) {
35346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35347 }
35348 arg3 = static_cast< bool >(val3);
35349 }
35350 {
35351 PyThreadState* __tstate = wxPyBeginAllowThreads();
35352 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35353 wxPyEndAllowThreads(__tstate);
35354 if (PyErr_Occurred()) SWIG_fail;
35355 }
35356 resultobj = SWIG_Py_Void();
35357 return resultobj;
35358 fail:
35359 return NULL;
35360 }
35361
35362
35363 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35364 PyObject *resultobj = 0;
35365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35366 wxTreeItemId *arg2 = 0 ;
35367 bool arg3 = (bool) true ;
35368 void *argp1 = 0 ;
35369 int res1 = 0 ;
35370 void *argp2 = 0 ;
35371 int res2 = 0 ;
35372 bool val3 ;
35373 int ecode3 = 0 ;
35374 PyObject * obj0 = 0 ;
35375 PyObject * obj1 = 0 ;
35376 PyObject * obj2 = 0 ;
35377 char * kwnames[] = {
35378 (char *) "self",(char *) "item",(char *) "bold", NULL
35379 };
35380
35381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35383 if (!SWIG_IsOK(res1)) {
35384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35385 }
35386 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35387 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35388 if (!SWIG_IsOK(res2)) {
35389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35390 }
35391 if (!argp2) {
35392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35393 }
35394 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35395 if (obj2) {
35396 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35397 if (!SWIG_IsOK(ecode3)) {
35398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35399 }
35400 arg3 = static_cast< bool >(val3);
35401 }
35402 {
35403 PyThreadState* __tstate = wxPyBeginAllowThreads();
35404 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35405 wxPyEndAllowThreads(__tstate);
35406 if (PyErr_Occurred()) SWIG_fail;
35407 }
35408 resultobj = SWIG_Py_Void();
35409 return resultobj;
35410 fail:
35411 return NULL;
35412 }
35413
35414
35415 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35416 PyObject *resultobj = 0;
35417 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35418 wxTreeItemId *arg2 = 0 ;
35419 bool arg3 = (bool) true ;
35420 void *argp1 = 0 ;
35421 int res1 = 0 ;
35422 void *argp2 = 0 ;
35423 int res2 = 0 ;
35424 bool val3 ;
35425 int ecode3 = 0 ;
35426 PyObject * obj0 = 0 ;
35427 PyObject * obj1 = 0 ;
35428 PyObject * obj2 = 0 ;
35429 char * kwnames[] = {
35430 (char *) "self",(char *) "item",(char *) "highlight", NULL
35431 };
35432
35433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35435 if (!SWIG_IsOK(res1)) {
35436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35437 }
35438 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35440 if (!SWIG_IsOK(res2)) {
35441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35442 }
35443 if (!argp2) {
35444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35445 }
35446 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35447 if (obj2) {
35448 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35449 if (!SWIG_IsOK(ecode3)) {
35450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35451 }
35452 arg3 = static_cast< bool >(val3);
35453 }
35454 {
35455 PyThreadState* __tstate = wxPyBeginAllowThreads();
35456 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35457 wxPyEndAllowThreads(__tstate);
35458 if (PyErr_Occurred()) SWIG_fail;
35459 }
35460 resultobj = SWIG_Py_Void();
35461 return resultobj;
35462 fail:
35463 return NULL;
35464 }
35465
35466
35467 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35468 PyObject *resultobj = 0;
35469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35470 wxTreeItemId *arg2 = 0 ;
35471 wxColour *arg3 = 0 ;
35472 void *argp1 = 0 ;
35473 int res1 = 0 ;
35474 void *argp2 = 0 ;
35475 int res2 = 0 ;
35476 wxColour temp3 ;
35477 PyObject * obj0 = 0 ;
35478 PyObject * obj1 = 0 ;
35479 PyObject * obj2 = 0 ;
35480 char * kwnames[] = {
35481 (char *) "self",(char *) "item",(char *) "col", NULL
35482 };
35483
35484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35486 if (!SWIG_IsOK(res1)) {
35487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35488 }
35489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35491 if (!SWIG_IsOK(res2)) {
35492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35493 }
35494 if (!argp2) {
35495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35496 }
35497 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35498 {
35499 arg3 = &temp3;
35500 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35501 }
35502 {
35503 PyThreadState* __tstate = wxPyBeginAllowThreads();
35504 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35505 wxPyEndAllowThreads(__tstate);
35506 if (PyErr_Occurred()) SWIG_fail;
35507 }
35508 resultobj = SWIG_Py_Void();
35509 return resultobj;
35510 fail:
35511 return NULL;
35512 }
35513
35514
35515 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35516 PyObject *resultobj = 0;
35517 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35518 wxTreeItemId *arg2 = 0 ;
35519 wxColour *arg3 = 0 ;
35520 void *argp1 = 0 ;
35521 int res1 = 0 ;
35522 void *argp2 = 0 ;
35523 int res2 = 0 ;
35524 wxColour temp3 ;
35525 PyObject * obj0 = 0 ;
35526 PyObject * obj1 = 0 ;
35527 PyObject * obj2 = 0 ;
35528 char * kwnames[] = {
35529 (char *) "self",(char *) "item",(char *) "col", NULL
35530 };
35531
35532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35534 if (!SWIG_IsOK(res1)) {
35535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35536 }
35537 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35539 if (!SWIG_IsOK(res2)) {
35540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35541 }
35542 if (!argp2) {
35543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35544 }
35545 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35546 {
35547 arg3 = &temp3;
35548 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35549 }
35550 {
35551 PyThreadState* __tstate = wxPyBeginAllowThreads();
35552 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35553 wxPyEndAllowThreads(__tstate);
35554 if (PyErr_Occurred()) SWIG_fail;
35555 }
35556 resultobj = SWIG_Py_Void();
35557 return resultobj;
35558 fail:
35559 return NULL;
35560 }
35561
35562
35563 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35564 PyObject *resultobj = 0;
35565 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35566 wxTreeItemId *arg2 = 0 ;
35567 wxFont *arg3 = 0 ;
35568 void *argp1 = 0 ;
35569 int res1 = 0 ;
35570 void *argp2 = 0 ;
35571 int res2 = 0 ;
35572 void *argp3 = 0 ;
35573 int res3 = 0 ;
35574 PyObject * obj0 = 0 ;
35575 PyObject * obj1 = 0 ;
35576 PyObject * obj2 = 0 ;
35577 char * kwnames[] = {
35578 (char *) "self",(char *) "item",(char *) "font", NULL
35579 };
35580
35581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35583 if (!SWIG_IsOK(res1)) {
35584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35585 }
35586 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35588 if (!SWIG_IsOK(res2)) {
35589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35590 }
35591 if (!argp2) {
35592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35593 }
35594 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35595 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35596 if (!SWIG_IsOK(res3)) {
35597 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35598 }
35599 if (!argp3) {
35600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35601 }
35602 arg3 = reinterpret_cast< wxFont * >(argp3);
35603 {
35604 PyThreadState* __tstate = wxPyBeginAllowThreads();
35605 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35606 wxPyEndAllowThreads(__tstate);
35607 if (PyErr_Occurred()) SWIG_fail;
35608 }
35609 resultobj = SWIG_Py_Void();
35610 return resultobj;
35611 fail:
35612 return NULL;
35613 }
35614
35615
35616 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35617 PyObject *resultobj = 0;
35618 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35619 wxTreeItemId *arg2 = 0 ;
35620 bool result;
35621 void *argp1 = 0 ;
35622 int res1 = 0 ;
35623 void *argp2 = 0 ;
35624 int res2 = 0 ;
35625 PyObject * obj0 = 0 ;
35626 PyObject * obj1 = 0 ;
35627 char * kwnames[] = {
35628 (char *) "self",(char *) "item", NULL
35629 };
35630
35631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35633 if (!SWIG_IsOK(res1)) {
35634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35635 }
35636 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35638 if (!SWIG_IsOK(res2)) {
35639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35640 }
35641 if (!argp2) {
35642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35643 }
35644 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35645 {
35646 PyThreadState* __tstate = wxPyBeginAllowThreads();
35647 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35648 wxPyEndAllowThreads(__tstate);
35649 if (PyErr_Occurred()) SWIG_fail;
35650 }
35651 {
35652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35653 }
35654 return resultobj;
35655 fail:
35656 return NULL;
35657 }
35658
35659
35660 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35661 PyObject *resultobj = 0;
35662 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35663 wxTreeItemId *arg2 = 0 ;
35664 bool result;
35665 void *argp1 = 0 ;
35666 int res1 = 0 ;
35667 void *argp2 = 0 ;
35668 int res2 = 0 ;
35669 PyObject * obj0 = 0 ;
35670 PyObject * obj1 = 0 ;
35671 char * kwnames[] = {
35672 (char *) "self",(char *) "item", NULL
35673 };
35674
35675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35677 if (!SWIG_IsOK(res1)) {
35678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35679 }
35680 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35682 if (!SWIG_IsOK(res2)) {
35683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35684 }
35685 if (!argp2) {
35686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35687 }
35688 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35689 {
35690 PyThreadState* __tstate = wxPyBeginAllowThreads();
35691 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35692 wxPyEndAllowThreads(__tstate);
35693 if (PyErr_Occurred()) SWIG_fail;
35694 }
35695 {
35696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35697 }
35698 return resultobj;
35699 fail:
35700 return NULL;
35701 }
35702
35703
35704 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35705 PyObject *resultobj = 0;
35706 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35707 wxTreeItemId *arg2 = 0 ;
35708 bool result;
35709 void *argp1 = 0 ;
35710 int res1 = 0 ;
35711 void *argp2 = 0 ;
35712 int res2 = 0 ;
35713 PyObject * obj0 = 0 ;
35714 PyObject * obj1 = 0 ;
35715 char * kwnames[] = {
35716 (char *) "self",(char *) "item", NULL
35717 };
35718
35719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35721 if (!SWIG_IsOK(res1)) {
35722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35723 }
35724 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35726 if (!SWIG_IsOK(res2)) {
35727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35728 }
35729 if (!argp2) {
35730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35731 }
35732 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35733 {
35734 PyThreadState* __tstate = wxPyBeginAllowThreads();
35735 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35736 wxPyEndAllowThreads(__tstate);
35737 if (PyErr_Occurred()) SWIG_fail;
35738 }
35739 {
35740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35741 }
35742 return resultobj;
35743 fail:
35744 return NULL;
35745 }
35746
35747
35748 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35749 PyObject *resultobj = 0;
35750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35751 wxTreeItemId *arg2 = 0 ;
35752 bool result;
35753 void *argp1 = 0 ;
35754 int res1 = 0 ;
35755 void *argp2 = 0 ;
35756 int res2 = 0 ;
35757 PyObject * obj0 = 0 ;
35758 PyObject * obj1 = 0 ;
35759 char * kwnames[] = {
35760 (char *) "self",(char *) "item", NULL
35761 };
35762
35763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35765 if (!SWIG_IsOK(res1)) {
35766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35767 }
35768 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35770 if (!SWIG_IsOK(res2)) {
35771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35772 }
35773 if (!argp2) {
35774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35775 }
35776 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35777 {
35778 PyThreadState* __tstate = wxPyBeginAllowThreads();
35779 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35780 wxPyEndAllowThreads(__tstate);
35781 if (PyErr_Occurred()) SWIG_fail;
35782 }
35783 {
35784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35785 }
35786 return resultobj;
35787 fail:
35788 return NULL;
35789 }
35790
35791
35792 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35793 PyObject *resultobj = 0;
35794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35795 wxTreeItemId *arg2 = 0 ;
35796 bool result;
35797 void *argp1 = 0 ;
35798 int res1 = 0 ;
35799 void *argp2 = 0 ;
35800 int res2 = 0 ;
35801 PyObject * obj0 = 0 ;
35802 PyObject * obj1 = 0 ;
35803 char * kwnames[] = {
35804 (char *) "self",(char *) "item", NULL
35805 };
35806
35807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35809 if (!SWIG_IsOK(res1)) {
35810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35811 }
35812 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35813 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35814 if (!SWIG_IsOK(res2)) {
35815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35816 }
35817 if (!argp2) {
35818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35819 }
35820 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35821 {
35822 PyThreadState* __tstate = wxPyBeginAllowThreads();
35823 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35824 wxPyEndAllowThreads(__tstate);
35825 if (PyErr_Occurred()) SWIG_fail;
35826 }
35827 {
35828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35829 }
35830 return resultobj;
35831 fail:
35832 return NULL;
35833 }
35834
35835
35836 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35837 PyObject *resultobj = 0;
35838 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35839 bool result;
35840 void *argp1 = 0 ;
35841 int res1 = 0 ;
35842 PyObject *swig_obj[1] ;
35843
35844 if (!args) SWIG_fail;
35845 swig_obj[0] = args;
35846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35847 if (!SWIG_IsOK(res1)) {
35848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35849 }
35850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35851 {
35852 PyThreadState* __tstate = wxPyBeginAllowThreads();
35853 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35854 wxPyEndAllowThreads(__tstate);
35855 if (PyErr_Occurred()) SWIG_fail;
35856 }
35857 {
35858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35859 }
35860 return resultobj;
35861 fail:
35862 return NULL;
35863 }
35864
35865
35866 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35867 PyObject *resultobj = 0;
35868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35869 wxTreeItemId *arg2 = 0 ;
35870 bool arg3 = (bool) true ;
35871 size_t result;
35872 void *argp1 = 0 ;
35873 int res1 = 0 ;
35874 void *argp2 = 0 ;
35875 int res2 = 0 ;
35876 bool val3 ;
35877 int ecode3 = 0 ;
35878 PyObject * obj0 = 0 ;
35879 PyObject * obj1 = 0 ;
35880 PyObject * obj2 = 0 ;
35881 char * kwnames[] = {
35882 (char *) "self",(char *) "item",(char *) "recursively", NULL
35883 };
35884
35885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35887 if (!SWIG_IsOK(res1)) {
35888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35889 }
35890 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35892 if (!SWIG_IsOK(res2)) {
35893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35894 }
35895 if (!argp2) {
35896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35897 }
35898 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35899 if (obj2) {
35900 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35901 if (!SWIG_IsOK(ecode3)) {
35902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35903 }
35904 arg3 = static_cast< bool >(val3);
35905 }
35906 {
35907 PyThreadState* __tstate = wxPyBeginAllowThreads();
35908 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35909 wxPyEndAllowThreads(__tstate);
35910 if (PyErr_Occurred()) SWIG_fail;
35911 }
35912 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35913 return resultobj;
35914 fail:
35915 return NULL;
35916 }
35917
35918
35919 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35920 PyObject *resultobj = 0;
35921 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35922 wxTreeItemId result;
35923 void *argp1 = 0 ;
35924 int res1 = 0 ;
35925 PyObject *swig_obj[1] ;
35926
35927 if (!args) SWIG_fail;
35928 swig_obj[0] = args;
35929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35930 if (!SWIG_IsOK(res1)) {
35931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35932 }
35933 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35934 {
35935 PyThreadState* __tstate = wxPyBeginAllowThreads();
35936 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35937 wxPyEndAllowThreads(__tstate);
35938 if (PyErr_Occurred()) SWIG_fail;
35939 }
35940 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35941 return resultobj;
35942 fail:
35943 return NULL;
35944 }
35945
35946
35947 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35948 PyObject *resultobj = 0;
35949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35950 wxTreeItemId result;
35951 void *argp1 = 0 ;
35952 int res1 = 0 ;
35953 PyObject *swig_obj[1] ;
35954
35955 if (!args) SWIG_fail;
35956 swig_obj[0] = args;
35957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35958 if (!SWIG_IsOK(res1)) {
35959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35960 }
35961 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35962 {
35963 PyThreadState* __tstate = wxPyBeginAllowThreads();
35964 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35965 wxPyEndAllowThreads(__tstate);
35966 if (PyErr_Occurred()) SWIG_fail;
35967 }
35968 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35969 return resultobj;
35970 fail:
35971 return NULL;
35972 }
35973
35974
35975 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35976 PyObject *resultobj = 0;
35977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35978 PyObject *result = 0 ;
35979 void *argp1 = 0 ;
35980 int res1 = 0 ;
35981 PyObject *swig_obj[1] ;
35982
35983 if (!args) SWIG_fail;
35984 swig_obj[0] = args;
35985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35986 if (!SWIG_IsOK(res1)) {
35987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35988 }
35989 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35990 {
35991 PyThreadState* __tstate = wxPyBeginAllowThreads();
35992 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35993 wxPyEndAllowThreads(__tstate);
35994 if (PyErr_Occurred()) SWIG_fail;
35995 }
35996 resultobj = result;
35997 return resultobj;
35998 fail:
35999 return NULL;
36000 }
36001
36002
36003 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36004 PyObject *resultobj = 0;
36005 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36006 wxTreeItemId *arg2 = 0 ;
36007 wxTreeItemId result;
36008 void *argp1 = 0 ;
36009 int res1 = 0 ;
36010 void *argp2 = 0 ;
36011 int res2 = 0 ;
36012 PyObject * obj0 = 0 ;
36013 PyObject * obj1 = 0 ;
36014 char * kwnames[] = {
36015 (char *) "self",(char *) "item", NULL
36016 };
36017
36018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
36019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36020 if (!SWIG_IsOK(res1)) {
36021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36022 }
36023 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36025 if (!SWIG_IsOK(res2)) {
36026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36027 }
36028 if (!argp2) {
36029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36030 }
36031 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36032 {
36033 PyThreadState* __tstate = wxPyBeginAllowThreads();
36034 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
36035 wxPyEndAllowThreads(__tstate);
36036 if (PyErr_Occurred()) SWIG_fail;
36037 }
36038 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36039 return resultobj;
36040 fail:
36041 return NULL;
36042 }
36043
36044
36045 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36046 PyObject *resultobj = 0;
36047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36048 wxTreeItemId *arg2 = 0 ;
36049 PyObject *result = 0 ;
36050 void *argp1 = 0 ;
36051 int res1 = 0 ;
36052 void *argp2 = 0 ;
36053 int res2 = 0 ;
36054 PyObject * obj0 = 0 ;
36055 PyObject * obj1 = 0 ;
36056 char * kwnames[] = {
36057 (char *) "self",(char *) "item", NULL
36058 };
36059
36060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
36061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36062 if (!SWIG_IsOK(res1)) {
36063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36064 }
36065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36067 if (!SWIG_IsOK(res2)) {
36068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36069 }
36070 if (!argp2) {
36071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36072 }
36073 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36074 {
36075 PyThreadState* __tstate = wxPyBeginAllowThreads();
36076 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
36077 wxPyEndAllowThreads(__tstate);
36078 if (PyErr_Occurred()) SWIG_fail;
36079 }
36080 resultobj = result;
36081 return resultobj;
36082 fail:
36083 return NULL;
36084 }
36085
36086
36087 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36088 PyObject *resultobj = 0;
36089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36090 wxTreeItemId *arg2 = 0 ;
36091 void *arg3 = (void *) 0 ;
36092 PyObject *result = 0 ;
36093 void *argp1 = 0 ;
36094 int res1 = 0 ;
36095 void *argp2 = 0 ;
36096 int res2 = 0 ;
36097 int res3 ;
36098 PyObject * obj0 = 0 ;
36099 PyObject * obj1 = 0 ;
36100 PyObject * obj2 = 0 ;
36101 char * kwnames[] = {
36102 (char *) "self",(char *) "item",(char *) "cookie", NULL
36103 };
36104
36105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36107 if (!SWIG_IsOK(res1)) {
36108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36109 }
36110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36112 if (!SWIG_IsOK(res2)) {
36113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36114 }
36115 if (!argp2) {
36116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36117 }
36118 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36119 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
36120 if (!SWIG_IsOK(res3)) {
36121 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
36122 }
36123 {
36124 PyThreadState* __tstate = wxPyBeginAllowThreads();
36125 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
36126 wxPyEndAllowThreads(__tstate);
36127 if (PyErr_Occurred()) SWIG_fail;
36128 }
36129 resultobj = result;
36130 return resultobj;
36131 fail:
36132 return NULL;
36133 }
36134
36135
36136 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36137 PyObject *resultobj = 0;
36138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36139 wxTreeItemId *arg2 = 0 ;
36140 wxTreeItemId result;
36141 void *argp1 = 0 ;
36142 int res1 = 0 ;
36143 void *argp2 = 0 ;
36144 int res2 = 0 ;
36145 PyObject * obj0 = 0 ;
36146 PyObject * obj1 = 0 ;
36147 char * kwnames[] = {
36148 (char *) "self",(char *) "item", NULL
36149 };
36150
36151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
36152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36153 if (!SWIG_IsOK(res1)) {
36154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36155 }
36156 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36158 if (!SWIG_IsOK(res2)) {
36159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36160 }
36161 if (!argp2) {
36162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36163 }
36164 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36165 {
36166 PyThreadState* __tstate = wxPyBeginAllowThreads();
36167 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
36168 wxPyEndAllowThreads(__tstate);
36169 if (PyErr_Occurred()) SWIG_fail;
36170 }
36171 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36172 return resultobj;
36173 fail:
36174 return NULL;
36175 }
36176
36177
36178 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36179 PyObject *resultobj = 0;
36180 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36181 wxTreeItemId *arg2 = 0 ;
36182 wxTreeItemId result;
36183 void *argp1 = 0 ;
36184 int res1 = 0 ;
36185 void *argp2 = 0 ;
36186 int res2 = 0 ;
36187 PyObject * obj0 = 0 ;
36188 PyObject * obj1 = 0 ;
36189 char * kwnames[] = {
36190 (char *) "self",(char *) "item", NULL
36191 };
36192
36193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36195 if (!SWIG_IsOK(res1)) {
36196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36197 }
36198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36200 if (!SWIG_IsOK(res2)) {
36201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36202 }
36203 if (!argp2) {
36204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36205 }
36206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36207 {
36208 PyThreadState* __tstate = wxPyBeginAllowThreads();
36209 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36210 wxPyEndAllowThreads(__tstate);
36211 if (PyErr_Occurred()) SWIG_fail;
36212 }
36213 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36214 return resultobj;
36215 fail:
36216 return NULL;
36217 }
36218
36219
36220 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36221 PyObject *resultobj = 0;
36222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36223 wxTreeItemId *arg2 = 0 ;
36224 wxTreeItemId result;
36225 void *argp1 = 0 ;
36226 int res1 = 0 ;
36227 void *argp2 = 0 ;
36228 int res2 = 0 ;
36229 PyObject * obj0 = 0 ;
36230 PyObject * obj1 = 0 ;
36231 char * kwnames[] = {
36232 (char *) "self",(char *) "item", NULL
36233 };
36234
36235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36237 if (!SWIG_IsOK(res1)) {
36238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36239 }
36240 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36242 if (!SWIG_IsOK(res2)) {
36243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36244 }
36245 if (!argp2) {
36246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36247 }
36248 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36249 {
36250 PyThreadState* __tstate = wxPyBeginAllowThreads();
36251 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36252 wxPyEndAllowThreads(__tstate);
36253 if (PyErr_Occurred()) SWIG_fail;
36254 }
36255 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36256 return resultobj;
36257 fail:
36258 return NULL;
36259 }
36260
36261
36262 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36263 PyObject *resultobj = 0;
36264 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36265 wxTreeItemId result;
36266 void *argp1 = 0 ;
36267 int res1 = 0 ;
36268 PyObject *swig_obj[1] ;
36269
36270 if (!args) SWIG_fail;
36271 swig_obj[0] = args;
36272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36273 if (!SWIG_IsOK(res1)) {
36274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36275 }
36276 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36277 {
36278 PyThreadState* __tstate = wxPyBeginAllowThreads();
36279 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36280 wxPyEndAllowThreads(__tstate);
36281 if (PyErr_Occurred()) SWIG_fail;
36282 }
36283 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36284 return resultobj;
36285 fail:
36286 return NULL;
36287 }
36288
36289
36290 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36291 PyObject *resultobj = 0;
36292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36293 wxTreeItemId *arg2 = 0 ;
36294 wxTreeItemId result;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 void *argp2 = 0 ;
36298 int res2 = 0 ;
36299 PyObject * obj0 = 0 ;
36300 PyObject * obj1 = 0 ;
36301 char * kwnames[] = {
36302 (char *) "self",(char *) "item", NULL
36303 };
36304
36305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36307 if (!SWIG_IsOK(res1)) {
36308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36309 }
36310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36312 if (!SWIG_IsOK(res2)) {
36313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36314 }
36315 if (!argp2) {
36316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36317 }
36318 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36319 {
36320 PyThreadState* __tstate = wxPyBeginAllowThreads();
36321 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36322 wxPyEndAllowThreads(__tstate);
36323 if (PyErr_Occurred()) SWIG_fail;
36324 }
36325 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36326 return resultobj;
36327 fail:
36328 return NULL;
36329 }
36330
36331
36332 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36333 PyObject *resultobj = 0;
36334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36335 wxTreeItemId *arg2 = 0 ;
36336 wxTreeItemId result;
36337 void *argp1 = 0 ;
36338 int res1 = 0 ;
36339 void *argp2 = 0 ;
36340 int res2 = 0 ;
36341 PyObject * obj0 = 0 ;
36342 PyObject * obj1 = 0 ;
36343 char * kwnames[] = {
36344 (char *) "self",(char *) "item", NULL
36345 };
36346
36347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36349 if (!SWIG_IsOK(res1)) {
36350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36351 }
36352 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36354 if (!SWIG_IsOK(res2)) {
36355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36356 }
36357 if (!argp2) {
36358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36359 }
36360 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36361 {
36362 PyThreadState* __tstate = wxPyBeginAllowThreads();
36363 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36364 wxPyEndAllowThreads(__tstate);
36365 if (PyErr_Occurred()) SWIG_fail;
36366 }
36367 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36368 return resultobj;
36369 fail:
36370 return NULL;
36371 }
36372
36373
36374 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36375 PyObject *resultobj = 0;
36376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36377 wxString *arg2 = 0 ;
36378 int arg3 = (int) -1 ;
36379 int arg4 = (int) -1 ;
36380 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36381 wxTreeItemId result;
36382 void *argp1 = 0 ;
36383 int res1 = 0 ;
36384 bool temp2 = false ;
36385 int val3 ;
36386 int ecode3 = 0 ;
36387 int val4 ;
36388 int ecode4 = 0 ;
36389 int res5 = 0 ;
36390 PyObject * obj0 = 0 ;
36391 PyObject * obj1 = 0 ;
36392 PyObject * obj2 = 0 ;
36393 PyObject * obj3 = 0 ;
36394 PyObject * obj4 = 0 ;
36395 char * kwnames[] = {
36396 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36397 };
36398
36399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36401 if (!SWIG_IsOK(res1)) {
36402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36403 }
36404 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36405 {
36406 arg2 = wxString_in_helper(obj1);
36407 if (arg2 == NULL) SWIG_fail;
36408 temp2 = true;
36409 }
36410 if (obj2) {
36411 ecode3 = SWIG_AsVal_int(obj2, &val3);
36412 if (!SWIG_IsOK(ecode3)) {
36413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36414 }
36415 arg3 = static_cast< int >(val3);
36416 }
36417 if (obj3) {
36418 ecode4 = SWIG_AsVal_int(obj3, &val4);
36419 if (!SWIG_IsOK(ecode4)) {
36420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36421 }
36422 arg4 = static_cast< int >(val4);
36423 }
36424 if (obj4) {
36425 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36426 if (!SWIG_IsOK(res5)) {
36427 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36428 }
36429 }
36430 {
36431 PyThreadState* __tstate = wxPyBeginAllowThreads();
36432 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
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 (temp2)
36439 delete arg2;
36440 }
36441 return resultobj;
36442 fail:
36443 {
36444 if (temp2)
36445 delete arg2;
36446 }
36447 return NULL;
36448 }
36449
36450
36451 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36452 PyObject *resultobj = 0;
36453 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36454 wxTreeItemId *arg2 = 0 ;
36455 wxString *arg3 = 0 ;
36456 int arg4 = (int) -1 ;
36457 int arg5 = (int) -1 ;
36458 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36459 wxTreeItemId result;
36460 void *argp1 = 0 ;
36461 int res1 = 0 ;
36462 void *argp2 = 0 ;
36463 int res2 = 0 ;
36464 bool temp3 = false ;
36465 int val4 ;
36466 int ecode4 = 0 ;
36467 int val5 ;
36468 int ecode5 = 0 ;
36469 int res6 = 0 ;
36470 PyObject * obj0 = 0 ;
36471 PyObject * obj1 = 0 ;
36472 PyObject * obj2 = 0 ;
36473 PyObject * obj3 = 0 ;
36474 PyObject * obj4 = 0 ;
36475 PyObject * obj5 = 0 ;
36476 char * kwnames[] = {
36477 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36478 };
36479
36480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36482 if (!SWIG_IsOK(res1)) {
36483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36484 }
36485 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36486 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36487 if (!SWIG_IsOK(res2)) {
36488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36489 }
36490 if (!argp2) {
36491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36492 }
36493 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36494 {
36495 arg3 = wxString_in_helper(obj2);
36496 if (arg3 == NULL) SWIG_fail;
36497 temp3 = true;
36498 }
36499 if (obj3) {
36500 ecode4 = SWIG_AsVal_int(obj3, &val4);
36501 if (!SWIG_IsOK(ecode4)) {
36502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36503 }
36504 arg4 = static_cast< int >(val4);
36505 }
36506 if (obj4) {
36507 ecode5 = SWIG_AsVal_int(obj4, &val5);
36508 if (!SWIG_IsOK(ecode5)) {
36509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36510 }
36511 arg5 = static_cast< int >(val5);
36512 }
36513 if (obj5) {
36514 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36515 if (!SWIG_IsOK(res6)) {
36516 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36517 }
36518 }
36519 {
36520 PyThreadState* __tstate = wxPyBeginAllowThreads();
36521 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36522 wxPyEndAllowThreads(__tstate);
36523 if (PyErr_Occurred()) SWIG_fail;
36524 }
36525 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36526 {
36527 if (temp3)
36528 delete arg3;
36529 }
36530 return resultobj;
36531 fail:
36532 {
36533 if (temp3)
36534 delete arg3;
36535 }
36536 return NULL;
36537 }
36538
36539
36540 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36541 PyObject *resultobj = 0;
36542 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36543 wxTreeItemId *arg2 = 0 ;
36544 wxTreeItemId *arg3 = 0 ;
36545 wxString *arg4 = 0 ;
36546 int arg5 = (int) -1 ;
36547 int arg6 = (int) -1 ;
36548 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36549 wxTreeItemId result;
36550 void *argp1 = 0 ;
36551 int res1 = 0 ;
36552 void *argp2 = 0 ;
36553 int res2 = 0 ;
36554 void *argp3 = 0 ;
36555 int res3 = 0 ;
36556 bool temp4 = false ;
36557 int val5 ;
36558 int ecode5 = 0 ;
36559 int val6 ;
36560 int ecode6 = 0 ;
36561 int res7 = 0 ;
36562 PyObject * obj0 = 0 ;
36563 PyObject * obj1 = 0 ;
36564 PyObject * obj2 = 0 ;
36565 PyObject * obj3 = 0 ;
36566 PyObject * obj4 = 0 ;
36567 PyObject * obj5 = 0 ;
36568 PyObject * obj6 = 0 ;
36569 char * kwnames[] = {
36570 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36571 };
36572
36573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36575 if (!SWIG_IsOK(res1)) {
36576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36577 }
36578 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36580 if (!SWIG_IsOK(res2)) {
36581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36582 }
36583 if (!argp2) {
36584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36585 }
36586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36587 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36588 if (!SWIG_IsOK(res3)) {
36589 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36590 }
36591 if (!argp3) {
36592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36593 }
36594 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36595 {
36596 arg4 = wxString_in_helper(obj3);
36597 if (arg4 == NULL) SWIG_fail;
36598 temp4 = true;
36599 }
36600 if (obj4) {
36601 ecode5 = SWIG_AsVal_int(obj4, &val5);
36602 if (!SWIG_IsOK(ecode5)) {
36603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36604 }
36605 arg5 = static_cast< int >(val5);
36606 }
36607 if (obj5) {
36608 ecode6 = SWIG_AsVal_int(obj5, &val6);
36609 if (!SWIG_IsOK(ecode6)) {
36610 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36611 }
36612 arg6 = static_cast< int >(val6);
36613 }
36614 if (obj6) {
36615 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36616 if (!SWIG_IsOK(res7)) {
36617 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36618 }
36619 }
36620 {
36621 PyThreadState* __tstate = wxPyBeginAllowThreads();
36622 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36623 wxPyEndAllowThreads(__tstate);
36624 if (PyErr_Occurred()) SWIG_fail;
36625 }
36626 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36627 {
36628 if (temp4)
36629 delete arg4;
36630 }
36631 return resultobj;
36632 fail:
36633 {
36634 if (temp4)
36635 delete arg4;
36636 }
36637 return NULL;
36638 }
36639
36640
36641 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36642 PyObject *resultobj = 0;
36643 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36644 wxTreeItemId *arg2 = 0 ;
36645 size_t arg3 ;
36646 wxString *arg4 = 0 ;
36647 int arg5 = (int) -1 ;
36648 int arg6 = (int) -1 ;
36649 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36650 wxTreeItemId result;
36651 void *argp1 = 0 ;
36652 int res1 = 0 ;
36653 void *argp2 = 0 ;
36654 int res2 = 0 ;
36655 size_t val3 ;
36656 int ecode3 = 0 ;
36657 bool temp4 = false ;
36658 int val5 ;
36659 int ecode5 = 0 ;
36660 int val6 ;
36661 int ecode6 = 0 ;
36662 int res7 = 0 ;
36663 PyObject * obj0 = 0 ;
36664 PyObject * obj1 = 0 ;
36665 PyObject * obj2 = 0 ;
36666 PyObject * obj3 = 0 ;
36667 PyObject * obj4 = 0 ;
36668 PyObject * obj5 = 0 ;
36669 PyObject * obj6 = 0 ;
36670 char * kwnames[] = {
36671 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36672 };
36673
36674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36676 if (!SWIG_IsOK(res1)) {
36677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36678 }
36679 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36681 if (!SWIG_IsOK(res2)) {
36682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36683 }
36684 if (!argp2) {
36685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36686 }
36687 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36688 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36689 if (!SWIG_IsOK(ecode3)) {
36690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36691 }
36692 arg3 = static_cast< size_t >(val3);
36693 {
36694 arg4 = wxString_in_helper(obj3);
36695 if (arg4 == NULL) SWIG_fail;
36696 temp4 = true;
36697 }
36698 if (obj4) {
36699 ecode5 = SWIG_AsVal_int(obj4, &val5);
36700 if (!SWIG_IsOK(ecode5)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36702 }
36703 arg5 = static_cast< int >(val5);
36704 }
36705 if (obj5) {
36706 ecode6 = SWIG_AsVal_int(obj5, &val6);
36707 if (!SWIG_IsOK(ecode6)) {
36708 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36709 }
36710 arg6 = static_cast< int >(val6);
36711 }
36712 if (obj6) {
36713 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36714 if (!SWIG_IsOK(res7)) {
36715 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36716 }
36717 }
36718 {
36719 PyThreadState* __tstate = wxPyBeginAllowThreads();
36720 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36721 wxPyEndAllowThreads(__tstate);
36722 if (PyErr_Occurred()) SWIG_fail;
36723 }
36724 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36725 {
36726 if (temp4)
36727 delete arg4;
36728 }
36729 return resultobj;
36730 fail:
36731 {
36732 if (temp4)
36733 delete arg4;
36734 }
36735 return NULL;
36736 }
36737
36738
36739 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36740 PyObject *resultobj = 0;
36741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36742 wxTreeItemId *arg2 = 0 ;
36743 wxString *arg3 = 0 ;
36744 int arg4 = (int) -1 ;
36745 int arg5 = (int) -1 ;
36746 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36747 wxTreeItemId result;
36748 void *argp1 = 0 ;
36749 int res1 = 0 ;
36750 void *argp2 = 0 ;
36751 int res2 = 0 ;
36752 bool temp3 = false ;
36753 int val4 ;
36754 int ecode4 = 0 ;
36755 int val5 ;
36756 int ecode5 = 0 ;
36757 int res6 = 0 ;
36758 PyObject * obj0 = 0 ;
36759 PyObject * obj1 = 0 ;
36760 PyObject * obj2 = 0 ;
36761 PyObject * obj3 = 0 ;
36762 PyObject * obj4 = 0 ;
36763 PyObject * obj5 = 0 ;
36764 char * kwnames[] = {
36765 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36766 };
36767
36768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36770 if (!SWIG_IsOK(res1)) {
36771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36772 }
36773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36775 if (!SWIG_IsOK(res2)) {
36776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36777 }
36778 if (!argp2) {
36779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36780 }
36781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36782 {
36783 arg3 = wxString_in_helper(obj2);
36784 if (arg3 == NULL) SWIG_fail;
36785 temp3 = true;
36786 }
36787 if (obj3) {
36788 ecode4 = SWIG_AsVal_int(obj3, &val4);
36789 if (!SWIG_IsOK(ecode4)) {
36790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36791 }
36792 arg4 = static_cast< int >(val4);
36793 }
36794 if (obj4) {
36795 ecode5 = SWIG_AsVal_int(obj4, &val5);
36796 if (!SWIG_IsOK(ecode5)) {
36797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36798 }
36799 arg5 = static_cast< int >(val5);
36800 }
36801 if (obj5) {
36802 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36803 if (!SWIG_IsOK(res6)) {
36804 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36805 }
36806 }
36807 {
36808 PyThreadState* __tstate = wxPyBeginAllowThreads();
36809 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36810 wxPyEndAllowThreads(__tstate);
36811 if (PyErr_Occurred()) SWIG_fail;
36812 }
36813 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36814 {
36815 if (temp3)
36816 delete arg3;
36817 }
36818 return resultobj;
36819 fail:
36820 {
36821 if (temp3)
36822 delete arg3;
36823 }
36824 return NULL;
36825 }
36826
36827
36828 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36829 PyObject *resultobj = 0;
36830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36831 wxTreeItemId *arg2 = 0 ;
36832 void *argp1 = 0 ;
36833 int res1 = 0 ;
36834 void *argp2 = 0 ;
36835 int res2 = 0 ;
36836 PyObject * obj0 = 0 ;
36837 PyObject * obj1 = 0 ;
36838 char * kwnames[] = {
36839 (char *) "self",(char *) "item", NULL
36840 };
36841
36842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36844 if (!SWIG_IsOK(res1)) {
36845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36846 }
36847 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36849 if (!SWIG_IsOK(res2)) {
36850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36851 }
36852 if (!argp2) {
36853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36854 }
36855 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36856 {
36857 PyThreadState* __tstate = wxPyBeginAllowThreads();
36858 (arg1)->Delete((wxTreeItemId const &)*arg2);
36859 wxPyEndAllowThreads(__tstate);
36860 if (PyErr_Occurred()) SWIG_fail;
36861 }
36862 resultobj = SWIG_Py_Void();
36863 return resultobj;
36864 fail:
36865 return NULL;
36866 }
36867
36868
36869 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36870 PyObject *resultobj = 0;
36871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36872 wxTreeItemId *arg2 = 0 ;
36873 void *argp1 = 0 ;
36874 int res1 = 0 ;
36875 void *argp2 = 0 ;
36876 int res2 = 0 ;
36877 PyObject * obj0 = 0 ;
36878 PyObject * obj1 = 0 ;
36879 char * kwnames[] = {
36880 (char *) "self",(char *) "item", NULL
36881 };
36882
36883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36885 if (!SWIG_IsOK(res1)) {
36886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36887 }
36888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36890 if (!SWIG_IsOK(res2)) {
36891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36892 }
36893 if (!argp2) {
36894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36895 }
36896 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36897 {
36898 PyThreadState* __tstate = wxPyBeginAllowThreads();
36899 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36900 wxPyEndAllowThreads(__tstate);
36901 if (PyErr_Occurred()) SWIG_fail;
36902 }
36903 resultobj = SWIG_Py_Void();
36904 return resultobj;
36905 fail:
36906 return NULL;
36907 }
36908
36909
36910 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36911 PyObject *resultobj = 0;
36912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36913 void *argp1 = 0 ;
36914 int res1 = 0 ;
36915 PyObject *swig_obj[1] ;
36916
36917 if (!args) SWIG_fail;
36918 swig_obj[0] = args;
36919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36920 if (!SWIG_IsOK(res1)) {
36921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36922 }
36923 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36924 {
36925 PyThreadState* __tstate = wxPyBeginAllowThreads();
36926 (arg1)->DeleteAllItems();
36927 wxPyEndAllowThreads(__tstate);
36928 if (PyErr_Occurred()) SWIG_fail;
36929 }
36930 resultobj = SWIG_Py_Void();
36931 return resultobj;
36932 fail:
36933 return NULL;
36934 }
36935
36936
36937 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36938 PyObject *resultobj = 0;
36939 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36940 wxTreeItemId *arg2 = 0 ;
36941 void *argp1 = 0 ;
36942 int res1 = 0 ;
36943 void *argp2 = 0 ;
36944 int res2 = 0 ;
36945 PyObject * obj0 = 0 ;
36946 PyObject * obj1 = 0 ;
36947 char * kwnames[] = {
36948 (char *) "self",(char *) "item", NULL
36949 };
36950
36951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36953 if (!SWIG_IsOK(res1)) {
36954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36955 }
36956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36958 if (!SWIG_IsOK(res2)) {
36959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36960 }
36961 if (!argp2) {
36962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36963 }
36964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36965 {
36966 PyThreadState* __tstate = wxPyBeginAllowThreads();
36967 (arg1)->Expand((wxTreeItemId const &)*arg2);
36968 wxPyEndAllowThreads(__tstate);
36969 if (PyErr_Occurred()) SWIG_fail;
36970 }
36971 resultobj = SWIG_Py_Void();
36972 return resultobj;
36973 fail:
36974 return NULL;
36975 }
36976
36977
36978 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36979 PyObject *resultobj = 0;
36980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36981 wxTreeItemId *arg2 = 0 ;
36982 void *argp1 = 0 ;
36983 int res1 = 0 ;
36984 void *argp2 = 0 ;
36985 int res2 = 0 ;
36986 PyObject * obj0 = 0 ;
36987 PyObject * obj1 = 0 ;
36988 char * kwnames[] = {
36989 (char *) "self",(char *) "item", NULL
36990 };
36991
36992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36994 if (!SWIG_IsOK(res1)) {
36995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36996 }
36997 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36999 if (!SWIG_IsOK(res2)) {
37000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37001 }
37002 if (!argp2) {
37003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37004 }
37005 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37006 {
37007 PyThreadState* __tstate = wxPyBeginAllowThreads();
37008 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
37009 wxPyEndAllowThreads(__tstate);
37010 if (PyErr_Occurred()) SWIG_fail;
37011 }
37012 resultobj = SWIG_Py_Void();
37013 return resultobj;
37014 fail:
37015 return NULL;
37016 }
37017
37018
37019 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37020 PyObject *resultobj = 0;
37021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37022 void *argp1 = 0 ;
37023 int res1 = 0 ;
37024 PyObject *swig_obj[1] ;
37025
37026 if (!args) SWIG_fail;
37027 swig_obj[0] = args;
37028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37029 if (!SWIG_IsOK(res1)) {
37030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37031 }
37032 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37033 {
37034 PyThreadState* __tstate = wxPyBeginAllowThreads();
37035 (arg1)->ExpandAll();
37036 wxPyEndAllowThreads(__tstate);
37037 if (PyErr_Occurred()) SWIG_fail;
37038 }
37039 resultobj = SWIG_Py_Void();
37040 return resultobj;
37041 fail:
37042 return NULL;
37043 }
37044
37045
37046 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37047 PyObject *resultobj = 0;
37048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37049 wxTreeItemId *arg2 = 0 ;
37050 void *argp1 = 0 ;
37051 int res1 = 0 ;
37052 void *argp2 = 0 ;
37053 int res2 = 0 ;
37054 PyObject * obj0 = 0 ;
37055 PyObject * obj1 = 0 ;
37056 char * kwnames[] = {
37057 (char *) "self",(char *) "item", NULL
37058 };
37059
37060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
37061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37062 if (!SWIG_IsOK(res1)) {
37063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37064 }
37065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37067 if (!SWIG_IsOK(res2)) {
37068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37069 }
37070 if (!argp2) {
37071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37072 }
37073 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37074 {
37075 PyThreadState* __tstate = wxPyBeginAllowThreads();
37076 (arg1)->Collapse((wxTreeItemId const &)*arg2);
37077 wxPyEndAllowThreads(__tstate);
37078 if (PyErr_Occurred()) SWIG_fail;
37079 }
37080 resultobj = SWIG_Py_Void();
37081 return resultobj;
37082 fail:
37083 return NULL;
37084 }
37085
37086
37087 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37088 PyObject *resultobj = 0;
37089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37090 wxTreeItemId *arg2 = 0 ;
37091 void *argp1 = 0 ;
37092 int res1 = 0 ;
37093 void *argp2 = 0 ;
37094 int res2 = 0 ;
37095 PyObject * obj0 = 0 ;
37096 PyObject * obj1 = 0 ;
37097 char * kwnames[] = {
37098 (char *) "self",(char *) "item", NULL
37099 };
37100
37101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37103 if (!SWIG_IsOK(res1)) {
37104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37105 }
37106 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37108 if (!SWIG_IsOK(res2)) {
37109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37110 }
37111 if (!argp2) {
37112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37113 }
37114 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37115 {
37116 PyThreadState* __tstate = wxPyBeginAllowThreads();
37117 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
37118 wxPyEndAllowThreads(__tstate);
37119 if (PyErr_Occurred()) SWIG_fail;
37120 }
37121 resultobj = SWIG_Py_Void();
37122 return resultobj;
37123 fail:
37124 return NULL;
37125 }
37126
37127
37128 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37129 PyObject *resultobj = 0;
37130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37131 void *argp1 = 0 ;
37132 int res1 = 0 ;
37133 PyObject *swig_obj[1] ;
37134
37135 if (!args) SWIG_fail;
37136 swig_obj[0] = args;
37137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37138 if (!SWIG_IsOK(res1)) {
37139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37140 }
37141 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37142 {
37143 PyThreadState* __tstate = wxPyBeginAllowThreads();
37144 (arg1)->CollapseAll();
37145 wxPyEndAllowThreads(__tstate);
37146 if (PyErr_Occurred()) SWIG_fail;
37147 }
37148 resultobj = SWIG_Py_Void();
37149 return resultobj;
37150 fail:
37151 return NULL;
37152 }
37153
37154
37155 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37156 PyObject *resultobj = 0;
37157 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37158 wxTreeItemId *arg2 = 0 ;
37159 void *argp1 = 0 ;
37160 int res1 = 0 ;
37161 void *argp2 = 0 ;
37162 int res2 = 0 ;
37163 PyObject * obj0 = 0 ;
37164 PyObject * obj1 = 0 ;
37165 char * kwnames[] = {
37166 (char *) "self",(char *) "item", NULL
37167 };
37168
37169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
37170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37171 if (!SWIG_IsOK(res1)) {
37172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37173 }
37174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37176 if (!SWIG_IsOK(res2)) {
37177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37178 }
37179 if (!argp2) {
37180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37181 }
37182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37183 {
37184 PyThreadState* __tstate = wxPyBeginAllowThreads();
37185 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
37186 wxPyEndAllowThreads(__tstate);
37187 if (PyErr_Occurred()) SWIG_fail;
37188 }
37189 resultobj = SWIG_Py_Void();
37190 return resultobj;
37191 fail:
37192 return NULL;
37193 }
37194
37195
37196 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37197 PyObject *resultobj = 0;
37198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37199 wxTreeItemId *arg2 = 0 ;
37200 void *argp1 = 0 ;
37201 int res1 = 0 ;
37202 void *argp2 = 0 ;
37203 int res2 = 0 ;
37204 PyObject * obj0 = 0 ;
37205 PyObject * obj1 = 0 ;
37206 char * kwnames[] = {
37207 (char *) "self",(char *) "item", NULL
37208 };
37209
37210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37212 if (!SWIG_IsOK(res1)) {
37213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37214 }
37215 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37217 if (!SWIG_IsOK(res2)) {
37218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37219 }
37220 if (!argp2) {
37221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37222 }
37223 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37224 {
37225 PyThreadState* __tstate = wxPyBeginAllowThreads();
37226 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37227 wxPyEndAllowThreads(__tstate);
37228 if (PyErr_Occurred()) SWIG_fail;
37229 }
37230 resultobj = SWIG_Py_Void();
37231 return resultobj;
37232 fail:
37233 return NULL;
37234 }
37235
37236
37237 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37238 PyObject *resultobj = 0;
37239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37240 void *argp1 = 0 ;
37241 int res1 = 0 ;
37242 PyObject *swig_obj[1] ;
37243
37244 if (!args) SWIG_fail;
37245 swig_obj[0] = args;
37246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37247 if (!SWIG_IsOK(res1)) {
37248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37249 }
37250 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37251 {
37252 PyThreadState* __tstate = wxPyBeginAllowThreads();
37253 (arg1)->Unselect();
37254 wxPyEndAllowThreads(__tstate);
37255 if (PyErr_Occurred()) SWIG_fail;
37256 }
37257 resultobj = SWIG_Py_Void();
37258 return resultobj;
37259 fail:
37260 return NULL;
37261 }
37262
37263
37264 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37265 PyObject *resultobj = 0;
37266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37267 wxTreeItemId *arg2 = 0 ;
37268 void *argp1 = 0 ;
37269 int res1 = 0 ;
37270 void *argp2 = 0 ;
37271 int res2 = 0 ;
37272 PyObject * obj0 = 0 ;
37273 PyObject * obj1 = 0 ;
37274 char * kwnames[] = {
37275 (char *) "self",(char *) "item", NULL
37276 };
37277
37278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37280 if (!SWIG_IsOK(res1)) {
37281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37282 }
37283 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37285 if (!SWIG_IsOK(res2)) {
37286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37287 }
37288 if (!argp2) {
37289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37290 }
37291 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37292 {
37293 PyThreadState* __tstate = wxPyBeginAllowThreads();
37294 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37295 wxPyEndAllowThreads(__tstate);
37296 if (PyErr_Occurred()) SWIG_fail;
37297 }
37298 resultobj = SWIG_Py_Void();
37299 return resultobj;
37300 fail:
37301 return NULL;
37302 }
37303
37304
37305 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37306 PyObject *resultobj = 0;
37307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37308 void *argp1 = 0 ;
37309 int res1 = 0 ;
37310 PyObject *swig_obj[1] ;
37311
37312 if (!args) SWIG_fail;
37313 swig_obj[0] = args;
37314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37315 if (!SWIG_IsOK(res1)) {
37316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37317 }
37318 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37319 {
37320 PyThreadState* __tstate = wxPyBeginAllowThreads();
37321 (arg1)->UnselectAll();
37322 wxPyEndAllowThreads(__tstate);
37323 if (PyErr_Occurred()) SWIG_fail;
37324 }
37325 resultobj = SWIG_Py_Void();
37326 return resultobj;
37327 fail:
37328 return NULL;
37329 }
37330
37331
37332 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37333 PyObject *resultobj = 0;
37334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37335 wxTreeItemId *arg2 = 0 ;
37336 bool arg3 = (bool) true ;
37337 void *argp1 = 0 ;
37338 int res1 = 0 ;
37339 void *argp2 = 0 ;
37340 int res2 = 0 ;
37341 bool val3 ;
37342 int ecode3 = 0 ;
37343 PyObject * obj0 = 0 ;
37344 PyObject * obj1 = 0 ;
37345 PyObject * obj2 = 0 ;
37346 char * kwnames[] = {
37347 (char *) "self",(char *) "item",(char *) "select", NULL
37348 };
37349
37350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37352 if (!SWIG_IsOK(res1)) {
37353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37354 }
37355 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37357 if (!SWIG_IsOK(res2)) {
37358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37359 }
37360 if (!argp2) {
37361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37362 }
37363 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37364 if (obj2) {
37365 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37366 if (!SWIG_IsOK(ecode3)) {
37367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37368 }
37369 arg3 = static_cast< bool >(val3);
37370 }
37371 {
37372 PyThreadState* __tstate = wxPyBeginAllowThreads();
37373 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37374 wxPyEndAllowThreads(__tstate);
37375 if (PyErr_Occurred()) SWIG_fail;
37376 }
37377 resultobj = SWIG_Py_Void();
37378 return resultobj;
37379 fail:
37380 return NULL;
37381 }
37382
37383
37384 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37385 PyObject *resultobj = 0;
37386 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37387 wxTreeItemId *arg2 = 0 ;
37388 void *argp1 = 0 ;
37389 int res1 = 0 ;
37390 void *argp2 = 0 ;
37391 int res2 = 0 ;
37392 PyObject * obj0 = 0 ;
37393 PyObject * obj1 = 0 ;
37394 char * kwnames[] = {
37395 (char *) "self",(char *) "item", NULL
37396 };
37397
37398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37400 if (!SWIG_IsOK(res1)) {
37401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37402 }
37403 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37405 if (!SWIG_IsOK(res2)) {
37406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37407 }
37408 if (!argp2) {
37409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37410 }
37411 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37412 {
37413 PyThreadState* __tstate = wxPyBeginAllowThreads();
37414 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37415 wxPyEndAllowThreads(__tstate);
37416 if (PyErr_Occurred()) SWIG_fail;
37417 }
37418 resultobj = SWIG_Py_Void();
37419 return resultobj;
37420 fail:
37421 return NULL;
37422 }
37423
37424
37425 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37426 PyObject *resultobj = 0;
37427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37428 wxTreeItemId *arg2 = 0 ;
37429 void *argp1 = 0 ;
37430 int res1 = 0 ;
37431 void *argp2 = 0 ;
37432 int res2 = 0 ;
37433 PyObject * obj0 = 0 ;
37434 PyObject * obj1 = 0 ;
37435 char * kwnames[] = {
37436 (char *) "self",(char *) "item", NULL
37437 };
37438
37439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37441 if (!SWIG_IsOK(res1)) {
37442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37443 }
37444 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37446 if (!SWIG_IsOK(res2)) {
37447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37448 }
37449 if (!argp2) {
37450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37451 }
37452 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37453 {
37454 PyThreadState* __tstate = wxPyBeginAllowThreads();
37455 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37456 wxPyEndAllowThreads(__tstate);
37457 if (PyErr_Occurred()) SWIG_fail;
37458 }
37459 resultobj = SWIG_Py_Void();
37460 return resultobj;
37461 fail:
37462 return NULL;
37463 }
37464
37465
37466 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37467 PyObject *resultobj = 0;
37468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37469 wxTreeItemId *arg2 = 0 ;
37470 void *argp1 = 0 ;
37471 int res1 = 0 ;
37472 void *argp2 = 0 ;
37473 int res2 = 0 ;
37474 PyObject * obj0 = 0 ;
37475 PyObject * obj1 = 0 ;
37476 char * kwnames[] = {
37477 (char *) "self",(char *) "item", NULL
37478 };
37479
37480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37482 if (!SWIG_IsOK(res1)) {
37483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37484 }
37485 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37486 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37487 if (!SWIG_IsOK(res2)) {
37488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37489 }
37490 if (!argp2) {
37491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37492 }
37493 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37494 {
37495 PyThreadState* __tstate = wxPyBeginAllowThreads();
37496 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37497 wxPyEndAllowThreads(__tstate);
37498 if (PyErr_Occurred()) SWIG_fail;
37499 }
37500 resultobj = SWIG_Py_Void();
37501 return resultobj;
37502 fail:
37503 return NULL;
37504 }
37505
37506
37507 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37508 PyObject *resultobj = 0;
37509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37510 wxTreeItemId *arg2 = 0 ;
37511 void *argp1 = 0 ;
37512 int res1 = 0 ;
37513 void *argp2 = 0 ;
37514 int res2 = 0 ;
37515 PyObject * obj0 = 0 ;
37516 PyObject * obj1 = 0 ;
37517 char * kwnames[] = {
37518 (char *) "self",(char *) "item", NULL
37519 };
37520
37521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37523 if (!SWIG_IsOK(res1)) {
37524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37525 }
37526 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37528 if (!SWIG_IsOK(res2)) {
37529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37530 }
37531 if (!argp2) {
37532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37533 }
37534 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37535 {
37536 PyThreadState* __tstate = wxPyBeginAllowThreads();
37537 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37538 wxPyEndAllowThreads(__tstate);
37539 if (PyErr_Occurred()) SWIG_fail;
37540 }
37541 resultobj = SWIG_Py_Void();
37542 return resultobj;
37543 fail:
37544 return NULL;
37545 }
37546
37547
37548 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37549 PyObject *resultobj = 0;
37550 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37551 wxTextCtrl *result = 0 ;
37552 void *argp1 = 0 ;
37553 int res1 = 0 ;
37554 PyObject *swig_obj[1] ;
37555
37556 if (!args) SWIG_fail;
37557 swig_obj[0] = args;
37558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37559 if (!SWIG_IsOK(res1)) {
37560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37561 }
37562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37563 {
37564 PyThreadState* __tstate = wxPyBeginAllowThreads();
37565 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37566 wxPyEndAllowThreads(__tstate);
37567 if (PyErr_Occurred()) SWIG_fail;
37568 }
37569 {
37570 resultobj = wxPyMake_wxObject(result, 0);
37571 }
37572 return resultobj;
37573 fail:
37574 return NULL;
37575 }
37576
37577
37578 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37579 PyObject *resultobj = 0;
37580 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37581 wxTreeItemId *arg2 = 0 ;
37582 void *argp1 = 0 ;
37583 int res1 = 0 ;
37584 void *argp2 = 0 ;
37585 int res2 = 0 ;
37586 PyObject * obj0 = 0 ;
37587 PyObject * obj1 = 0 ;
37588 char * kwnames[] = {
37589 (char *) "self",(char *) "item", NULL
37590 };
37591
37592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37594 if (!SWIG_IsOK(res1)) {
37595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37596 }
37597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37599 if (!SWIG_IsOK(res2)) {
37600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37601 }
37602 if (!argp2) {
37603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37604 }
37605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37606 {
37607 PyThreadState* __tstate = wxPyBeginAllowThreads();
37608 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37609 wxPyEndAllowThreads(__tstate);
37610 if (PyErr_Occurred()) SWIG_fail;
37611 }
37612 resultobj = SWIG_Py_Void();
37613 return resultobj;
37614 fail:
37615 return NULL;
37616 }
37617
37618
37619 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37620 PyObject *resultobj = 0;
37621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37622 wxPoint *arg2 = 0 ;
37623 int *arg3 = 0 ;
37624 wxTreeItemId result;
37625 void *argp1 = 0 ;
37626 int res1 = 0 ;
37627 wxPoint temp2 ;
37628 int temp3 ;
37629 int res3 = SWIG_TMPOBJ ;
37630 PyObject * obj0 = 0 ;
37631 PyObject * obj1 = 0 ;
37632 char * kwnames[] = {
37633 (char *) "self",(char *) "point", NULL
37634 };
37635
37636 arg3 = &temp3;
37637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37639 if (!SWIG_IsOK(res1)) {
37640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37641 }
37642 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37643 {
37644 arg2 = &temp2;
37645 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37646 }
37647 {
37648 PyThreadState* __tstate = wxPyBeginAllowThreads();
37649 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37650 wxPyEndAllowThreads(__tstate);
37651 if (PyErr_Occurred()) SWIG_fail;
37652 }
37653 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37654 if (SWIG_IsTmpObj(res3)) {
37655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37656 } else {
37657 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37659 }
37660 return resultobj;
37661 fail:
37662 return NULL;
37663 }
37664
37665
37666 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37667 PyObject *resultobj = 0;
37668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37669 wxTreeItemId *arg2 = 0 ;
37670 bool arg3 = (bool) false ;
37671 PyObject *result = 0 ;
37672 void *argp1 = 0 ;
37673 int res1 = 0 ;
37674 void *argp2 = 0 ;
37675 int res2 = 0 ;
37676 bool val3 ;
37677 int ecode3 = 0 ;
37678 PyObject * obj0 = 0 ;
37679 PyObject * obj1 = 0 ;
37680 PyObject * obj2 = 0 ;
37681 char * kwnames[] = {
37682 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37683 };
37684
37685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37687 if (!SWIG_IsOK(res1)) {
37688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37689 }
37690 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37692 if (!SWIG_IsOK(res2)) {
37693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37694 }
37695 if (!argp2) {
37696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37697 }
37698 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37699 if (obj2) {
37700 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37701 if (!SWIG_IsOK(ecode3)) {
37702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37703 }
37704 arg3 = static_cast< bool >(val3);
37705 }
37706 {
37707 PyThreadState* __tstate = wxPyBeginAllowThreads();
37708 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37709 wxPyEndAllowThreads(__tstate);
37710 if (PyErr_Occurred()) SWIG_fail;
37711 }
37712 resultobj = result;
37713 return resultobj;
37714 fail:
37715 return NULL;
37716 }
37717
37718
37719 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37720 PyObject *resultobj = 0;
37721 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37722 SwigValueWrapper<wxVisualAttributes > result;
37723 int val1 ;
37724 int ecode1 = 0 ;
37725 PyObject * obj0 = 0 ;
37726 char * kwnames[] = {
37727 (char *) "variant", NULL
37728 };
37729
37730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37731 if (obj0) {
37732 ecode1 = SWIG_AsVal_int(obj0, &val1);
37733 if (!SWIG_IsOK(ecode1)) {
37734 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37735 }
37736 arg1 = static_cast< wxWindowVariant >(val1);
37737 }
37738 {
37739 if (!wxPyCheckForApp()) SWIG_fail;
37740 PyThreadState* __tstate = wxPyBeginAllowThreads();
37741 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37742 wxPyEndAllowThreads(__tstate);
37743 if (PyErr_Occurred()) SWIG_fail;
37744 }
37745 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37746 return resultobj;
37747 fail:
37748 return NULL;
37749 }
37750
37751
37752 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37753 PyObject *resultobj = 0;
37754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37755 bool arg2 ;
37756 void *argp1 = 0 ;
37757 int res1 = 0 ;
37758 bool val2 ;
37759 int ecode2 = 0 ;
37760 PyObject * obj0 = 0 ;
37761 PyObject * obj1 = 0 ;
37762 char * kwnames[] = {
37763 (char *) "self",(char *) "q", NULL
37764 };
37765
37766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37768 if (!SWIG_IsOK(res1)) {
37769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37770 }
37771 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37772 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37773 if (!SWIG_IsOK(ecode2)) {
37774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37775 }
37776 arg2 = static_cast< bool >(val2);
37777 {
37778 PyThreadState* __tstate = wxPyBeginAllowThreads();
37779 (arg1)->SetQuickBestSize(arg2);
37780 wxPyEndAllowThreads(__tstate);
37781 if (PyErr_Occurred()) SWIG_fail;
37782 }
37783 resultobj = SWIG_Py_Void();
37784 return resultobj;
37785 fail:
37786 return NULL;
37787 }
37788
37789
37790 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37791 PyObject *resultobj = 0;
37792 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37793 bool result;
37794 void *argp1 = 0 ;
37795 int res1 = 0 ;
37796 PyObject *swig_obj[1] ;
37797
37798 if (!args) SWIG_fail;
37799 swig_obj[0] = args;
37800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37801 if (!SWIG_IsOK(res1)) {
37802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37803 }
37804 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37805 {
37806 PyThreadState* __tstate = wxPyBeginAllowThreads();
37807 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37808 wxPyEndAllowThreads(__tstate);
37809 if (PyErr_Occurred()) SWIG_fail;
37810 }
37811 {
37812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37813 }
37814 return resultobj;
37815 fail:
37816 return NULL;
37817 }
37818
37819
37820 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37821 PyObject *obj;
37822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37823 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37824 return SWIG_Py_Void();
37825 }
37826
37827 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37828 return SWIG_Python_InitShadowInstance(args);
37829 }
37830
37831 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37832 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37833 return 1;
37834 }
37835
37836
37837 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37838 PyObject *pyobj = 0;
37839
37840 {
37841 #if wxUSE_UNICODE
37842 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37843 #else
37844 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37845 #endif
37846 }
37847 return pyobj;
37848 }
37849
37850
37851 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37852 PyObject *resultobj = 0;
37853 wxWindow *arg1 = (wxWindow *) 0 ;
37854 int arg2 = (int) (int)-1 ;
37855 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37856 wxString *arg3 = (wxString *) &arg3_defvalue ;
37857 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37858 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37859 wxSize const &arg5_defvalue = wxDefaultSize ;
37860 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37861 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37862 wxString const &arg7_defvalue = wxPyEmptyString ;
37863 wxString *arg7 = (wxString *) &arg7_defvalue ;
37864 int arg8 = (int) 0 ;
37865 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37866 wxString *arg9 = (wxString *) &arg9_defvalue ;
37867 wxGenericDirCtrl *result = 0 ;
37868 void *argp1 = 0 ;
37869 int res1 = 0 ;
37870 int val2 ;
37871 int ecode2 = 0 ;
37872 bool temp3 = false ;
37873 wxPoint temp4 ;
37874 wxSize temp5 ;
37875 long val6 ;
37876 int ecode6 = 0 ;
37877 bool temp7 = false ;
37878 int val8 ;
37879 int ecode8 = 0 ;
37880 bool temp9 = false ;
37881 PyObject * obj0 = 0 ;
37882 PyObject * obj1 = 0 ;
37883 PyObject * obj2 = 0 ;
37884 PyObject * obj3 = 0 ;
37885 PyObject * obj4 = 0 ;
37886 PyObject * obj5 = 0 ;
37887 PyObject * obj6 = 0 ;
37888 PyObject * obj7 = 0 ;
37889 PyObject * obj8 = 0 ;
37890 char * kwnames[] = {
37891 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37892 };
37893
37894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37896 if (!SWIG_IsOK(res1)) {
37897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37898 }
37899 arg1 = reinterpret_cast< wxWindow * >(argp1);
37900 if (obj1) {
37901 ecode2 = SWIG_AsVal_int(obj1, &val2);
37902 if (!SWIG_IsOK(ecode2)) {
37903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37904 }
37905 arg2 = static_cast< int >(val2);
37906 }
37907 if (obj2) {
37908 {
37909 arg3 = wxString_in_helper(obj2);
37910 if (arg3 == NULL) SWIG_fail;
37911 temp3 = true;
37912 }
37913 }
37914 if (obj3) {
37915 {
37916 arg4 = &temp4;
37917 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37918 }
37919 }
37920 if (obj4) {
37921 {
37922 arg5 = &temp5;
37923 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37924 }
37925 }
37926 if (obj5) {
37927 ecode6 = SWIG_AsVal_long(obj5, &val6);
37928 if (!SWIG_IsOK(ecode6)) {
37929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37930 }
37931 arg6 = static_cast< long >(val6);
37932 }
37933 if (obj6) {
37934 {
37935 arg7 = wxString_in_helper(obj6);
37936 if (arg7 == NULL) SWIG_fail;
37937 temp7 = true;
37938 }
37939 }
37940 if (obj7) {
37941 ecode8 = SWIG_AsVal_int(obj7, &val8);
37942 if (!SWIG_IsOK(ecode8)) {
37943 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37944 }
37945 arg8 = static_cast< int >(val8);
37946 }
37947 if (obj8) {
37948 {
37949 arg9 = wxString_in_helper(obj8);
37950 if (arg9 == NULL) SWIG_fail;
37951 temp9 = true;
37952 }
37953 }
37954 {
37955 if (!wxPyCheckForApp()) SWIG_fail;
37956 PyThreadState* __tstate = wxPyBeginAllowThreads();
37957 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37958 wxPyEndAllowThreads(__tstate);
37959 if (PyErr_Occurred()) SWIG_fail;
37960 }
37961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37962 {
37963 if (temp3)
37964 delete arg3;
37965 }
37966 {
37967 if (temp7)
37968 delete arg7;
37969 }
37970 {
37971 if (temp9)
37972 delete arg9;
37973 }
37974 return resultobj;
37975 fail:
37976 {
37977 if (temp3)
37978 delete arg3;
37979 }
37980 {
37981 if (temp7)
37982 delete arg7;
37983 }
37984 {
37985 if (temp9)
37986 delete arg9;
37987 }
37988 return NULL;
37989 }
37990
37991
37992 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37993 PyObject *resultobj = 0;
37994 wxGenericDirCtrl *result = 0 ;
37995
37996 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37997 {
37998 if (!wxPyCheckForApp()) SWIG_fail;
37999 PyThreadState* __tstate = wxPyBeginAllowThreads();
38000 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
38001 wxPyEndAllowThreads(__tstate);
38002 if (PyErr_Occurred()) SWIG_fail;
38003 }
38004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
38005 return resultobj;
38006 fail:
38007 return NULL;
38008 }
38009
38010
38011 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38012 PyObject *resultobj = 0;
38013 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38014 wxWindow *arg2 = (wxWindow *) 0 ;
38015 int arg3 = (int) (int)-1 ;
38016 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
38017 wxString *arg4 = (wxString *) &arg4_defvalue ;
38018 wxPoint const &arg5_defvalue = wxDefaultPosition ;
38019 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
38020 wxSize const &arg6_defvalue = wxDefaultSize ;
38021 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
38022 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
38023 wxString const &arg8_defvalue = wxPyEmptyString ;
38024 wxString *arg8 = (wxString *) &arg8_defvalue ;
38025 int arg9 = (int) 0 ;
38026 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
38027 wxString *arg10 = (wxString *) &arg10_defvalue ;
38028 bool result;
38029 void *argp1 = 0 ;
38030 int res1 = 0 ;
38031 void *argp2 = 0 ;
38032 int res2 = 0 ;
38033 int val3 ;
38034 int ecode3 = 0 ;
38035 bool temp4 = false ;
38036 wxPoint temp5 ;
38037 wxSize temp6 ;
38038 long val7 ;
38039 int ecode7 = 0 ;
38040 bool temp8 = false ;
38041 int val9 ;
38042 int ecode9 = 0 ;
38043 bool temp10 = false ;
38044 PyObject * obj0 = 0 ;
38045 PyObject * obj1 = 0 ;
38046 PyObject * obj2 = 0 ;
38047 PyObject * obj3 = 0 ;
38048 PyObject * obj4 = 0 ;
38049 PyObject * obj5 = 0 ;
38050 PyObject * obj6 = 0 ;
38051 PyObject * obj7 = 0 ;
38052 PyObject * obj8 = 0 ;
38053 PyObject * obj9 = 0 ;
38054 char * kwnames[] = {
38055 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38056 };
38057
38058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38060 if (!SWIG_IsOK(res1)) {
38061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38062 }
38063 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38065 if (!SWIG_IsOK(res2)) {
38066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
38067 }
38068 arg2 = reinterpret_cast< wxWindow * >(argp2);
38069 if (obj2) {
38070 ecode3 = SWIG_AsVal_int(obj2, &val3);
38071 if (!SWIG_IsOK(ecode3)) {
38072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38073 }
38074 arg3 = static_cast< int >(val3);
38075 }
38076 if (obj3) {
38077 {
38078 arg4 = wxString_in_helper(obj3);
38079 if (arg4 == NULL) SWIG_fail;
38080 temp4 = true;
38081 }
38082 }
38083 if (obj4) {
38084 {
38085 arg5 = &temp5;
38086 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
38087 }
38088 }
38089 if (obj5) {
38090 {
38091 arg6 = &temp6;
38092 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
38093 }
38094 }
38095 if (obj6) {
38096 ecode7 = SWIG_AsVal_long(obj6, &val7);
38097 if (!SWIG_IsOK(ecode7)) {
38098 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38099 }
38100 arg7 = static_cast< long >(val7);
38101 }
38102 if (obj7) {
38103 {
38104 arg8 = wxString_in_helper(obj7);
38105 if (arg8 == NULL) SWIG_fail;
38106 temp8 = true;
38107 }
38108 }
38109 if (obj8) {
38110 ecode9 = SWIG_AsVal_int(obj8, &val9);
38111 if (!SWIG_IsOK(ecode9)) {
38112 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38113 }
38114 arg9 = static_cast< int >(val9);
38115 }
38116 if (obj9) {
38117 {
38118 arg10 = wxString_in_helper(obj9);
38119 if (arg10 == NULL) SWIG_fail;
38120 temp10 = true;
38121 }
38122 }
38123 {
38124 PyThreadState* __tstate = wxPyBeginAllowThreads();
38125 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38126 wxPyEndAllowThreads(__tstate);
38127 if (PyErr_Occurred()) SWIG_fail;
38128 }
38129 {
38130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38131 }
38132 {
38133 if (temp4)
38134 delete arg4;
38135 }
38136 {
38137 if (temp8)
38138 delete arg8;
38139 }
38140 {
38141 if (temp10)
38142 delete arg10;
38143 }
38144 return resultobj;
38145 fail:
38146 {
38147 if (temp4)
38148 delete arg4;
38149 }
38150 {
38151 if (temp8)
38152 delete arg8;
38153 }
38154 {
38155 if (temp10)
38156 delete arg10;
38157 }
38158 return NULL;
38159 }
38160
38161
38162 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38163 PyObject *resultobj = 0;
38164 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38165 wxString *arg2 = 0 ;
38166 bool result;
38167 void *argp1 = 0 ;
38168 int res1 = 0 ;
38169 bool temp2 = false ;
38170 PyObject * obj0 = 0 ;
38171 PyObject * obj1 = 0 ;
38172 char * kwnames[] = {
38173 (char *) "self",(char *) "path", NULL
38174 };
38175
38176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38178 if (!SWIG_IsOK(res1)) {
38179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38180 }
38181 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38182 {
38183 arg2 = wxString_in_helper(obj1);
38184 if (arg2 == NULL) SWIG_fail;
38185 temp2 = true;
38186 }
38187 {
38188 PyThreadState* __tstate = wxPyBeginAllowThreads();
38189 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38190 wxPyEndAllowThreads(__tstate);
38191 if (PyErr_Occurred()) SWIG_fail;
38192 }
38193 {
38194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38195 }
38196 {
38197 if (temp2)
38198 delete arg2;
38199 }
38200 return resultobj;
38201 fail:
38202 {
38203 if (temp2)
38204 delete arg2;
38205 }
38206 return NULL;
38207 }
38208
38209
38210 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38211 PyObject *resultobj = 0;
38212 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38213 wxString *arg2 = 0 ;
38214 bool result;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 bool temp2 = false ;
38218 PyObject * obj0 = 0 ;
38219 PyObject * obj1 = 0 ;
38220 char * kwnames[] = {
38221 (char *) "self",(char *) "path", NULL
38222 };
38223
38224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38226 if (!SWIG_IsOK(res1)) {
38227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38228 }
38229 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38230 {
38231 arg2 = wxString_in_helper(obj1);
38232 if (arg2 == NULL) SWIG_fail;
38233 temp2 = true;
38234 }
38235 {
38236 PyThreadState* __tstate = wxPyBeginAllowThreads();
38237 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38238 wxPyEndAllowThreads(__tstate);
38239 if (PyErr_Occurred()) SWIG_fail;
38240 }
38241 {
38242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38243 }
38244 {
38245 if (temp2)
38246 delete arg2;
38247 }
38248 return resultobj;
38249 fail:
38250 {
38251 if (temp2)
38252 delete arg2;
38253 }
38254 return NULL;
38255 }
38256
38257
38258 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38259 PyObject *resultobj = 0;
38260 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38261 wxString result;
38262 void *argp1 = 0 ;
38263 int res1 = 0 ;
38264 PyObject *swig_obj[1] ;
38265
38266 if (!args) SWIG_fail;
38267 swig_obj[0] = args;
38268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38269 if (!SWIG_IsOK(res1)) {
38270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38271 }
38272 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38273 {
38274 PyThreadState* __tstate = wxPyBeginAllowThreads();
38275 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38276 wxPyEndAllowThreads(__tstate);
38277 if (PyErr_Occurred()) SWIG_fail;
38278 }
38279 {
38280 #if wxUSE_UNICODE
38281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38282 #else
38283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38284 #endif
38285 }
38286 return resultobj;
38287 fail:
38288 return NULL;
38289 }
38290
38291
38292 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38293 PyObject *resultobj = 0;
38294 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38295 wxString *arg2 = 0 ;
38296 void *argp1 = 0 ;
38297 int res1 = 0 ;
38298 bool temp2 = false ;
38299 PyObject * obj0 = 0 ;
38300 PyObject * obj1 = 0 ;
38301 char * kwnames[] = {
38302 (char *) "self",(char *) "path", NULL
38303 };
38304
38305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38307 if (!SWIG_IsOK(res1)) {
38308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38309 }
38310 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38311 {
38312 arg2 = wxString_in_helper(obj1);
38313 if (arg2 == NULL) SWIG_fail;
38314 temp2 = true;
38315 }
38316 {
38317 PyThreadState* __tstate = wxPyBeginAllowThreads();
38318 (arg1)->SetDefaultPath((wxString const &)*arg2);
38319 wxPyEndAllowThreads(__tstate);
38320 if (PyErr_Occurred()) SWIG_fail;
38321 }
38322 resultobj = SWIG_Py_Void();
38323 {
38324 if (temp2)
38325 delete arg2;
38326 }
38327 return resultobj;
38328 fail:
38329 {
38330 if (temp2)
38331 delete arg2;
38332 }
38333 return NULL;
38334 }
38335
38336
38337 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38338 PyObject *resultobj = 0;
38339 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38340 wxString result;
38341 void *argp1 = 0 ;
38342 int res1 = 0 ;
38343 PyObject *swig_obj[1] ;
38344
38345 if (!args) SWIG_fail;
38346 swig_obj[0] = args;
38347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38348 if (!SWIG_IsOK(res1)) {
38349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38350 }
38351 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38352 {
38353 PyThreadState* __tstate = wxPyBeginAllowThreads();
38354 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38355 wxPyEndAllowThreads(__tstate);
38356 if (PyErr_Occurred()) SWIG_fail;
38357 }
38358 {
38359 #if wxUSE_UNICODE
38360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38361 #else
38362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38363 #endif
38364 }
38365 return resultobj;
38366 fail:
38367 return NULL;
38368 }
38369
38370
38371 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38372 PyObject *resultobj = 0;
38373 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38374 wxString result;
38375 void *argp1 = 0 ;
38376 int res1 = 0 ;
38377 PyObject *swig_obj[1] ;
38378
38379 if (!args) SWIG_fail;
38380 swig_obj[0] = args;
38381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38382 if (!SWIG_IsOK(res1)) {
38383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38384 }
38385 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38386 {
38387 PyThreadState* __tstate = wxPyBeginAllowThreads();
38388 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38389 wxPyEndAllowThreads(__tstate);
38390 if (PyErr_Occurred()) SWIG_fail;
38391 }
38392 {
38393 #if wxUSE_UNICODE
38394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38395 #else
38396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38397 #endif
38398 }
38399 return resultobj;
38400 fail:
38401 return NULL;
38402 }
38403
38404
38405 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38406 PyObject *resultobj = 0;
38407 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38408 wxString *arg2 = 0 ;
38409 void *argp1 = 0 ;
38410 int res1 = 0 ;
38411 bool temp2 = false ;
38412 PyObject * obj0 = 0 ;
38413 PyObject * obj1 = 0 ;
38414 char * kwnames[] = {
38415 (char *) "self",(char *) "path", NULL
38416 };
38417
38418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",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_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38422 }
38423 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38424 {
38425 arg2 = wxString_in_helper(obj1);
38426 if (arg2 == NULL) SWIG_fail;
38427 temp2 = true;
38428 }
38429 {
38430 PyThreadState* __tstate = wxPyBeginAllowThreads();
38431 (arg1)->SetPath((wxString const &)*arg2);
38432 wxPyEndAllowThreads(__tstate);
38433 if (PyErr_Occurred()) SWIG_fail;
38434 }
38435 resultobj = SWIG_Py_Void();
38436 {
38437 if (temp2)
38438 delete arg2;
38439 }
38440 return resultobj;
38441 fail:
38442 {
38443 if (temp2)
38444 delete arg2;
38445 }
38446 return NULL;
38447 }
38448
38449
38450 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38451 PyObject *resultobj = 0;
38452 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38453 bool arg2 ;
38454 void *argp1 = 0 ;
38455 int res1 = 0 ;
38456 bool val2 ;
38457 int ecode2 = 0 ;
38458 PyObject * obj0 = 0 ;
38459 PyObject * obj1 = 0 ;
38460 char * kwnames[] = {
38461 (char *) "self",(char *) "show", NULL
38462 };
38463
38464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38466 if (!SWIG_IsOK(res1)) {
38467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38468 }
38469 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38470 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38471 if (!SWIG_IsOK(ecode2)) {
38472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38473 }
38474 arg2 = static_cast< bool >(val2);
38475 {
38476 PyThreadState* __tstate = wxPyBeginAllowThreads();
38477 (arg1)->ShowHidden(arg2);
38478 wxPyEndAllowThreads(__tstate);
38479 if (PyErr_Occurred()) SWIG_fail;
38480 }
38481 resultobj = SWIG_Py_Void();
38482 return resultobj;
38483 fail:
38484 return NULL;
38485 }
38486
38487
38488 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38489 PyObject *resultobj = 0;
38490 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38491 bool result;
38492 void *argp1 = 0 ;
38493 int res1 = 0 ;
38494 PyObject *swig_obj[1] ;
38495
38496 if (!args) SWIG_fail;
38497 swig_obj[0] = args;
38498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38499 if (!SWIG_IsOK(res1)) {
38500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38501 }
38502 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38503 {
38504 PyThreadState* __tstate = wxPyBeginAllowThreads();
38505 result = (bool)(arg1)->GetShowHidden();
38506 wxPyEndAllowThreads(__tstate);
38507 if (PyErr_Occurred()) SWIG_fail;
38508 }
38509 {
38510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38511 }
38512 return resultobj;
38513 fail:
38514 return NULL;
38515 }
38516
38517
38518 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38519 PyObject *resultobj = 0;
38520 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38521 wxString result;
38522 void *argp1 = 0 ;
38523 int res1 = 0 ;
38524 PyObject *swig_obj[1] ;
38525
38526 if (!args) SWIG_fail;
38527 swig_obj[0] = args;
38528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38529 if (!SWIG_IsOK(res1)) {
38530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38531 }
38532 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38533 {
38534 PyThreadState* __tstate = wxPyBeginAllowThreads();
38535 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38536 wxPyEndAllowThreads(__tstate);
38537 if (PyErr_Occurred()) SWIG_fail;
38538 }
38539 {
38540 #if wxUSE_UNICODE
38541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38542 #else
38543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38544 #endif
38545 }
38546 return resultobj;
38547 fail:
38548 return NULL;
38549 }
38550
38551
38552 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38553 PyObject *resultobj = 0;
38554 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38555 wxString *arg2 = 0 ;
38556 void *argp1 = 0 ;
38557 int res1 = 0 ;
38558 bool temp2 = false ;
38559 PyObject * obj0 = 0 ;
38560 PyObject * obj1 = 0 ;
38561 char * kwnames[] = {
38562 (char *) "self",(char *) "filter", NULL
38563 };
38564
38565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38567 if (!SWIG_IsOK(res1)) {
38568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38569 }
38570 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38571 {
38572 arg2 = wxString_in_helper(obj1);
38573 if (arg2 == NULL) SWIG_fail;
38574 temp2 = true;
38575 }
38576 {
38577 PyThreadState* __tstate = wxPyBeginAllowThreads();
38578 (arg1)->SetFilter((wxString const &)*arg2);
38579 wxPyEndAllowThreads(__tstate);
38580 if (PyErr_Occurred()) SWIG_fail;
38581 }
38582 resultobj = SWIG_Py_Void();
38583 {
38584 if (temp2)
38585 delete arg2;
38586 }
38587 return resultobj;
38588 fail:
38589 {
38590 if (temp2)
38591 delete arg2;
38592 }
38593 return NULL;
38594 }
38595
38596
38597 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38598 PyObject *resultobj = 0;
38599 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38600 int result;
38601 void *argp1 = 0 ;
38602 int res1 = 0 ;
38603 PyObject *swig_obj[1] ;
38604
38605 if (!args) SWIG_fail;
38606 swig_obj[0] = args;
38607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38608 if (!SWIG_IsOK(res1)) {
38609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38610 }
38611 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38612 {
38613 PyThreadState* __tstate = wxPyBeginAllowThreads();
38614 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38615 wxPyEndAllowThreads(__tstate);
38616 if (PyErr_Occurred()) SWIG_fail;
38617 }
38618 resultobj = SWIG_From_int(static_cast< int >(result));
38619 return resultobj;
38620 fail:
38621 return NULL;
38622 }
38623
38624
38625 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38626 PyObject *resultobj = 0;
38627 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38628 int arg2 ;
38629 void *argp1 = 0 ;
38630 int res1 = 0 ;
38631 int val2 ;
38632 int ecode2 = 0 ;
38633 PyObject * obj0 = 0 ;
38634 PyObject * obj1 = 0 ;
38635 char * kwnames[] = {
38636 (char *) "self",(char *) "n", NULL
38637 };
38638
38639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38641 if (!SWIG_IsOK(res1)) {
38642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38643 }
38644 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38645 ecode2 = SWIG_AsVal_int(obj1, &val2);
38646 if (!SWIG_IsOK(ecode2)) {
38647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38648 }
38649 arg2 = static_cast< int >(val2);
38650 {
38651 PyThreadState* __tstate = wxPyBeginAllowThreads();
38652 (arg1)->SetFilterIndex(arg2);
38653 wxPyEndAllowThreads(__tstate);
38654 if (PyErr_Occurred()) SWIG_fail;
38655 }
38656 resultobj = SWIG_Py_Void();
38657 return resultobj;
38658 fail:
38659 return NULL;
38660 }
38661
38662
38663 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38664 PyObject *resultobj = 0;
38665 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38666 wxTreeItemId result;
38667 void *argp1 = 0 ;
38668 int res1 = 0 ;
38669 PyObject *swig_obj[1] ;
38670
38671 if (!args) SWIG_fail;
38672 swig_obj[0] = args;
38673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38674 if (!SWIG_IsOK(res1)) {
38675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38676 }
38677 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38678 {
38679 PyThreadState* __tstate = wxPyBeginAllowThreads();
38680 result = (arg1)->GetRootId();
38681 wxPyEndAllowThreads(__tstate);
38682 if (PyErr_Occurred()) SWIG_fail;
38683 }
38684 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38685 return resultobj;
38686 fail:
38687 return NULL;
38688 }
38689
38690
38691 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38692 PyObject *resultobj = 0;
38693 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38694 wxPyTreeCtrl *result = 0 ;
38695 void *argp1 = 0 ;
38696 int res1 = 0 ;
38697 PyObject *swig_obj[1] ;
38698
38699 if (!args) SWIG_fail;
38700 swig_obj[0] = args;
38701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38702 if (!SWIG_IsOK(res1)) {
38703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38704 }
38705 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38706 {
38707 PyThreadState* __tstate = wxPyBeginAllowThreads();
38708 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38709 wxPyEndAllowThreads(__tstate);
38710 if (PyErr_Occurred()) SWIG_fail;
38711 }
38712 {
38713 resultobj = wxPyMake_wxObject(result, 0);
38714 }
38715 return resultobj;
38716 fail:
38717 return NULL;
38718 }
38719
38720
38721 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38722 PyObject *resultobj = 0;
38723 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38724 wxDirFilterListCtrl *result = 0 ;
38725 void *argp1 = 0 ;
38726 int res1 = 0 ;
38727 PyObject *swig_obj[1] ;
38728
38729 if (!args) SWIG_fail;
38730 swig_obj[0] = args;
38731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38732 if (!SWIG_IsOK(res1)) {
38733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38734 }
38735 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38736 {
38737 PyThreadState* __tstate = wxPyBeginAllowThreads();
38738 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38739 wxPyEndAllowThreads(__tstate);
38740 if (PyErr_Occurred()) SWIG_fail;
38741 }
38742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38743 return resultobj;
38744 fail:
38745 return NULL;
38746 }
38747
38748
38749 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38750 PyObject *resultobj = 0;
38751 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38752 wxTreeItemId arg2 ;
38753 wxString *arg3 = 0 ;
38754 bool *arg4 = 0 ;
38755 wxTreeItemId result;
38756 void *argp1 = 0 ;
38757 int res1 = 0 ;
38758 void *argp2 ;
38759 int res2 = 0 ;
38760 bool temp3 = false ;
38761 bool temp4 ;
38762 int res4 = SWIG_TMPOBJ ;
38763 PyObject * obj0 = 0 ;
38764 PyObject * obj1 = 0 ;
38765 PyObject * obj2 = 0 ;
38766 char * kwnames[] = {
38767 (char *) "self",(char *) "parentId",(char *) "path", NULL
38768 };
38769
38770 arg4 = &temp4;
38771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38773 if (!SWIG_IsOK(res1)) {
38774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38775 }
38776 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38777 {
38778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38779 if (!SWIG_IsOK(res2)) {
38780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38781 }
38782 if (!argp2) {
38783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38784 } else {
38785 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38786 arg2 = *temp;
38787 if (SWIG_IsNewObj(res2)) delete temp;
38788 }
38789 }
38790 {
38791 arg3 = wxString_in_helper(obj2);
38792 if (arg3 == NULL) SWIG_fail;
38793 temp3 = true;
38794 }
38795 {
38796 PyThreadState* __tstate = wxPyBeginAllowThreads();
38797 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38798 wxPyEndAllowThreads(__tstate);
38799 if (PyErr_Occurred()) SWIG_fail;
38800 }
38801 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38802 if (SWIG_IsTmpObj(res4)) {
38803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38804 } else {
38805 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38807 }
38808 {
38809 if (temp3)
38810 delete arg3;
38811 }
38812 return resultobj;
38813 fail:
38814 {
38815 if (temp3)
38816 delete arg3;
38817 }
38818 return NULL;
38819 }
38820
38821
38822 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38823 PyObject *resultobj = 0;
38824 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38825 void *argp1 = 0 ;
38826 int res1 = 0 ;
38827 PyObject *swig_obj[1] ;
38828
38829 if (!args) SWIG_fail;
38830 swig_obj[0] = args;
38831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38832 if (!SWIG_IsOK(res1)) {
38833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38834 }
38835 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38836 {
38837 PyThreadState* __tstate = wxPyBeginAllowThreads();
38838 (arg1)->DoResize();
38839 wxPyEndAllowThreads(__tstate);
38840 if (PyErr_Occurred()) SWIG_fail;
38841 }
38842 resultobj = SWIG_Py_Void();
38843 return resultobj;
38844 fail:
38845 return NULL;
38846 }
38847
38848
38849 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38850 PyObject *resultobj = 0;
38851 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38852 void *argp1 = 0 ;
38853 int res1 = 0 ;
38854 PyObject *swig_obj[1] ;
38855
38856 if (!args) SWIG_fail;
38857 swig_obj[0] = args;
38858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38859 if (!SWIG_IsOK(res1)) {
38860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38861 }
38862 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38863 {
38864 PyThreadState* __tstate = wxPyBeginAllowThreads();
38865 (arg1)->ReCreateTree();
38866 wxPyEndAllowThreads(__tstate);
38867 if (PyErr_Occurred()) SWIG_fail;
38868 }
38869 resultobj = SWIG_Py_Void();
38870 return resultobj;
38871 fail:
38872 return NULL;
38873 }
38874
38875
38876 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38877 PyObject *obj;
38878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38879 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38880 return SWIG_Py_Void();
38881 }
38882
38883 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38884 return SWIG_Python_InitShadowInstance(args);
38885 }
38886
38887 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38888 PyObject *resultobj = 0;
38889 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38890 int arg2 = (int) (int)-1 ;
38891 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38892 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38893 wxSize const &arg4_defvalue = wxDefaultSize ;
38894 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38895 long arg5 = (long) 0 ;
38896 wxDirFilterListCtrl *result = 0 ;
38897 void *argp1 = 0 ;
38898 int res1 = 0 ;
38899 int val2 ;
38900 int ecode2 = 0 ;
38901 wxPoint temp3 ;
38902 wxSize temp4 ;
38903 long val5 ;
38904 int ecode5 = 0 ;
38905 PyObject * obj0 = 0 ;
38906 PyObject * obj1 = 0 ;
38907 PyObject * obj2 = 0 ;
38908 PyObject * obj3 = 0 ;
38909 PyObject * obj4 = 0 ;
38910 char * kwnames[] = {
38911 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38912 };
38913
38914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38916 if (!SWIG_IsOK(res1)) {
38917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38918 }
38919 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38920 if (obj1) {
38921 ecode2 = SWIG_AsVal_int(obj1, &val2);
38922 if (!SWIG_IsOK(ecode2)) {
38923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38924 }
38925 arg2 = static_cast< int >(val2);
38926 }
38927 if (obj2) {
38928 {
38929 arg3 = &temp3;
38930 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38931 }
38932 }
38933 if (obj3) {
38934 {
38935 arg4 = &temp4;
38936 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38937 }
38938 }
38939 if (obj4) {
38940 ecode5 = SWIG_AsVal_long(obj4, &val5);
38941 if (!SWIG_IsOK(ecode5)) {
38942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38943 }
38944 arg5 = static_cast< long >(val5);
38945 }
38946 {
38947 if (!wxPyCheckForApp()) SWIG_fail;
38948 PyThreadState* __tstate = wxPyBeginAllowThreads();
38949 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38950 wxPyEndAllowThreads(__tstate);
38951 if (PyErr_Occurred()) SWIG_fail;
38952 }
38953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38954 return resultobj;
38955 fail:
38956 return NULL;
38957 }
38958
38959
38960 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38961 PyObject *resultobj = 0;
38962 wxDirFilterListCtrl *result = 0 ;
38963
38964 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38965 {
38966 if (!wxPyCheckForApp()) SWIG_fail;
38967 PyThreadState* __tstate = wxPyBeginAllowThreads();
38968 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38969 wxPyEndAllowThreads(__tstate);
38970 if (PyErr_Occurred()) SWIG_fail;
38971 }
38972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38973 return resultobj;
38974 fail:
38975 return NULL;
38976 }
38977
38978
38979 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38980 PyObject *resultobj = 0;
38981 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38982 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38983 int arg3 = (int) (int)-1 ;
38984 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38985 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38986 wxSize const &arg5_defvalue = wxDefaultSize ;
38987 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38988 long arg6 = (long) 0 ;
38989 bool result;
38990 void *argp1 = 0 ;
38991 int res1 = 0 ;
38992 void *argp2 = 0 ;
38993 int res2 = 0 ;
38994 int val3 ;
38995 int ecode3 = 0 ;
38996 wxPoint temp4 ;
38997 wxSize temp5 ;
38998 long val6 ;
38999 int ecode6 = 0 ;
39000 PyObject * obj0 = 0 ;
39001 PyObject * obj1 = 0 ;
39002 PyObject * obj2 = 0 ;
39003 PyObject * obj3 = 0 ;
39004 PyObject * obj4 = 0 ;
39005 PyObject * obj5 = 0 ;
39006 char * kwnames[] = {
39007 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39008 };
39009
39010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39012 if (!SWIG_IsOK(res1)) {
39013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39014 }
39015 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39017 if (!SWIG_IsOK(res2)) {
39018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
39019 }
39020 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
39021 if (obj2) {
39022 ecode3 = SWIG_AsVal_int(obj2, &val3);
39023 if (!SWIG_IsOK(ecode3)) {
39024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
39025 }
39026 arg3 = static_cast< int >(val3);
39027 }
39028 if (obj3) {
39029 {
39030 arg4 = &temp4;
39031 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
39032 }
39033 }
39034 if (obj4) {
39035 {
39036 arg5 = &temp5;
39037 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
39038 }
39039 }
39040 if (obj5) {
39041 ecode6 = SWIG_AsVal_long(obj5, &val6);
39042 if (!SWIG_IsOK(ecode6)) {
39043 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
39044 }
39045 arg6 = static_cast< long >(val6);
39046 }
39047 {
39048 PyThreadState* __tstate = wxPyBeginAllowThreads();
39049 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
39050 wxPyEndAllowThreads(__tstate);
39051 if (PyErr_Occurred()) SWIG_fail;
39052 }
39053 {
39054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39055 }
39056 return resultobj;
39057 fail:
39058 return NULL;
39059 }
39060
39061
39062 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39063 PyObject *resultobj = 0;
39064 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39065 wxString *arg2 = 0 ;
39066 int arg3 ;
39067 void *argp1 = 0 ;
39068 int res1 = 0 ;
39069 bool temp2 = false ;
39070 int val3 ;
39071 int ecode3 = 0 ;
39072 PyObject * obj0 = 0 ;
39073 PyObject * obj1 = 0 ;
39074 PyObject * obj2 = 0 ;
39075 char * kwnames[] = {
39076 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39077 };
39078
39079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39081 if (!SWIG_IsOK(res1)) {
39082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39083 }
39084 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39085 {
39086 arg2 = wxString_in_helper(obj1);
39087 if (arg2 == NULL) SWIG_fail;
39088 temp2 = true;
39089 }
39090 ecode3 = SWIG_AsVal_int(obj2, &val3);
39091 if (!SWIG_IsOK(ecode3)) {
39092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39093 }
39094 arg3 = static_cast< int >(val3);
39095 {
39096 PyThreadState* __tstate = wxPyBeginAllowThreads();
39097 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39098 wxPyEndAllowThreads(__tstate);
39099 if (PyErr_Occurred()) SWIG_fail;
39100 }
39101 resultobj = SWIG_Py_Void();
39102 {
39103 if (temp2)
39104 delete arg2;
39105 }
39106 return resultobj;
39107 fail:
39108 {
39109 if (temp2)
39110 delete arg2;
39111 }
39112 return NULL;
39113 }
39114
39115
39116 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39117 PyObject *obj;
39118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39119 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39120 return SWIG_Py_Void();
39121 }
39122
39123 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39124 return SWIG_Python_InitShadowInstance(args);
39125 }
39126
39127 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39128 PyObject *resultobj = 0;
39129 wxWindow *arg1 = (wxWindow *) 0 ;
39130 int arg2 = (int) (int)-1 ;
39131 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39132 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39133 wxSize const &arg4_defvalue = wxDefaultSize ;
39134 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39135 long arg5 = (long) 0 ;
39136 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39137 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39138 wxString const &arg7_defvalue = wxPyControlNameStr ;
39139 wxString *arg7 = (wxString *) &arg7_defvalue ;
39140 wxPyControl *result = 0 ;
39141 void *argp1 = 0 ;
39142 int res1 = 0 ;
39143 int val2 ;
39144 int ecode2 = 0 ;
39145 wxPoint temp3 ;
39146 wxSize temp4 ;
39147 long val5 ;
39148 int ecode5 = 0 ;
39149 void *argp6 = 0 ;
39150 int res6 = 0 ;
39151 bool temp7 = false ;
39152 PyObject * obj0 = 0 ;
39153 PyObject * obj1 = 0 ;
39154 PyObject * obj2 = 0 ;
39155 PyObject * obj3 = 0 ;
39156 PyObject * obj4 = 0 ;
39157 PyObject * obj5 = 0 ;
39158 PyObject * obj6 = 0 ;
39159 char * kwnames[] = {
39160 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39161 };
39162
39163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39165 if (!SWIG_IsOK(res1)) {
39166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39167 }
39168 arg1 = reinterpret_cast< wxWindow * >(argp1);
39169 if (obj1) {
39170 ecode2 = SWIG_AsVal_int(obj1, &val2);
39171 if (!SWIG_IsOK(ecode2)) {
39172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39173 }
39174 arg2 = static_cast< int >(val2);
39175 }
39176 if (obj2) {
39177 {
39178 arg3 = &temp3;
39179 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39180 }
39181 }
39182 if (obj3) {
39183 {
39184 arg4 = &temp4;
39185 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39186 }
39187 }
39188 if (obj4) {
39189 ecode5 = SWIG_AsVal_long(obj4, &val5);
39190 if (!SWIG_IsOK(ecode5)) {
39191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39192 }
39193 arg5 = static_cast< long >(val5);
39194 }
39195 if (obj5) {
39196 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39197 if (!SWIG_IsOK(res6)) {
39198 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39199 }
39200 if (!argp6) {
39201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39202 }
39203 arg6 = reinterpret_cast< wxValidator * >(argp6);
39204 }
39205 if (obj6) {
39206 {
39207 arg7 = wxString_in_helper(obj6);
39208 if (arg7 == NULL) SWIG_fail;
39209 temp7 = true;
39210 }
39211 }
39212 {
39213 if (!wxPyCheckForApp()) SWIG_fail;
39214 PyThreadState* __tstate = wxPyBeginAllowThreads();
39215 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39216 wxPyEndAllowThreads(__tstate);
39217 if (PyErr_Occurred()) SWIG_fail;
39218 }
39219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39220 {
39221 if (temp7)
39222 delete arg7;
39223 }
39224 return resultobj;
39225 fail:
39226 {
39227 if (temp7)
39228 delete arg7;
39229 }
39230 return NULL;
39231 }
39232
39233
39234 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39235 PyObject *resultobj = 0;
39236 wxPyControl *result = 0 ;
39237
39238 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39239 {
39240 if (!wxPyCheckForApp()) SWIG_fail;
39241 PyThreadState* __tstate = wxPyBeginAllowThreads();
39242 result = (wxPyControl *)new wxPyControl();
39243 wxPyEndAllowThreads(__tstate);
39244 if (PyErr_Occurred()) SWIG_fail;
39245 }
39246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39247 return resultobj;
39248 fail:
39249 return NULL;
39250 }
39251
39252
39253 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39254 PyObject *resultobj = 0;
39255 wxPyControl *arg1 = (wxPyControl *) 0 ;
39256 PyObject *arg2 = (PyObject *) 0 ;
39257 PyObject *arg3 = (PyObject *) 0 ;
39258 void *argp1 = 0 ;
39259 int res1 = 0 ;
39260 PyObject * obj0 = 0 ;
39261 PyObject * obj1 = 0 ;
39262 PyObject * obj2 = 0 ;
39263 char * kwnames[] = {
39264 (char *) "self",(char *) "self",(char *) "_class", NULL
39265 };
39266
39267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39269 if (!SWIG_IsOK(res1)) {
39270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39271 }
39272 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39273 arg2 = obj1;
39274 arg3 = obj2;
39275 {
39276 PyThreadState* __tstate = wxPyBeginAllowThreads();
39277 (arg1)->_setCallbackInfo(arg2,arg3);
39278 wxPyEndAllowThreads(__tstate);
39279 if (PyErr_Occurred()) SWIG_fail;
39280 }
39281 resultobj = SWIG_Py_Void();
39282 return resultobj;
39283 fail:
39284 return NULL;
39285 }
39286
39287
39288 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39289 PyObject *resultobj = 0;
39290 wxPyControl *arg1 = (wxPyControl *) 0 ;
39291 wxDC *arg2 = (wxDC *) 0 ;
39292 bool result;
39293 void *argp1 = 0 ;
39294 int res1 = 0 ;
39295 void *argp2 = 0 ;
39296 int res2 = 0 ;
39297 PyObject * obj0 = 0 ;
39298 PyObject * obj1 = 0 ;
39299 char * kwnames[] = {
39300 (char *) "self",(char *) "dc", NULL
39301 };
39302
39303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39305 if (!SWIG_IsOK(res1)) {
39306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39307 }
39308 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39310 if (!SWIG_IsOK(res2)) {
39311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39312 }
39313 arg2 = reinterpret_cast< wxDC * >(argp2);
39314 {
39315 PyThreadState* __tstate = wxPyBeginAllowThreads();
39316 result = (bool)(arg1)->DoEraseBackground(arg2);
39317 wxPyEndAllowThreads(__tstate);
39318 if (PyErr_Occurred()) SWIG_fail;
39319 }
39320 {
39321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39322 }
39323 return resultobj;
39324 fail:
39325 return NULL;
39326 }
39327
39328
39329 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39330 PyObject *resultobj = 0;
39331 wxPyControl *arg1 = (wxPyControl *) 0 ;
39332 int arg2 ;
39333 int arg3 ;
39334 int arg4 ;
39335 int arg5 ;
39336 void *argp1 = 0 ;
39337 int res1 = 0 ;
39338 int val2 ;
39339 int ecode2 = 0 ;
39340 int val3 ;
39341 int ecode3 = 0 ;
39342 int val4 ;
39343 int ecode4 = 0 ;
39344 int val5 ;
39345 int ecode5 = 0 ;
39346 PyObject * obj0 = 0 ;
39347 PyObject * obj1 = 0 ;
39348 PyObject * obj2 = 0 ;
39349 PyObject * obj3 = 0 ;
39350 PyObject * obj4 = 0 ;
39351 char * kwnames[] = {
39352 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39353 };
39354
39355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39357 if (!SWIG_IsOK(res1)) {
39358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39359 }
39360 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39361 ecode2 = SWIG_AsVal_int(obj1, &val2);
39362 if (!SWIG_IsOK(ecode2)) {
39363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39364 }
39365 arg2 = static_cast< int >(val2);
39366 ecode3 = SWIG_AsVal_int(obj2, &val3);
39367 if (!SWIG_IsOK(ecode3)) {
39368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39369 }
39370 arg3 = static_cast< int >(val3);
39371 ecode4 = SWIG_AsVal_int(obj3, &val4);
39372 if (!SWIG_IsOK(ecode4)) {
39373 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39374 }
39375 arg4 = static_cast< int >(val4);
39376 ecode5 = SWIG_AsVal_int(obj4, &val5);
39377 if (!SWIG_IsOK(ecode5)) {
39378 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39379 }
39380 arg5 = static_cast< int >(val5);
39381 {
39382 PyThreadState* __tstate = wxPyBeginAllowThreads();
39383 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39384 wxPyEndAllowThreads(__tstate);
39385 if (PyErr_Occurred()) SWIG_fail;
39386 }
39387 resultobj = SWIG_Py_Void();
39388 return resultobj;
39389 fail:
39390 return NULL;
39391 }
39392
39393
39394 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39395 PyObject *resultobj = 0;
39396 wxPyControl *arg1 = (wxPyControl *) 0 ;
39397 int arg2 ;
39398 int arg3 ;
39399 int arg4 ;
39400 int arg5 ;
39401 int arg6 = (int) wxSIZE_AUTO ;
39402 void *argp1 = 0 ;
39403 int res1 = 0 ;
39404 int val2 ;
39405 int ecode2 = 0 ;
39406 int val3 ;
39407 int ecode3 = 0 ;
39408 int val4 ;
39409 int ecode4 = 0 ;
39410 int val5 ;
39411 int ecode5 = 0 ;
39412 int val6 ;
39413 int ecode6 = 0 ;
39414 PyObject * obj0 = 0 ;
39415 PyObject * obj1 = 0 ;
39416 PyObject * obj2 = 0 ;
39417 PyObject * obj3 = 0 ;
39418 PyObject * obj4 = 0 ;
39419 PyObject * obj5 = 0 ;
39420 char * kwnames[] = {
39421 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39422 };
39423
39424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39426 if (!SWIG_IsOK(res1)) {
39427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39428 }
39429 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39430 ecode2 = SWIG_AsVal_int(obj1, &val2);
39431 if (!SWIG_IsOK(ecode2)) {
39432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39433 }
39434 arg2 = static_cast< int >(val2);
39435 ecode3 = SWIG_AsVal_int(obj2, &val3);
39436 if (!SWIG_IsOK(ecode3)) {
39437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39438 }
39439 arg3 = static_cast< int >(val3);
39440 ecode4 = SWIG_AsVal_int(obj3, &val4);
39441 if (!SWIG_IsOK(ecode4)) {
39442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39443 }
39444 arg4 = static_cast< int >(val4);
39445 ecode5 = SWIG_AsVal_int(obj4, &val5);
39446 if (!SWIG_IsOK(ecode5)) {
39447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39448 }
39449 arg5 = static_cast< int >(val5);
39450 if (obj5) {
39451 ecode6 = SWIG_AsVal_int(obj5, &val6);
39452 if (!SWIG_IsOK(ecode6)) {
39453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39454 }
39455 arg6 = static_cast< int >(val6);
39456 }
39457 {
39458 PyThreadState* __tstate = wxPyBeginAllowThreads();
39459 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39460 wxPyEndAllowThreads(__tstate);
39461 if (PyErr_Occurred()) SWIG_fail;
39462 }
39463 resultobj = SWIG_Py_Void();
39464 return resultobj;
39465 fail:
39466 return NULL;
39467 }
39468
39469
39470 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39471 PyObject *resultobj = 0;
39472 wxPyControl *arg1 = (wxPyControl *) 0 ;
39473 int arg2 ;
39474 int arg3 ;
39475 void *argp1 = 0 ;
39476 int res1 = 0 ;
39477 int val2 ;
39478 int ecode2 = 0 ;
39479 int val3 ;
39480 int ecode3 = 0 ;
39481 PyObject * obj0 = 0 ;
39482 PyObject * obj1 = 0 ;
39483 PyObject * obj2 = 0 ;
39484 char * kwnames[] = {
39485 (char *) "self",(char *) "width",(char *) "height", NULL
39486 };
39487
39488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39490 if (!SWIG_IsOK(res1)) {
39491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39492 }
39493 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39494 ecode2 = SWIG_AsVal_int(obj1, &val2);
39495 if (!SWIG_IsOK(ecode2)) {
39496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39497 }
39498 arg2 = static_cast< int >(val2);
39499 ecode3 = SWIG_AsVal_int(obj2, &val3);
39500 if (!SWIG_IsOK(ecode3)) {
39501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39502 }
39503 arg3 = static_cast< int >(val3);
39504 {
39505 PyThreadState* __tstate = wxPyBeginAllowThreads();
39506 (arg1)->DoSetClientSize(arg2,arg3);
39507 wxPyEndAllowThreads(__tstate);
39508 if (PyErr_Occurred()) SWIG_fail;
39509 }
39510 resultobj = SWIG_Py_Void();
39511 return resultobj;
39512 fail:
39513 return NULL;
39514 }
39515
39516
39517 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39518 PyObject *resultobj = 0;
39519 wxPyControl *arg1 = (wxPyControl *) 0 ;
39520 int arg2 ;
39521 int arg3 ;
39522 void *argp1 = 0 ;
39523 int res1 = 0 ;
39524 int val2 ;
39525 int ecode2 = 0 ;
39526 int val3 ;
39527 int ecode3 = 0 ;
39528 PyObject * obj0 = 0 ;
39529 PyObject * obj1 = 0 ;
39530 PyObject * obj2 = 0 ;
39531 char * kwnames[] = {
39532 (char *) "self",(char *) "x",(char *) "y", NULL
39533 };
39534
39535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39537 if (!SWIG_IsOK(res1)) {
39538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39539 }
39540 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39541 ecode2 = SWIG_AsVal_int(obj1, &val2);
39542 if (!SWIG_IsOK(ecode2)) {
39543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39544 }
39545 arg2 = static_cast< int >(val2);
39546 ecode3 = SWIG_AsVal_int(obj2, &val3);
39547 if (!SWIG_IsOK(ecode3)) {
39548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39549 }
39550 arg3 = static_cast< int >(val3);
39551 {
39552 PyThreadState* __tstate = wxPyBeginAllowThreads();
39553 (arg1)->DoSetVirtualSize(arg2,arg3);
39554 wxPyEndAllowThreads(__tstate);
39555 if (PyErr_Occurred()) SWIG_fail;
39556 }
39557 resultobj = SWIG_Py_Void();
39558 return resultobj;
39559 fail:
39560 return NULL;
39561 }
39562
39563
39564 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39565 PyObject *resultobj = 0;
39566 wxPyControl *arg1 = (wxPyControl *) 0 ;
39567 int *arg2 = (int *) 0 ;
39568 int *arg3 = (int *) 0 ;
39569 void *argp1 = 0 ;
39570 int res1 = 0 ;
39571 int temp2 ;
39572 int res2 = SWIG_TMPOBJ ;
39573 int temp3 ;
39574 int res3 = SWIG_TMPOBJ ;
39575 PyObject *swig_obj[1] ;
39576
39577 arg2 = &temp2;
39578 arg3 = &temp3;
39579 if (!args) SWIG_fail;
39580 swig_obj[0] = args;
39581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39582 if (!SWIG_IsOK(res1)) {
39583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39584 }
39585 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39586 {
39587 PyThreadState* __tstate = wxPyBeginAllowThreads();
39588 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39589 wxPyEndAllowThreads(__tstate);
39590 if (PyErr_Occurred()) SWIG_fail;
39591 }
39592 resultobj = SWIG_Py_Void();
39593 if (SWIG_IsTmpObj(res2)) {
39594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39595 } else {
39596 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39598 }
39599 if (SWIG_IsTmpObj(res3)) {
39600 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39601 } else {
39602 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39603 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39604 }
39605 return resultobj;
39606 fail:
39607 return NULL;
39608 }
39609
39610
39611 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39612 PyObject *resultobj = 0;
39613 wxPyControl *arg1 = (wxPyControl *) 0 ;
39614 int *arg2 = (int *) 0 ;
39615 int *arg3 = (int *) 0 ;
39616 void *argp1 = 0 ;
39617 int res1 = 0 ;
39618 int temp2 ;
39619 int res2 = SWIG_TMPOBJ ;
39620 int temp3 ;
39621 int res3 = SWIG_TMPOBJ ;
39622 PyObject *swig_obj[1] ;
39623
39624 arg2 = &temp2;
39625 arg3 = &temp3;
39626 if (!args) SWIG_fail;
39627 swig_obj[0] = args;
39628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39629 if (!SWIG_IsOK(res1)) {
39630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39631 }
39632 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39633 {
39634 PyThreadState* __tstate = wxPyBeginAllowThreads();
39635 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39636 wxPyEndAllowThreads(__tstate);
39637 if (PyErr_Occurred()) SWIG_fail;
39638 }
39639 resultobj = SWIG_Py_Void();
39640 if (SWIG_IsTmpObj(res2)) {
39641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39642 } else {
39643 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39645 }
39646 if (SWIG_IsTmpObj(res3)) {
39647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39648 } else {
39649 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39651 }
39652 return resultobj;
39653 fail:
39654 return NULL;
39655 }
39656
39657
39658 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39659 PyObject *resultobj = 0;
39660 wxPyControl *arg1 = (wxPyControl *) 0 ;
39661 int *arg2 = (int *) 0 ;
39662 int *arg3 = (int *) 0 ;
39663 void *argp1 = 0 ;
39664 int res1 = 0 ;
39665 int temp2 ;
39666 int res2 = SWIG_TMPOBJ ;
39667 int temp3 ;
39668 int res3 = SWIG_TMPOBJ ;
39669 PyObject *swig_obj[1] ;
39670
39671 arg2 = &temp2;
39672 arg3 = &temp3;
39673 if (!args) SWIG_fail;
39674 swig_obj[0] = args;
39675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39676 if (!SWIG_IsOK(res1)) {
39677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39678 }
39679 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39680 {
39681 PyThreadState* __tstate = wxPyBeginAllowThreads();
39682 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39683 wxPyEndAllowThreads(__tstate);
39684 if (PyErr_Occurred()) SWIG_fail;
39685 }
39686 resultobj = SWIG_Py_Void();
39687 if (SWIG_IsTmpObj(res2)) {
39688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39689 } else {
39690 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39692 }
39693 if (SWIG_IsTmpObj(res3)) {
39694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39695 } else {
39696 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39698 }
39699 return resultobj;
39700 fail:
39701 return NULL;
39702 }
39703
39704
39705 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39706 PyObject *resultobj = 0;
39707 wxPyControl *arg1 = (wxPyControl *) 0 ;
39708 wxSize result;
39709 void *argp1 = 0 ;
39710 int res1 = 0 ;
39711 PyObject *swig_obj[1] ;
39712
39713 if (!args) SWIG_fail;
39714 swig_obj[0] = args;
39715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39716 if (!SWIG_IsOK(res1)) {
39717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39718 }
39719 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39720 {
39721 PyThreadState* __tstate = wxPyBeginAllowThreads();
39722 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39723 wxPyEndAllowThreads(__tstate);
39724 if (PyErr_Occurred()) SWIG_fail;
39725 }
39726 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39727 return resultobj;
39728 fail:
39729 return NULL;
39730 }
39731
39732
39733 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39734 PyObject *resultobj = 0;
39735 wxPyControl *arg1 = (wxPyControl *) 0 ;
39736 wxSize result;
39737 void *argp1 = 0 ;
39738 int res1 = 0 ;
39739 PyObject *swig_obj[1] ;
39740
39741 if (!args) SWIG_fail;
39742 swig_obj[0] = args;
39743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39744 if (!SWIG_IsOK(res1)) {
39745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39746 }
39747 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39748 {
39749 PyThreadState* __tstate = wxPyBeginAllowThreads();
39750 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39751 wxPyEndAllowThreads(__tstate);
39752 if (PyErr_Occurred()) SWIG_fail;
39753 }
39754 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39755 return resultobj;
39756 fail:
39757 return NULL;
39758 }
39759
39760
39761 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39762 PyObject *resultobj = 0;
39763 wxPyControl *arg1 = (wxPyControl *) 0 ;
39764 SwigValueWrapper<wxVisualAttributes > result;
39765 void *argp1 = 0 ;
39766 int res1 = 0 ;
39767 PyObject *swig_obj[1] ;
39768
39769 if (!args) SWIG_fail;
39770 swig_obj[0] = args;
39771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39772 if (!SWIG_IsOK(res1)) {
39773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39774 }
39775 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39776 {
39777 PyThreadState* __tstate = wxPyBeginAllowThreads();
39778 result = (arg1)->GetDefaultAttributes();
39779 wxPyEndAllowThreads(__tstate);
39780 if (PyErr_Occurred()) SWIG_fail;
39781 }
39782 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39783 return resultobj;
39784 fail:
39785 return NULL;
39786 }
39787
39788
39789 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39790 PyObject *resultobj = 0;
39791 wxPyControl *arg1 = (wxPyControl *) 0 ;
39792 void *argp1 = 0 ;
39793 int res1 = 0 ;
39794 PyObject *swig_obj[1] ;
39795
39796 if (!args) SWIG_fail;
39797 swig_obj[0] = args;
39798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39799 if (!SWIG_IsOK(res1)) {
39800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39801 }
39802 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39803 {
39804 PyThreadState* __tstate = wxPyBeginAllowThreads();
39805 (arg1)->OnInternalIdle();
39806 wxPyEndAllowThreads(__tstate);
39807 if (PyErr_Occurred()) SWIG_fail;
39808 }
39809 resultobj = SWIG_Py_Void();
39810 return resultobj;
39811 fail:
39812 return NULL;
39813 }
39814
39815
39816 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39817 PyObject *obj;
39818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39819 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39820 return SWIG_Py_Void();
39821 }
39822
39823 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39824 return SWIG_Python_InitShadowInstance(args);
39825 }
39826
39827 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39828 PyObject *resultobj = 0;
39829 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39830 int arg2 = (int) 0 ;
39831 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39832 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39833 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39834 wxHelpEvent *result = 0 ;
39835 int val1 ;
39836 int ecode1 = 0 ;
39837 int val2 ;
39838 int ecode2 = 0 ;
39839 wxPoint temp3 ;
39840 int val4 ;
39841 int ecode4 = 0 ;
39842 PyObject * obj0 = 0 ;
39843 PyObject * obj1 = 0 ;
39844 PyObject * obj2 = 0 ;
39845 PyObject * obj3 = 0 ;
39846 char * kwnames[] = {
39847 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39848 };
39849
39850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39851 if (obj0) {
39852 ecode1 = SWIG_AsVal_int(obj0, &val1);
39853 if (!SWIG_IsOK(ecode1)) {
39854 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39855 }
39856 arg1 = static_cast< wxEventType >(val1);
39857 }
39858 if (obj1) {
39859 ecode2 = SWIG_AsVal_int(obj1, &val2);
39860 if (!SWIG_IsOK(ecode2)) {
39861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39862 }
39863 arg2 = static_cast< int >(val2);
39864 }
39865 if (obj2) {
39866 {
39867 arg3 = &temp3;
39868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39869 }
39870 }
39871 if (obj3) {
39872 ecode4 = SWIG_AsVal_int(obj3, &val4);
39873 if (!SWIG_IsOK(ecode4)) {
39874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39875 }
39876 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39877 }
39878 {
39879 PyThreadState* __tstate = wxPyBeginAllowThreads();
39880 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39881 wxPyEndAllowThreads(__tstate);
39882 if (PyErr_Occurred()) SWIG_fail;
39883 }
39884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39885 return resultobj;
39886 fail:
39887 return NULL;
39888 }
39889
39890
39891 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39892 PyObject *resultobj = 0;
39893 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39894 wxPoint result;
39895 void *argp1 = 0 ;
39896 int res1 = 0 ;
39897 PyObject *swig_obj[1] ;
39898
39899 if (!args) SWIG_fail;
39900 swig_obj[0] = args;
39901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39902 if (!SWIG_IsOK(res1)) {
39903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39904 }
39905 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39906 {
39907 PyThreadState* __tstate = wxPyBeginAllowThreads();
39908 result = ((wxHelpEvent const *)arg1)->GetPosition();
39909 wxPyEndAllowThreads(__tstate);
39910 if (PyErr_Occurred()) SWIG_fail;
39911 }
39912 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39913 return resultobj;
39914 fail:
39915 return NULL;
39916 }
39917
39918
39919 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39920 PyObject *resultobj = 0;
39921 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39922 wxPoint *arg2 = 0 ;
39923 void *argp1 = 0 ;
39924 int res1 = 0 ;
39925 wxPoint temp2 ;
39926 PyObject * obj0 = 0 ;
39927 PyObject * obj1 = 0 ;
39928 char * kwnames[] = {
39929 (char *) "self",(char *) "pos", NULL
39930 };
39931
39932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39934 if (!SWIG_IsOK(res1)) {
39935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39936 }
39937 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39938 {
39939 arg2 = &temp2;
39940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39941 }
39942 {
39943 PyThreadState* __tstate = wxPyBeginAllowThreads();
39944 (arg1)->SetPosition((wxPoint const &)*arg2);
39945 wxPyEndAllowThreads(__tstate);
39946 if (PyErr_Occurred()) SWIG_fail;
39947 }
39948 resultobj = SWIG_Py_Void();
39949 return resultobj;
39950 fail:
39951 return NULL;
39952 }
39953
39954
39955 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39956 PyObject *resultobj = 0;
39957 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39958 wxString *result = 0 ;
39959 void *argp1 = 0 ;
39960 int res1 = 0 ;
39961 PyObject *swig_obj[1] ;
39962
39963 if (!args) SWIG_fail;
39964 swig_obj[0] = args;
39965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39966 if (!SWIG_IsOK(res1)) {
39967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39968 }
39969 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39970 {
39971 PyThreadState* __tstate = wxPyBeginAllowThreads();
39972 {
39973 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39974 result = (wxString *) &_result_ref;
39975 }
39976 wxPyEndAllowThreads(__tstate);
39977 if (PyErr_Occurred()) SWIG_fail;
39978 }
39979 {
39980 #if wxUSE_UNICODE
39981 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39982 #else
39983 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39984 #endif
39985 }
39986 return resultobj;
39987 fail:
39988 return NULL;
39989 }
39990
39991
39992 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39993 PyObject *resultobj = 0;
39994 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39995 wxString *arg2 = 0 ;
39996 void *argp1 = 0 ;
39997 int res1 = 0 ;
39998 bool temp2 = false ;
39999 PyObject * obj0 = 0 ;
40000 PyObject * obj1 = 0 ;
40001 char * kwnames[] = {
40002 (char *) "self",(char *) "link", NULL
40003 };
40004
40005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
40006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40007 if (!SWIG_IsOK(res1)) {
40008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40009 }
40010 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40011 {
40012 arg2 = wxString_in_helper(obj1);
40013 if (arg2 == NULL) SWIG_fail;
40014 temp2 = true;
40015 }
40016 {
40017 PyThreadState* __tstate = wxPyBeginAllowThreads();
40018 (arg1)->SetLink((wxString const &)*arg2);
40019 wxPyEndAllowThreads(__tstate);
40020 if (PyErr_Occurred()) SWIG_fail;
40021 }
40022 resultobj = SWIG_Py_Void();
40023 {
40024 if (temp2)
40025 delete arg2;
40026 }
40027 return resultobj;
40028 fail:
40029 {
40030 if (temp2)
40031 delete arg2;
40032 }
40033 return NULL;
40034 }
40035
40036
40037 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40038 PyObject *resultobj = 0;
40039 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40040 wxString *result = 0 ;
40041 void *argp1 = 0 ;
40042 int res1 = 0 ;
40043 PyObject *swig_obj[1] ;
40044
40045 if (!args) SWIG_fail;
40046 swig_obj[0] = args;
40047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40048 if (!SWIG_IsOK(res1)) {
40049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40050 }
40051 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40052 {
40053 PyThreadState* __tstate = wxPyBeginAllowThreads();
40054 {
40055 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
40056 result = (wxString *) &_result_ref;
40057 }
40058 wxPyEndAllowThreads(__tstate);
40059 if (PyErr_Occurred()) SWIG_fail;
40060 }
40061 {
40062 #if wxUSE_UNICODE
40063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40064 #else
40065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40066 #endif
40067 }
40068 return resultobj;
40069 fail:
40070 return NULL;
40071 }
40072
40073
40074 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40075 PyObject *resultobj = 0;
40076 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40077 wxString *arg2 = 0 ;
40078 void *argp1 = 0 ;
40079 int res1 = 0 ;
40080 bool temp2 = false ;
40081 PyObject * obj0 = 0 ;
40082 PyObject * obj1 = 0 ;
40083 char * kwnames[] = {
40084 (char *) "self",(char *) "target", NULL
40085 };
40086
40087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40089 if (!SWIG_IsOK(res1)) {
40090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40091 }
40092 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40093 {
40094 arg2 = wxString_in_helper(obj1);
40095 if (arg2 == NULL) SWIG_fail;
40096 temp2 = true;
40097 }
40098 {
40099 PyThreadState* __tstate = wxPyBeginAllowThreads();
40100 (arg1)->SetTarget((wxString const &)*arg2);
40101 wxPyEndAllowThreads(__tstate);
40102 if (PyErr_Occurred()) SWIG_fail;
40103 }
40104 resultobj = SWIG_Py_Void();
40105 {
40106 if (temp2)
40107 delete arg2;
40108 }
40109 return resultobj;
40110 fail:
40111 {
40112 if (temp2)
40113 delete arg2;
40114 }
40115 return NULL;
40116 }
40117
40118
40119 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40120 PyObject *resultobj = 0;
40121 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40122 wxHelpEvent::Origin result;
40123 void *argp1 = 0 ;
40124 int res1 = 0 ;
40125 PyObject *swig_obj[1] ;
40126
40127 if (!args) SWIG_fail;
40128 swig_obj[0] = args;
40129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40130 if (!SWIG_IsOK(res1)) {
40131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40132 }
40133 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40134 {
40135 PyThreadState* __tstate = wxPyBeginAllowThreads();
40136 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40137 wxPyEndAllowThreads(__tstate);
40138 if (PyErr_Occurred()) SWIG_fail;
40139 }
40140 resultobj = SWIG_From_int(static_cast< int >(result));
40141 return resultobj;
40142 fail:
40143 return NULL;
40144 }
40145
40146
40147 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40148 PyObject *resultobj = 0;
40149 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40150 wxHelpEvent::Origin arg2 ;
40151 void *argp1 = 0 ;
40152 int res1 = 0 ;
40153 int val2 ;
40154 int ecode2 = 0 ;
40155 PyObject * obj0 = 0 ;
40156 PyObject * obj1 = 0 ;
40157 char * kwnames[] = {
40158 (char *) "self",(char *) "origin", NULL
40159 };
40160
40161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40163 if (!SWIG_IsOK(res1)) {
40164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40165 }
40166 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40167 ecode2 = SWIG_AsVal_int(obj1, &val2);
40168 if (!SWIG_IsOK(ecode2)) {
40169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40170 }
40171 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40172 {
40173 PyThreadState* __tstate = wxPyBeginAllowThreads();
40174 (arg1)->SetOrigin(arg2);
40175 wxPyEndAllowThreads(__tstate);
40176 if (PyErr_Occurred()) SWIG_fail;
40177 }
40178 resultobj = SWIG_Py_Void();
40179 return resultobj;
40180 fail:
40181 return NULL;
40182 }
40183
40184
40185 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40186 PyObject *obj;
40187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40188 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40189 return SWIG_Py_Void();
40190 }
40191
40192 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40193 return SWIG_Python_InitShadowInstance(args);
40194 }
40195
40196 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40197 PyObject *resultobj = 0;
40198 wxWindow *arg1 = (wxWindow *) NULL ;
40199 bool arg2 = (bool) true ;
40200 wxContextHelp *result = 0 ;
40201 void *argp1 = 0 ;
40202 int res1 = 0 ;
40203 bool val2 ;
40204 int ecode2 = 0 ;
40205 PyObject * obj0 = 0 ;
40206 PyObject * obj1 = 0 ;
40207 char * kwnames[] = {
40208 (char *) "window",(char *) "doNow", NULL
40209 };
40210
40211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40212 if (obj0) {
40213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40214 if (!SWIG_IsOK(res1)) {
40215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40216 }
40217 arg1 = reinterpret_cast< wxWindow * >(argp1);
40218 }
40219 if (obj1) {
40220 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40221 if (!SWIG_IsOK(ecode2)) {
40222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40223 }
40224 arg2 = static_cast< bool >(val2);
40225 }
40226 {
40227 if (!wxPyCheckForApp()) SWIG_fail;
40228 PyThreadState* __tstate = wxPyBeginAllowThreads();
40229 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40230 wxPyEndAllowThreads(__tstate);
40231 if (PyErr_Occurred()) SWIG_fail;
40232 }
40233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40234 return resultobj;
40235 fail:
40236 return NULL;
40237 }
40238
40239
40240 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40241 PyObject *resultobj = 0;
40242 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40243 void *argp1 = 0 ;
40244 int res1 = 0 ;
40245 PyObject *swig_obj[1] ;
40246
40247 if (!args) SWIG_fail;
40248 swig_obj[0] = args;
40249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40250 if (!SWIG_IsOK(res1)) {
40251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40252 }
40253 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40254 {
40255 PyThreadState* __tstate = wxPyBeginAllowThreads();
40256 delete arg1;
40257
40258 wxPyEndAllowThreads(__tstate);
40259 if (PyErr_Occurred()) SWIG_fail;
40260 }
40261 resultobj = SWIG_Py_Void();
40262 return resultobj;
40263 fail:
40264 return NULL;
40265 }
40266
40267
40268 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40269 PyObject *resultobj = 0;
40270 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40271 wxWindow *arg2 = (wxWindow *) NULL ;
40272 bool result;
40273 void *argp1 = 0 ;
40274 int res1 = 0 ;
40275 void *argp2 = 0 ;
40276 int res2 = 0 ;
40277 PyObject * obj0 = 0 ;
40278 PyObject * obj1 = 0 ;
40279 char * kwnames[] = {
40280 (char *) "self",(char *) "window", NULL
40281 };
40282
40283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40285 if (!SWIG_IsOK(res1)) {
40286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40287 }
40288 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40289 if (obj1) {
40290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40291 if (!SWIG_IsOK(res2)) {
40292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40293 }
40294 arg2 = reinterpret_cast< wxWindow * >(argp2);
40295 }
40296 {
40297 PyThreadState* __tstate = wxPyBeginAllowThreads();
40298 result = (bool)(arg1)->BeginContextHelp(arg2);
40299 wxPyEndAllowThreads(__tstate);
40300 if (PyErr_Occurred()) SWIG_fail;
40301 }
40302 {
40303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40304 }
40305 return resultobj;
40306 fail:
40307 return NULL;
40308 }
40309
40310
40311 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40312 PyObject *resultobj = 0;
40313 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40314 bool result;
40315 void *argp1 = 0 ;
40316 int res1 = 0 ;
40317 PyObject *swig_obj[1] ;
40318
40319 if (!args) SWIG_fail;
40320 swig_obj[0] = args;
40321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40322 if (!SWIG_IsOK(res1)) {
40323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40324 }
40325 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40326 {
40327 PyThreadState* __tstate = wxPyBeginAllowThreads();
40328 result = (bool)(arg1)->EndContextHelp();
40329 wxPyEndAllowThreads(__tstate);
40330 if (PyErr_Occurred()) SWIG_fail;
40331 }
40332 {
40333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40334 }
40335 return resultobj;
40336 fail:
40337 return NULL;
40338 }
40339
40340
40341 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40342 PyObject *obj;
40343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40344 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40345 return SWIG_Py_Void();
40346 }
40347
40348 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40349 return SWIG_Python_InitShadowInstance(args);
40350 }
40351
40352 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40353 PyObject *resultobj = 0;
40354 wxWindow *arg1 = (wxWindow *) 0 ;
40355 int arg2 = (int) wxID_CONTEXT_HELP ;
40356 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40357 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40358 wxSize const &arg4_defvalue = wxDefaultSize ;
40359 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40360 long arg5 = (long) wxBU_AUTODRAW ;
40361 wxContextHelpButton *result = 0 ;
40362 void *argp1 = 0 ;
40363 int res1 = 0 ;
40364 int val2 ;
40365 int ecode2 = 0 ;
40366 wxPoint temp3 ;
40367 wxSize temp4 ;
40368 long val5 ;
40369 int ecode5 = 0 ;
40370 PyObject * obj0 = 0 ;
40371 PyObject * obj1 = 0 ;
40372 PyObject * obj2 = 0 ;
40373 PyObject * obj3 = 0 ;
40374 PyObject * obj4 = 0 ;
40375 char * kwnames[] = {
40376 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40377 };
40378
40379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40381 if (!SWIG_IsOK(res1)) {
40382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40383 }
40384 arg1 = reinterpret_cast< wxWindow * >(argp1);
40385 if (obj1) {
40386 ecode2 = SWIG_AsVal_int(obj1, &val2);
40387 if (!SWIG_IsOK(ecode2)) {
40388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40389 }
40390 arg2 = static_cast< int >(val2);
40391 }
40392 if (obj2) {
40393 {
40394 arg3 = &temp3;
40395 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40396 }
40397 }
40398 if (obj3) {
40399 {
40400 arg4 = &temp4;
40401 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40402 }
40403 }
40404 if (obj4) {
40405 ecode5 = SWIG_AsVal_long(obj4, &val5);
40406 if (!SWIG_IsOK(ecode5)) {
40407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40408 }
40409 arg5 = static_cast< long >(val5);
40410 }
40411 {
40412 if (!wxPyCheckForApp()) SWIG_fail;
40413 PyThreadState* __tstate = wxPyBeginAllowThreads();
40414 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40415 wxPyEndAllowThreads(__tstate);
40416 if (PyErr_Occurred()) SWIG_fail;
40417 }
40418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40419 return resultobj;
40420 fail:
40421 return NULL;
40422 }
40423
40424
40425 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40426 PyObject *obj;
40427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40428 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40429 return SWIG_Py_Void();
40430 }
40431
40432 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40433 return SWIG_Python_InitShadowInstance(args);
40434 }
40435
40436 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40437 PyObject *resultobj = 0;
40438 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40439 void *argp1 = 0 ;
40440 int res1 = 0 ;
40441 PyObject *swig_obj[1] ;
40442
40443 if (!args) SWIG_fail;
40444 swig_obj[0] = args;
40445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40446 if (!SWIG_IsOK(res1)) {
40447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40448 }
40449 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40450 {
40451 PyThreadState* __tstate = wxPyBeginAllowThreads();
40452 delete arg1;
40453
40454 wxPyEndAllowThreads(__tstate);
40455 if (PyErr_Occurred()) SWIG_fail;
40456 }
40457 resultobj = SWIG_Py_Void();
40458 return resultobj;
40459 fail:
40460 return NULL;
40461 }
40462
40463
40464 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40465 PyObject *resultobj = 0;
40466 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40467 wxHelpProvider *result = 0 ;
40468 int res1 = 0 ;
40469 PyObject * obj0 = 0 ;
40470 char * kwnames[] = {
40471 (char *) "helpProvider", NULL
40472 };
40473
40474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40475 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40476 if (!SWIG_IsOK(res1)) {
40477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40478 }
40479 {
40480 PyThreadState* __tstate = wxPyBeginAllowThreads();
40481 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40482 wxPyEndAllowThreads(__tstate);
40483 if (PyErr_Occurred()) SWIG_fail;
40484 }
40485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40486 return resultobj;
40487 fail:
40488 return NULL;
40489 }
40490
40491
40492 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40493 PyObject *resultobj = 0;
40494 wxHelpProvider *result = 0 ;
40495
40496 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40497 {
40498 PyThreadState* __tstate = wxPyBeginAllowThreads();
40499 result = (wxHelpProvider *)wxHelpProvider::Get();
40500 wxPyEndAllowThreads(__tstate);
40501 if (PyErr_Occurred()) SWIG_fail;
40502 }
40503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40504 return resultobj;
40505 fail:
40506 return NULL;
40507 }
40508
40509
40510 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40511 PyObject *resultobj = 0;
40512 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40513 wxWindow *arg2 = (wxWindow *) 0 ;
40514 wxString result;
40515 void *argp1 = 0 ;
40516 int res1 = 0 ;
40517 void *argp2 = 0 ;
40518 int res2 = 0 ;
40519 PyObject * obj0 = 0 ;
40520 PyObject * obj1 = 0 ;
40521 char * kwnames[] = {
40522 (char *) "self",(char *) "window", NULL
40523 };
40524
40525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40527 if (!SWIG_IsOK(res1)) {
40528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40529 }
40530 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40532 if (!SWIG_IsOK(res2)) {
40533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40534 }
40535 arg2 = reinterpret_cast< wxWindow * >(argp2);
40536 {
40537 PyThreadState* __tstate = wxPyBeginAllowThreads();
40538 result = (arg1)->GetHelp((wxWindow const *)arg2);
40539 wxPyEndAllowThreads(__tstate);
40540 if (PyErr_Occurred()) SWIG_fail;
40541 }
40542 {
40543 #if wxUSE_UNICODE
40544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40545 #else
40546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40547 #endif
40548 }
40549 return resultobj;
40550 fail:
40551 return NULL;
40552 }
40553
40554
40555 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40556 PyObject *resultobj = 0;
40557 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40558 wxWindow *arg2 = (wxWindow *) 0 ;
40559 bool result;
40560 void *argp1 = 0 ;
40561 int res1 = 0 ;
40562 void *argp2 = 0 ;
40563 int res2 = 0 ;
40564 PyObject * obj0 = 0 ;
40565 PyObject * obj1 = 0 ;
40566 char * kwnames[] = {
40567 (char *) "self",(char *) "window", NULL
40568 };
40569
40570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40572 if (!SWIG_IsOK(res1)) {
40573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40574 }
40575 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40577 if (!SWIG_IsOK(res2)) {
40578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40579 }
40580 arg2 = reinterpret_cast< wxWindow * >(argp2);
40581 {
40582 PyThreadState* __tstate = wxPyBeginAllowThreads();
40583 result = (bool)(arg1)->ShowHelp(arg2);
40584 wxPyEndAllowThreads(__tstate);
40585 if (PyErr_Occurred()) SWIG_fail;
40586 }
40587 {
40588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40589 }
40590 return resultobj;
40591 fail:
40592 return NULL;
40593 }
40594
40595
40596 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40597 PyObject *resultobj = 0;
40598 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40599 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40600 wxPoint *arg3 = 0 ;
40601 wxHelpEvent::Origin arg4 ;
40602 bool result;
40603 void *argp1 = 0 ;
40604 int res1 = 0 ;
40605 void *argp2 = 0 ;
40606 int res2 = 0 ;
40607 wxPoint temp3 ;
40608 int val4 ;
40609 int ecode4 = 0 ;
40610 PyObject * obj0 = 0 ;
40611 PyObject * obj1 = 0 ;
40612 PyObject * obj2 = 0 ;
40613 PyObject * obj3 = 0 ;
40614 char * kwnames[] = {
40615 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40616 };
40617
40618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40620 if (!SWIG_IsOK(res1)) {
40621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40622 }
40623 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40625 if (!SWIG_IsOK(res2)) {
40626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40627 }
40628 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40629 {
40630 arg3 = &temp3;
40631 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40632 }
40633 ecode4 = SWIG_AsVal_int(obj3, &val4);
40634 if (!SWIG_IsOK(ecode4)) {
40635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40636 }
40637 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40638 {
40639 PyThreadState* __tstate = wxPyBeginAllowThreads();
40640 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40641 wxPyEndAllowThreads(__tstate);
40642 if (PyErr_Occurred()) SWIG_fail;
40643 }
40644 {
40645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40646 }
40647 return resultobj;
40648 fail:
40649 return NULL;
40650 }
40651
40652
40653 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40654 PyObject *resultobj = 0;
40655 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40656 wxWindow *arg2 = (wxWindow *) 0 ;
40657 wxString *arg3 = 0 ;
40658 void *argp1 = 0 ;
40659 int res1 = 0 ;
40660 void *argp2 = 0 ;
40661 int res2 = 0 ;
40662 bool temp3 = false ;
40663 PyObject * obj0 = 0 ;
40664 PyObject * obj1 = 0 ;
40665 PyObject * obj2 = 0 ;
40666 char * kwnames[] = {
40667 (char *) "self",(char *) "window",(char *) "text", NULL
40668 };
40669
40670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40672 if (!SWIG_IsOK(res1)) {
40673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40674 }
40675 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40677 if (!SWIG_IsOK(res2)) {
40678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40679 }
40680 arg2 = reinterpret_cast< wxWindow * >(argp2);
40681 {
40682 arg3 = wxString_in_helper(obj2);
40683 if (arg3 == NULL) SWIG_fail;
40684 temp3 = true;
40685 }
40686 {
40687 PyThreadState* __tstate = wxPyBeginAllowThreads();
40688 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40689 wxPyEndAllowThreads(__tstate);
40690 if (PyErr_Occurred()) SWIG_fail;
40691 }
40692 resultobj = SWIG_Py_Void();
40693 {
40694 if (temp3)
40695 delete arg3;
40696 }
40697 return resultobj;
40698 fail:
40699 {
40700 if (temp3)
40701 delete arg3;
40702 }
40703 return NULL;
40704 }
40705
40706
40707 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40708 PyObject *resultobj = 0;
40709 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40710 int arg2 ;
40711 wxString *arg3 = 0 ;
40712 void *argp1 = 0 ;
40713 int res1 = 0 ;
40714 int val2 ;
40715 int ecode2 = 0 ;
40716 bool temp3 = false ;
40717 PyObject * obj0 = 0 ;
40718 PyObject * obj1 = 0 ;
40719 PyObject * obj2 = 0 ;
40720 char * kwnames[] = {
40721 (char *) "self",(char *) "id",(char *) "text", NULL
40722 };
40723
40724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40726 if (!SWIG_IsOK(res1)) {
40727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40728 }
40729 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40730 ecode2 = SWIG_AsVal_int(obj1, &val2);
40731 if (!SWIG_IsOK(ecode2)) {
40732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40733 }
40734 arg2 = static_cast< int >(val2);
40735 {
40736 arg3 = wxString_in_helper(obj2);
40737 if (arg3 == NULL) SWIG_fail;
40738 temp3 = true;
40739 }
40740 {
40741 PyThreadState* __tstate = wxPyBeginAllowThreads();
40742 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40743 wxPyEndAllowThreads(__tstate);
40744 if (PyErr_Occurred()) SWIG_fail;
40745 }
40746 resultobj = SWIG_Py_Void();
40747 {
40748 if (temp3)
40749 delete arg3;
40750 }
40751 return resultobj;
40752 fail:
40753 {
40754 if (temp3)
40755 delete arg3;
40756 }
40757 return NULL;
40758 }
40759
40760
40761 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40762 PyObject *resultobj = 0;
40763 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40764 wxWindow *arg2 = (wxWindow *) 0 ;
40765 void *argp1 = 0 ;
40766 int res1 = 0 ;
40767 void *argp2 = 0 ;
40768 int res2 = 0 ;
40769 PyObject * obj0 = 0 ;
40770 PyObject * obj1 = 0 ;
40771 char * kwnames[] = {
40772 (char *) "self",(char *) "window", NULL
40773 };
40774
40775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40777 if (!SWIG_IsOK(res1)) {
40778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40779 }
40780 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40782 if (!SWIG_IsOK(res2)) {
40783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40784 }
40785 arg2 = reinterpret_cast< wxWindow * >(argp2);
40786 {
40787 PyThreadState* __tstate = wxPyBeginAllowThreads();
40788 (arg1)->RemoveHelp(arg2);
40789 wxPyEndAllowThreads(__tstate);
40790 if (PyErr_Occurred()) SWIG_fail;
40791 }
40792 resultobj = SWIG_Py_Void();
40793 return resultobj;
40794 fail:
40795 return NULL;
40796 }
40797
40798
40799 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40800 PyObject *resultobj = 0;
40801 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40802 void *argp1 = 0 ;
40803 int res1 = 0 ;
40804 PyObject *swig_obj[1] ;
40805
40806 if (!args) SWIG_fail;
40807 swig_obj[0] = args;
40808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40809 if (!SWIG_IsOK(res1)) {
40810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40811 }
40812 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40813 {
40814 PyThreadState* __tstate = wxPyBeginAllowThreads();
40815 wxHelpProvider_Destroy(arg1);
40816 wxPyEndAllowThreads(__tstate);
40817 if (PyErr_Occurred()) SWIG_fail;
40818 }
40819 resultobj = SWIG_Py_Void();
40820 return resultobj;
40821 fail:
40822 return NULL;
40823 }
40824
40825
40826 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40827 PyObject *obj;
40828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40829 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40830 return SWIG_Py_Void();
40831 }
40832
40833 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40834 PyObject *resultobj = 0;
40835 wxSimpleHelpProvider *result = 0 ;
40836
40837 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40838 {
40839 PyThreadState* __tstate = wxPyBeginAllowThreads();
40840 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40841 wxPyEndAllowThreads(__tstate);
40842 if (PyErr_Occurred()) SWIG_fail;
40843 }
40844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40845 return resultobj;
40846 fail:
40847 return NULL;
40848 }
40849
40850
40851 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40852 PyObject *obj;
40853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40854 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40855 return SWIG_Py_Void();
40856 }
40857
40858 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40859 return SWIG_Python_InitShadowInstance(args);
40860 }
40861
40862 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40863 PyObject *resultobj = 0;
40864 wxBitmap *arg1 = 0 ;
40865 wxCursor const &arg2_defvalue = wxNullCursor ;
40866 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40867 wxGenericDragImage *result = 0 ;
40868 void *argp1 = 0 ;
40869 int res1 = 0 ;
40870 void *argp2 = 0 ;
40871 int res2 = 0 ;
40872 PyObject * obj0 = 0 ;
40873 PyObject * obj1 = 0 ;
40874 char * kwnames[] = {
40875 (char *) "image",(char *) "cursor", NULL
40876 };
40877
40878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40879 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40880 if (!SWIG_IsOK(res1)) {
40881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40882 }
40883 if (!argp1) {
40884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40885 }
40886 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40887 if (obj1) {
40888 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40889 if (!SWIG_IsOK(res2)) {
40890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40891 }
40892 if (!argp2) {
40893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40894 }
40895 arg2 = reinterpret_cast< wxCursor * >(argp2);
40896 }
40897 {
40898 if (!wxPyCheckForApp()) SWIG_fail;
40899 PyThreadState* __tstate = wxPyBeginAllowThreads();
40900 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40901 wxPyEndAllowThreads(__tstate);
40902 if (PyErr_Occurred()) SWIG_fail;
40903 }
40904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40905 return resultobj;
40906 fail:
40907 return NULL;
40908 }
40909
40910
40911 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40912 PyObject *resultobj = 0;
40913 wxIcon *arg1 = 0 ;
40914 wxCursor const &arg2_defvalue = wxNullCursor ;
40915 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40916 wxGenericDragImage *result = 0 ;
40917 void *argp1 = 0 ;
40918 int res1 = 0 ;
40919 void *argp2 = 0 ;
40920 int res2 = 0 ;
40921 PyObject * obj0 = 0 ;
40922 PyObject * obj1 = 0 ;
40923 char * kwnames[] = {
40924 (char *) "image",(char *) "cursor", NULL
40925 };
40926
40927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40928 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40929 if (!SWIG_IsOK(res1)) {
40930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40931 }
40932 if (!argp1) {
40933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40934 }
40935 arg1 = reinterpret_cast< wxIcon * >(argp1);
40936 if (obj1) {
40937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40938 if (!SWIG_IsOK(res2)) {
40939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40940 }
40941 if (!argp2) {
40942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40943 }
40944 arg2 = reinterpret_cast< wxCursor * >(argp2);
40945 }
40946 {
40947 if (!wxPyCheckForApp()) SWIG_fail;
40948 PyThreadState* __tstate = wxPyBeginAllowThreads();
40949 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40950 wxPyEndAllowThreads(__tstate);
40951 if (PyErr_Occurred()) SWIG_fail;
40952 }
40953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40954 return resultobj;
40955 fail:
40956 return NULL;
40957 }
40958
40959
40960 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40961 PyObject *resultobj = 0;
40962 wxString *arg1 = 0 ;
40963 wxCursor const &arg2_defvalue = wxNullCursor ;
40964 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40965 wxGenericDragImage *result = 0 ;
40966 bool temp1 = false ;
40967 void *argp2 = 0 ;
40968 int res2 = 0 ;
40969 PyObject * obj0 = 0 ;
40970 PyObject * obj1 = 0 ;
40971 char * kwnames[] = {
40972 (char *) "str",(char *) "cursor", NULL
40973 };
40974
40975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40976 {
40977 arg1 = wxString_in_helper(obj0);
40978 if (arg1 == NULL) SWIG_fail;
40979 temp1 = true;
40980 }
40981 if (obj1) {
40982 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40983 if (!SWIG_IsOK(res2)) {
40984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40985 }
40986 if (!argp2) {
40987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40988 }
40989 arg2 = reinterpret_cast< wxCursor * >(argp2);
40990 }
40991 {
40992 if (!wxPyCheckForApp()) SWIG_fail;
40993 PyThreadState* __tstate = wxPyBeginAllowThreads();
40994 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40995 wxPyEndAllowThreads(__tstate);
40996 if (PyErr_Occurred()) SWIG_fail;
40997 }
40998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40999 {
41000 if (temp1)
41001 delete arg1;
41002 }
41003 return resultobj;
41004 fail:
41005 {
41006 if (temp1)
41007 delete arg1;
41008 }
41009 return NULL;
41010 }
41011
41012
41013 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41014 PyObject *resultobj = 0;
41015 wxPyTreeCtrl *arg1 = 0 ;
41016 wxTreeItemId *arg2 = 0 ;
41017 wxGenericDragImage *result = 0 ;
41018 void *argp1 = 0 ;
41019 int res1 = 0 ;
41020 void *argp2 = 0 ;
41021 int res2 = 0 ;
41022 PyObject * obj0 = 0 ;
41023 PyObject * obj1 = 0 ;
41024 char * kwnames[] = {
41025 (char *) "treeCtrl",(char *) "id", NULL
41026 };
41027
41028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
41029 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
41030 if (!SWIG_IsOK(res1)) {
41031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41032 }
41033 if (!argp1) {
41034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41035 }
41036 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
41037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
41038 if (!SWIG_IsOK(res2)) {
41039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41040 }
41041 if (!argp2) {
41042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41043 }
41044 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
41045 {
41046 if (!wxPyCheckForApp()) SWIG_fail;
41047 PyThreadState* __tstate = wxPyBeginAllowThreads();
41048 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
41049 wxPyEndAllowThreads(__tstate);
41050 if (PyErr_Occurred()) SWIG_fail;
41051 }
41052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41053 return resultobj;
41054 fail:
41055 return NULL;
41056 }
41057
41058
41059 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41060 PyObject *resultobj = 0;
41061 wxPyListCtrl *arg1 = 0 ;
41062 long arg2 ;
41063 wxGenericDragImage *result = 0 ;
41064 void *argp1 = 0 ;
41065 int res1 = 0 ;
41066 long val2 ;
41067 int ecode2 = 0 ;
41068 PyObject * obj0 = 0 ;
41069 PyObject * obj1 = 0 ;
41070 char * kwnames[] = {
41071 (char *) "listCtrl",(char *) "id", NULL
41072 };
41073
41074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41075 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41076 if (!SWIG_IsOK(res1)) {
41077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41078 }
41079 if (!argp1) {
41080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41081 }
41082 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41083 ecode2 = SWIG_AsVal_long(obj1, &val2);
41084 if (!SWIG_IsOK(ecode2)) {
41085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41086 }
41087 arg2 = static_cast< long >(val2);
41088 {
41089 if (!wxPyCheckForApp()) SWIG_fail;
41090 PyThreadState* __tstate = wxPyBeginAllowThreads();
41091 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41092 wxPyEndAllowThreads(__tstate);
41093 if (PyErr_Occurred()) SWIG_fail;
41094 }
41095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41096 return resultobj;
41097 fail:
41098 return NULL;
41099 }
41100
41101
41102 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41103 PyObject *resultobj = 0;
41104 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41105 void *argp1 = 0 ;
41106 int res1 = 0 ;
41107 PyObject *swig_obj[1] ;
41108
41109 if (!args) SWIG_fail;
41110 swig_obj[0] = args;
41111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41112 if (!SWIG_IsOK(res1)) {
41113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41114 }
41115 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41116 {
41117 PyThreadState* __tstate = wxPyBeginAllowThreads();
41118 delete arg1;
41119
41120 wxPyEndAllowThreads(__tstate);
41121 if (PyErr_Occurred()) SWIG_fail;
41122 }
41123 resultobj = SWIG_Py_Void();
41124 return resultobj;
41125 fail:
41126 return NULL;
41127 }
41128
41129
41130 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41131 PyObject *resultobj = 0;
41132 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41133 wxBitmap *arg2 = (wxBitmap *) 0 ;
41134 void *argp1 = 0 ;
41135 int res1 = 0 ;
41136 void *argp2 = 0 ;
41137 int res2 = 0 ;
41138 PyObject * obj0 = 0 ;
41139 PyObject * obj1 = 0 ;
41140 char * kwnames[] = {
41141 (char *) "self",(char *) "bitmap", NULL
41142 };
41143
41144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41146 if (!SWIG_IsOK(res1)) {
41147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41148 }
41149 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41151 if (!SWIG_IsOK(res2)) {
41152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41153 }
41154 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41155 {
41156 PyThreadState* __tstate = wxPyBeginAllowThreads();
41157 (arg1)->SetBackingBitmap(arg2);
41158 wxPyEndAllowThreads(__tstate);
41159 if (PyErr_Occurred()) SWIG_fail;
41160 }
41161 resultobj = SWIG_Py_Void();
41162 return resultobj;
41163 fail:
41164 return NULL;
41165 }
41166
41167
41168 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41169 PyObject *resultobj = 0;
41170 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41171 wxPoint *arg2 = 0 ;
41172 wxWindow *arg3 = (wxWindow *) 0 ;
41173 bool arg4 = (bool) false ;
41174 wxRect *arg5 = (wxRect *) NULL ;
41175 bool result;
41176 void *argp1 = 0 ;
41177 int res1 = 0 ;
41178 wxPoint temp2 ;
41179 void *argp3 = 0 ;
41180 int res3 = 0 ;
41181 bool val4 ;
41182 int ecode4 = 0 ;
41183 void *argp5 = 0 ;
41184 int res5 = 0 ;
41185 PyObject * obj0 = 0 ;
41186 PyObject * obj1 = 0 ;
41187 PyObject * obj2 = 0 ;
41188 PyObject * obj3 = 0 ;
41189 PyObject * obj4 = 0 ;
41190 char * kwnames[] = {
41191 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41192 };
41193
41194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41196 if (!SWIG_IsOK(res1)) {
41197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41198 }
41199 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41200 {
41201 arg2 = &temp2;
41202 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41203 }
41204 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41205 if (!SWIG_IsOK(res3)) {
41206 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41207 }
41208 arg3 = reinterpret_cast< wxWindow * >(argp3);
41209 if (obj3) {
41210 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41211 if (!SWIG_IsOK(ecode4)) {
41212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41213 }
41214 arg4 = static_cast< bool >(val4);
41215 }
41216 if (obj4) {
41217 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41218 if (!SWIG_IsOK(res5)) {
41219 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41220 }
41221 arg5 = reinterpret_cast< wxRect * >(argp5);
41222 }
41223 {
41224 PyThreadState* __tstate = wxPyBeginAllowThreads();
41225 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41226 wxPyEndAllowThreads(__tstate);
41227 if (PyErr_Occurred()) SWIG_fail;
41228 }
41229 {
41230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41231 }
41232 return resultobj;
41233 fail:
41234 return NULL;
41235 }
41236
41237
41238 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41239 PyObject *resultobj = 0;
41240 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41241 wxPoint *arg2 = 0 ;
41242 wxWindow *arg3 = (wxWindow *) 0 ;
41243 wxWindow *arg4 = (wxWindow *) 0 ;
41244 bool result;
41245 void *argp1 = 0 ;
41246 int res1 = 0 ;
41247 wxPoint temp2 ;
41248 void *argp3 = 0 ;
41249 int res3 = 0 ;
41250 void *argp4 = 0 ;
41251 int res4 = 0 ;
41252 PyObject * obj0 = 0 ;
41253 PyObject * obj1 = 0 ;
41254 PyObject * obj2 = 0 ;
41255 PyObject * obj3 = 0 ;
41256 char * kwnames[] = {
41257 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41258 };
41259
41260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41262 if (!SWIG_IsOK(res1)) {
41263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41264 }
41265 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41266 {
41267 arg2 = &temp2;
41268 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41269 }
41270 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41271 if (!SWIG_IsOK(res3)) {
41272 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41273 }
41274 arg3 = reinterpret_cast< wxWindow * >(argp3);
41275 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41276 if (!SWIG_IsOK(res4)) {
41277 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41278 }
41279 arg4 = reinterpret_cast< wxWindow * >(argp4);
41280 {
41281 PyThreadState* __tstate = wxPyBeginAllowThreads();
41282 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41283 wxPyEndAllowThreads(__tstate);
41284 if (PyErr_Occurred()) SWIG_fail;
41285 }
41286 {
41287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41288 }
41289 return resultobj;
41290 fail:
41291 return NULL;
41292 }
41293
41294
41295 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41296 PyObject *resultobj = 0;
41297 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41298 bool result;
41299 void *argp1 = 0 ;
41300 int res1 = 0 ;
41301 PyObject *swig_obj[1] ;
41302
41303 if (!args) SWIG_fail;
41304 swig_obj[0] = args;
41305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41306 if (!SWIG_IsOK(res1)) {
41307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41308 }
41309 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41310 {
41311 PyThreadState* __tstate = wxPyBeginAllowThreads();
41312 result = (bool)(arg1)->EndDrag();
41313 wxPyEndAllowThreads(__tstate);
41314 if (PyErr_Occurred()) SWIG_fail;
41315 }
41316 {
41317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41318 }
41319 return resultobj;
41320 fail:
41321 return NULL;
41322 }
41323
41324
41325 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41326 PyObject *resultobj = 0;
41327 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41328 wxPoint *arg2 = 0 ;
41329 bool result;
41330 void *argp1 = 0 ;
41331 int res1 = 0 ;
41332 wxPoint temp2 ;
41333 PyObject * obj0 = 0 ;
41334 PyObject * obj1 = 0 ;
41335 char * kwnames[] = {
41336 (char *) "self",(char *) "pt", NULL
41337 };
41338
41339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41341 if (!SWIG_IsOK(res1)) {
41342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41343 }
41344 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41345 {
41346 arg2 = &temp2;
41347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41348 }
41349 {
41350 PyThreadState* __tstate = wxPyBeginAllowThreads();
41351 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41352 wxPyEndAllowThreads(__tstate);
41353 if (PyErr_Occurred()) SWIG_fail;
41354 }
41355 {
41356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41357 }
41358 return resultobj;
41359 fail:
41360 return NULL;
41361 }
41362
41363
41364 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41365 PyObject *resultobj = 0;
41366 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41367 bool result;
41368 void *argp1 = 0 ;
41369 int res1 = 0 ;
41370 PyObject *swig_obj[1] ;
41371
41372 if (!args) SWIG_fail;
41373 swig_obj[0] = args;
41374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41375 if (!SWIG_IsOK(res1)) {
41376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41377 }
41378 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41379 {
41380 PyThreadState* __tstate = wxPyBeginAllowThreads();
41381 result = (bool)(arg1)->Show();
41382 wxPyEndAllowThreads(__tstate);
41383 if (PyErr_Occurred()) SWIG_fail;
41384 }
41385 {
41386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41387 }
41388 return resultobj;
41389 fail:
41390 return NULL;
41391 }
41392
41393
41394 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41395 PyObject *resultobj = 0;
41396 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41397 bool result;
41398 void *argp1 = 0 ;
41399 int res1 = 0 ;
41400 PyObject *swig_obj[1] ;
41401
41402 if (!args) SWIG_fail;
41403 swig_obj[0] = args;
41404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41405 if (!SWIG_IsOK(res1)) {
41406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41407 }
41408 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41409 {
41410 PyThreadState* __tstate = wxPyBeginAllowThreads();
41411 result = (bool)(arg1)->Hide();
41412 wxPyEndAllowThreads(__tstate);
41413 if (PyErr_Occurred()) SWIG_fail;
41414 }
41415 {
41416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41417 }
41418 return resultobj;
41419 fail:
41420 return NULL;
41421 }
41422
41423
41424 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41425 PyObject *resultobj = 0;
41426 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41427 wxPoint *arg2 = 0 ;
41428 wxRect result;
41429 void *argp1 = 0 ;
41430 int res1 = 0 ;
41431 wxPoint temp2 ;
41432 PyObject * obj0 = 0 ;
41433 PyObject * obj1 = 0 ;
41434 char * kwnames[] = {
41435 (char *) "self",(char *) "pos", NULL
41436 };
41437
41438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41440 if (!SWIG_IsOK(res1)) {
41441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41442 }
41443 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41444 {
41445 arg2 = &temp2;
41446 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41447 }
41448 {
41449 PyThreadState* __tstate = wxPyBeginAllowThreads();
41450 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41451 wxPyEndAllowThreads(__tstate);
41452 if (PyErr_Occurred()) SWIG_fail;
41453 }
41454 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41455 return resultobj;
41456 fail:
41457 return NULL;
41458 }
41459
41460
41461 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41462 PyObject *resultobj = 0;
41463 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41464 wxDC *arg2 = 0 ;
41465 wxPoint *arg3 = 0 ;
41466 bool result;
41467 void *argp1 = 0 ;
41468 int res1 = 0 ;
41469 void *argp2 = 0 ;
41470 int res2 = 0 ;
41471 wxPoint temp3 ;
41472 PyObject * obj0 = 0 ;
41473 PyObject * obj1 = 0 ;
41474 PyObject * obj2 = 0 ;
41475 char * kwnames[] = {
41476 (char *) "self",(char *) "dc",(char *) "pos", NULL
41477 };
41478
41479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41481 if (!SWIG_IsOK(res1)) {
41482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41483 }
41484 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41486 if (!SWIG_IsOK(res2)) {
41487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41488 }
41489 if (!argp2) {
41490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41491 }
41492 arg2 = reinterpret_cast< wxDC * >(argp2);
41493 {
41494 arg3 = &temp3;
41495 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41496 }
41497 {
41498 PyThreadState* __tstate = wxPyBeginAllowThreads();
41499 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41500 wxPyEndAllowThreads(__tstate);
41501 if (PyErr_Occurred()) SWIG_fail;
41502 }
41503 {
41504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41505 }
41506 return resultobj;
41507 fail:
41508 return NULL;
41509 }
41510
41511
41512 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41513 PyObject *resultobj = 0;
41514 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41515 wxDC *arg2 = 0 ;
41516 wxMemoryDC *arg3 = 0 ;
41517 wxRect *arg4 = 0 ;
41518 wxRect *arg5 = 0 ;
41519 bool result;
41520 void *argp1 = 0 ;
41521 int res1 = 0 ;
41522 void *argp2 = 0 ;
41523 int res2 = 0 ;
41524 void *argp3 = 0 ;
41525 int res3 = 0 ;
41526 wxRect temp4 ;
41527 wxRect temp5 ;
41528 PyObject * obj0 = 0 ;
41529 PyObject * obj1 = 0 ;
41530 PyObject * obj2 = 0 ;
41531 PyObject * obj3 = 0 ;
41532 PyObject * obj4 = 0 ;
41533 char * kwnames[] = {
41534 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41535 };
41536
41537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41539 if (!SWIG_IsOK(res1)) {
41540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41541 }
41542 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41544 if (!SWIG_IsOK(res2)) {
41545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41546 }
41547 if (!argp2) {
41548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41549 }
41550 arg2 = reinterpret_cast< wxDC * >(argp2);
41551 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41552 if (!SWIG_IsOK(res3)) {
41553 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41554 }
41555 if (!argp3) {
41556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41557 }
41558 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41559 {
41560 arg4 = &temp4;
41561 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41562 }
41563 {
41564 arg5 = &temp5;
41565 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41566 }
41567 {
41568 PyThreadState* __tstate = wxPyBeginAllowThreads();
41569 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41570 wxPyEndAllowThreads(__tstate);
41571 if (PyErr_Occurred()) SWIG_fail;
41572 }
41573 {
41574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41575 }
41576 return resultobj;
41577 fail:
41578 return NULL;
41579 }
41580
41581
41582 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41583 PyObject *resultobj = 0;
41584 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41585 wxPoint *arg2 = 0 ;
41586 wxPoint *arg3 = 0 ;
41587 bool arg4 ;
41588 bool arg5 ;
41589 bool result;
41590 void *argp1 = 0 ;
41591 int res1 = 0 ;
41592 wxPoint temp2 ;
41593 wxPoint temp3 ;
41594 bool val4 ;
41595 int ecode4 = 0 ;
41596 bool val5 ;
41597 int ecode5 = 0 ;
41598 PyObject * obj0 = 0 ;
41599 PyObject * obj1 = 0 ;
41600 PyObject * obj2 = 0 ;
41601 PyObject * obj3 = 0 ;
41602 PyObject * obj4 = 0 ;
41603 char * kwnames[] = {
41604 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41605 };
41606
41607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41609 if (!SWIG_IsOK(res1)) {
41610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41611 }
41612 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41613 {
41614 arg2 = &temp2;
41615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41616 }
41617 {
41618 arg3 = &temp3;
41619 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41620 }
41621 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41622 if (!SWIG_IsOK(ecode4)) {
41623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41624 }
41625 arg4 = static_cast< bool >(val4);
41626 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41627 if (!SWIG_IsOK(ecode5)) {
41628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41629 }
41630 arg5 = static_cast< bool >(val5);
41631 {
41632 PyThreadState* __tstate = wxPyBeginAllowThreads();
41633 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41634 wxPyEndAllowThreads(__tstate);
41635 if (PyErr_Occurred()) SWIG_fail;
41636 }
41637 {
41638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41639 }
41640 return resultobj;
41641 fail:
41642 return NULL;
41643 }
41644
41645
41646 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41647 PyObject *obj;
41648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41649 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41650 return SWIG_Py_Void();
41651 }
41652
41653 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41654 return SWIG_Python_InitShadowInstance(args);
41655 }
41656
41657 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41658 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41659 return 1;
41660 }
41661
41662
41663 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41664 PyObject *pyobj = 0;
41665
41666 {
41667 #if wxUSE_UNICODE
41668 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41669 #else
41670 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41671 #endif
41672 }
41673 return pyobj;
41674 }
41675
41676
41677 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41678 PyObject *resultobj = 0;
41679 wxWindow *arg1 = (wxWindow *) 0 ;
41680 int arg2 = (int) -1 ;
41681 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41682 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41683 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41684 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41685 wxSize const &arg5_defvalue = wxDefaultSize ;
41686 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41687 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41688 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41689 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41690 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41691 wxString *arg8 = (wxString *) &arg8_defvalue ;
41692 wxDatePickerCtrl *result = 0 ;
41693 void *argp1 = 0 ;
41694 int res1 = 0 ;
41695 int val2 ;
41696 int ecode2 = 0 ;
41697 void *argp3 = 0 ;
41698 int res3 = 0 ;
41699 wxPoint temp4 ;
41700 wxSize temp5 ;
41701 long val6 ;
41702 int ecode6 = 0 ;
41703 void *argp7 = 0 ;
41704 int res7 = 0 ;
41705 bool temp8 = false ;
41706 PyObject * obj0 = 0 ;
41707 PyObject * obj1 = 0 ;
41708 PyObject * obj2 = 0 ;
41709 PyObject * obj3 = 0 ;
41710 PyObject * obj4 = 0 ;
41711 PyObject * obj5 = 0 ;
41712 PyObject * obj6 = 0 ;
41713 PyObject * obj7 = 0 ;
41714 char * kwnames[] = {
41715 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41716 };
41717
41718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41720 if (!SWIG_IsOK(res1)) {
41721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41722 }
41723 arg1 = reinterpret_cast< wxWindow * >(argp1);
41724 if (obj1) {
41725 ecode2 = SWIG_AsVal_int(obj1, &val2);
41726 if (!SWIG_IsOK(ecode2)) {
41727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41728 }
41729 arg2 = static_cast< int >(val2);
41730 }
41731 if (obj2) {
41732 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41733 if (!SWIG_IsOK(res3)) {
41734 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41735 }
41736 if (!argp3) {
41737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41738 }
41739 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41740 }
41741 if (obj3) {
41742 {
41743 arg4 = &temp4;
41744 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41745 }
41746 }
41747 if (obj4) {
41748 {
41749 arg5 = &temp5;
41750 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41751 }
41752 }
41753 if (obj5) {
41754 ecode6 = SWIG_AsVal_long(obj5, &val6);
41755 if (!SWIG_IsOK(ecode6)) {
41756 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41757 }
41758 arg6 = static_cast< long >(val6);
41759 }
41760 if (obj6) {
41761 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41762 if (!SWIG_IsOK(res7)) {
41763 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41764 }
41765 if (!argp7) {
41766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41767 }
41768 arg7 = reinterpret_cast< wxValidator * >(argp7);
41769 }
41770 if (obj7) {
41771 {
41772 arg8 = wxString_in_helper(obj7);
41773 if (arg8 == NULL) SWIG_fail;
41774 temp8 = true;
41775 }
41776 }
41777 {
41778 if (!wxPyCheckForApp()) SWIG_fail;
41779 PyThreadState* __tstate = wxPyBeginAllowThreads();
41780 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41781 wxPyEndAllowThreads(__tstate);
41782 if (PyErr_Occurred()) SWIG_fail;
41783 }
41784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41785 {
41786 if (temp8)
41787 delete arg8;
41788 }
41789 return resultobj;
41790 fail:
41791 {
41792 if (temp8)
41793 delete arg8;
41794 }
41795 return NULL;
41796 }
41797
41798
41799 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41800 PyObject *resultobj = 0;
41801 wxDatePickerCtrl *result = 0 ;
41802
41803 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41804 {
41805 if (!wxPyCheckForApp()) SWIG_fail;
41806 PyThreadState* __tstate = wxPyBeginAllowThreads();
41807 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41808 wxPyEndAllowThreads(__tstate);
41809 if (PyErr_Occurred()) SWIG_fail;
41810 }
41811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41812 return resultobj;
41813 fail:
41814 return NULL;
41815 }
41816
41817
41818 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41819 PyObject *resultobj = 0;
41820 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41821 wxWindow *arg2 = (wxWindow *) 0 ;
41822 int arg3 = (int) -1 ;
41823 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41824 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41825 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41826 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41827 wxSize const &arg6_defvalue = wxDefaultSize ;
41828 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41829 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41830 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41831 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41832 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41833 wxString *arg9 = (wxString *) &arg9_defvalue ;
41834 bool result;
41835 void *argp1 = 0 ;
41836 int res1 = 0 ;
41837 void *argp2 = 0 ;
41838 int res2 = 0 ;
41839 int val3 ;
41840 int ecode3 = 0 ;
41841 void *argp4 = 0 ;
41842 int res4 = 0 ;
41843 wxPoint temp5 ;
41844 wxSize temp6 ;
41845 long val7 ;
41846 int ecode7 = 0 ;
41847 void *argp8 = 0 ;
41848 int res8 = 0 ;
41849 bool temp9 = false ;
41850 PyObject * obj0 = 0 ;
41851 PyObject * obj1 = 0 ;
41852 PyObject * obj2 = 0 ;
41853 PyObject * obj3 = 0 ;
41854 PyObject * obj4 = 0 ;
41855 PyObject * obj5 = 0 ;
41856 PyObject * obj6 = 0 ;
41857 PyObject * obj7 = 0 ;
41858 PyObject * obj8 = 0 ;
41859 char * kwnames[] = {
41860 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41861 };
41862
41863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41865 if (!SWIG_IsOK(res1)) {
41866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41867 }
41868 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41869 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41870 if (!SWIG_IsOK(res2)) {
41871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41872 }
41873 arg2 = reinterpret_cast< wxWindow * >(argp2);
41874 if (obj2) {
41875 ecode3 = SWIG_AsVal_int(obj2, &val3);
41876 if (!SWIG_IsOK(ecode3)) {
41877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41878 }
41879 arg3 = static_cast< int >(val3);
41880 }
41881 if (obj3) {
41882 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41883 if (!SWIG_IsOK(res4)) {
41884 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41885 }
41886 if (!argp4) {
41887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41888 }
41889 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41890 }
41891 if (obj4) {
41892 {
41893 arg5 = &temp5;
41894 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41895 }
41896 }
41897 if (obj5) {
41898 {
41899 arg6 = &temp6;
41900 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41901 }
41902 }
41903 if (obj6) {
41904 ecode7 = SWIG_AsVal_long(obj6, &val7);
41905 if (!SWIG_IsOK(ecode7)) {
41906 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41907 }
41908 arg7 = static_cast< long >(val7);
41909 }
41910 if (obj7) {
41911 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41912 if (!SWIG_IsOK(res8)) {
41913 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41914 }
41915 if (!argp8) {
41916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41917 }
41918 arg8 = reinterpret_cast< wxValidator * >(argp8);
41919 }
41920 if (obj8) {
41921 {
41922 arg9 = wxString_in_helper(obj8);
41923 if (arg9 == NULL) SWIG_fail;
41924 temp9 = true;
41925 }
41926 }
41927 {
41928 PyThreadState* __tstate = wxPyBeginAllowThreads();
41929 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41930 wxPyEndAllowThreads(__tstate);
41931 if (PyErr_Occurred()) SWIG_fail;
41932 }
41933 {
41934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41935 }
41936 {
41937 if (temp9)
41938 delete arg9;
41939 }
41940 return resultobj;
41941 fail:
41942 {
41943 if (temp9)
41944 delete arg9;
41945 }
41946 return NULL;
41947 }
41948
41949
41950 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41951 PyObject *resultobj = 0;
41952 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41953 wxDateTime *arg2 = 0 ;
41954 void *argp1 = 0 ;
41955 int res1 = 0 ;
41956 void *argp2 = 0 ;
41957 int res2 = 0 ;
41958 PyObject * obj0 = 0 ;
41959 PyObject * obj1 = 0 ;
41960 char * kwnames[] = {
41961 (char *) "self",(char *) "dt", NULL
41962 };
41963
41964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41966 if (!SWIG_IsOK(res1)) {
41967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41968 }
41969 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41971 if (!SWIG_IsOK(res2)) {
41972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41973 }
41974 if (!argp2) {
41975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41976 }
41977 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41978 {
41979 PyThreadState* __tstate = wxPyBeginAllowThreads();
41980 (arg1)->SetValue((wxDateTime const &)*arg2);
41981 wxPyEndAllowThreads(__tstate);
41982 if (PyErr_Occurred()) SWIG_fail;
41983 }
41984 resultobj = SWIG_Py_Void();
41985 return resultobj;
41986 fail:
41987 return NULL;
41988 }
41989
41990
41991 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41992 PyObject *resultobj = 0;
41993 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41994 wxDateTime result;
41995 void *argp1 = 0 ;
41996 int res1 = 0 ;
41997 PyObject *swig_obj[1] ;
41998
41999 if (!args) SWIG_fail;
42000 swig_obj[0] = args;
42001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42002 if (!SWIG_IsOK(res1)) {
42003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
42004 }
42005 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42006 {
42007 PyThreadState* __tstate = wxPyBeginAllowThreads();
42008 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
42009 wxPyEndAllowThreads(__tstate);
42010 if (PyErr_Occurred()) SWIG_fail;
42011 }
42012 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42013 return resultobj;
42014 fail:
42015 return NULL;
42016 }
42017
42018
42019 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42020 PyObject *resultobj = 0;
42021 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42022 wxDateTime *arg2 = 0 ;
42023 wxDateTime *arg3 = 0 ;
42024 void *argp1 = 0 ;
42025 int res1 = 0 ;
42026 void *argp2 = 0 ;
42027 int res2 = 0 ;
42028 void *argp3 = 0 ;
42029 int res3 = 0 ;
42030 PyObject * obj0 = 0 ;
42031 PyObject * obj1 = 0 ;
42032 PyObject * obj2 = 0 ;
42033 char * kwnames[] = {
42034 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
42035 };
42036
42037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42039 if (!SWIG_IsOK(res1)) {
42040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42041 }
42042 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42044 if (!SWIG_IsOK(res2)) {
42045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42046 }
42047 if (!argp2) {
42048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42049 }
42050 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42051 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
42052 if (!SWIG_IsOK(res3)) {
42053 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42054 }
42055 if (!argp3) {
42056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42057 }
42058 arg3 = reinterpret_cast< wxDateTime * >(argp3);
42059 {
42060 PyThreadState* __tstate = wxPyBeginAllowThreads();
42061 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
42062 wxPyEndAllowThreads(__tstate);
42063 if (PyErr_Occurred()) SWIG_fail;
42064 }
42065 resultobj = SWIG_Py_Void();
42066 return resultobj;
42067 fail:
42068 return NULL;
42069 }
42070
42071
42072 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42073 PyObject *resultobj = 0;
42074 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42075 wxDateTime result;
42076 void *argp1 = 0 ;
42077 int res1 = 0 ;
42078 PyObject *swig_obj[1] ;
42079
42080 if (!args) SWIG_fail;
42081 swig_obj[0] = args;
42082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42083 if (!SWIG_IsOK(res1)) {
42084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42085 }
42086 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42087 {
42088 PyThreadState* __tstate = wxPyBeginAllowThreads();
42089 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42090 wxPyEndAllowThreads(__tstate);
42091 if (PyErr_Occurred()) SWIG_fail;
42092 }
42093 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42094 return resultobj;
42095 fail:
42096 return NULL;
42097 }
42098
42099
42100 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42101 PyObject *resultobj = 0;
42102 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42103 wxDateTime result;
42104 void *argp1 = 0 ;
42105 int res1 = 0 ;
42106 PyObject *swig_obj[1] ;
42107
42108 if (!args) SWIG_fail;
42109 swig_obj[0] = args;
42110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42111 if (!SWIG_IsOK(res1)) {
42112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42113 }
42114 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42115 {
42116 PyThreadState* __tstate = wxPyBeginAllowThreads();
42117 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42118 wxPyEndAllowThreads(__tstate);
42119 if (PyErr_Occurred()) SWIG_fail;
42120 }
42121 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42122 return resultobj;
42123 fail:
42124 return NULL;
42125 }
42126
42127
42128 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42129 PyObject *obj;
42130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42131 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42132 return SWIG_Py_Void();
42133 }
42134
42135 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42136 return SWIG_Python_InitShadowInstance(args);
42137 }
42138
42139 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42140 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42141 return 1;
42142 }
42143
42144
42145 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42146 PyObject *pyobj = 0;
42147
42148 {
42149 #if wxUSE_UNICODE
42150 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42151 #else
42152 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42153 #endif
42154 }
42155 return pyobj;
42156 }
42157
42158
42159 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42160 PyObject *resultobj = 0;
42161 wxWindow *arg1 = (wxWindow *) 0 ;
42162 int arg2 ;
42163 wxString *arg3 = 0 ;
42164 wxString *arg4 = 0 ;
42165 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42166 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42167 wxSize const &arg6_defvalue = wxDefaultSize ;
42168 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42169 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42170 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42171 wxString *arg8 = (wxString *) &arg8_defvalue ;
42172 wxHyperlinkCtrl *result = 0 ;
42173 void *argp1 = 0 ;
42174 int res1 = 0 ;
42175 int val2 ;
42176 int ecode2 = 0 ;
42177 bool temp3 = false ;
42178 bool temp4 = false ;
42179 wxPoint temp5 ;
42180 wxSize temp6 ;
42181 long val7 ;
42182 int ecode7 = 0 ;
42183 bool temp8 = false ;
42184 PyObject * obj0 = 0 ;
42185 PyObject * obj1 = 0 ;
42186 PyObject * obj2 = 0 ;
42187 PyObject * obj3 = 0 ;
42188 PyObject * obj4 = 0 ;
42189 PyObject * obj5 = 0 ;
42190 PyObject * obj6 = 0 ;
42191 PyObject * obj7 = 0 ;
42192 char * kwnames[] = {
42193 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42194 };
42195
42196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42198 if (!SWIG_IsOK(res1)) {
42199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42200 }
42201 arg1 = reinterpret_cast< wxWindow * >(argp1);
42202 ecode2 = SWIG_AsVal_int(obj1, &val2);
42203 if (!SWIG_IsOK(ecode2)) {
42204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42205 }
42206 arg2 = static_cast< int >(val2);
42207 {
42208 arg3 = wxString_in_helper(obj2);
42209 if (arg3 == NULL) SWIG_fail;
42210 temp3 = true;
42211 }
42212 {
42213 arg4 = wxString_in_helper(obj3);
42214 if (arg4 == NULL) SWIG_fail;
42215 temp4 = true;
42216 }
42217 if (obj4) {
42218 {
42219 arg5 = &temp5;
42220 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42221 }
42222 }
42223 if (obj5) {
42224 {
42225 arg6 = &temp6;
42226 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42227 }
42228 }
42229 if (obj6) {
42230 ecode7 = SWIG_AsVal_long(obj6, &val7);
42231 if (!SWIG_IsOK(ecode7)) {
42232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42233 }
42234 arg7 = static_cast< long >(val7);
42235 }
42236 if (obj7) {
42237 {
42238 arg8 = wxString_in_helper(obj7);
42239 if (arg8 == NULL) SWIG_fail;
42240 temp8 = true;
42241 }
42242 }
42243 {
42244 if (!wxPyCheckForApp()) SWIG_fail;
42245 PyThreadState* __tstate = wxPyBeginAllowThreads();
42246 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42247 wxPyEndAllowThreads(__tstate);
42248 if (PyErr_Occurred()) SWIG_fail;
42249 }
42250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42251 {
42252 if (temp3)
42253 delete arg3;
42254 }
42255 {
42256 if (temp4)
42257 delete arg4;
42258 }
42259 {
42260 if (temp8)
42261 delete arg8;
42262 }
42263 return resultobj;
42264 fail:
42265 {
42266 if (temp3)
42267 delete arg3;
42268 }
42269 {
42270 if (temp4)
42271 delete arg4;
42272 }
42273 {
42274 if (temp8)
42275 delete arg8;
42276 }
42277 return NULL;
42278 }
42279
42280
42281 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42282 PyObject *resultobj = 0;
42283 wxHyperlinkCtrl *result = 0 ;
42284
42285 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42286 {
42287 if (!wxPyCheckForApp()) SWIG_fail;
42288 PyThreadState* __tstate = wxPyBeginAllowThreads();
42289 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42290 wxPyEndAllowThreads(__tstate);
42291 if (PyErr_Occurred()) SWIG_fail;
42292 }
42293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42294 return resultobj;
42295 fail:
42296 return NULL;
42297 }
42298
42299
42300 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42301 PyObject *resultobj = 0;
42302 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42303 wxWindow *arg2 = (wxWindow *) 0 ;
42304 int arg3 ;
42305 wxString *arg4 = 0 ;
42306 wxString *arg5 = 0 ;
42307 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42308 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42309 wxSize const &arg7_defvalue = wxDefaultSize ;
42310 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42311 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42312 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42313 wxString *arg9 = (wxString *) &arg9_defvalue ;
42314 bool result;
42315 void *argp1 = 0 ;
42316 int res1 = 0 ;
42317 void *argp2 = 0 ;
42318 int res2 = 0 ;
42319 int val3 ;
42320 int ecode3 = 0 ;
42321 bool temp4 = false ;
42322 bool temp5 = false ;
42323 wxPoint temp6 ;
42324 wxSize temp7 ;
42325 long val8 ;
42326 int ecode8 = 0 ;
42327 bool temp9 = false ;
42328 PyObject * obj0 = 0 ;
42329 PyObject * obj1 = 0 ;
42330 PyObject * obj2 = 0 ;
42331 PyObject * obj3 = 0 ;
42332 PyObject * obj4 = 0 ;
42333 PyObject * obj5 = 0 ;
42334 PyObject * obj6 = 0 ;
42335 PyObject * obj7 = 0 ;
42336 PyObject * obj8 = 0 ;
42337 char * kwnames[] = {
42338 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42339 };
42340
42341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42343 if (!SWIG_IsOK(res1)) {
42344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42345 }
42346 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42348 if (!SWIG_IsOK(res2)) {
42349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42350 }
42351 arg2 = reinterpret_cast< wxWindow * >(argp2);
42352 ecode3 = SWIG_AsVal_int(obj2, &val3);
42353 if (!SWIG_IsOK(ecode3)) {
42354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42355 }
42356 arg3 = static_cast< int >(val3);
42357 {
42358 arg4 = wxString_in_helper(obj3);
42359 if (arg4 == NULL) SWIG_fail;
42360 temp4 = true;
42361 }
42362 {
42363 arg5 = wxString_in_helper(obj4);
42364 if (arg5 == NULL) SWIG_fail;
42365 temp5 = true;
42366 }
42367 if (obj5) {
42368 {
42369 arg6 = &temp6;
42370 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42371 }
42372 }
42373 if (obj6) {
42374 {
42375 arg7 = &temp7;
42376 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42377 }
42378 }
42379 if (obj7) {
42380 ecode8 = SWIG_AsVal_long(obj7, &val8);
42381 if (!SWIG_IsOK(ecode8)) {
42382 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42383 }
42384 arg8 = static_cast< long >(val8);
42385 }
42386 if (obj8) {
42387 {
42388 arg9 = wxString_in_helper(obj8);
42389 if (arg9 == NULL) SWIG_fail;
42390 temp9 = true;
42391 }
42392 }
42393 {
42394 PyThreadState* __tstate = wxPyBeginAllowThreads();
42395 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42396 wxPyEndAllowThreads(__tstate);
42397 if (PyErr_Occurred()) SWIG_fail;
42398 }
42399 {
42400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42401 }
42402 {
42403 if (temp4)
42404 delete arg4;
42405 }
42406 {
42407 if (temp5)
42408 delete arg5;
42409 }
42410 {
42411 if (temp9)
42412 delete arg9;
42413 }
42414 return resultobj;
42415 fail:
42416 {
42417 if (temp4)
42418 delete arg4;
42419 }
42420 {
42421 if (temp5)
42422 delete arg5;
42423 }
42424 {
42425 if (temp9)
42426 delete arg9;
42427 }
42428 return NULL;
42429 }
42430
42431
42432 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42433 PyObject *resultobj = 0;
42434 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42435 wxColour result;
42436 void *argp1 = 0 ;
42437 int res1 = 0 ;
42438 PyObject *swig_obj[1] ;
42439
42440 if (!args) SWIG_fail;
42441 swig_obj[0] = args;
42442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42443 if (!SWIG_IsOK(res1)) {
42444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42445 }
42446 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42447 {
42448 PyThreadState* __tstate = wxPyBeginAllowThreads();
42449 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42450 wxPyEndAllowThreads(__tstate);
42451 if (PyErr_Occurred()) SWIG_fail;
42452 }
42453 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42454 return resultobj;
42455 fail:
42456 return NULL;
42457 }
42458
42459
42460 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42461 PyObject *resultobj = 0;
42462 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42463 wxColour *arg2 = 0 ;
42464 void *argp1 = 0 ;
42465 int res1 = 0 ;
42466 wxColour temp2 ;
42467 PyObject * obj0 = 0 ;
42468 PyObject * obj1 = 0 ;
42469 char * kwnames[] = {
42470 (char *) "self",(char *) "colour", NULL
42471 };
42472
42473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42475 if (!SWIG_IsOK(res1)) {
42476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42477 }
42478 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42479 {
42480 arg2 = &temp2;
42481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42482 }
42483 {
42484 PyThreadState* __tstate = wxPyBeginAllowThreads();
42485 (arg1)->SetHoverColour((wxColour const &)*arg2);
42486 wxPyEndAllowThreads(__tstate);
42487 if (PyErr_Occurred()) SWIG_fail;
42488 }
42489 resultobj = SWIG_Py_Void();
42490 return resultobj;
42491 fail:
42492 return NULL;
42493 }
42494
42495
42496 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42497 PyObject *resultobj = 0;
42498 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42499 wxColour result;
42500 void *argp1 = 0 ;
42501 int res1 = 0 ;
42502 PyObject *swig_obj[1] ;
42503
42504 if (!args) SWIG_fail;
42505 swig_obj[0] = args;
42506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42507 if (!SWIG_IsOK(res1)) {
42508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42509 }
42510 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42511 {
42512 PyThreadState* __tstate = wxPyBeginAllowThreads();
42513 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42514 wxPyEndAllowThreads(__tstate);
42515 if (PyErr_Occurred()) SWIG_fail;
42516 }
42517 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42518 return resultobj;
42519 fail:
42520 return NULL;
42521 }
42522
42523
42524 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42525 PyObject *resultobj = 0;
42526 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42527 wxColour *arg2 = 0 ;
42528 void *argp1 = 0 ;
42529 int res1 = 0 ;
42530 wxColour temp2 ;
42531 PyObject * obj0 = 0 ;
42532 PyObject * obj1 = 0 ;
42533 char * kwnames[] = {
42534 (char *) "self",(char *) "colour", NULL
42535 };
42536
42537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42539 if (!SWIG_IsOK(res1)) {
42540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42541 }
42542 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42543 {
42544 arg2 = &temp2;
42545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42546 }
42547 {
42548 PyThreadState* __tstate = wxPyBeginAllowThreads();
42549 (arg1)->SetNormalColour((wxColour const &)*arg2);
42550 wxPyEndAllowThreads(__tstate);
42551 if (PyErr_Occurred()) SWIG_fail;
42552 }
42553 resultobj = SWIG_Py_Void();
42554 return resultobj;
42555 fail:
42556 return NULL;
42557 }
42558
42559
42560 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42561 PyObject *resultobj = 0;
42562 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42563 wxColour result;
42564 void *argp1 = 0 ;
42565 int res1 = 0 ;
42566 PyObject *swig_obj[1] ;
42567
42568 if (!args) SWIG_fail;
42569 swig_obj[0] = args;
42570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42571 if (!SWIG_IsOK(res1)) {
42572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42573 }
42574 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42575 {
42576 PyThreadState* __tstate = wxPyBeginAllowThreads();
42577 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42578 wxPyEndAllowThreads(__tstate);
42579 if (PyErr_Occurred()) SWIG_fail;
42580 }
42581 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42582 return resultobj;
42583 fail:
42584 return NULL;
42585 }
42586
42587
42588 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42589 PyObject *resultobj = 0;
42590 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42591 wxColour *arg2 = 0 ;
42592 void *argp1 = 0 ;
42593 int res1 = 0 ;
42594 wxColour temp2 ;
42595 PyObject * obj0 = 0 ;
42596 PyObject * obj1 = 0 ;
42597 char * kwnames[] = {
42598 (char *) "self",(char *) "colour", NULL
42599 };
42600
42601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42603 if (!SWIG_IsOK(res1)) {
42604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42605 }
42606 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42607 {
42608 arg2 = &temp2;
42609 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42610 }
42611 {
42612 PyThreadState* __tstate = wxPyBeginAllowThreads();
42613 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42614 wxPyEndAllowThreads(__tstate);
42615 if (PyErr_Occurred()) SWIG_fail;
42616 }
42617 resultobj = SWIG_Py_Void();
42618 return resultobj;
42619 fail:
42620 return NULL;
42621 }
42622
42623
42624 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42625 PyObject *resultobj = 0;
42626 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42627 wxString result;
42628 void *argp1 = 0 ;
42629 int res1 = 0 ;
42630 PyObject *swig_obj[1] ;
42631
42632 if (!args) SWIG_fail;
42633 swig_obj[0] = args;
42634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42635 if (!SWIG_IsOK(res1)) {
42636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42637 }
42638 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42639 {
42640 PyThreadState* __tstate = wxPyBeginAllowThreads();
42641 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42642 wxPyEndAllowThreads(__tstate);
42643 if (PyErr_Occurred()) SWIG_fail;
42644 }
42645 {
42646 #if wxUSE_UNICODE
42647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42648 #else
42649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42650 #endif
42651 }
42652 return resultobj;
42653 fail:
42654 return NULL;
42655 }
42656
42657
42658 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42659 PyObject *resultobj = 0;
42660 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42661 wxString *arg2 = 0 ;
42662 void *argp1 = 0 ;
42663 int res1 = 0 ;
42664 bool temp2 = false ;
42665 PyObject * obj0 = 0 ;
42666 PyObject * obj1 = 0 ;
42667 char * kwnames[] = {
42668 (char *) "self",(char *) "url", NULL
42669 };
42670
42671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",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_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42675 }
42676 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42677 {
42678 arg2 = wxString_in_helper(obj1);
42679 if (arg2 == NULL) SWIG_fail;
42680 temp2 = true;
42681 }
42682 {
42683 PyThreadState* __tstate = wxPyBeginAllowThreads();
42684 (arg1)->SetURL((wxString const &)*arg2);
42685 wxPyEndAllowThreads(__tstate);
42686 if (PyErr_Occurred()) SWIG_fail;
42687 }
42688 resultobj = SWIG_Py_Void();
42689 {
42690 if (temp2)
42691 delete arg2;
42692 }
42693 return resultobj;
42694 fail:
42695 {
42696 if (temp2)
42697 delete arg2;
42698 }
42699 return NULL;
42700 }
42701
42702
42703 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42704 PyObject *resultobj = 0;
42705 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42706 bool arg2 = (bool) true ;
42707 void *argp1 = 0 ;
42708 int res1 = 0 ;
42709 bool val2 ;
42710 int ecode2 = 0 ;
42711 PyObject * obj0 = 0 ;
42712 PyObject * obj1 = 0 ;
42713 char * kwnames[] = {
42714 (char *) "self",(char *) "visited", NULL
42715 };
42716
42717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42719 if (!SWIG_IsOK(res1)) {
42720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42721 }
42722 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42723 if (obj1) {
42724 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42725 if (!SWIG_IsOK(ecode2)) {
42726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42727 }
42728 arg2 = static_cast< bool >(val2);
42729 }
42730 {
42731 PyThreadState* __tstate = wxPyBeginAllowThreads();
42732 (arg1)->SetVisited(arg2);
42733 wxPyEndAllowThreads(__tstate);
42734 if (PyErr_Occurred()) SWIG_fail;
42735 }
42736 resultobj = SWIG_Py_Void();
42737 return resultobj;
42738 fail:
42739 return NULL;
42740 }
42741
42742
42743 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42744 PyObject *resultobj = 0;
42745 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42746 bool result;
42747 void *argp1 = 0 ;
42748 int res1 = 0 ;
42749 PyObject *swig_obj[1] ;
42750
42751 if (!args) SWIG_fail;
42752 swig_obj[0] = args;
42753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42754 if (!SWIG_IsOK(res1)) {
42755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42756 }
42757 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42758 {
42759 PyThreadState* __tstate = wxPyBeginAllowThreads();
42760 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42761 wxPyEndAllowThreads(__tstate);
42762 if (PyErr_Occurred()) SWIG_fail;
42763 }
42764 {
42765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42766 }
42767 return resultobj;
42768 fail:
42769 return NULL;
42770 }
42771
42772
42773 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42774 PyObject *obj;
42775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42776 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42777 return SWIG_Py_Void();
42778 }
42779
42780 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42781 return SWIG_Python_InitShadowInstance(args);
42782 }
42783
42784 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42785 PyObject *resultobj = 0;
42786 wxObject *arg1 = (wxObject *) 0 ;
42787 int arg2 ;
42788 wxString *arg3 = 0 ;
42789 wxHyperlinkEvent *result = 0 ;
42790 void *argp1 = 0 ;
42791 int res1 = 0 ;
42792 int val2 ;
42793 int ecode2 = 0 ;
42794 bool temp3 = false ;
42795 PyObject * obj0 = 0 ;
42796 PyObject * obj1 = 0 ;
42797 PyObject * obj2 = 0 ;
42798 char * kwnames[] = {
42799 (char *) "generator",(char *) "id",(char *) "url", NULL
42800 };
42801
42802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42804 if (!SWIG_IsOK(res1)) {
42805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42806 }
42807 arg1 = reinterpret_cast< wxObject * >(argp1);
42808 ecode2 = SWIG_AsVal_int(obj1, &val2);
42809 if (!SWIG_IsOK(ecode2)) {
42810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42811 }
42812 arg2 = static_cast< int >(val2);
42813 {
42814 arg3 = wxString_in_helper(obj2);
42815 if (arg3 == NULL) SWIG_fail;
42816 temp3 = true;
42817 }
42818 {
42819 PyThreadState* __tstate = wxPyBeginAllowThreads();
42820 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42821 wxPyEndAllowThreads(__tstate);
42822 if (PyErr_Occurred()) SWIG_fail;
42823 }
42824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42825 {
42826 if (temp3)
42827 delete arg3;
42828 }
42829 return resultobj;
42830 fail:
42831 {
42832 if (temp3)
42833 delete arg3;
42834 }
42835 return NULL;
42836 }
42837
42838
42839 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42840 PyObject *resultobj = 0;
42841 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42842 wxString result;
42843 void *argp1 = 0 ;
42844 int res1 = 0 ;
42845 PyObject *swig_obj[1] ;
42846
42847 if (!args) SWIG_fail;
42848 swig_obj[0] = args;
42849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42850 if (!SWIG_IsOK(res1)) {
42851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42852 }
42853 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42854 {
42855 PyThreadState* __tstate = wxPyBeginAllowThreads();
42856 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42857 wxPyEndAllowThreads(__tstate);
42858 if (PyErr_Occurred()) SWIG_fail;
42859 }
42860 {
42861 #if wxUSE_UNICODE
42862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42863 #else
42864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42865 #endif
42866 }
42867 return resultobj;
42868 fail:
42869 return NULL;
42870 }
42871
42872
42873 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42874 PyObject *resultobj = 0;
42875 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42876 wxString *arg2 = 0 ;
42877 void *argp1 = 0 ;
42878 int res1 = 0 ;
42879 bool temp2 = false ;
42880 PyObject * obj0 = 0 ;
42881 PyObject * obj1 = 0 ;
42882 char * kwnames[] = {
42883 (char *) "self",(char *) "url", NULL
42884 };
42885
42886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42888 if (!SWIG_IsOK(res1)) {
42889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42890 }
42891 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42892 {
42893 arg2 = wxString_in_helper(obj1);
42894 if (arg2 == NULL) SWIG_fail;
42895 temp2 = true;
42896 }
42897 {
42898 PyThreadState* __tstate = wxPyBeginAllowThreads();
42899 (arg1)->SetURL((wxString const &)*arg2);
42900 wxPyEndAllowThreads(__tstate);
42901 if (PyErr_Occurred()) SWIG_fail;
42902 }
42903 resultobj = SWIG_Py_Void();
42904 {
42905 if (temp2)
42906 delete arg2;
42907 }
42908 return resultobj;
42909 fail:
42910 {
42911 if (temp2)
42912 delete arg2;
42913 }
42914 return NULL;
42915 }
42916
42917
42918 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42919 PyObject *obj;
42920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42921 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42922 return SWIG_Py_Void();
42923 }
42924
42925 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42926 return SWIG_Python_InitShadowInstance(args);
42927 }
42928
42929 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42930 PyObject *resultobj = 0;
42931 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42932 wxWindow *arg2 = (wxWindow *) 0 ;
42933 int arg3 ;
42934 wxString const &arg4_defvalue = wxEmptyString ;
42935 wxString *arg4 = (wxString *) &arg4_defvalue ;
42936 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42937 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42938 wxSize const &arg6_defvalue = wxDefaultSize ;
42939 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42940 long arg7 = (long) 0 ;
42941 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42942 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42943 wxString const &arg9_defvalue = wxButtonNameStr ;
42944 wxString *arg9 = (wxString *) &arg9_defvalue ;
42945 bool result;
42946 void *argp1 = 0 ;
42947 int res1 = 0 ;
42948 void *argp2 = 0 ;
42949 int res2 = 0 ;
42950 int val3 ;
42951 int ecode3 = 0 ;
42952 bool temp4 = false ;
42953 wxPoint temp5 ;
42954 wxSize temp6 ;
42955 long val7 ;
42956 int ecode7 = 0 ;
42957 void *argp8 = 0 ;
42958 int res8 = 0 ;
42959 bool temp9 = false ;
42960 PyObject * obj0 = 0 ;
42961 PyObject * obj1 = 0 ;
42962 PyObject * obj2 = 0 ;
42963 PyObject * obj3 = 0 ;
42964 PyObject * obj4 = 0 ;
42965 PyObject * obj5 = 0 ;
42966 PyObject * obj6 = 0 ;
42967 PyObject * obj7 = 0 ;
42968 PyObject * obj8 = 0 ;
42969 char * kwnames[] = {
42970 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42971 };
42972
42973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42975 if (!SWIG_IsOK(res1)) {
42976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42977 }
42978 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42979 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42980 if (!SWIG_IsOK(res2)) {
42981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42982 }
42983 arg2 = reinterpret_cast< wxWindow * >(argp2);
42984 ecode3 = SWIG_AsVal_int(obj2, &val3);
42985 if (!SWIG_IsOK(ecode3)) {
42986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42987 }
42988 arg3 = static_cast< int >(val3);
42989 if (obj3) {
42990 {
42991 arg4 = wxString_in_helper(obj3);
42992 if (arg4 == NULL) SWIG_fail;
42993 temp4 = true;
42994 }
42995 }
42996 if (obj4) {
42997 {
42998 arg5 = &temp5;
42999 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43000 }
43001 }
43002 if (obj5) {
43003 {
43004 arg6 = &temp6;
43005 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43006 }
43007 }
43008 if (obj6) {
43009 ecode7 = SWIG_AsVal_long(obj6, &val7);
43010 if (!SWIG_IsOK(ecode7)) {
43011 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
43012 }
43013 arg7 = static_cast< long >(val7);
43014 }
43015 if (obj7) {
43016 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43017 if (!SWIG_IsOK(res8)) {
43018 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43019 }
43020 if (!argp8) {
43021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43022 }
43023 arg8 = reinterpret_cast< wxValidator * >(argp8);
43024 }
43025 if (obj8) {
43026 {
43027 arg9 = wxString_in_helper(obj8);
43028 if (arg9 == NULL) SWIG_fail;
43029 temp9 = true;
43030 }
43031 }
43032 {
43033 PyThreadState* __tstate = wxPyBeginAllowThreads();
43034 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43035 wxPyEndAllowThreads(__tstate);
43036 if (PyErr_Occurred()) SWIG_fail;
43037 }
43038 {
43039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43040 }
43041 {
43042 if (temp4)
43043 delete arg4;
43044 }
43045 {
43046 if (temp9)
43047 delete arg9;
43048 }
43049 return resultobj;
43050 fail:
43051 {
43052 if (temp4)
43053 delete arg4;
43054 }
43055 {
43056 if (temp9)
43057 delete arg9;
43058 }
43059 return NULL;
43060 }
43061
43062
43063 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43064 PyObject *resultobj = 0;
43065 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43066 int arg2 ;
43067 void *argp1 = 0 ;
43068 int res1 = 0 ;
43069 int val2 ;
43070 int ecode2 = 0 ;
43071 PyObject * obj0 = 0 ;
43072 PyObject * obj1 = 0 ;
43073 char * kwnames[] = {
43074 (char *) "self",(char *) "newmargin", NULL
43075 };
43076
43077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43079 if (!SWIG_IsOK(res1)) {
43080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43081 }
43082 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43083 ecode2 = SWIG_AsVal_int(obj1, &val2);
43084 if (!SWIG_IsOK(ecode2)) {
43085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43086 }
43087 arg2 = static_cast< int >(val2);
43088 {
43089 PyThreadState* __tstate = wxPyBeginAllowThreads();
43090 (arg1)->SetInternalMargin(arg2);
43091 wxPyEndAllowThreads(__tstate);
43092 if (PyErr_Occurred()) SWIG_fail;
43093 }
43094 resultobj = SWIG_Py_Void();
43095 return resultobj;
43096 fail:
43097 return NULL;
43098 }
43099
43100
43101 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43102 PyObject *resultobj = 0;
43103 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43104 int result;
43105 void *argp1 = 0 ;
43106 int res1 = 0 ;
43107 PyObject *swig_obj[1] ;
43108
43109 if (!args) SWIG_fail;
43110 swig_obj[0] = args;
43111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43112 if (!SWIG_IsOK(res1)) {
43113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43114 }
43115 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43116 {
43117 PyThreadState* __tstate = wxPyBeginAllowThreads();
43118 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43119 wxPyEndAllowThreads(__tstate);
43120 if (PyErr_Occurred()) SWIG_fail;
43121 }
43122 resultobj = SWIG_From_int(static_cast< int >(result));
43123 return resultobj;
43124 fail:
43125 return NULL;
43126 }
43127
43128
43129 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43130 PyObject *resultobj = 0;
43131 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43132 int arg2 ;
43133 void *argp1 = 0 ;
43134 int res1 = 0 ;
43135 int val2 ;
43136 int ecode2 = 0 ;
43137 PyObject * obj0 = 0 ;
43138 PyObject * obj1 = 0 ;
43139 char * kwnames[] = {
43140 (char *) "self",(char *) "prop", NULL
43141 };
43142
43143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43145 if (!SWIG_IsOK(res1)) {
43146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43147 }
43148 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43149 ecode2 = SWIG_AsVal_int(obj1, &val2);
43150 if (!SWIG_IsOK(ecode2)) {
43151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43152 }
43153 arg2 = static_cast< int >(val2);
43154 {
43155 PyThreadState* __tstate = wxPyBeginAllowThreads();
43156 (arg1)->SetTextCtrlProportion(arg2);
43157 wxPyEndAllowThreads(__tstate);
43158 if (PyErr_Occurred()) SWIG_fail;
43159 }
43160 resultobj = SWIG_Py_Void();
43161 return resultobj;
43162 fail:
43163 return NULL;
43164 }
43165
43166
43167 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43168 PyObject *resultobj = 0;
43169 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43170 int result;
43171 void *argp1 = 0 ;
43172 int res1 = 0 ;
43173 PyObject *swig_obj[1] ;
43174
43175 if (!args) SWIG_fail;
43176 swig_obj[0] = args;
43177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43178 if (!SWIG_IsOK(res1)) {
43179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43180 }
43181 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43182 {
43183 PyThreadState* __tstate = wxPyBeginAllowThreads();
43184 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43185 wxPyEndAllowThreads(__tstate);
43186 if (PyErr_Occurred()) SWIG_fail;
43187 }
43188 resultobj = SWIG_From_int(static_cast< int >(result));
43189 return resultobj;
43190 fail:
43191 return NULL;
43192 }
43193
43194
43195 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43196 PyObject *resultobj = 0;
43197 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43198 int arg2 ;
43199 void *argp1 = 0 ;
43200 int res1 = 0 ;
43201 int val2 ;
43202 int ecode2 = 0 ;
43203 PyObject * obj0 = 0 ;
43204 PyObject * obj1 = 0 ;
43205 char * kwnames[] = {
43206 (char *) "self",(char *) "prop", NULL
43207 };
43208
43209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43211 if (!SWIG_IsOK(res1)) {
43212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43213 }
43214 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43215 ecode2 = SWIG_AsVal_int(obj1, &val2);
43216 if (!SWIG_IsOK(ecode2)) {
43217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43218 }
43219 arg2 = static_cast< int >(val2);
43220 {
43221 PyThreadState* __tstate = wxPyBeginAllowThreads();
43222 (arg1)->SetPickerCtrlProportion(arg2);
43223 wxPyEndAllowThreads(__tstate);
43224 if (PyErr_Occurred()) SWIG_fail;
43225 }
43226 resultobj = SWIG_Py_Void();
43227 return resultobj;
43228 fail:
43229 return NULL;
43230 }
43231
43232
43233 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43234 PyObject *resultobj = 0;
43235 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43236 int result;
43237 void *argp1 = 0 ;
43238 int res1 = 0 ;
43239 PyObject *swig_obj[1] ;
43240
43241 if (!args) SWIG_fail;
43242 swig_obj[0] = args;
43243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43244 if (!SWIG_IsOK(res1)) {
43245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43246 }
43247 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43248 {
43249 PyThreadState* __tstate = wxPyBeginAllowThreads();
43250 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43251 wxPyEndAllowThreads(__tstate);
43252 if (PyErr_Occurred()) SWIG_fail;
43253 }
43254 resultobj = SWIG_From_int(static_cast< int >(result));
43255 return resultobj;
43256 fail:
43257 return NULL;
43258 }
43259
43260
43261 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43262 PyObject *resultobj = 0;
43263 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43264 bool result;
43265 void *argp1 = 0 ;
43266 int res1 = 0 ;
43267 PyObject *swig_obj[1] ;
43268
43269 if (!args) SWIG_fail;
43270 swig_obj[0] = args;
43271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43272 if (!SWIG_IsOK(res1)) {
43273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43274 }
43275 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43276 {
43277 PyThreadState* __tstate = wxPyBeginAllowThreads();
43278 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43279 wxPyEndAllowThreads(__tstate);
43280 if (PyErr_Occurred()) SWIG_fail;
43281 }
43282 {
43283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43284 }
43285 return resultobj;
43286 fail:
43287 return NULL;
43288 }
43289
43290
43291 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43292 PyObject *resultobj = 0;
43293 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43294 bool arg2 = (bool) true ;
43295 void *argp1 = 0 ;
43296 int res1 = 0 ;
43297 bool val2 ;
43298 int ecode2 = 0 ;
43299 PyObject * obj0 = 0 ;
43300 PyObject * obj1 = 0 ;
43301 char * kwnames[] = {
43302 (char *) "self",(char *) "grow", NULL
43303 };
43304
43305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43307 if (!SWIG_IsOK(res1)) {
43308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43309 }
43310 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43311 if (obj1) {
43312 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43313 if (!SWIG_IsOK(ecode2)) {
43314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43315 }
43316 arg2 = static_cast< bool >(val2);
43317 }
43318 {
43319 PyThreadState* __tstate = wxPyBeginAllowThreads();
43320 (arg1)->SetTextCtrlGrowable(arg2);
43321 wxPyEndAllowThreads(__tstate);
43322 if (PyErr_Occurred()) SWIG_fail;
43323 }
43324 resultobj = SWIG_Py_Void();
43325 return resultobj;
43326 fail:
43327 return NULL;
43328 }
43329
43330
43331 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43332 PyObject *resultobj = 0;
43333 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43334 bool result;
43335 void *argp1 = 0 ;
43336 int res1 = 0 ;
43337 PyObject *swig_obj[1] ;
43338
43339 if (!args) SWIG_fail;
43340 swig_obj[0] = args;
43341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43342 if (!SWIG_IsOK(res1)) {
43343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43344 }
43345 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43346 {
43347 PyThreadState* __tstate = wxPyBeginAllowThreads();
43348 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43349 wxPyEndAllowThreads(__tstate);
43350 if (PyErr_Occurred()) SWIG_fail;
43351 }
43352 {
43353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43354 }
43355 return resultobj;
43356 fail:
43357 return NULL;
43358 }
43359
43360
43361 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43362 PyObject *resultobj = 0;
43363 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43364 bool arg2 = (bool) true ;
43365 void *argp1 = 0 ;
43366 int res1 = 0 ;
43367 bool val2 ;
43368 int ecode2 = 0 ;
43369 PyObject * obj0 = 0 ;
43370 PyObject * obj1 = 0 ;
43371 char * kwnames[] = {
43372 (char *) "self",(char *) "grow", NULL
43373 };
43374
43375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43377 if (!SWIG_IsOK(res1)) {
43378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43379 }
43380 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43381 if (obj1) {
43382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43383 if (!SWIG_IsOK(ecode2)) {
43384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43385 }
43386 arg2 = static_cast< bool >(val2);
43387 }
43388 {
43389 PyThreadState* __tstate = wxPyBeginAllowThreads();
43390 (arg1)->SetPickerCtrlGrowable(arg2);
43391 wxPyEndAllowThreads(__tstate);
43392 if (PyErr_Occurred()) SWIG_fail;
43393 }
43394 resultobj = SWIG_Py_Void();
43395 return resultobj;
43396 fail:
43397 return NULL;
43398 }
43399
43400
43401 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43402 PyObject *resultobj = 0;
43403 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43404 bool result;
43405 void *argp1 = 0 ;
43406 int res1 = 0 ;
43407 PyObject *swig_obj[1] ;
43408
43409 if (!args) SWIG_fail;
43410 swig_obj[0] = args;
43411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43412 if (!SWIG_IsOK(res1)) {
43413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43414 }
43415 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43416 {
43417 PyThreadState* __tstate = wxPyBeginAllowThreads();
43418 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43419 wxPyEndAllowThreads(__tstate);
43420 if (PyErr_Occurred()) SWIG_fail;
43421 }
43422 {
43423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43424 }
43425 return resultobj;
43426 fail:
43427 return NULL;
43428 }
43429
43430
43431 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43432 PyObject *resultobj = 0;
43433 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43434 wxTextCtrl *result = 0 ;
43435 void *argp1 = 0 ;
43436 int res1 = 0 ;
43437 PyObject *swig_obj[1] ;
43438
43439 if (!args) SWIG_fail;
43440 swig_obj[0] = args;
43441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43442 if (!SWIG_IsOK(res1)) {
43443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43444 }
43445 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43446 {
43447 PyThreadState* __tstate = wxPyBeginAllowThreads();
43448 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43449 wxPyEndAllowThreads(__tstate);
43450 if (PyErr_Occurred()) SWIG_fail;
43451 }
43452 {
43453 resultobj = wxPyMake_wxObject(result, 0);
43454 }
43455 return resultobj;
43456 fail:
43457 return NULL;
43458 }
43459
43460
43461 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43462 PyObject *resultobj = 0;
43463 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43464 wxControl *result = 0 ;
43465 void *argp1 = 0 ;
43466 int res1 = 0 ;
43467 PyObject *swig_obj[1] ;
43468
43469 if (!args) SWIG_fail;
43470 swig_obj[0] = args;
43471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43472 if (!SWIG_IsOK(res1)) {
43473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43474 }
43475 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43476 {
43477 PyThreadState* __tstate = wxPyBeginAllowThreads();
43478 result = (wxControl *)(arg1)->GetPickerCtrl();
43479 wxPyEndAllowThreads(__tstate);
43480 if (PyErr_Occurred()) SWIG_fail;
43481 }
43482 {
43483 resultobj = wxPyMake_wxObject(result, 0);
43484 }
43485 return resultobj;
43486 fail:
43487 return NULL;
43488 }
43489
43490
43491 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43492 PyObject *obj;
43493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43494 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43495 return SWIG_Py_Void();
43496 }
43497
43498 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43499 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43500 return 1;
43501 }
43502
43503
43504 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43505 PyObject *pyobj = 0;
43506
43507 {
43508 #if wxUSE_UNICODE
43509 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43510 #else
43511 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43512 #endif
43513 }
43514 return pyobj;
43515 }
43516
43517
43518 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43519 PyObject *resultobj = 0;
43520 wxWindow *arg1 = (wxWindow *) 0 ;
43521 int arg2 = (int) -1 ;
43522 wxColour const &arg3_defvalue = *wxBLACK ;
43523 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43524 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43525 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43526 wxSize const &arg5_defvalue = wxDefaultSize ;
43527 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43528 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43529 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43530 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43531 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43532 wxString *arg8 = (wxString *) &arg8_defvalue ;
43533 wxColourPickerCtrl *result = 0 ;
43534 void *argp1 = 0 ;
43535 int res1 = 0 ;
43536 int val2 ;
43537 int ecode2 = 0 ;
43538 wxColour temp3 ;
43539 wxPoint temp4 ;
43540 wxSize temp5 ;
43541 long val6 ;
43542 int ecode6 = 0 ;
43543 void *argp7 = 0 ;
43544 int res7 = 0 ;
43545 bool temp8 = false ;
43546 PyObject * obj0 = 0 ;
43547 PyObject * obj1 = 0 ;
43548 PyObject * obj2 = 0 ;
43549 PyObject * obj3 = 0 ;
43550 PyObject * obj4 = 0 ;
43551 PyObject * obj5 = 0 ;
43552 PyObject * obj6 = 0 ;
43553 PyObject * obj7 = 0 ;
43554 char * kwnames[] = {
43555 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43556 };
43557
43558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43560 if (!SWIG_IsOK(res1)) {
43561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43562 }
43563 arg1 = reinterpret_cast< wxWindow * >(argp1);
43564 if (obj1) {
43565 ecode2 = SWIG_AsVal_int(obj1, &val2);
43566 if (!SWIG_IsOK(ecode2)) {
43567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43568 }
43569 arg2 = static_cast< int >(val2);
43570 }
43571 if (obj2) {
43572 {
43573 arg3 = &temp3;
43574 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43575 }
43576 }
43577 if (obj3) {
43578 {
43579 arg4 = &temp4;
43580 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43581 }
43582 }
43583 if (obj4) {
43584 {
43585 arg5 = &temp5;
43586 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43587 }
43588 }
43589 if (obj5) {
43590 ecode6 = SWIG_AsVal_long(obj5, &val6);
43591 if (!SWIG_IsOK(ecode6)) {
43592 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43593 }
43594 arg6 = static_cast< long >(val6);
43595 }
43596 if (obj6) {
43597 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43598 if (!SWIG_IsOK(res7)) {
43599 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43600 }
43601 if (!argp7) {
43602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43603 }
43604 arg7 = reinterpret_cast< wxValidator * >(argp7);
43605 }
43606 if (obj7) {
43607 {
43608 arg8 = wxString_in_helper(obj7);
43609 if (arg8 == NULL) SWIG_fail;
43610 temp8 = true;
43611 }
43612 }
43613 {
43614 if (!wxPyCheckForApp()) SWIG_fail;
43615 PyThreadState* __tstate = wxPyBeginAllowThreads();
43616 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43617 wxPyEndAllowThreads(__tstate);
43618 if (PyErr_Occurred()) SWIG_fail;
43619 }
43620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43621 {
43622 if (temp8)
43623 delete arg8;
43624 }
43625 return resultobj;
43626 fail:
43627 {
43628 if (temp8)
43629 delete arg8;
43630 }
43631 return NULL;
43632 }
43633
43634
43635 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43636 PyObject *resultobj = 0;
43637 wxColourPickerCtrl *result = 0 ;
43638
43639 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43640 {
43641 if (!wxPyCheckForApp()) SWIG_fail;
43642 PyThreadState* __tstate = wxPyBeginAllowThreads();
43643 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43644 wxPyEndAllowThreads(__tstate);
43645 if (PyErr_Occurred()) SWIG_fail;
43646 }
43647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43648 return resultobj;
43649 fail:
43650 return NULL;
43651 }
43652
43653
43654 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43655 PyObject *resultobj = 0;
43656 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43657 wxWindow *arg2 = (wxWindow *) 0 ;
43658 int arg3 ;
43659 wxColour const &arg4_defvalue = *wxBLACK ;
43660 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43661 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43662 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43663 wxSize const &arg6_defvalue = wxDefaultSize ;
43664 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43665 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43666 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43667 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43668 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43669 wxString *arg9 = (wxString *) &arg9_defvalue ;
43670 bool result;
43671 void *argp1 = 0 ;
43672 int res1 = 0 ;
43673 void *argp2 = 0 ;
43674 int res2 = 0 ;
43675 int val3 ;
43676 int ecode3 = 0 ;
43677 wxColour temp4 ;
43678 wxPoint temp5 ;
43679 wxSize temp6 ;
43680 long val7 ;
43681 int ecode7 = 0 ;
43682 void *argp8 = 0 ;
43683 int res8 = 0 ;
43684 bool temp9 = false ;
43685 PyObject * obj0 = 0 ;
43686 PyObject * obj1 = 0 ;
43687 PyObject * obj2 = 0 ;
43688 PyObject * obj3 = 0 ;
43689 PyObject * obj4 = 0 ;
43690 PyObject * obj5 = 0 ;
43691 PyObject * obj6 = 0 ;
43692 PyObject * obj7 = 0 ;
43693 PyObject * obj8 = 0 ;
43694 char * kwnames[] = {
43695 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43696 };
43697
43698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43700 if (!SWIG_IsOK(res1)) {
43701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43702 }
43703 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43705 if (!SWIG_IsOK(res2)) {
43706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43707 }
43708 arg2 = reinterpret_cast< wxWindow * >(argp2);
43709 ecode3 = SWIG_AsVal_int(obj2, &val3);
43710 if (!SWIG_IsOK(ecode3)) {
43711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43712 }
43713 arg3 = static_cast< int >(val3);
43714 if (obj3) {
43715 {
43716 arg4 = &temp4;
43717 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43718 }
43719 }
43720 if (obj4) {
43721 {
43722 arg5 = &temp5;
43723 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43724 }
43725 }
43726 if (obj5) {
43727 {
43728 arg6 = &temp6;
43729 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43730 }
43731 }
43732 if (obj6) {
43733 ecode7 = SWIG_AsVal_long(obj6, &val7);
43734 if (!SWIG_IsOK(ecode7)) {
43735 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43736 }
43737 arg7 = static_cast< long >(val7);
43738 }
43739 if (obj7) {
43740 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43741 if (!SWIG_IsOK(res8)) {
43742 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43743 }
43744 if (!argp8) {
43745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43746 }
43747 arg8 = reinterpret_cast< wxValidator * >(argp8);
43748 }
43749 if (obj8) {
43750 {
43751 arg9 = wxString_in_helper(obj8);
43752 if (arg9 == NULL) SWIG_fail;
43753 temp9 = true;
43754 }
43755 }
43756 {
43757 PyThreadState* __tstate = wxPyBeginAllowThreads();
43758 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43759 wxPyEndAllowThreads(__tstate);
43760 if (PyErr_Occurred()) SWIG_fail;
43761 }
43762 {
43763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43764 }
43765 {
43766 if (temp9)
43767 delete arg9;
43768 }
43769 return resultobj;
43770 fail:
43771 {
43772 if (temp9)
43773 delete arg9;
43774 }
43775 return NULL;
43776 }
43777
43778
43779 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43780 PyObject *resultobj = 0;
43781 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43782 wxColour result;
43783 void *argp1 = 0 ;
43784 int res1 = 0 ;
43785 PyObject *swig_obj[1] ;
43786
43787 if (!args) SWIG_fail;
43788 swig_obj[0] = args;
43789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43790 if (!SWIG_IsOK(res1)) {
43791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43792 }
43793 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43794 {
43795 PyThreadState* __tstate = wxPyBeginAllowThreads();
43796 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43797 wxPyEndAllowThreads(__tstate);
43798 if (PyErr_Occurred()) SWIG_fail;
43799 }
43800 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43801 return resultobj;
43802 fail:
43803 return NULL;
43804 }
43805
43806
43807 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43808 PyObject *resultobj = 0;
43809 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43810 wxColour *arg2 = 0 ;
43811 void *argp1 = 0 ;
43812 int res1 = 0 ;
43813 wxColour temp2 ;
43814 PyObject * obj0 = 0 ;
43815 PyObject * obj1 = 0 ;
43816 char * kwnames[] = {
43817 (char *) "self",(char *) "col", NULL
43818 };
43819
43820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43822 if (!SWIG_IsOK(res1)) {
43823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43824 }
43825 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43826 {
43827 arg2 = &temp2;
43828 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43829 }
43830 {
43831 PyThreadState* __tstate = wxPyBeginAllowThreads();
43832 (arg1)->SetColour((wxColour const &)*arg2);
43833 wxPyEndAllowThreads(__tstate);
43834 if (PyErr_Occurred()) SWIG_fail;
43835 }
43836 resultobj = SWIG_Py_Void();
43837 return resultobj;
43838 fail:
43839 return NULL;
43840 }
43841
43842
43843 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43844 PyObject *obj;
43845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43846 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43847 return SWIG_Py_Void();
43848 }
43849
43850 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43851 return SWIG_Python_InitShadowInstance(args);
43852 }
43853
43854 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43855 PyObject *resultobj = 0;
43856 wxObject *arg1 = (wxObject *) 0 ;
43857 int arg2 ;
43858 wxColour *arg3 = 0 ;
43859 wxColourPickerEvent *result = 0 ;
43860 void *argp1 = 0 ;
43861 int res1 = 0 ;
43862 int val2 ;
43863 int ecode2 = 0 ;
43864 wxColour temp3 ;
43865 PyObject * obj0 = 0 ;
43866 PyObject * obj1 = 0 ;
43867 PyObject * obj2 = 0 ;
43868 char * kwnames[] = {
43869 (char *) "generator",(char *) "id",(char *) "col", NULL
43870 };
43871
43872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43874 if (!SWIG_IsOK(res1)) {
43875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43876 }
43877 arg1 = reinterpret_cast< wxObject * >(argp1);
43878 ecode2 = SWIG_AsVal_int(obj1, &val2);
43879 if (!SWIG_IsOK(ecode2)) {
43880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43881 }
43882 arg2 = static_cast< int >(val2);
43883 {
43884 arg3 = &temp3;
43885 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43886 }
43887 {
43888 PyThreadState* __tstate = wxPyBeginAllowThreads();
43889 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43890 wxPyEndAllowThreads(__tstate);
43891 if (PyErr_Occurred()) SWIG_fail;
43892 }
43893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43894 return resultobj;
43895 fail:
43896 return NULL;
43897 }
43898
43899
43900 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43901 PyObject *resultobj = 0;
43902 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43903 wxColour result;
43904 void *argp1 = 0 ;
43905 int res1 = 0 ;
43906 PyObject *swig_obj[1] ;
43907
43908 if (!args) SWIG_fail;
43909 swig_obj[0] = args;
43910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43911 if (!SWIG_IsOK(res1)) {
43912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43913 }
43914 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43915 {
43916 PyThreadState* __tstate = wxPyBeginAllowThreads();
43917 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43918 wxPyEndAllowThreads(__tstate);
43919 if (PyErr_Occurred()) SWIG_fail;
43920 }
43921 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43922 return resultobj;
43923 fail:
43924 return NULL;
43925 }
43926
43927
43928 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43929 PyObject *resultobj = 0;
43930 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43931 wxColour *arg2 = 0 ;
43932 void *argp1 = 0 ;
43933 int res1 = 0 ;
43934 wxColour temp2 ;
43935 PyObject * obj0 = 0 ;
43936 PyObject * obj1 = 0 ;
43937 char * kwnames[] = {
43938 (char *) "self",(char *) "c", NULL
43939 };
43940
43941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43943 if (!SWIG_IsOK(res1)) {
43944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43945 }
43946 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43947 {
43948 arg2 = &temp2;
43949 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43950 }
43951 {
43952 PyThreadState* __tstate = wxPyBeginAllowThreads();
43953 (arg1)->SetColour((wxColour const &)*arg2);
43954 wxPyEndAllowThreads(__tstate);
43955 if (PyErr_Occurred()) SWIG_fail;
43956 }
43957 resultobj = SWIG_Py_Void();
43958 return resultobj;
43959 fail:
43960 return NULL;
43961 }
43962
43963
43964 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43965 PyObject *obj;
43966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43967 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43968 return SWIG_Py_Void();
43969 }
43970
43971 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43972 return SWIG_Python_InitShadowInstance(args);
43973 }
43974
43975 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43976 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43977 return 1;
43978 }
43979
43980
43981 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43982 PyObject *pyobj = 0;
43983
43984 {
43985 #if wxUSE_UNICODE
43986 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43987 #else
43988 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43989 #endif
43990 }
43991 return pyobj;
43992 }
43993
43994
43995 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43996 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43997 return 1;
43998 }
43999
44000
44001 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
44002 PyObject *pyobj = 0;
44003
44004 {
44005 #if wxUSE_UNICODE
44006 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44007 #else
44008 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44009 #endif
44010 }
44011 return pyobj;
44012 }
44013
44014
44015 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
44016 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
44017 return 1;
44018 }
44019
44020
44021 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
44022 PyObject *pyobj = 0;
44023
44024 {
44025 #if wxUSE_UNICODE
44026 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44027 #else
44028 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44029 #endif
44030 }
44031 return pyobj;
44032 }
44033
44034
44035 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
44036 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
44037 return 1;
44038 }
44039
44040
44041 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
44042 PyObject *pyobj = 0;
44043
44044 {
44045 #if wxUSE_UNICODE
44046 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44047 #else
44048 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44049 #endif
44050 }
44051 return pyobj;
44052 }
44053
44054
44055 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
44056 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
44057 return 1;
44058 }
44059
44060
44061 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
44062 PyObject *pyobj = 0;
44063
44064 {
44065 #if wxUSE_UNICODE
44066 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44067 #else
44068 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44069 #endif
44070 }
44071 return pyobj;
44072 }
44073
44074
44075 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44076 PyObject *resultobj = 0;
44077 wxWindow *arg1 = (wxWindow *) 0 ;
44078 int arg2 = (int) -1 ;
44079 wxString const &arg3_defvalue = wxPyEmptyString ;
44080 wxString *arg3 = (wxString *) &arg3_defvalue ;
44081 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44082 wxString *arg4 = (wxString *) &arg4_defvalue ;
44083 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44084 wxString *arg5 = (wxString *) &arg5_defvalue ;
44085 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44086 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44087 wxSize const &arg7_defvalue = wxDefaultSize ;
44088 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44089 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44090 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44091 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44092 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44093 wxString *arg10 = (wxString *) &arg10_defvalue ;
44094 wxFilePickerCtrl *result = 0 ;
44095 void *argp1 = 0 ;
44096 int res1 = 0 ;
44097 int val2 ;
44098 int ecode2 = 0 ;
44099 bool temp3 = false ;
44100 bool temp4 = false ;
44101 bool temp5 = false ;
44102 wxPoint temp6 ;
44103 wxSize temp7 ;
44104 long val8 ;
44105 int ecode8 = 0 ;
44106 void *argp9 = 0 ;
44107 int res9 = 0 ;
44108 bool temp10 = false ;
44109 PyObject * obj0 = 0 ;
44110 PyObject * obj1 = 0 ;
44111 PyObject * obj2 = 0 ;
44112 PyObject * obj3 = 0 ;
44113 PyObject * obj4 = 0 ;
44114 PyObject * obj5 = 0 ;
44115 PyObject * obj6 = 0 ;
44116 PyObject * obj7 = 0 ;
44117 PyObject * obj8 = 0 ;
44118 PyObject * obj9 = 0 ;
44119 char * kwnames[] = {
44120 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44121 };
44122
44123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44125 if (!SWIG_IsOK(res1)) {
44126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44127 }
44128 arg1 = reinterpret_cast< wxWindow * >(argp1);
44129 if (obj1) {
44130 ecode2 = SWIG_AsVal_int(obj1, &val2);
44131 if (!SWIG_IsOK(ecode2)) {
44132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44133 }
44134 arg2 = static_cast< int >(val2);
44135 }
44136 if (obj2) {
44137 {
44138 arg3 = wxString_in_helper(obj2);
44139 if (arg3 == NULL) SWIG_fail;
44140 temp3 = true;
44141 }
44142 }
44143 if (obj3) {
44144 {
44145 arg4 = wxString_in_helper(obj3);
44146 if (arg4 == NULL) SWIG_fail;
44147 temp4 = true;
44148 }
44149 }
44150 if (obj4) {
44151 {
44152 arg5 = wxString_in_helper(obj4);
44153 if (arg5 == NULL) SWIG_fail;
44154 temp5 = true;
44155 }
44156 }
44157 if (obj5) {
44158 {
44159 arg6 = &temp6;
44160 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44161 }
44162 }
44163 if (obj6) {
44164 {
44165 arg7 = &temp7;
44166 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44167 }
44168 }
44169 if (obj7) {
44170 ecode8 = SWIG_AsVal_long(obj7, &val8);
44171 if (!SWIG_IsOK(ecode8)) {
44172 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44173 }
44174 arg8 = static_cast< long >(val8);
44175 }
44176 if (obj8) {
44177 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44178 if (!SWIG_IsOK(res9)) {
44179 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44180 }
44181 if (!argp9) {
44182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44183 }
44184 arg9 = reinterpret_cast< wxValidator * >(argp9);
44185 }
44186 if (obj9) {
44187 {
44188 arg10 = wxString_in_helper(obj9);
44189 if (arg10 == NULL) SWIG_fail;
44190 temp10 = true;
44191 }
44192 }
44193 {
44194 if (!wxPyCheckForApp()) SWIG_fail;
44195 PyThreadState* __tstate = wxPyBeginAllowThreads();
44196 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);
44197 wxPyEndAllowThreads(__tstate);
44198 if (PyErr_Occurred()) SWIG_fail;
44199 }
44200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44201 {
44202 if (temp3)
44203 delete arg3;
44204 }
44205 {
44206 if (temp4)
44207 delete arg4;
44208 }
44209 {
44210 if (temp5)
44211 delete arg5;
44212 }
44213 {
44214 if (temp10)
44215 delete arg10;
44216 }
44217 return resultobj;
44218 fail:
44219 {
44220 if (temp3)
44221 delete arg3;
44222 }
44223 {
44224 if (temp4)
44225 delete arg4;
44226 }
44227 {
44228 if (temp5)
44229 delete arg5;
44230 }
44231 {
44232 if (temp10)
44233 delete arg10;
44234 }
44235 return NULL;
44236 }
44237
44238
44239 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44240 PyObject *resultobj = 0;
44241 wxFilePickerCtrl *result = 0 ;
44242
44243 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44244 {
44245 if (!wxPyCheckForApp()) SWIG_fail;
44246 PyThreadState* __tstate = wxPyBeginAllowThreads();
44247 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44248 wxPyEndAllowThreads(__tstate);
44249 if (PyErr_Occurred()) SWIG_fail;
44250 }
44251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44252 return resultobj;
44253 fail:
44254 return NULL;
44255 }
44256
44257
44258 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44259 PyObject *resultobj = 0;
44260 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44261 wxWindow *arg2 = (wxWindow *) 0 ;
44262 int arg3 = (int) -1 ;
44263 wxString const &arg4_defvalue = wxPyEmptyString ;
44264 wxString *arg4 = (wxString *) &arg4_defvalue ;
44265 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44266 wxString *arg5 = (wxString *) &arg5_defvalue ;
44267 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44268 wxString *arg6 = (wxString *) &arg6_defvalue ;
44269 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44270 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44271 wxSize const &arg8_defvalue = wxDefaultSize ;
44272 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44273 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44274 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44275 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44276 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44277 wxString *arg11 = (wxString *) &arg11_defvalue ;
44278 bool result;
44279 void *argp1 = 0 ;
44280 int res1 = 0 ;
44281 void *argp2 = 0 ;
44282 int res2 = 0 ;
44283 int val3 ;
44284 int ecode3 = 0 ;
44285 bool temp4 = false ;
44286 bool temp5 = false ;
44287 bool temp6 = false ;
44288 wxPoint temp7 ;
44289 wxSize temp8 ;
44290 long val9 ;
44291 int ecode9 = 0 ;
44292 void *argp10 = 0 ;
44293 int res10 = 0 ;
44294 bool temp11 = false ;
44295 PyObject * obj0 = 0 ;
44296 PyObject * obj1 = 0 ;
44297 PyObject * obj2 = 0 ;
44298 PyObject * obj3 = 0 ;
44299 PyObject * obj4 = 0 ;
44300 PyObject * obj5 = 0 ;
44301 PyObject * obj6 = 0 ;
44302 PyObject * obj7 = 0 ;
44303 PyObject * obj8 = 0 ;
44304 PyObject * obj9 = 0 ;
44305 PyObject * obj10 = 0 ;
44306 char * kwnames[] = {
44307 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44308 };
44309
44310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44312 if (!SWIG_IsOK(res1)) {
44313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44314 }
44315 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44316 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44317 if (!SWIG_IsOK(res2)) {
44318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44319 }
44320 arg2 = reinterpret_cast< wxWindow * >(argp2);
44321 if (obj2) {
44322 ecode3 = SWIG_AsVal_int(obj2, &val3);
44323 if (!SWIG_IsOK(ecode3)) {
44324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44325 }
44326 arg3 = static_cast< int >(val3);
44327 }
44328 if (obj3) {
44329 {
44330 arg4 = wxString_in_helper(obj3);
44331 if (arg4 == NULL) SWIG_fail;
44332 temp4 = true;
44333 }
44334 }
44335 if (obj4) {
44336 {
44337 arg5 = wxString_in_helper(obj4);
44338 if (arg5 == NULL) SWIG_fail;
44339 temp5 = true;
44340 }
44341 }
44342 if (obj5) {
44343 {
44344 arg6 = wxString_in_helper(obj5);
44345 if (arg6 == NULL) SWIG_fail;
44346 temp6 = true;
44347 }
44348 }
44349 if (obj6) {
44350 {
44351 arg7 = &temp7;
44352 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44353 }
44354 }
44355 if (obj7) {
44356 {
44357 arg8 = &temp8;
44358 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44359 }
44360 }
44361 if (obj8) {
44362 ecode9 = SWIG_AsVal_long(obj8, &val9);
44363 if (!SWIG_IsOK(ecode9)) {
44364 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44365 }
44366 arg9 = static_cast< long >(val9);
44367 }
44368 if (obj9) {
44369 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44370 if (!SWIG_IsOK(res10)) {
44371 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44372 }
44373 if (!argp10) {
44374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44375 }
44376 arg10 = reinterpret_cast< wxValidator * >(argp10);
44377 }
44378 if (obj10) {
44379 {
44380 arg11 = wxString_in_helper(obj10);
44381 if (arg11 == NULL) SWIG_fail;
44382 temp11 = true;
44383 }
44384 }
44385 {
44386 PyThreadState* __tstate = wxPyBeginAllowThreads();
44387 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);
44388 wxPyEndAllowThreads(__tstate);
44389 if (PyErr_Occurred()) SWIG_fail;
44390 }
44391 {
44392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44393 }
44394 {
44395 if (temp4)
44396 delete arg4;
44397 }
44398 {
44399 if (temp5)
44400 delete arg5;
44401 }
44402 {
44403 if (temp6)
44404 delete arg6;
44405 }
44406 {
44407 if (temp11)
44408 delete arg11;
44409 }
44410 return resultobj;
44411 fail:
44412 {
44413 if (temp4)
44414 delete arg4;
44415 }
44416 {
44417 if (temp5)
44418 delete arg5;
44419 }
44420 {
44421 if (temp6)
44422 delete arg6;
44423 }
44424 {
44425 if (temp11)
44426 delete arg11;
44427 }
44428 return NULL;
44429 }
44430
44431
44432 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44433 PyObject *resultobj = 0;
44434 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44435 wxString result;
44436 void *argp1 = 0 ;
44437 int res1 = 0 ;
44438 PyObject *swig_obj[1] ;
44439
44440 if (!args) SWIG_fail;
44441 swig_obj[0] = args;
44442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44443 if (!SWIG_IsOK(res1)) {
44444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44445 }
44446 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44447 {
44448 PyThreadState* __tstate = wxPyBeginAllowThreads();
44449 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44450 wxPyEndAllowThreads(__tstate);
44451 if (PyErr_Occurred()) SWIG_fail;
44452 }
44453 {
44454 #if wxUSE_UNICODE
44455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44456 #else
44457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44458 #endif
44459 }
44460 return resultobj;
44461 fail:
44462 return NULL;
44463 }
44464
44465
44466 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44467 PyObject *resultobj = 0;
44468 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44469 wxString *arg2 = 0 ;
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 *) "str", NULL
44477 };
44478
44479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",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_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
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 (arg1)->SetPath((wxString const &)*arg2);
44493 wxPyEndAllowThreads(__tstate);
44494 if (PyErr_Occurred()) SWIG_fail;
44495 }
44496 resultobj = SWIG_Py_Void();
44497 {
44498 if (temp2)
44499 delete arg2;
44500 }
44501 return resultobj;
44502 fail:
44503 {
44504 if (temp2)
44505 delete arg2;
44506 }
44507 return NULL;
44508 }
44509
44510
44511 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44512 PyObject *resultobj = 0;
44513 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44514 wxString *arg2 = 0 ;
44515 bool result;
44516 void *argp1 = 0 ;
44517 int res1 = 0 ;
44518 bool temp2 = false ;
44519 PyObject * obj0 = 0 ;
44520 PyObject * obj1 = 0 ;
44521 char * kwnames[] = {
44522 (char *) "self",(char *) "path", NULL
44523 };
44524
44525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44527 if (!SWIG_IsOK(res1)) {
44528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44529 }
44530 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44531 {
44532 arg2 = wxString_in_helper(obj1);
44533 if (arg2 == NULL) SWIG_fail;
44534 temp2 = true;
44535 }
44536 {
44537 PyThreadState* __tstate = wxPyBeginAllowThreads();
44538 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44539 wxPyEndAllowThreads(__tstate);
44540 if (PyErr_Occurred()) SWIG_fail;
44541 }
44542 {
44543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44544 }
44545 {
44546 if (temp2)
44547 delete arg2;
44548 }
44549 return resultobj;
44550 fail:
44551 {
44552 if (temp2)
44553 delete arg2;
44554 }
44555 return NULL;
44556 }
44557
44558
44559 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44560 PyObject *resultobj = 0;
44561 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44562 wxString result;
44563 void *argp1 = 0 ;
44564 int res1 = 0 ;
44565 PyObject *swig_obj[1] ;
44566
44567 if (!args) SWIG_fail;
44568 swig_obj[0] = args;
44569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44570 if (!SWIG_IsOK(res1)) {
44571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44572 }
44573 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44574 {
44575 PyThreadState* __tstate = wxPyBeginAllowThreads();
44576 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44577 wxPyEndAllowThreads(__tstate);
44578 if (PyErr_Occurred()) SWIG_fail;
44579 }
44580 {
44581 #if wxUSE_UNICODE
44582 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44583 #else
44584 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44585 #endif
44586 }
44587 return resultobj;
44588 fail:
44589 return NULL;
44590 }
44591
44592
44593 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44594 PyObject *obj;
44595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44596 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44597 return SWIG_Py_Void();
44598 }
44599
44600 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44601 return SWIG_Python_InitShadowInstance(args);
44602 }
44603
44604 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44605 PyObject *resultobj = 0;
44606 wxWindow *arg1 = (wxWindow *) 0 ;
44607 int arg2 = (int) -1 ;
44608 wxString const &arg3_defvalue = wxPyEmptyString ;
44609 wxString *arg3 = (wxString *) &arg3_defvalue ;
44610 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44611 wxString *arg4 = (wxString *) &arg4_defvalue ;
44612 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44613 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44614 wxSize const &arg6_defvalue = wxDefaultSize ;
44615 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44616 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44617 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44618 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44619 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44620 wxString *arg9 = (wxString *) &arg9_defvalue ;
44621 wxDirPickerCtrl *result = 0 ;
44622 void *argp1 = 0 ;
44623 int res1 = 0 ;
44624 int val2 ;
44625 int ecode2 = 0 ;
44626 bool temp3 = false ;
44627 bool temp4 = false ;
44628 wxPoint temp5 ;
44629 wxSize temp6 ;
44630 long val7 ;
44631 int ecode7 = 0 ;
44632 void *argp8 = 0 ;
44633 int res8 = 0 ;
44634 bool temp9 = false ;
44635 PyObject * obj0 = 0 ;
44636 PyObject * obj1 = 0 ;
44637 PyObject * obj2 = 0 ;
44638 PyObject * obj3 = 0 ;
44639 PyObject * obj4 = 0 ;
44640 PyObject * obj5 = 0 ;
44641 PyObject * obj6 = 0 ;
44642 PyObject * obj7 = 0 ;
44643 PyObject * obj8 = 0 ;
44644 char * kwnames[] = {
44645 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44646 };
44647
44648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44650 if (!SWIG_IsOK(res1)) {
44651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44652 }
44653 arg1 = reinterpret_cast< wxWindow * >(argp1);
44654 if (obj1) {
44655 ecode2 = SWIG_AsVal_int(obj1, &val2);
44656 if (!SWIG_IsOK(ecode2)) {
44657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44658 }
44659 arg2 = static_cast< int >(val2);
44660 }
44661 if (obj2) {
44662 {
44663 arg3 = wxString_in_helper(obj2);
44664 if (arg3 == NULL) SWIG_fail;
44665 temp3 = true;
44666 }
44667 }
44668 if (obj3) {
44669 {
44670 arg4 = wxString_in_helper(obj3);
44671 if (arg4 == NULL) SWIG_fail;
44672 temp4 = true;
44673 }
44674 }
44675 if (obj4) {
44676 {
44677 arg5 = &temp5;
44678 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44679 }
44680 }
44681 if (obj5) {
44682 {
44683 arg6 = &temp6;
44684 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44685 }
44686 }
44687 if (obj6) {
44688 ecode7 = SWIG_AsVal_long(obj6, &val7);
44689 if (!SWIG_IsOK(ecode7)) {
44690 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44691 }
44692 arg7 = static_cast< long >(val7);
44693 }
44694 if (obj7) {
44695 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44696 if (!SWIG_IsOK(res8)) {
44697 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44698 }
44699 if (!argp8) {
44700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44701 }
44702 arg8 = reinterpret_cast< wxValidator * >(argp8);
44703 }
44704 if (obj8) {
44705 {
44706 arg9 = wxString_in_helper(obj8);
44707 if (arg9 == NULL) SWIG_fail;
44708 temp9 = true;
44709 }
44710 }
44711 {
44712 if (!wxPyCheckForApp()) SWIG_fail;
44713 PyThreadState* __tstate = wxPyBeginAllowThreads();
44714 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);
44715 wxPyEndAllowThreads(__tstate);
44716 if (PyErr_Occurred()) SWIG_fail;
44717 }
44718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44719 {
44720 if (temp3)
44721 delete arg3;
44722 }
44723 {
44724 if (temp4)
44725 delete arg4;
44726 }
44727 {
44728 if (temp9)
44729 delete arg9;
44730 }
44731 return resultobj;
44732 fail:
44733 {
44734 if (temp3)
44735 delete arg3;
44736 }
44737 {
44738 if (temp4)
44739 delete arg4;
44740 }
44741 {
44742 if (temp9)
44743 delete arg9;
44744 }
44745 return NULL;
44746 }
44747
44748
44749 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44750 PyObject *resultobj = 0;
44751 wxDirPickerCtrl *result = 0 ;
44752
44753 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44754 {
44755 if (!wxPyCheckForApp()) SWIG_fail;
44756 PyThreadState* __tstate = wxPyBeginAllowThreads();
44757 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44758 wxPyEndAllowThreads(__tstate);
44759 if (PyErr_Occurred()) SWIG_fail;
44760 }
44761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44762 return resultobj;
44763 fail:
44764 return NULL;
44765 }
44766
44767
44768 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44769 PyObject *resultobj = 0;
44770 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44771 wxWindow *arg2 = (wxWindow *) 0 ;
44772 int arg3 = (int) -1 ;
44773 wxString const &arg4_defvalue = wxPyEmptyString ;
44774 wxString *arg4 = (wxString *) &arg4_defvalue ;
44775 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44776 wxString *arg5 = (wxString *) &arg5_defvalue ;
44777 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44778 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44779 wxSize const &arg7_defvalue = wxDefaultSize ;
44780 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44781 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44782 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44783 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44784 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44785 wxString *arg10 = (wxString *) &arg10_defvalue ;
44786 bool result;
44787 void *argp1 = 0 ;
44788 int res1 = 0 ;
44789 void *argp2 = 0 ;
44790 int res2 = 0 ;
44791 int val3 ;
44792 int ecode3 = 0 ;
44793 bool temp4 = false ;
44794 bool temp5 = false ;
44795 wxPoint temp6 ;
44796 wxSize temp7 ;
44797 long val8 ;
44798 int ecode8 = 0 ;
44799 void *argp9 = 0 ;
44800 int res9 = 0 ;
44801 bool temp10 = false ;
44802 PyObject * obj0 = 0 ;
44803 PyObject * obj1 = 0 ;
44804 PyObject * obj2 = 0 ;
44805 PyObject * obj3 = 0 ;
44806 PyObject * obj4 = 0 ;
44807 PyObject * obj5 = 0 ;
44808 PyObject * obj6 = 0 ;
44809 PyObject * obj7 = 0 ;
44810 PyObject * obj8 = 0 ;
44811 PyObject * obj9 = 0 ;
44812 char * kwnames[] = {
44813 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44814 };
44815
44816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44818 if (!SWIG_IsOK(res1)) {
44819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44820 }
44821 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44823 if (!SWIG_IsOK(res2)) {
44824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44825 }
44826 arg2 = reinterpret_cast< wxWindow * >(argp2);
44827 if (obj2) {
44828 ecode3 = SWIG_AsVal_int(obj2, &val3);
44829 if (!SWIG_IsOK(ecode3)) {
44830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44831 }
44832 arg3 = static_cast< int >(val3);
44833 }
44834 if (obj3) {
44835 {
44836 arg4 = wxString_in_helper(obj3);
44837 if (arg4 == NULL) SWIG_fail;
44838 temp4 = true;
44839 }
44840 }
44841 if (obj4) {
44842 {
44843 arg5 = wxString_in_helper(obj4);
44844 if (arg5 == NULL) SWIG_fail;
44845 temp5 = true;
44846 }
44847 }
44848 if (obj5) {
44849 {
44850 arg6 = &temp6;
44851 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44852 }
44853 }
44854 if (obj6) {
44855 {
44856 arg7 = &temp7;
44857 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44858 }
44859 }
44860 if (obj7) {
44861 ecode8 = SWIG_AsVal_long(obj7, &val8);
44862 if (!SWIG_IsOK(ecode8)) {
44863 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44864 }
44865 arg8 = static_cast< long >(val8);
44866 }
44867 if (obj8) {
44868 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44869 if (!SWIG_IsOK(res9)) {
44870 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44871 }
44872 if (!argp9) {
44873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44874 }
44875 arg9 = reinterpret_cast< wxValidator * >(argp9);
44876 }
44877 if (obj9) {
44878 {
44879 arg10 = wxString_in_helper(obj9);
44880 if (arg10 == NULL) SWIG_fail;
44881 temp10 = true;
44882 }
44883 }
44884 {
44885 PyThreadState* __tstate = wxPyBeginAllowThreads();
44886 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);
44887 wxPyEndAllowThreads(__tstate);
44888 if (PyErr_Occurred()) SWIG_fail;
44889 }
44890 {
44891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44892 }
44893 {
44894 if (temp4)
44895 delete arg4;
44896 }
44897 {
44898 if (temp5)
44899 delete arg5;
44900 }
44901 {
44902 if (temp10)
44903 delete arg10;
44904 }
44905 return resultobj;
44906 fail:
44907 {
44908 if (temp4)
44909 delete arg4;
44910 }
44911 {
44912 if (temp5)
44913 delete arg5;
44914 }
44915 {
44916 if (temp10)
44917 delete arg10;
44918 }
44919 return NULL;
44920 }
44921
44922
44923 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44924 PyObject *resultobj = 0;
44925 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44926 wxString result;
44927 void *argp1 = 0 ;
44928 int res1 = 0 ;
44929 PyObject *swig_obj[1] ;
44930
44931 if (!args) SWIG_fail;
44932 swig_obj[0] = args;
44933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44934 if (!SWIG_IsOK(res1)) {
44935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44936 }
44937 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44938 {
44939 PyThreadState* __tstate = wxPyBeginAllowThreads();
44940 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44941 wxPyEndAllowThreads(__tstate);
44942 if (PyErr_Occurred()) SWIG_fail;
44943 }
44944 {
44945 #if wxUSE_UNICODE
44946 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44947 #else
44948 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44949 #endif
44950 }
44951 return resultobj;
44952 fail:
44953 return NULL;
44954 }
44955
44956
44957 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44958 PyObject *resultobj = 0;
44959 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44960 wxString *arg2 = 0 ;
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 *) "str", NULL
44968 };
44969
44970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",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_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
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 (arg1)->SetPath((wxString const &)*arg2);
44984 wxPyEndAllowThreads(__tstate);
44985 if (PyErr_Occurred()) SWIG_fail;
44986 }
44987 resultobj = SWIG_Py_Void();
44988 {
44989 if (temp2)
44990 delete arg2;
44991 }
44992 return resultobj;
44993 fail:
44994 {
44995 if (temp2)
44996 delete arg2;
44997 }
44998 return NULL;
44999 }
45000
45001
45002 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45003 PyObject *resultobj = 0;
45004 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45005 wxString *arg2 = 0 ;
45006 bool result;
45007 void *argp1 = 0 ;
45008 int res1 = 0 ;
45009 bool temp2 = false ;
45010 PyObject * obj0 = 0 ;
45011 PyObject * obj1 = 0 ;
45012 char * kwnames[] = {
45013 (char *) "self",(char *) "path", NULL
45014 };
45015
45016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
45017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45018 if (!SWIG_IsOK(res1)) {
45019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45020 }
45021 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45022 {
45023 arg2 = wxString_in_helper(obj1);
45024 if (arg2 == NULL) SWIG_fail;
45025 temp2 = true;
45026 }
45027 {
45028 PyThreadState* __tstate = wxPyBeginAllowThreads();
45029 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
45030 wxPyEndAllowThreads(__tstate);
45031 if (PyErr_Occurred()) SWIG_fail;
45032 }
45033 {
45034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45035 }
45036 {
45037 if (temp2)
45038 delete arg2;
45039 }
45040 return resultobj;
45041 fail:
45042 {
45043 if (temp2)
45044 delete arg2;
45045 }
45046 return NULL;
45047 }
45048
45049
45050 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45051 PyObject *resultobj = 0;
45052 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45053 wxString result;
45054 void *argp1 = 0 ;
45055 int res1 = 0 ;
45056 PyObject *swig_obj[1] ;
45057
45058 if (!args) SWIG_fail;
45059 swig_obj[0] = args;
45060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45061 if (!SWIG_IsOK(res1)) {
45062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45063 }
45064 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45065 {
45066 PyThreadState* __tstate = wxPyBeginAllowThreads();
45067 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
45068 wxPyEndAllowThreads(__tstate);
45069 if (PyErr_Occurred()) SWIG_fail;
45070 }
45071 {
45072 #if wxUSE_UNICODE
45073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45074 #else
45075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45076 #endif
45077 }
45078 return resultobj;
45079 fail:
45080 return NULL;
45081 }
45082
45083
45084 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45085 PyObject *obj;
45086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45087 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45088 return SWIG_Py_Void();
45089 }
45090
45091 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45092 return SWIG_Python_InitShadowInstance(args);
45093 }
45094
45095 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45096 PyObject *resultobj = 0;
45097 wxEventType arg1 ;
45098 wxObject *arg2 = (wxObject *) 0 ;
45099 int arg3 ;
45100 wxString *arg4 = 0 ;
45101 wxFileDirPickerEvent *result = 0 ;
45102 int val1 ;
45103 int ecode1 = 0 ;
45104 void *argp2 = 0 ;
45105 int res2 = 0 ;
45106 int val3 ;
45107 int ecode3 = 0 ;
45108 bool temp4 = false ;
45109 PyObject * obj0 = 0 ;
45110 PyObject * obj1 = 0 ;
45111 PyObject * obj2 = 0 ;
45112 PyObject * obj3 = 0 ;
45113 char * kwnames[] = {
45114 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45115 };
45116
45117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45118 ecode1 = SWIG_AsVal_int(obj0, &val1);
45119 if (!SWIG_IsOK(ecode1)) {
45120 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45121 }
45122 arg1 = static_cast< wxEventType >(val1);
45123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45124 if (!SWIG_IsOK(res2)) {
45125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45126 }
45127 arg2 = reinterpret_cast< wxObject * >(argp2);
45128 ecode3 = SWIG_AsVal_int(obj2, &val3);
45129 if (!SWIG_IsOK(ecode3)) {
45130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45131 }
45132 arg3 = static_cast< int >(val3);
45133 {
45134 arg4 = wxString_in_helper(obj3);
45135 if (arg4 == NULL) SWIG_fail;
45136 temp4 = true;
45137 }
45138 {
45139 PyThreadState* __tstate = wxPyBeginAllowThreads();
45140 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45141 wxPyEndAllowThreads(__tstate);
45142 if (PyErr_Occurred()) SWIG_fail;
45143 }
45144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45145 {
45146 if (temp4)
45147 delete arg4;
45148 }
45149 return resultobj;
45150 fail:
45151 {
45152 if (temp4)
45153 delete arg4;
45154 }
45155 return NULL;
45156 }
45157
45158
45159 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45160 PyObject *resultobj = 0;
45161 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45162 wxString result;
45163 void *argp1 = 0 ;
45164 int res1 = 0 ;
45165 PyObject *swig_obj[1] ;
45166
45167 if (!args) SWIG_fail;
45168 swig_obj[0] = args;
45169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45170 if (!SWIG_IsOK(res1)) {
45171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45172 }
45173 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45174 {
45175 PyThreadState* __tstate = wxPyBeginAllowThreads();
45176 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45177 wxPyEndAllowThreads(__tstate);
45178 if (PyErr_Occurred()) SWIG_fail;
45179 }
45180 {
45181 #if wxUSE_UNICODE
45182 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45183 #else
45184 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45185 #endif
45186 }
45187 return resultobj;
45188 fail:
45189 return NULL;
45190 }
45191
45192
45193 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45194 PyObject *resultobj = 0;
45195 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45196 wxString *arg2 = 0 ;
45197 void *argp1 = 0 ;
45198 int res1 = 0 ;
45199 bool temp2 = false ;
45200 PyObject * obj0 = 0 ;
45201 PyObject * obj1 = 0 ;
45202 char * kwnames[] = {
45203 (char *) "self",(char *) "p", NULL
45204 };
45205
45206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45208 if (!SWIG_IsOK(res1)) {
45209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45210 }
45211 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45212 {
45213 arg2 = wxString_in_helper(obj1);
45214 if (arg2 == NULL) SWIG_fail;
45215 temp2 = true;
45216 }
45217 {
45218 PyThreadState* __tstate = wxPyBeginAllowThreads();
45219 (arg1)->SetPath((wxString const &)*arg2);
45220 wxPyEndAllowThreads(__tstate);
45221 if (PyErr_Occurred()) SWIG_fail;
45222 }
45223 resultobj = SWIG_Py_Void();
45224 {
45225 if (temp2)
45226 delete arg2;
45227 }
45228 return resultobj;
45229 fail:
45230 {
45231 if (temp2)
45232 delete arg2;
45233 }
45234 return NULL;
45235 }
45236
45237
45238 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45239 PyObject *obj;
45240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45241 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45242 return SWIG_Py_Void();
45243 }
45244
45245 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45246 return SWIG_Python_InitShadowInstance(args);
45247 }
45248
45249 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45250 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45251 return 1;
45252 }
45253
45254
45255 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45256 PyObject *pyobj = 0;
45257
45258 {
45259 #if wxUSE_UNICODE
45260 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45261 #else
45262 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45263 #endif
45264 }
45265 return pyobj;
45266 }
45267
45268
45269 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45270 PyObject *resultobj = 0;
45271 wxWindow *arg1 = (wxWindow *) 0 ;
45272 int arg2 = (int) -1 ;
45273 wxFont const &arg3_defvalue = wxNullFont ;
45274 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45275 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45276 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45277 wxSize const &arg5_defvalue = wxDefaultSize ;
45278 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45279 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45280 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45281 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45282 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45283 wxString *arg8 = (wxString *) &arg8_defvalue ;
45284 wxFontPickerCtrl *result = 0 ;
45285 void *argp1 = 0 ;
45286 int res1 = 0 ;
45287 int val2 ;
45288 int ecode2 = 0 ;
45289 void *argp3 = 0 ;
45290 int res3 = 0 ;
45291 wxPoint temp4 ;
45292 wxSize temp5 ;
45293 long val6 ;
45294 int ecode6 = 0 ;
45295 void *argp7 = 0 ;
45296 int res7 = 0 ;
45297 bool temp8 = false ;
45298 PyObject * obj0 = 0 ;
45299 PyObject * obj1 = 0 ;
45300 PyObject * obj2 = 0 ;
45301 PyObject * obj3 = 0 ;
45302 PyObject * obj4 = 0 ;
45303 PyObject * obj5 = 0 ;
45304 PyObject * obj6 = 0 ;
45305 PyObject * obj7 = 0 ;
45306 char * kwnames[] = {
45307 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45308 };
45309
45310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45312 if (!SWIG_IsOK(res1)) {
45313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45314 }
45315 arg1 = reinterpret_cast< wxWindow * >(argp1);
45316 if (obj1) {
45317 ecode2 = SWIG_AsVal_int(obj1, &val2);
45318 if (!SWIG_IsOK(ecode2)) {
45319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45320 }
45321 arg2 = static_cast< int >(val2);
45322 }
45323 if (obj2) {
45324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45325 if (!SWIG_IsOK(res3)) {
45326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45327 }
45328 if (!argp3) {
45329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45330 }
45331 arg3 = reinterpret_cast< wxFont * >(argp3);
45332 }
45333 if (obj3) {
45334 {
45335 arg4 = &temp4;
45336 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45337 }
45338 }
45339 if (obj4) {
45340 {
45341 arg5 = &temp5;
45342 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45343 }
45344 }
45345 if (obj5) {
45346 ecode6 = SWIG_AsVal_long(obj5, &val6);
45347 if (!SWIG_IsOK(ecode6)) {
45348 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45349 }
45350 arg6 = static_cast< long >(val6);
45351 }
45352 if (obj6) {
45353 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45354 if (!SWIG_IsOK(res7)) {
45355 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45356 }
45357 if (!argp7) {
45358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45359 }
45360 arg7 = reinterpret_cast< wxValidator * >(argp7);
45361 }
45362 if (obj7) {
45363 {
45364 arg8 = wxString_in_helper(obj7);
45365 if (arg8 == NULL) SWIG_fail;
45366 temp8 = true;
45367 }
45368 }
45369 {
45370 if (!wxPyCheckForApp()) SWIG_fail;
45371 PyThreadState* __tstate = wxPyBeginAllowThreads();
45372 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45373 wxPyEndAllowThreads(__tstate);
45374 if (PyErr_Occurred()) SWIG_fail;
45375 }
45376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45377 {
45378 if (temp8)
45379 delete arg8;
45380 }
45381 return resultobj;
45382 fail:
45383 {
45384 if (temp8)
45385 delete arg8;
45386 }
45387 return NULL;
45388 }
45389
45390
45391 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45392 PyObject *resultobj = 0;
45393 wxFontPickerCtrl *result = 0 ;
45394
45395 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45396 {
45397 if (!wxPyCheckForApp()) SWIG_fail;
45398 PyThreadState* __tstate = wxPyBeginAllowThreads();
45399 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45400 wxPyEndAllowThreads(__tstate);
45401 if (PyErr_Occurred()) SWIG_fail;
45402 }
45403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45404 return resultobj;
45405 fail:
45406 return NULL;
45407 }
45408
45409
45410 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45411 PyObject *resultobj = 0;
45412 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45413 wxWindow *arg2 = (wxWindow *) 0 ;
45414 int arg3 = (int) -1 ;
45415 wxFont const &arg4_defvalue = wxNullFont ;
45416 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45417 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45418 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45419 wxSize const &arg6_defvalue = wxDefaultSize ;
45420 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45421 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45422 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45423 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45424 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45425 wxString *arg9 = (wxString *) &arg9_defvalue ;
45426 bool result;
45427 void *argp1 = 0 ;
45428 int res1 = 0 ;
45429 void *argp2 = 0 ;
45430 int res2 = 0 ;
45431 int val3 ;
45432 int ecode3 = 0 ;
45433 void *argp4 = 0 ;
45434 int res4 = 0 ;
45435 wxPoint temp5 ;
45436 wxSize temp6 ;
45437 long val7 ;
45438 int ecode7 = 0 ;
45439 void *argp8 = 0 ;
45440 int res8 = 0 ;
45441 bool temp9 = false ;
45442 PyObject * obj0 = 0 ;
45443 PyObject * obj1 = 0 ;
45444 PyObject * obj2 = 0 ;
45445 PyObject * obj3 = 0 ;
45446 PyObject * obj4 = 0 ;
45447 PyObject * obj5 = 0 ;
45448 PyObject * obj6 = 0 ;
45449 PyObject * obj7 = 0 ;
45450 PyObject * obj8 = 0 ;
45451 char * kwnames[] = {
45452 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45453 };
45454
45455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45457 if (!SWIG_IsOK(res1)) {
45458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45459 }
45460 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45461 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45462 if (!SWIG_IsOK(res2)) {
45463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45464 }
45465 arg2 = reinterpret_cast< wxWindow * >(argp2);
45466 if (obj2) {
45467 ecode3 = SWIG_AsVal_int(obj2, &val3);
45468 if (!SWIG_IsOK(ecode3)) {
45469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45470 }
45471 arg3 = static_cast< int >(val3);
45472 }
45473 if (obj3) {
45474 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45475 if (!SWIG_IsOK(res4)) {
45476 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45477 }
45478 if (!argp4) {
45479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45480 }
45481 arg4 = reinterpret_cast< wxFont * >(argp4);
45482 }
45483 if (obj4) {
45484 {
45485 arg5 = &temp5;
45486 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45487 }
45488 }
45489 if (obj5) {
45490 {
45491 arg6 = &temp6;
45492 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45493 }
45494 }
45495 if (obj6) {
45496 ecode7 = SWIG_AsVal_long(obj6, &val7);
45497 if (!SWIG_IsOK(ecode7)) {
45498 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45499 }
45500 arg7 = static_cast< long >(val7);
45501 }
45502 if (obj7) {
45503 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45504 if (!SWIG_IsOK(res8)) {
45505 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45506 }
45507 if (!argp8) {
45508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45509 }
45510 arg8 = reinterpret_cast< wxValidator * >(argp8);
45511 }
45512 if (obj8) {
45513 {
45514 arg9 = wxString_in_helper(obj8);
45515 if (arg9 == NULL) SWIG_fail;
45516 temp9 = true;
45517 }
45518 }
45519 {
45520 PyThreadState* __tstate = wxPyBeginAllowThreads();
45521 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45522 wxPyEndAllowThreads(__tstate);
45523 if (PyErr_Occurred()) SWIG_fail;
45524 }
45525 {
45526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45527 }
45528 {
45529 if (temp9)
45530 delete arg9;
45531 }
45532 return resultobj;
45533 fail:
45534 {
45535 if (temp9)
45536 delete arg9;
45537 }
45538 return NULL;
45539 }
45540
45541
45542 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45543 PyObject *resultobj = 0;
45544 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45545 wxFont result;
45546 void *argp1 = 0 ;
45547 int res1 = 0 ;
45548 PyObject *swig_obj[1] ;
45549
45550 if (!args) SWIG_fail;
45551 swig_obj[0] = args;
45552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45553 if (!SWIG_IsOK(res1)) {
45554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45555 }
45556 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45557 {
45558 PyThreadState* __tstate = wxPyBeginAllowThreads();
45559 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45560 wxPyEndAllowThreads(__tstate);
45561 if (PyErr_Occurred()) SWIG_fail;
45562 }
45563 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45564 return resultobj;
45565 fail:
45566 return NULL;
45567 }
45568
45569
45570 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45571 PyObject *resultobj = 0;
45572 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45573 wxFont *arg2 = 0 ;
45574 void *argp1 = 0 ;
45575 int res1 = 0 ;
45576 void *argp2 = 0 ;
45577 int res2 = 0 ;
45578 PyObject * obj0 = 0 ;
45579 PyObject * obj1 = 0 ;
45580 char * kwnames[] = {
45581 (char *) "self",(char *) "f", NULL
45582 };
45583
45584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45586 if (!SWIG_IsOK(res1)) {
45587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45588 }
45589 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45591 if (!SWIG_IsOK(res2)) {
45592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45593 }
45594 if (!argp2) {
45595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45596 }
45597 arg2 = reinterpret_cast< wxFont * >(argp2);
45598 {
45599 PyThreadState* __tstate = wxPyBeginAllowThreads();
45600 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45601 wxPyEndAllowThreads(__tstate);
45602 if (PyErr_Occurred()) SWIG_fail;
45603 }
45604 resultobj = SWIG_Py_Void();
45605 return resultobj;
45606 fail:
45607 return NULL;
45608 }
45609
45610
45611 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45612 PyObject *resultobj = 0;
45613 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45614 unsigned int arg2 ;
45615 void *argp1 = 0 ;
45616 int res1 = 0 ;
45617 unsigned int val2 ;
45618 int ecode2 = 0 ;
45619 PyObject * obj0 = 0 ;
45620 PyObject * obj1 = 0 ;
45621 char * kwnames[] = {
45622 (char *) "self",(char *) "max", NULL
45623 };
45624
45625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45627 if (!SWIG_IsOK(res1)) {
45628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45629 }
45630 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45631 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45632 if (!SWIG_IsOK(ecode2)) {
45633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45634 }
45635 arg2 = static_cast< unsigned int >(val2);
45636 {
45637 PyThreadState* __tstate = wxPyBeginAllowThreads();
45638 (arg1)->SetMaxPointSize(arg2);
45639 wxPyEndAllowThreads(__tstate);
45640 if (PyErr_Occurred()) SWIG_fail;
45641 }
45642 resultobj = SWIG_Py_Void();
45643 return resultobj;
45644 fail:
45645 return NULL;
45646 }
45647
45648
45649 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45650 PyObject *resultobj = 0;
45651 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45652 unsigned int result;
45653 void *argp1 = 0 ;
45654 int res1 = 0 ;
45655 PyObject *swig_obj[1] ;
45656
45657 if (!args) SWIG_fail;
45658 swig_obj[0] = args;
45659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45660 if (!SWIG_IsOK(res1)) {
45661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45662 }
45663 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45664 {
45665 PyThreadState* __tstate = wxPyBeginAllowThreads();
45666 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45667 wxPyEndAllowThreads(__tstate);
45668 if (PyErr_Occurred()) SWIG_fail;
45669 }
45670 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45671 return resultobj;
45672 fail:
45673 return NULL;
45674 }
45675
45676
45677 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45678 PyObject *obj;
45679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45680 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45681 return SWIG_Py_Void();
45682 }
45683
45684 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45685 return SWIG_Python_InitShadowInstance(args);
45686 }
45687
45688 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45689 PyObject *resultobj = 0;
45690 wxObject *arg1 = (wxObject *) 0 ;
45691 int arg2 ;
45692 wxFont *arg3 = 0 ;
45693 wxFontPickerEvent *result = 0 ;
45694 void *argp1 = 0 ;
45695 int res1 = 0 ;
45696 int val2 ;
45697 int ecode2 = 0 ;
45698 void *argp3 = 0 ;
45699 int res3 = 0 ;
45700 PyObject * obj0 = 0 ;
45701 PyObject * obj1 = 0 ;
45702 PyObject * obj2 = 0 ;
45703 char * kwnames[] = {
45704 (char *) "generator",(char *) "id",(char *) "f", NULL
45705 };
45706
45707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45709 if (!SWIG_IsOK(res1)) {
45710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45711 }
45712 arg1 = reinterpret_cast< wxObject * >(argp1);
45713 ecode2 = SWIG_AsVal_int(obj1, &val2);
45714 if (!SWIG_IsOK(ecode2)) {
45715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45716 }
45717 arg2 = static_cast< int >(val2);
45718 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45719 if (!SWIG_IsOK(res3)) {
45720 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45721 }
45722 if (!argp3) {
45723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45724 }
45725 arg3 = reinterpret_cast< wxFont * >(argp3);
45726 {
45727 PyThreadState* __tstate = wxPyBeginAllowThreads();
45728 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45729 wxPyEndAllowThreads(__tstate);
45730 if (PyErr_Occurred()) SWIG_fail;
45731 }
45732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45733 return resultobj;
45734 fail:
45735 return NULL;
45736 }
45737
45738
45739 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45740 PyObject *resultobj = 0;
45741 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45742 wxFont result;
45743 void *argp1 = 0 ;
45744 int res1 = 0 ;
45745 PyObject *swig_obj[1] ;
45746
45747 if (!args) SWIG_fail;
45748 swig_obj[0] = args;
45749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45750 if (!SWIG_IsOK(res1)) {
45751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45752 }
45753 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45754 {
45755 PyThreadState* __tstate = wxPyBeginAllowThreads();
45756 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45757 wxPyEndAllowThreads(__tstate);
45758 if (PyErr_Occurred()) SWIG_fail;
45759 }
45760 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45761 return resultobj;
45762 fail:
45763 return NULL;
45764 }
45765
45766
45767 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45768 PyObject *resultobj = 0;
45769 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45770 wxFont *arg2 = 0 ;
45771 void *argp1 = 0 ;
45772 int res1 = 0 ;
45773 void *argp2 = 0 ;
45774 int res2 = 0 ;
45775 PyObject * obj0 = 0 ;
45776 PyObject * obj1 = 0 ;
45777 char * kwnames[] = {
45778 (char *) "self",(char *) "c", NULL
45779 };
45780
45781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45783 if (!SWIG_IsOK(res1)) {
45784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45785 }
45786 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45788 if (!SWIG_IsOK(res2)) {
45789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45790 }
45791 if (!argp2) {
45792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45793 }
45794 arg2 = reinterpret_cast< wxFont * >(argp2);
45795 {
45796 PyThreadState* __tstate = wxPyBeginAllowThreads();
45797 (arg1)->SetFont((wxFont const &)*arg2);
45798 wxPyEndAllowThreads(__tstate);
45799 if (PyErr_Occurred()) SWIG_fail;
45800 }
45801 resultobj = SWIG_Py_Void();
45802 return resultobj;
45803 fail:
45804 return NULL;
45805 }
45806
45807
45808 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45809 PyObject *obj;
45810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45811 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45812 return SWIG_Py_Void();
45813 }
45814
45815 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45816 return SWIG_Python_InitShadowInstance(args);
45817 }
45818
45819 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45820 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45821 return 1;
45822 }
45823
45824
45825 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45826 PyObject *pyobj = 0;
45827
45828 {
45829 #if wxUSE_UNICODE
45830 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45831 #else
45832 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45833 #endif
45834 }
45835 return pyobj;
45836 }
45837
45838
45839 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45840 PyObject *resultobj = 0;
45841 wxWindow *arg1 = (wxWindow *) 0 ;
45842 int arg2 = (int) -1 ;
45843 wxString const &arg3_defvalue = wxPyEmptyString ;
45844 wxString *arg3 = (wxString *) &arg3_defvalue ;
45845 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45846 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45847 wxSize const &arg5_defvalue = wxDefaultSize ;
45848 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45849 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45850 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45851 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45852 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45853 wxString *arg8 = (wxString *) &arg8_defvalue ;
45854 wxCollapsiblePane *result = 0 ;
45855 void *argp1 = 0 ;
45856 int res1 = 0 ;
45857 int val2 ;
45858 int ecode2 = 0 ;
45859 bool temp3 = false ;
45860 wxPoint temp4 ;
45861 wxSize temp5 ;
45862 long val6 ;
45863 int ecode6 = 0 ;
45864 void *argp7 = 0 ;
45865 int res7 = 0 ;
45866 bool temp8 = false ;
45867 PyObject * obj0 = 0 ;
45868 PyObject * obj1 = 0 ;
45869 PyObject * obj2 = 0 ;
45870 PyObject * obj3 = 0 ;
45871 PyObject * obj4 = 0 ;
45872 PyObject * obj5 = 0 ;
45873 PyObject * obj6 = 0 ;
45874 PyObject * obj7 = 0 ;
45875 char * kwnames[] = {
45876 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45877 };
45878
45879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45881 if (!SWIG_IsOK(res1)) {
45882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45883 }
45884 arg1 = reinterpret_cast< wxWindow * >(argp1);
45885 if (obj1) {
45886 ecode2 = SWIG_AsVal_int(obj1, &val2);
45887 if (!SWIG_IsOK(ecode2)) {
45888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45889 }
45890 arg2 = static_cast< int >(val2);
45891 }
45892 if (obj2) {
45893 {
45894 arg3 = wxString_in_helper(obj2);
45895 if (arg3 == NULL) SWIG_fail;
45896 temp3 = true;
45897 }
45898 }
45899 if (obj3) {
45900 {
45901 arg4 = &temp4;
45902 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45903 }
45904 }
45905 if (obj4) {
45906 {
45907 arg5 = &temp5;
45908 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45909 }
45910 }
45911 if (obj5) {
45912 ecode6 = SWIG_AsVal_long(obj5, &val6);
45913 if (!SWIG_IsOK(ecode6)) {
45914 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45915 }
45916 arg6 = static_cast< long >(val6);
45917 }
45918 if (obj6) {
45919 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45920 if (!SWIG_IsOK(res7)) {
45921 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45922 }
45923 if (!argp7) {
45924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45925 }
45926 arg7 = reinterpret_cast< wxValidator * >(argp7);
45927 }
45928 if (obj7) {
45929 {
45930 arg8 = wxString_in_helper(obj7);
45931 if (arg8 == NULL) SWIG_fail;
45932 temp8 = true;
45933 }
45934 }
45935 {
45936 if (!wxPyCheckForApp()) SWIG_fail;
45937 PyThreadState* __tstate = wxPyBeginAllowThreads();
45938 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45939 wxPyEndAllowThreads(__tstate);
45940 if (PyErr_Occurred()) SWIG_fail;
45941 }
45942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45943 {
45944 if (temp3)
45945 delete arg3;
45946 }
45947 {
45948 if (temp8)
45949 delete arg8;
45950 }
45951 return resultobj;
45952 fail:
45953 {
45954 if (temp3)
45955 delete arg3;
45956 }
45957 {
45958 if (temp8)
45959 delete arg8;
45960 }
45961 return NULL;
45962 }
45963
45964
45965 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45966 PyObject *resultobj = 0;
45967 wxCollapsiblePane *result = 0 ;
45968
45969 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45970 {
45971 if (!wxPyCheckForApp()) SWIG_fail;
45972 PyThreadState* __tstate = wxPyBeginAllowThreads();
45973 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45974 wxPyEndAllowThreads(__tstate);
45975 if (PyErr_Occurred()) SWIG_fail;
45976 }
45977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45978 return resultobj;
45979 fail:
45980 return NULL;
45981 }
45982
45983
45984 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45985 PyObject *resultobj = 0;
45986 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45987 wxWindow *arg2 = (wxWindow *) 0 ;
45988 int arg3 = (int) -1 ;
45989 wxString const &arg4_defvalue = wxPyEmptyString ;
45990 wxString *arg4 = (wxString *) &arg4_defvalue ;
45991 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45992 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45993 wxSize const &arg6_defvalue = wxDefaultSize ;
45994 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45995 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45996 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45997 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45998 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45999 wxString *arg9 = (wxString *) &arg9_defvalue ;
46000 bool result;
46001 void *argp1 = 0 ;
46002 int res1 = 0 ;
46003 void *argp2 = 0 ;
46004 int res2 = 0 ;
46005 int val3 ;
46006 int ecode3 = 0 ;
46007 bool temp4 = false ;
46008 wxPoint temp5 ;
46009 wxSize temp6 ;
46010 long val7 ;
46011 int ecode7 = 0 ;
46012 void *argp8 = 0 ;
46013 int res8 = 0 ;
46014 bool temp9 = false ;
46015 PyObject * obj0 = 0 ;
46016 PyObject * obj1 = 0 ;
46017 PyObject * obj2 = 0 ;
46018 PyObject * obj3 = 0 ;
46019 PyObject * obj4 = 0 ;
46020 PyObject * obj5 = 0 ;
46021 PyObject * obj6 = 0 ;
46022 PyObject * obj7 = 0 ;
46023 PyObject * obj8 = 0 ;
46024 char * kwnames[] = {
46025 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
46026 };
46027
46028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46030 if (!SWIG_IsOK(res1)) {
46031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46032 }
46033 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46035 if (!SWIG_IsOK(res2)) {
46036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46037 }
46038 arg2 = reinterpret_cast< wxWindow * >(argp2);
46039 if (obj2) {
46040 ecode3 = SWIG_AsVal_int(obj2, &val3);
46041 if (!SWIG_IsOK(ecode3)) {
46042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
46043 }
46044 arg3 = static_cast< int >(val3);
46045 }
46046 if (obj3) {
46047 {
46048 arg4 = wxString_in_helper(obj3);
46049 if (arg4 == NULL) SWIG_fail;
46050 temp4 = true;
46051 }
46052 }
46053 if (obj4) {
46054 {
46055 arg5 = &temp5;
46056 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46057 }
46058 }
46059 if (obj5) {
46060 {
46061 arg6 = &temp6;
46062 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46063 }
46064 }
46065 if (obj6) {
46066 ecode7 = SWIG_AsVal_long(obj6, &val7);
46067 if (!SWIG_IsOK(ecode7)) {
46068 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
46069 }
46070 arg7 = static_cast< long >(val7);
46071 }
46072 if (obj7) {
46073 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46074 if (!SWIG_IsOK(res8)) {
46075 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46076 }
46077 if (!argp8) {
46078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46079 }
46080 arg8 = reinterpret_cast< wxValidator * >(argp8);
46081 }
46082 if (obj8) {
46083 {
46084 arg9 = wxString_in_helper(obj8);
46085 if (arg9 == NULL) SWIG_fail;
46086 temp9 = true;
46087 }
46088 }
46089 {
46090 PyThreadState* __tstate = wxPyBeginAllowThreads();
46091 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46092 wxPyEndAllowThreads(__tstate);
46093 if (PyErr_Occurred()) SWIG_fail;
46094 }
46095 {
46096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46097 }
46098 {
46099 if (temp4)
46100 delete arg4;
46101 }
46102 {
46103 if (temp9)
46104 delete arg9;
46105 }
46106 return resultobj;
46107 fail:
46108 {
46109 if (temp4)
46110 delete arg4;
46111 }
46112 {
46113 if (temp9)
46114 delete arg9;
46115 }
46116 return NULL;
46117 }
46118
46119
46120 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46121 PyObject *resultobj = 0;
46122 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46123 bool arg2 = (bool) true ;
46124 void *argp1 = 0 ;
46125 int res1 = 0 ;
46126 bool val2 ;
46127 int ecode2 = 0 ;
46128 PyObject * obj0 = 0 ;
46129 PyObject * obj1 = 0 ;
46130 char * kwnames[] = {
46131 (char *) "self",(char *) "collapse", NULL
46132 };
46133
46134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46136 if (!SWIG_IsOK(res1)) {
46137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46138 }
46139 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46140 if (obj1) {
46141 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46142 if (!SWIG_IsOK(ecode2)) {
46143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46144 }
46145 arg2 = static_cast< bool >(val2);
46146 }
46147 {
46148 PyThreadState* __tstate = wxPyBeginAllowThreads();
46149 (arg1)->Collapse(arg2);
46150 wxPyEndAllowThreads(__tstate);
46151 if (PyErr_Occurred()) SWIG_fail;
46152 }
46153 resultobj = SWIG_Py_Void();
46154 return resultobj;
46155 fail:
46156 return NULL;
46157 }
46158
46159
46160 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46161 PyObject *resultobj = 0;
46162 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46163 void *argp1 = 0 ;
46164 int res1 = 0 ;
46165 PyObject *swig_obj[1] ;
46166
46167 if (!args) SWIG_fail;
46168 swig_obj[0] = args;
46169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46170 if (!SWIG_IsOK(res1)) {
46171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46172 }
46173 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46174 {
46175 PyThreadState* __tstate = wxPyBeginAllowThreads();
46176 (arg1)->Expand();
46177 wxPyEndAllowThreads(__tstate);
46178 if (PyErr_Occurred()) SWIG_fail;
46179 }
46180 resultobj = SWIG_Py_Void();
46181 return resultobj;
46182 fail:
46183 return NULL;
46184 }
46185
46186
46187 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46188 PyObject *resultobj = 0;
46189 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46190 bool result;
46191 void *argp1 = 0 ;
46192 int res1 = 0 ;
46193 PyObject *swig_obj[1] ;
46194
46195 if (!args) SWIG_fail;
46196 swig_obj[0] = args;
46197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46198 if (!SWIG_IsOK(res1)) {
46199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46200 }
46201 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46202 {
46203 PyThreadState* __tstate = wxPyBeginAllowThreads();
46204 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46205 wxPyEndAllowThreads(__tstate);
46206 if (PyErr_Occurred()) SWIG_fail;
46207 }
46208 {
46209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46210 }
46211 return resultobj;
46212 fail:
46213 return NULL;
46214 }
46215
46216
46217 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46218 PyObject *resultobj = 0;
46219 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46220 bool result;
46221 void *argp1 = 0 ;
46222 int res1 = 0 ;
46223 PyObject *swig_obj[1] ;
46224
46225 if (!args) SWIG_fail;
46226 swig_obj[0] = args;
46227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46228 if (!SWIG_IsOK(res1)) {
46229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46230 }
46231 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46232 {
46233 PyThreadState* __tstate = wxPyBeginAllowThreads();
46234 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46235 wxPyEndAllowThreads(__tstate);
46236 if (PyErr_Occurred()) SWIG_fail;
46237 }
46238 {
46239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46240 }
46241 return resultobj;
46242 fail:
46243 return NULL;
46244 }
46245
46246
46247 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46248 PyObject *resultobj = 0;
46249 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46250 wxWindow *result = 0 ;
46251 void *argp1 = 0 ;
46252 int res1 = 0 ;
46253 PyObject *swig_obj[1] ;
46254
46255 if (!args) SWIG_fail;
46256 swig_obj[0] = args;
46257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46258 if (!SWIG_IsOK(res1)) {
46259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46260 }
46261 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46262 {
46263 PyThreadState* __tstate = wxPyBeginAllowThreads();
46264 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46265 wxPyEndAllowThreads(__tstate);
46266 if (PyErr_Occurred()) SWIG_fail;
46267 }
46268 {
46269 resultobj = wxPyMake_wxObject(result, 0);
46270 }
46271 return resultobj;
46272 fail:
46273 return NULL;
46274 }
46275
46276
46277 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46278 PyObject *obj;
46279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46280 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46281 return SWIG_Py_Void();
46282 }
46283
46284 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46285 return SWIG_Python_InitShadowInstance(args);
46286 }
46287
46288 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46289 PyObject *resultobj = 0;
46290 wxObject *arg1 = (wxObject *) 0 ;
46291 int arg2 ;
46292 bool arg3 ;
46293 wxCollapsiblePaneEvent *result = 0 ;
46294 void *argp1 = 0 ;
46295 int res1 = 0 ;
46296 int val2 ;
46297 int ecode2 = 0 ;
46298 bool val3 ;
46299 int ecode3 = 0 ;
46300 PyObject * obj0 = 0 ;
46301 PyObject * obj1 = 0 ;
46302 PyObject * obj2 = 0 ;
46303 char * kwnames[] = {
46304 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46305 };
46306
46307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46309 if (!SWIG_IsOK(res1)) {
46310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46311 }
46312 arg1 = reinterpret_cast< wxObject * >(argp1);
46313 ecode2 = SWIG_AsVal_int(obj1, &val2);
46314 if (!SWIG_IsOK(ecode2)) {
46315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46316 }
46317 arg2 = static_cast< int >(val2);
46318 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46319 if (!SWIG_IsOK(ecode3)) {
46320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46321 }
46322 arg3 = static_cast< bool >(val3);
46323 {
46324 PyThreadState* __tstate = wxPyBeginAllowThreads();
46325 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46326 wxPyEndAllowThreads(__tstate);
46327 if (PyErr_Occurred()) SWIG_fail;
46328 }
46329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46330 return resultobj;
46331 fail:
46332 return NULL;
46333 }
46334
46335
46336 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46337 PyObject *resultobj = 0;
46338 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46339 bool result;
46340 void *argp1 = 0 ;
46341 int res1 = 0 ;
46342 PyObject *swig_obj[1] ;
46343
46344 if (!args) SWIG_fail;
46345 swig_obj[0] = args;
46346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46347 if (!SWIG_IsOK(res1)) {
46348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46349 }
46350 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46351 {
46352 PyThreadState* __tstate = wxPyBeginAllowThreads();
46353 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46354 wxPyEndAllowThreads(__tstate);
46355 if (PyErr_Occurred()) SWIG_fail;
46356 }
46357 {
46358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46359 }
46360 return resultobj;
46361 fail:
46362 return NULL;
46363 }
46364
46365
46366 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46367 PyObject *resultobj = 0;
46368 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46369 bool arg2 ;
46370 void *argp1 = 0 ;
46371 int res1 = 0 ;
46372 bool val2 ;
46373 int ecode2 = 0 ;
46374 PyObject * obj0 = 0 ;
46375 PyObject * obj1 = 0 ;
46376 char * kwnames[] = {
46377 (char *) "self",(char *) "c", NULL
46378 };
46379
46380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46382 if (!SWIG_IsOK(res1)) {
46383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46384 }
46385 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46386 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46387 if (!SWIG_IsOK(ecode2)) {
46388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46389 }
46390 arg2 = static_cast< bool >(val2);
46391 {
46392 PyThreadState* __tstate = wxPyBeginAllowThreads();
46393 (arg1)->SetCollapsed(arg2);
46394 wxPyEndAllowThreads(__tstate);
46395 if (PyErr_Occurred()) SWIG_fail;
46396 }
46397 resultobj = SWIG_Py_Void();
46398 return resultobj;
46399 fail:
46400 return NULL;
46401 }
46402
46403
46404 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46405 PyObject *obj;
46406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46407 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46408 return SWIG_Py_Void();
46409 }
46410
46411 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46412 return SWIG_Python_InitShadowInstance(args);
46413 }
46414
46415 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46416 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46417 return 1;
46418 }
46419
46420
46421 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46422 PyObject *pyobj = 0;
46423
46424 {
46425 #if wxUSE_UNICODE
46426 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46427 #else
46428 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46429 #endif
46430 }
46431 return pyobj;
46432 }
46433
46434
46435 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46436 PyObject *resultobj = 0;
46437 wxWindow *arg1 = (wxWindow *) 0 ;
46438 int arg2 = (int) -1 ;
46439 wxString const &arg3_defvalue = wxEmptyString ;
46440 wxString *arg3 = (wxString *) &arg3_defvalue ;
46441 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46442 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46443 wxSize const &arg5_defvalue = wxDefaultSize ;
46444 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46445 long arg6 = (long) 0 ;
46446 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46447 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46448 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46449 wxString *arg8 = (wxString *) &arg8_defvalue ;
46450 wxSearchCtrl *result = 0 ;
46451 void *argp1 = 0 ;
46452 int res1 = 0 ;
46453 int val2 ;
46454 int ecode2 = 0 ;
46455 bool temp3 = false ;
46456 wxPoint temp4 ;
46457 wxSize temp5 ;
46458 long val6 ;
46459 int ecode6 = 0 ;
46460 void *argp7 = 0 ;
46461 int res7 = 0 ;
46462 bool temp8 = false ;
46463 PyObject * obj0 = 0 ;
46464 PyObject * obj1 = 0 ;
46465 PyObject * obj2 = 0 ;
46466 PyObject * obj3 = 0 ;
46467 PyObject * obj4 = 0 ;
46468 PyObject * obj5 = 0 ;
46469 PyObject * obj6 = 0 ;
46470 PyObject * obj7 = 0 ;
46471 char * kwnames[] = {
46472 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46473 };
46474
46475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46477 if (!SWIG_IsOK(res1)) {
46478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46479 }
46480 arg1 = reinterpret_cast< wxWindow * >(argp1);
46481 if (obj1) {
46482 ecode2 = SWIG_AsVal_int(obj1, &val2);
46483 if (!SWIG_IsOK(ecode2)) {
46484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46485 }
46486 arg2 = static_cast< int >(val2);
46487 }
46488 if (obj2) {
46489 {
46490 arg3 = wxString_in_helper(obj2);
46491 if (arg3 == NULL) SWIG_fail;
46492 temp3 = true;
46493 }
46494 }
46495 if (obj3) {
46496 {
46497 arg4 = &temp4;
46498 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46499 }
46500 }
46501 if (obj4) {
46502 {
46503 arg5 = &temp5;
46504 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46505 }
46506 }
46507 if (obj5) {
46508 ecode6 = SWIG_AsVal_long(obj5, &val6);
46509 if (!SWIG_IsOK(ecode6)) {
46510 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46511 }
46512 arg6 = static_cast< long >(val6);
46513 }
46514 if (obj6) {
46515 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46516 if (!SWIG_IsOK(res7)) {
46517 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46518 }
46519 if (!argp7) {
46520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46521 }
46522 arg7 = reinterpret_cast< wxValidator * >(argp7);
46523 }
46524 if (obj7) {
46525 {
46526 arg8 = wxString_in_helper(obj7);
46527 if (arg8 == NULL) SWIG_fail;
46528 temp8 = true;
46529 }
46530 }
46531 {
46532 if (!wxPyCheckForApp()) SWIG_fail;
46533 PyThreadState* __tstate = wxPyBeginAllowThreads();
46534 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46535 wxPyEndAllowThreads(__tstate);
46536 if (PyErr_Occurred()) SWIG_fail;
46537 }
46538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46539 {
46540 if (temp3)
46541 delete arg3;
46542 }
46543 {
46544 if (temp8)
46545 delete arg8;
46546 }
46547 return resultobj;
46548 fail:
46549 {
46550 if (temp3)
46551 delete arg3;
46552 }
46553 {
46554 if (temp8)
46555 delete arg8;
46556 }
46557 return NULL;
46558 }
46559
46560
46561 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46562 PyObject *resultobj = 0;
46563 wxSearchCtrl *result = 0 ;
46564
46565 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46566 {
46567 if (!wxPyCheckForApp()) SWIG_fail;
46568 PyThreadState* __tstate = wxPyBeginAllowThreads();
46569 result = (wxSearchCtrl *)new wxSearchCtrl();
46570 wxPyEndAllowThreads(__tstate);
46571 if (PyErr_Occurred()) SWIG_fail;
46572 }
46573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46574 return resultobj;
46575 fail:
46576 return NULL;
46577 }
46578
46579
46580 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46581 PyObject *resultobj = 0;
46582 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46583 wxWindow *arg2 = (wxWindow *) 0 ;
46584 int arg3 = (int) -1 ;
46585 wxString const &arg4_defvalue = wxEmptyString ;
46586 wxString *arg4 = (wxString *) &arg4_defvalue ;
46587 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46588 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46589 wxSize const &arg6_defvalue = wxDefaultSize ;
46590 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46591 long arg7 = (long) 0 ;
46592 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46593 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46594 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46595 wxString *arg9 = (wxString *) &arg9_defvalue ;
46596 bool result;
46597 void *argp1 = 0 ;
46598 int res1 = 0 ;
46599 void *argp2 = 0 ;
46600 int res2 = 0 ;
46601 int val3 ;
46602 int ecode3 = 0 ;
46603 bool temp4 = false ;
46604 wxPoint temp5 ;
46605 wxSize temp6 ;
46606 long val7 ;
46607 int ecode7 = 0 ;
46608 void *argp8 = 0 ;
46609 int res8 = 0 ;
46610 bool temp9 = false ;
46611 PyObject * obj0 = 0 ;
46612 PyObject * obj1 = 0 ;
46613 PyObject * obj2 = 0 ;
46614 PyObject * obj3 = 0 ;
46615 PyObject * obj4 = 0 ;
46616 PyObject * obj5 = 0 ;
46617 PyObject * obj6 = 0 ;
46618 PyObject * obj7 = 0 ;
46619 PyObject * obj8 = 0 ;
46620 char * kwnames[] = {
46621 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46622 };
46623
46624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46626 if (!SWIG_IsOK(res1)) {
46627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46628 }
46629 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46631 if (!SWIG_IsOK(res2)) {
46632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46633 }
46634 arg2 = reinterpret_cast< wxWindow * >(argp2);
46635 if (obj2) {
46636 ecode3 = SWIG_AsVal_int(obj2, &val3);
46637 if (!SWIG_IsOK(ecode3)) {
46638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46639 }
46640 arg3 = static_cast< int >(val3);
46641 }
46642 if (obj3) {
46643 {
46644 arg4 = wxString_in_helper(obj3);
46645 if (arg4 == NULL) SWIG_fail;
46646 temp4 = true;
46647 }
46648 }
46649 if (obj4) {
46650 {
46651 arg5 = &temp5;
46652 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46653 }
46654 }
46655 if (obj5) {
46656 {
46657 arg6 = &temp6;
46658 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46659 }
46660 }
46661 if (obj6) {
46662 ecode7 = SWIG_AsVal_long(obj6, &val7);
46663 if (!SWIG_IsOK(ecode7)) {
46664 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46665 }
46666 arg7 = static_cast< long >(val7);
46667 }
46668 if (obj7) {
46669 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46670 if (!SWIG_IsOK(res8)) {
46671 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46672 }
46673 if (!argp8) {
46674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46675 }
46676 arg8 = reinterpret_cast< wxValidator * >(argp8);
46677 }
46678 if (obj8) {
46679 {
46680 arg9 = wxString_in_helper(obj8);
46681 if (arg9 == NULL) SWIG_fail;
46682 temp9 = true;
46683 }
46684 }
46685 {
46686 PyThreadState* __tstate = wxPyBeginAllowThreads();
46687 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46688 wxPyEndAllowThreads(__tstate);
46689 if (PyErr_Occurred()) SWIG_fail;
46690 }
46691 {
46692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46693 }
46694 {
46695 if (temp4)
46696 delete arg4;
46697 }
46698 {
46699 if (temp9)
46700 delete arg9;
46701 }
46702 return resultobj;
46703 fail:
46704 {
46705 if (temp4)
46706 delete arg4;
46707 }
46708 {
46709 if (temp9)
46710 delete arg9;
46711 }
46712 return NULL;
46713 }
46714
46715
46716 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46717 PyObject *resultobj = 0;
46718 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46719 wxMenu *arg2 = (wxMenu *) 0 ;
46720 void *argp1 = 0 ;
46721 int res1 = 0 ;
46722 void *argp2 = 0 ;
46723 int res2 = 0 ;
46724 PyObject * obj0 = 0 ;
46725 PyObject * obj1 = 0 ;
46726 char * kwnames[] = {
46727 (char *) "self",(char *) "menu", NULL
46728 };
46729
46730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46732 if (!SWIG_IsOK(res1)) {
46733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46734 }
46735 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46737 if (!SWIG_IsOK(res2)) {
46738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46739 }
46740 arg2 = reinterpret_cast< wxMenu * >(argp2);
46741 {
46742 PyThreadState* __tstate = wxPyBeginAllowThreads();
46743 (arg1)->SetMenu(arg2);
46744 wxPyEndAllowThreads(__tstate);
46745 if (PyErr_Occurred()) SWIG_fail;
46746 }
46747 resultobj = SWIG_Py_Void();
46748 return resultobj;
46749 fail:
46750 return NULL;
46751 }
46752
46753
46754 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46755 PyObject *resultobj = 0;
46756 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46757 wxMenu *result = 0 ;
46758 void *argp1 = 0 ;
46759 int res1 = 0 ;
46760 PyObject *swig_obj[1] ;
46761
46762 if (!args) SWIG_fail;
46763 swig_obj[0] = args;
46764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46765 if (!SWIG_IsOK(res1)) {
46766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46767 }
46768 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46769 {
46770 PyThreadState* __tstate = wxPyBeginAllowThreads();
46771 result = (wxMenu *)(arg1)->GetMenu();
46772 wxPyEndAllowThreads(__tstate);
46773 if (PyErr_Occurred()) SWIG_fail;
46774 }
46775 {
46776 resultobj = wxPyMake_wxObject(result, 0);
46777 }
46778 return resultobj;
46779 fail:
46780 return NULL;
46781 }
46782
46783
46784 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46785 PyObject *resultobj = 0;
46786 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46787 bool arg2 ;
46788 void *argp1 = 0 ;
46789 int res1 = 0 ;
46790 bool val2 ;
46791 int ecode2 = 0 ;
46792 PyObject * obj0 = 0 ;
46793 PyObject * obj1 = 0 ;
46794 char * kwnames[] = {
46795 (char *) "self",(char *) "show", NULL
46796 };
46797
46798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
46799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46800 if (!SWIG_IsOK(res1)) {
46801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46802 }
46803 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46804 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46805 if (!SWIG_IsOK(ecode2)) {
46806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
46807 }
46808 arg2 = static_cast< bool >(val2);
46809 {
46810 PyThreadState* __tstate = wxPyBeginAllowThreads();
46811 (arg1)->ShowSearchButton(arg2);
46812 wxPyEndAllowThreads(__tstate);
46813 if (PyErr_Occurred()) SWIG_fail;
46814 }
46815 resultobj = SWIG_Py_Void();
46816 return resultobj;
46817 fail:
46818 return NULL;
46819 }
46820
46821
46822 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46823 PyObject *resultobj = 0;
46824 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46825 bool result;
46826 void *argp1 = 0 ;
46827 int res1 = 0 ;
46828 PyObject *swig_obj[1] ;
46829
46830 if (!args) SWIG_fail;
46831 swig_obj[0] = args;
46832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46833 if (!SWIG_IsOK(res1)) {
46834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46835 }
46836 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46837 {
46838 PyThreadState* __tstate = wxPyBeginAllowThreads();
46839 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
46840 wxPyEndAllowThreads(__tstate);
46841 if (PyErr_Occurred()) SWIG_fail;
46842 }
46843 {
46844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46845 }
46846 return resultobj;
46847 fail:
46848 return NULL;
46849 }
46850
46851
46852 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46853 PyObject *resultobj = 0;
46854 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46855 bool arg2 ;
46856 void *argp1 = 0 ;
46857 int res1 = 0 ;
46858 bool val2 ;
46859 int ecode2 = 0 ;
46860 PyObject * obj0 = 0 ;
46861 PyObject * obj1 = 0 ;
46862 char * kwnames[] = {
46863 (char *) "self",(char *) "show", NULL
46864 };
46865
46866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
46867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46868 if (!SWIG_IsOK(res1)) {
46869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46870 }
46871 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46872 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46873 if (!SWIG_IsOK(ecode2)) {
46874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
46875 }
46876 arg2 = static_cast< bool >(val2);
46877 {
46878 PyThreadState* __tstate = wxPyBeginAllowThreads();
46879 (arg1)->ShowCancelButton(arg2);
46880 wxPyEndAllowThreads(__tstate);
46881 if (PyErr_Occurred()) SWIG_fail;
46882 }
46883 resultobj = SWIG_Py_Void();
46884 return resultobj;
46885 fail:
46886 return NULL;
46887 }
46888
46889
46890 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46891 PyObject *resultobj = 0;
46892 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46893 bool result;
46894 void *argp1 = 0 ;
46895 int res1 = 0 ;
46896 PyObject *swig_obj[1] ;
46897
46898 if (!args) SWIG_fail;
46899 swig_obj[0] = args;
46900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46901 if (!SWIG_IsOK(res1)) {
46902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46903 }
46904 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46905 {
46906 PyThreadState* __tstate = wxPyBeginAllowThreads();
46907 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
46908 wxPyEndAllowThreads(__tstate);
46909 if (PyErr_Occurred()) SWIG_fail;
46910 }
46911 {
46912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46913 }
46914 return resultobj;
46915 fail:
46916 return NULL;
46917 }
46918
46919
46920 SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46921 PyObject *resultobj = 0;
46922 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46923 wxString *arg2 = 0 ;
46924 void *argp1 = 0 ;
46925 int res1 = 0 ;
46926 bool temp2 = false ;
46927 PyObject * obj0 = 0 ;
46928 PyObject * obj1 = 0 ;
46929 char * kwnames[] = {
46930 (char *) "self",(char *) "text", NULL
46931 };
46932
46933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail;
46934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46935 if (!SWIG_IsOK(res1)) {
46936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46937 }
46938 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46939 {
46940 arg2 = wxString_in_helper(obj1);
46941 if (arg2 == NULL) SWIG_fail;
46942 temp2 = true;
46943 }
46944 {
46945 PyThreadState* __tstate = wxPyBeginAllowThreads();
46946 (arg1)->SetDescriptiveText((wxString const &)*arg2);
46947 wxPyEndAllowThreads(__tstate);
46948 if (PyErr_Occurred()) SWIG_fail;
46949 }
46950 resultobj = SWIG_Py_Void();
46951 {
46952 if (temp2)
46953 delete arg2;
46954 }
46955 return resultobj;
46956 fail:
46957 {
46958 if (temp2)
46959 delete arg2;
46960 }
46961 return NULL;
46962 }
46963
46964
46965 SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46966 PyObject *resultobj = 0;
46967 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46968 wxString result;
46969 void *argp1 = 0 ;
46970 int res1 = 0 ;
46971 PyObject *swig_obj[1] ;
46972
46973 if (!args) SWIG_fail;
46974 swig_obj[0] = args;
46975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46976 if (!SWIG_IsOK(res1)) {
46977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46978 }
46979 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46980 {
46981 PyThreadState* __tstate = wxPyBeginAllowThreads();
46982 result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText();
46983 wxPyEndAllowThreads(__tstate);
46984 if (PyErr_Occurred()) SWIG_fail;
46985 }
46986 {
46987 #if wxUSE_UNICODE
46988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
46989 #else
46990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
46991 #endif
46992 }
46993 return resultobj;
46994 fail:
46995 return NULL;
46996 }
46997
46998
46999 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47000 PyObject *resultobj = 0;
47001 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47002 wxBitmap *arg2 = 0 ;
47003 void *argp1 = 0 ;
47004 int res1 = 0 ;
47005 void *argp2 = 0 ;
47006 int res2 = 0 ;
47007 PyObject * obj0 = 0 ;
47008 PyObject * obj1 = 0 ;
47009 char * kwnames[] = {
47010 (char *) "self",(char *) "bitmap", NULL
47011 };
47012
47013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47015 if (!SWIG_IsOK(res1)) {
47016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47017 }
47018 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47019 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47020 if (!SWIG_IsOK(res2)) {
47021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47022 }
47023 if (!argp2) {
47024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47025 }
47026 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47027 {
47028 PyThreadState* __tstate = wxPyBeginAllowThreads();
47029 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
47030 wxPyEndAllowThreads(__tstate);
47031 if (PyErr_Occurred()) SWIG_fail;
47032 }
47033 resultobj = SWIG_Py_Void();
47034 return resultobj;
47035 fail:
47036 return NULL;
47037 }
47038
47039
47040 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47041 PyObject *resultobj = 0;
47042 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47043 wxBitmap *arg2 = 0 ;
47044 void *argp1 = 0 ;
47045 int res1 = 0 ;
47046 void *argp2 = 0 ;
47047 int res2 = 0 ;
47048 PyObject * obj0 = 0 ;
47049 PyObject * obj1 = 0 ;
47050 char * kwnames[] = {
47051 (char *) "self",(char *) "bitmap", NULL
47052 };
47053
47054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47056 if (!SWIG_IsOK(res1)) {
47057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47058 }
47059 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47061 if (!SWIG_IsOK(res2)) {
47062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47063 }
47064 if (!argp2) {
47065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47066 }
47067 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47068 {
47069 PyThreadState* __tstate = wxPyBeginAllowThreads();
47070 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
47071 wxPyEndAllowThreads(__tstate);
47072 if (PyErr_Occurred()) SWIG_fail;
47073 }
47074 resultobj = SWIG_Py_Void();
47075 return resultobj;
47076 fail:
47077 return NULL;
47078 }
47079
47080
47081 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47082 PyObject *resultobj = 0;
47083 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47084 wxBitmap *arg2 = 0 ;
47085 void *argp1 = 0 ;
47086 int res1 = 0 ;
47087 void *argp2 = 0 ;
47088 int res2 = 0 ;
47089 PyObject * obj0 = 0 ;
47090 PyObject * obj1 = 0 ;
47091 char * kwnames[] = {
47092 (char *) "self",(char *) "bitmap", NULL
47093 };
47094
47095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47097 if (!SWIG_IsOK(res1)) {
47098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47099 }
47100 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47102 if (!SWIG_IsOK(res2)) {
47103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47104 }
47105 if (!argp2) {
47106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47107 }
47108 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47109 {
47110 PyThreadState* __tstate = wxPyBeginAllowThreads();
47111 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
47112 wxPyEndAllowThreads(__tstate);
47113 if (PyErr_Occurred()) SWIG_fail;
47114 }
47115 resultobj = SWIG_Py_Void();
47116 return resultobj;
47117 fail:
47118 return NULL;
47119 }
47120
47121
47122 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47123 PyObject *obj;
47124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47125 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47126 return SWIG_Py_Void();
47127 }
47128
47129 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47130 return SWIG_Python_InitShadowInstance(args);
47131 }
47132
47133 static PyMethodDef SwigMethods[] = {
47134 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47136 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47137 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47138 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47139 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47141 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47142 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47144 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47145 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47146 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47147 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47148 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47149 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47150 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47151 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47153 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47157 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47158 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47159 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47160 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47162 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47163 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47164 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47165 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47167 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47168 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47169 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47170 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47172 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47173 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47175 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47176 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47177 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47179 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47180 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47181 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47182 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47183 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47184 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47185 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47186 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47187 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47188 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47189 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47190 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47191 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47192 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47193 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
47194 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47195 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47197 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47198 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47200 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47201 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47202 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47203 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47204 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47205 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47206 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47207 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47208 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47209 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47210 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47211 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47213 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47214 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47215 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47216 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47217 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
47218 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
47219 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47220 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47221 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47222 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47224 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47225 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47226 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47227 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47229 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47231 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47232 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47233 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47235 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47237 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47238 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47240 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47241 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47243 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47245 { (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
47246 { (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47249 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47250 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47251 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47252 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47253 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47255 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47256 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47258 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47259 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47260 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47261 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47262 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47263 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47264 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47265 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47266 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47268 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47270 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47273 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47276 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47277 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47278 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47279 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47280 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47284 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47285 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47287 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
47291 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47292 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47293 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47294 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47295 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47296 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47298 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47299 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47301 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47306 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47307 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47308 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47309 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47310 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47311 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47312 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47313 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47314 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47315 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47316 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47317 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47318 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47319 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47320 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47321 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47322 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47323 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47324 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47325 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47326 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47328 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47329 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47330 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47331 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47332 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
47333 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47334 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47337 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47338 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47339 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47340 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47341 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47342 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47343 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47344 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47346 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47347 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47348 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47349 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
47350 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47353 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47354 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47356 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47358 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47359 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47361 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47362 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47365 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47366 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47367 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47368 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47369 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47370 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47371 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47372 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47373 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47374 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47376 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47377 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47378 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47379 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47380 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
47383 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47387 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47388 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47389 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47390 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47391 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47392 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47393 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47394 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47396 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47398 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47399 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47400 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47401 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47402 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47405 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47406 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47408 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47410 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47411 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47412 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47414 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47417 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47419 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47420 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47422 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47423 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47424 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47425 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47428 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47429 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47431 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47432 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47433 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47434 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47435 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47437 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47438 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47440 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47443 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47444 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47446 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47447 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47449 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47450 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47452 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47454 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47455 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47462 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47463 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47465 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47467 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47470 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47471 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47472 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47473 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47474 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47475 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47476 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47478 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47479 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47481 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47484 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47485 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47487 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47489 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47490 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47492 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47493 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47494 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47495 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47496 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47497 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47498 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47500 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47503 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47505 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47506 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47507 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47509 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47510 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47515 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47520 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47522 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47523 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47524 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47526 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47527 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47528 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47529 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47530 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47531 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47534 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47536 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47538 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47539 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47540 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47542 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47544 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47545 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47547 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47548 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47549 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47550 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47551 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47552 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47554 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47555 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47556 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47557 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47559 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47560 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47562 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47564 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47565 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47566 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47567 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47568 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47569 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47571 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47572 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47573 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47574 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47575 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47577 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47578 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47580 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47581 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47588 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47589 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47590 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47592 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47593 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47595 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47597 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47598 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47599 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47600 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47601 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47602 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47603 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47604 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47605 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47606 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47607 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47608 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47609 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47610 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47611 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47612 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47613 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47614 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47615 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47616 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47617 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47618 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47619 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47620 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47621 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47622 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47623 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47625 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47626 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47629 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47630 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47631 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47632 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47633 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47634 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47636 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47637 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47640 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47641 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47643 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47646 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47647 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47649 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47650 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47651 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47652 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47654 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47656 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47657 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47659 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47660 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47661 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47663 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47664 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47665 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47666 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47667 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47668 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47669 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47670 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47671 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47672 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47673 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47674 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47675 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47676 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47677 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47678 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47679 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47680 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47681 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47682 { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47683 { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47684 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47685 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47686 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47687 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47688 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47689 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47690 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47691 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47692 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47693 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47694 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47695 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47696 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47697 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47698 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47699 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47700 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47701 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47702 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47703 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47704 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47705 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47706 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47707 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47708 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47710 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47711 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47715 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47716 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47717 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47718 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47720 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47721 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47722 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47723 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47724 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47725 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47726 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47727 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47728 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47729 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47730 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47731 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47732 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47733 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47734 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47735 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47736 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47737 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47738 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47739 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47740 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47741 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47742 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47743 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47744 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47745 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47746 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47747 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47748 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47749 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47750 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47751 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47752 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47753 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47754 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47755 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47756 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47757 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47758 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47759 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47760 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47761 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47762 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47763 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47764 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47765 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47766 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47767 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47768 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47769 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47770 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47771 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47772 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47773 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47774 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47775 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47776 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47777 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47778 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47779 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47780 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47781 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47782 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47783 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47784 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47785 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47786 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47787 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47788 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47789 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47790 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47791 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47792 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47793 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47794 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47795 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47796 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47797 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47798 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47799 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47800 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47801 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47802 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47803 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47804 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47805 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47806 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47807 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47808 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47809 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47810 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47811 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47812 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47813 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47814 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47815 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47816 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47817 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47818 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47819 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47820 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47821 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47822 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47823 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47824 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47825 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47826 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47827 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47828 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47829 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47830 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47831 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47832 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47833 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47834 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47835 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47836 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47837 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47839 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47840 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47841 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47842 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47843 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47844 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47846 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47847 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47848 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47849 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47850 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47851 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47854 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47855 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47856 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47857 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47859 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47860 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47862 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47863 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47864 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47865 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47866 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47867 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47868 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47869 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47870 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47871 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47872 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47873 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47874 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47875 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47876 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47877 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47878 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47879 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47880 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47881 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47882 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47883 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47884 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47885 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47886 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47887 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47888 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47889 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47890 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47891 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47892 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47893 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47894 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47895 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47896 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47897 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47898 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47899 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47900 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47901 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47902 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47903 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47904 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47905 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47906 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47907 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47908 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47909 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47910 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47911 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47912 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47913 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47914 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47915 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47916 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47917 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47918 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47919 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47920 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47921 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47922 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47923 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47924 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47925 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47926 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47927 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47928 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47929 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47930 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47931 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47932 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47933 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47934 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47935 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47936 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47937 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47938 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47939 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47940 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47941 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47942 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47943 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
47944 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47945 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47946 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47947 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47948 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47949 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47950 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47951 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47952 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47953 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47954 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47955 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47956 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47957 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47958 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47959 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47960 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47961 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47962 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47963 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47964 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47965 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47966 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47967 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47968 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47969 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47970 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
47971 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47972 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47973 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47974 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47975 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47976 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47977 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47978 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47979 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47980 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47981 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47982 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47983 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47984 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47985 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47986 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47987 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47988 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47989 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47990 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47991 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47992 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47993 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47994 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47995 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47996 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47997 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47998 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47999 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48000 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
48001 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
48002 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
48003 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
48004 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
48005 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
48006 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
48007 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
48008 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
48009 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
48010 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
48011 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
48012 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
48013 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
48014 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48015 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
48016 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48017 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
48019 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
48020 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
48021 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
48022 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
48023 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
48024 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48025 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
48026 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
48027 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
48028 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
48029 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
48030 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
48031 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
48032 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
48033 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
48034 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
48035 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
48036 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
48037 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48038 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
48039 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
48040 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
48041 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
48042 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
48043 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
48044 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
48045 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
48046 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
48047 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
48048 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48049 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
48050 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48051 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
48052 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
48053 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
48054 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
48055 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
48056 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
48057 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
48058 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
48059 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
48060 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48061 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48062 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
48063 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48064 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
48065 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48066 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
48067 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
48068 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
48069 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
48070 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
48071 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
48072 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
48073 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
48074 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
48076 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
48077 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
48079 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
48080 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
48081 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
48082 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
48083 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
48084 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
48085 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48086 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48087 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48088 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
48089 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
48090 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48091 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
48092 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48093 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
48094 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
48095 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
48096 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
48097 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
48098 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
48099 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
48100 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48101 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
48102 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48103 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
48104 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
48105 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
48106 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
48107 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
48108 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
48109 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
48110 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48111 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
48112 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
48113 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
48114 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
48115 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48116 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
48117 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48118 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
48119 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
48120 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
48121 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
48122 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
48123 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48124 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
48125 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48126 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
48127 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48128 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48129 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48130 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48131 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48132 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48133 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48134 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48135 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48136 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48137 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48138 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48139 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48140 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48141 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48142 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48143 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48144 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48145 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48146 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48147 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48148 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48149 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48150 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48151 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48152 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48153 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
48154 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48155 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48156 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48157 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48158 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48159 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48160 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48161 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48162 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
48163 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48164 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48165 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48166 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48167 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48168 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48169 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48170 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48171 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48172 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48173 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48174 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48175 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48176 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48177 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48178 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48179 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48180 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48181 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48182 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48183 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
48184 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48185 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48186 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48187 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48188 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48189 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48190 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48191 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48192 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48193 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48194 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48195 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48196 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48197 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48198 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
48199 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48200 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48201 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48202 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48203 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
48204 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48205 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48206 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48207 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
48208 { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL},
48209 { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL},
48210 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48211 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48212 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48213 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48214 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
48215 { NULL, NULL, 0, NULL }
48216 };
48217
48218
48219 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48220
48221 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48222 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48223 }
48224 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48225 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48226 }
48227 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48228 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48229 }
48230 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48231 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48232 }
48233 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48234 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48235 }
48236 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48237 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48238 }
48239 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48240 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48241 }
48242 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48243 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48244 }
48245 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48246 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48247 }
48248 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48249 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48250 }
48251 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48252 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48253 }
48254 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48255 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48256 }
48257 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48258 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48259 }
48260 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48261 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48262 }
48263 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48264 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48265 }
48266 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48267 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48268 }
48269 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48270 return (void *)((wxEvent *) ((wxPyEvent *) x));
48271 }
48272 static void *_p_wxListEventTo_p_wxEvent(void *x) {
48273 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48274 }
48275 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48276 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48277 }
48278 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48279 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48280 }
48281 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48282 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48283 }
48284 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48285 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48286 }
48287 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48288 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48289 }
48290 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48291 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48292 }
48293 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48294 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48295 }
48296 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48297 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48298 }
48299 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48300 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48301 }
48302 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48303 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48304 }
48305 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48306 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48307 }
48308 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48309 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48310 }
48311 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48312 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48313 }
48314 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48315 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48316 }
48317 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48318 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48319 }
48320 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48321 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48322 }
48323 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48324 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48325 }
48326 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48327 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48328 }
48329 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48330 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48331 }
48332 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48333 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48334 }
48335 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48336 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48337 }
48338 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48339 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48340 }
48341 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48342 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48343 }
48344 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48345 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48346 }
48347 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48348 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48349 }
48350 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48351 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48352 }
48353 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48354 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48355 }
48356 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48357 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48358 }
48359 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48360 return (void *)((wxEvent *) ((wxShowEvent *) x));
48361 }
48362 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48363 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48364 }
48365 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48366 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48367 }
48368 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48369 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48370 }
48371 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48372 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48373 }
48374 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48375 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48376 }
48377 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48378 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48379 }
48380 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48381 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48382 }
48383 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48384 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48385 }
48386 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48387 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48388 }
48389 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48390 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48391 }
48392 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48393 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48394 }
48395 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48396 return (void *)((wxItemContainer *) ((wxComboBox *) x));
48397 }
48398 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48399 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48400 }
48401 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48402 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48403 }
48404 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48405 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48406 }
48407 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48408 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48409 }
48410 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48411 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48412 }
48413 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48414 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48415 }
48416 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48417 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48418 }
48419 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48420 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48421 }
48422 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48423 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48424 }
48425 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48426 return (void *)((wxControl *) ((wxPickerBase *) x));
48427 }
48428 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48429 return (void *)((wxControl *) ((wxToggleButton *) x));
48430 }
48431 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48432 return (void *)((wxControl *) ((wxRadioButton *) x));
48433 }
48434 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48435 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48436 }
48437 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48438 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48439 }
48440 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48441 return (void *)((wxControl *) ((wxToolBarBase *) x));
48442 }
48443 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48444 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48445 }
48446 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48447 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48448 }
48449 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48450 return (void *)((wxControl *) ((wxComboBox *) x));
48451 }
48452 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48453 return (void *)((wxControl *) ((wxPyControl *) x));
48454 }
48455 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48456 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48457 }
48458 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48459 return (void *)((wxControl *) ((wxScrollBar *) x));
48460 }
48461 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48462 return (void *)((wxControl *) ((wxControlWithItems *) x));
48463 }
48464 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48465 return (void *)((wxControl *) ((wxGauge *) x));
48466 }
48467 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48468 return (void *)((wxControl *) ((wxStaticLine *) x));
48469 }
48470 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48471 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48472 }
48473 static void *_p_wxListbookTo_p_wxControl(void *x) {
48474 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48475 }
48476 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48477 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48478 }
48479 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48480 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48481 }
48482 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48483 return (void *)((wxControl *) ((wxCheckBox *) x));
48484 }
48485 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48486 return (void *)((wxControl *) ((wxRadioBox *) x));
48487 }
48488 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48489 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48490 }
48491 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48492 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48493 }
48494 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48495 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48496 }
48497 static void *_p_wxListViewTo_p_wxControl(void *x) {
48498 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48499 }
48500 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48501 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48502 }
48503 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48504 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48505 }
48506 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48507 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48508 }
48509 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48510 return (void *)((wxControl *) ((wxStaticText *) x));
48511 }
48512 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48513 return (void *)((wxControl *) ((wxStaticBox *) x));
48514 }
48515 static void *_p_wxSliderTo_p_wxControl(void *x) {
48516 return (void *)((wxControl *) ((wxSlider *) x));
48517 }
48518 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48519 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48520 }
48521 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48522 return (void *)((wxControl *) ((wxSpinButton *) x));
48523 }
48524 static void *_p_wxButtonTo_p_wxControl(void *x) {
48525 return (void *)((wxControl *) ((wxButton *) x));
48526 }
48527 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48528 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48529 }
48530 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48531 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48532 }
48533 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48534 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48535 }
48536 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48537 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48538 }
48539 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48540 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48541 }
48542 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48543 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48544 }
48545 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48546 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48547 }
48548 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48549 return (void *)((wxControl *) ((wxTextCtrl *) x));
48550 }
48551 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48552 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48553 }
48554 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48555 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48556 }
48557 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48558 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48559 }
48560 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48561 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48562 }
48563 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48564 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48565 }
48566 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48567 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48568 }
48569 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48570 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48571 }
48572 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48573 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48574 }
48575 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48576 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48577 }
48578 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48579 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48580 }
48581 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48582 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48583 }
48584 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48585 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48586 }
48587 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48588 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48589 }
48590 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48591 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48592 }
48593 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48594 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48595 }
48596 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48597 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48598 }
48599 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48600 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48601 }
48602 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48604 }
48605 static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) {
48606 return (void *)((wxEvtHandler *) ((wxEventBlocker *) x));
48607 }
48608 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48609 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48610 }
48611 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48612 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48613 }
48614 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48615 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48616 }
48617 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48618 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48619 }
48620 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48621 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48622 }
48623 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48625 }
48626 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48627 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48628 }
48629 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48630 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48631 }
48632 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48634 }
48635 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48637 }
48638 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48639 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48640 }
48641 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48642 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48643 }
48644 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48645 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48646 }
48647 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48648 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48649 }
48650 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48652 }
48653 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48654 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48655 }
48656 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48657 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48658 }
48659 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48660 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48661 }
48662 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48663 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48664 }
48665 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48666 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48667 }
48668 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48669 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48670 }
48671 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48672 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48673 }
48674 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48676 }
48677 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48678 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48679 }
48680 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48681 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48682 }
48683 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48685 }
48686 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48687 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48688 }
48689 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48690 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48691 }
48692 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48693 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48694 }
48695 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48696 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48697 }
48698 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48699 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48700 }
48701 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48702 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48703 }
48704 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48705 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48706 }
48707 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48708 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48709 }
48710 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48711 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48712 }
48713 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48714 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48715 }
48716 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48717 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48718 }
48719 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48720 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48721 }
48722 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48723 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48724 }
48725 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48726 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48727 }
48728 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48729 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48730 }
48731 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48732 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48733 }
48734 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48735 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48736 }
48737 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48738 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48739 }
48740 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48741 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48742 }
48743 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48744 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48745 }
48746 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48747 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48748 }
48749 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48750 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48751 }
48752 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48753 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48754 }
48755 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48756 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48757 }
48758 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48759 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48760 }
48761 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48762 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48763 }
48764 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48765 return (void *)((wxButton *) ((wxBitmapButton *) x));
48766 }
48767 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48768 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48769 }
48770 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48771 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48772 }
48773 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48774 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48775 }
48776 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48777 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48778 }
48779 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48781 }
48782 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
48783 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
48784 }
48785 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48786 return (void *)((wxObject *) ((wxSizerItem *) x));
48787 }
48788 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48789 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48790 }
48791 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48792 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48793 }
48794 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48795 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48796 }
48797 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48798 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48799 }
48800 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48801 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48802 }
48803 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48804 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48805 }
48806 static void *_p_wxSizerTo_p_wxObject(void *x) {
48807 return (void *)((wxObject *) ((wxSizer *) x));
48808 }
48809 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48810 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48811 }
48812 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48813 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48814 }
48815 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48816 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48817 }
48818 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48819 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48820 }
48821 static void *_p_wxEventTo_p_wxObject(void *x) {
48822 return (void *)((wxObject *) ((wxEvent *) x));
48823 }
48824 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48825 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48826 }
48827 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48828 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48829 }
48830 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48831 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48832 }
48833 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48834 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48835 }
48836 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48837 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48838 }
48839 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48841 }
48842 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48843 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48844 }
48845 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48847 }
48848 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48849 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48850 }
48851 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48852 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48853 }
48854 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48855 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48856 }
48857 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48858 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48859 }
48860 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48861 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48862 }
48863 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48864 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48865 }
48866 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48867 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48868 }
48869 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48870 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48871 }
48872 static void *_p_wxControlTo_p_wxObject(void *x) {
48873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48874 }
48875 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48877 }
48878 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48880 }
48881 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48882 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48883 }
48884 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48885 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48886 }
48887 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48888 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48889 }
48890 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48891 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48892 }
48893 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48894 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48895 }
48896 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48897 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48898 }
48899 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48900 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48901 }
48902 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48904 }
48905 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48906 return (void *)((wxObject *) ((wxFSFile *) x));
48907 }
48908 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48909 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48910 }
48911 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48912 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48913 }
48914 static void *_p_wxListViewTo_p_wxObject(void *x) {
48915 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48916 }
48917 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48918 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48919 }
48920 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48921 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48922 }
48923 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48924 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48925 }
48926 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48927 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48928 }
48929 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48930 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48931 }
48932 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48933 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48934 }
48935 static void *_p_wxListbookTo_p_wxObject(void *x) {
48936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48937 }
48938 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48939 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48940 }
48941 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48943 }
48944 static void *_p_wxSliderTo_p_wxObject(void *x) {
48945 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48946 }
48947 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48948 return (void *)((wxObject *) ((wxMenuItem *) x));
48949 }
48950 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48951 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48952 }
48953 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48954 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48955 }
48956 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48957 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48958 }
48959 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48960 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48961 }
48962 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48963 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48964 }
48965 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48966 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48967 }
48968 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48969 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48970 }
48971 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48972 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48973 }
48974 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48975 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48976 }
48977 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48979 }
48980 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48981 return (void *)((wxObject *) ((wxContextHelp *) x));
48982 }
48983 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48984 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48985 }
48986 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48988 }
48989 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48990 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48991 }
48992 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48993 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48994 }
48995 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48996 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48997 }
48998 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48999 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
49000 }
49001 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
49002 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
49003 }
49004 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
49005 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
49006 }
49007 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
49008 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
49009 }
49010 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
49011 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
49012 }
49013 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
49014 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
49015 }
49016 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
49017 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
49018 }
49019 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
49020 return (void *)((wxObject *) ((wxImageHandler *) x));
49021 }
49022 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
49023 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
49024 }
49025 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
49026 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
49027 }
49028 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
49029 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
49030 }
49031 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
49032 return (void *)((wxObject *) ((wxEvtHandler *) x));
49033 }
49034 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
49035 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
49036 }
49037 static void *_p_wxListEventTo_p_wxObject(void *x) {
49038 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
49039 }
49040 static void *_p_wxListBoxTo_p_wxObject(void *x) {
49041 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49042 }
49043 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
49044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49045 }
49046 static void *_p_wxButtonTo_p_wxObject(void *x) {
49047 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
49048 }
49049 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
49050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
49051 }
49052 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
49053 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
49054 }
49055 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
49056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49057 }
49058 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
49059 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
49060 }
49061 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
49062 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
49063 }
49064 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
49065 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
49066 }
49067 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
49068 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
49069 }
49070 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
49071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
49072 }
49073 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
49074 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
49075 }
49076 static void *_p_wxListItemTo_p_wxObject(void *x) {
49077 return (void *)((wxObject *) ((wxListItem *) x));
49078 }
49079 static void *_p_wxImageTo_p_wxObject(void *x) {
49080 return (void *)((wxObject *) ((wxImage *) x));
49081 }
49082 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
49083 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
49084 }
49085 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
49086 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
49087 }
49088 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
49089 return (void *)((wxObject *) ((wxGenericDragImage *) x));
49090 }
49091 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
49092 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
49093 }
49094 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
49095 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49096 }
49097 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
49098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49099 }
49100 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
49101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49102 }
49103 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
49104 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49105 }
49106 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
49107 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49108 }
49109 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
49110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49111 }
49112 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
49113 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
49114 }
49115 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
49116 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
49117 }
49118 static void *_p_wxWindowTo_p_wxObject(void *x) {
49119 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
49120 }
49121 static void *_p_wxMenuTo_p_wxObject(void *x) {
49122 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
49123 }
49124 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
49125 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
49126 }
49127 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
49128 return (void *)((wxObject *) ((wxFileSystem *) x));
49129 }
49130 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49131 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49132 }
49133 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49134 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49135 }
49136 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49137 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49138 }
49139 static void *_p_wxPyAppTo_p_wxObject(void *x) {
49140 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49141 }
49142 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49143 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49144 }
49145 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49146 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49147 }
49148 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49149 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49150 }
49151 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49152 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49153 }
49154 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49155 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49156 }
49157 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49158 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49159 }
49160 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49161 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49162 }
49163 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49164 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49165 }
49166 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49167 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49168 }
49169 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49170 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49171 }
49172 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49173 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49174 }
49175 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49176 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49177 }
49178 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49180 }
49181 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49183 }
49184 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49185 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49186 }
49187 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49188 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49189 }
49190 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49192 }
49193 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49195 }
49196 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49197 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49198 }
49199 static void *_p_wxToolBarTo_p_wxObject(void *x) {
49200 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49201 }
49202 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49203 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49204 }
49205 static void *_p_wxValidatorTo_p_wxObject(void *x) {
49206 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49207 }
49208 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49209 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49210 }
49211 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49212 return (void *)((wxWindow *) ((wxMenuBar *) x));
49213 }
49214 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49215 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49216 }
49217 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49218 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49219 }
49220 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49221 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49222 }
49223 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49224 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49225 }
49226 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49227 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49228 }
49229 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49230 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49231 }
49232 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49233 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49234 }
49235 static void *_p_wxControlTo_p_wxWindow(void *x) {
49236 return (void *)((wxWindow *) ((wxControl *) x));
49237 }
49238 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49239 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49240 }
49241 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49242 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49243 }
49244 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49245 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
49246 }
49247 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49248 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49249 }
49250 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49251 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49252 }
49253 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49254 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49255 }
49256 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49257 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49258 }
49259 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49260 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49261 }
49262 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49263 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49264 }
49265 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49266 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49267 }
49268 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49269 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49270 }
49271 static void *_p_wxListbookTo_p_wxWindow(void *x) {
49272 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49273 }
49274 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49275 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49276 }
49277 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49278 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49279 }
49280 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49281 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49282 }
49283 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49284 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49285 }
49286 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49287 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49288 }
49289 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49290 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49291 }
49292 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49293 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49294 }
49295 static void *_p_wxListViewTo_p_wxWindow(void *x) {
49296 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49297 }
49298 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49299 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49300 }
49301 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49302 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49303 }
49304 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49305 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49306 }
49307 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49308 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49309 }
49310 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49311 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49312 }
49313 static void *_p_wxSliderTo_p_wxWindow(void *x) {
49314 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49315 }
49316 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49317 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49318 }
49319 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49320 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49321 }
49322 static void *_p_wxButtonTo_p_wxWindow(void *x) {
49323 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49324 }
49325 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49326 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49327 }
49328 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49329 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49330 }
49331 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49332 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49333 }
49334 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49335 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49336 }
49337 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49338 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49339 }
49340 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49341 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49342 }
49343 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49344 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49345 }
49346 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49347 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49348 }
49349 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49350 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49351 }
49352 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49353 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49354 }
49355 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49356 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49357 }
49358 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49359 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49360 }
49361 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49362 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49363 }
49364 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49365 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49366 }
49367 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49368 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49369 }
49370 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49371 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49372 }
49373 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49374 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49375 }
49376 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49377 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49378 }
49379 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49380 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49381 }
49382 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49383 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49384 }
49385 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49386 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49387 }
49388 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49389 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49390 }
49391 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49392 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49393 }
49394 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49395 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49396 }
49397 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49398 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49399 }
49400 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49401 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49402 }
49403 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49404 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49405 }
49406 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49407 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49408 }
49409 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49410 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49411 }
49412 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49413 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49414 }
49415 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49416 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49417 }
49418 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49419 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49420 }
49421 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49422 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49423 }
49424 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49425 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49426 }
49427 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49428 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49429 }
49430 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49431 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49432 }
49433 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49434 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49435 }
49436 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49437 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49438 }
49439 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49440 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49441 }
49442 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49443 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49444 }
49445 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49446 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49447 }
49448 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49449 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49450 }
49451 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49452 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49453 }
49454 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49455 return (void *)((wxValidator *) ((wxPyValidator *) x));
49456 }
49457 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49458 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49459 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};
49460 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49461 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49462 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49463 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49464 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49465 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49466 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49467 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49468 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49469 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49470 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49471 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49472 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49473 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49474 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49475 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49476 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49477 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49478 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49479 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49480 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49481 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49482 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49483 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49484 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49485 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49486 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49487 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49488 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49489 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49490 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49491 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49492 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49493 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49494 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49495 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49496 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49497 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49498 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49499 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49500 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49501 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49502 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49503 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49504 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49505 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49506 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49507 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49508 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49509 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49510 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49511 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49512 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49513 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49514 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49515 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49516 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49517 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49518 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49519 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49520 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49521 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49522 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49523 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49524 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49525 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49526 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49527 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49528 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49529 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49530 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49531 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49532 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
49533 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49534 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49535 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49536 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49537 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49538 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49539 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49540 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49541 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49542 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49543 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49544 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49545 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49546 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49547 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49548 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49549 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49550 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49551 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49552 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49553 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49554 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49555 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49556 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49557 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49558 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49559 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49560 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49561 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49562 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49563 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49564 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49565 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49566 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49567 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49568 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49569 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49570 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49571 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49572 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49573 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49574 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49575 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49576 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49577 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49578 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49579 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49580 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49581 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49582 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49583 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49584 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49585 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49586 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49587 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49588 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49589 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49590 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49591 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49592 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49593 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49594 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49595 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49596 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49597 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49598 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49599 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49600 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49601 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49602 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49603 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49604 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49605 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49606 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49607 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49608 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49609 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49610 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49611 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49612 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49613 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49614 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49615 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49616 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49617 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49618 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49619 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49620 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49621 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49622 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49623 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49624 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49625 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49626 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49627 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49628 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49629 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49630 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49631 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49632 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49633 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49634 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49635 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49636 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49637
49638 static swig_type_info *swig_type_initial[] = {
49639 &_swigt__p_bool,
49640 &_swigt__p_char,
49641 &_swigt__p_form_ops_t,
49642 &_swigt__p_int,
49643 &_swigt__p_long,
49644 &_swigt__p_unsigned_char,
49645 &_swigt__p_unsigned_int,
49646 &_swigt__p_unsigned_long,
49647 &_swigt__p_void,
49648 &_swigt__p_wxANIHandler,
49649 &_swigt__p_wxAcceleratorTable,
49650 &_swigt__p_wxActivateEvent,
49651 &_swigt__p_wxArrayInt,
49652 &_swigt__p_wxArrayString,
49653 &_swigt__p_wxBMPHandler,
49654 &_swigt__p_wxBitmap,
49655 &_swigt__p_wxBitmapButton,
49656 &_swigt__p_wxBookCtrlBase,
49657 &_swigt__p_wxBookCtrlBaseEvent,
49658 &_swigt__p_wxBoxSizer,
49659 &_swigt__p_wxButton,
49660 &_swigt__p_wxCURHandler,
49661 &_swigt__p_wxCheckBox,
49662 &_swigt__p_wxCheckListBox,
49663 &_swigt__p_wxChildFocusEvent,
49664 &_swigt__p_wxChoice,
49665 &_swigt__p_wxChoicebook,
49666 &_swigt__p_wxChoicebookEvent,
49667 &_swigt__p_wxClipboardTextEvent,
49668 &_swigt__p_wxCloseEvent,
49669 &_swigt__p_wxCollapsiblePane,
49670 &_swigt__p_wxCollapsiblePaneEvent,
49671 &_swigt__p_wxColour,
49672 &_swigt__p_wxColourPickerCtrl,
49673 &_swigt__p_wxColourPickerEvent,
49674 &_swigt__p_wxComboBox,
49675 &_swigt__p_wxCommandEvent,
49676 &_swigt__p_wxContextHelp,
49677 &_swigt__p_wxContextHelpButton,
49678 &_swigt__p_wxContextMenuEvent,
49679 &_swigt__p_wxControl,
49680 &_swigt__p_wxControlWithItems,
49681 &_swigt__p_wxCursor,
49682 &_swigt__p_wxDC,
49683 &_swigt__p_wxDateEvent,
49684 &_swigt__p_wxDatePickerCtrl,
49685 &_swigt__p_wxDateTime,
49686 &_swigt__p_wxDirFilterListCtrl,
49687 &_swigt__p_wxDirPickerCtrl,
49688 &_swigt__p_wxDisplayChangedEvent,
49689 &_swigt__p_wxDropFilesEvent,
49690 &_swigt__p_wxDuplexMode,
49691 &_swigt__p_wxEraseEvent,
49692 &_swigt__p_wxEvent,
49693 &_swigt__p_wxEventBlocker,
49694 &_swigt__p_wxEvtHandler,
49695 &_swigt__p_wxFSFile,
49696 &_swigt__p_wxFileDirPickerEvent,
49697 &_swigt__p_wxFilePickerCtrl,
49698 &_swigt__p_wxFileSystem,
49699 &_swigt__p_wxFlexGridSizer,
49700 &_swigt__p_wxFocusEvent,
49701 &_swigt__p_wxFont,
49702 &_swigt__p_wxFontPickerCtrl,
49703 &_swigt__p_wxFontPickerEvent,
49704 &_swigt__p_wxGBSizerItem,
49705 &_swigt__p_wxGIFHandler,
49706 &_swigt__p_wxGauge,
49707 &_swigt__p_wxGenericDirCtrl,
49708 &_swigt__p_wxGenericDragImage,
49709 &_swigt__p_wxGridBagSizer,
49710 &_swigt__p_wxGridSizer,
49711 &_swigt__p_wxHelpEvent,
49712 &_swigt__p_wxHelpProvider,
49713 &_swigt__p_wxHyperlinkCtrl,
49714 &_swigt__p_wxHyperlinkEvent,
49715 &_swigt__p_wxICOHandler,
49716 &_swigt__p_wxIcon,
49717 &_swigt__p_wxIconizeEvent,
49718 &_swigt__p_wxIdleEvent,
49719 &_swigt__p_wxImage,
49720 &_swigt__p_wxImageHandler,
49721 &_swigt__p_wxImageList,
49722 &_swigt__p_wxIndividualLayoutConstraint,
49723 &_swigt__p_wxInitDialogEvent,
49724 &_swigt__p_wxItemContainer,
49725 &_swigt__p_wxJPEGHandler,
49726 &_swigt__p_wxKeyEvent,
49727 &_swigt__p_wxLayoutConstraints,
49728 &_swigt__p_wxListBox,
49729 &_swigt__p_wxListEvent,
49730 &_swigt__p_wxListItem,
49731 &_swigt__p_wxListItemAttr,
49732 &_swigt__p_wxListView,
49733 &_swigt__p_wxListbook,
49734 &_swigt__p_wxListbookEvent,
49735 &_swigt__p_wxMaximizeEvent,
49736 &_swigt__p_wxMemoryDC,
49737 &_swigt__p_wxMenu,
49738 &_swigt__p_wxMenuBar,
49739 &_swigt__p_wxMenuEvent,
49740 &_swigt__p_wxMenuItem,
49741 &_swigt__p_wxMouseCaptureChangedEvent,
49742 &_swigt__p_wxMouseCaptureLostEvent,
49743 &_swigt__p_wxMouseEvent,
49744 &_swigt__p_wxMoveEvent,
49745 &_swigt__p_wxNavigationKeyEvent,
49746 &_swigt__p_wxNcPaintEvent,
49747 &_swigt__p_wxNotebook,
49748 &_swigt__p_wxNotebookEvent,
49749 &_swigt__p_wxNotifyEvent,
49750 &_swigt__p_wxObject,
49751 &_swigt__p_wxPCXHandler,
49752 &_swigt__p_wxPNGHandler,
49753 &_swigt__p_wxPNMHandler,
49754 &_swigt__p_wxPaintEvent,
49755 &_swigt__p_wxPaletteChangedEvent,
49756 &_swigt__p_wxPaperSize,
49757 &_swigt__p_wxPickerBase,
49758 &_swigt__p_wxPoint,
49759 &_swigt__p_wxPyApp,
49760 &_swigt__p_wxPyCommandEvent,
49761 &_swigt__p_wxPyControl,
49762 &_swigt__p_wxPyEvent,
49763 &_swigt__p_wxPyImageHandler,
49764 &_swigt__p_wxPyListCtrl,
49765 &_swigt__p_wxPySizer,
49766 &_swigt__p_wxPyTreeCtrl,
49767 &_swigt__p_wxPyTreeItemData,
49768 &_swigt__p_wxPyValidator,
49769 &_swigt__p_wxQueryNewPaletteEvent,
49770 &_swigt__p_wxRadioBox,
49771 &_swigt__p_wxRadioButton,
49772 &_swigt__p_wxRect,
49773 &_swigt__p_wxScrollBar,
49774 &_swigt__p_wxScrollEvent,
49775 &_swigt__p_wxScrollWinEvent,
49776 &_swigt__p_wxSearchCtrl,
49777 &_swigt__p_wxSetCursorEvent,
49778 &_swigt__p_wxShowEvent,
49779 &_swigt__p_wxSimpleHelpProvider,
49780 &_swigt__p_wxSize,
49781 &_swigt__p_wxSizeEvent,
49782 &_swigt__p_wxSizer,
49783 &_swigt__p_wxSizerItem,
49784 &_swigt__p_wxSlider,
49785 &_swigt__p_wxSpinButton,
49786 &_swigt__p_wxSpinCtrl,
49787 &_swigt__p_wxSpinEvent,
49788 &_swigt__p_wxStaticBitmap,
49789 &_swigt__p_wxStaticBox,
49790 &_swigt__p_wxStaticBoxSizer,
49791 &_swigt__p_wxStaticLine,
49792 &_swigt__p_wxStaticText,
49793 &_swigt__p_wxStdDialogButtonSizer,
49794 &_swigt__p_wxString,
49795 &_swigt__p_wxSysColourChangedEvent,
49796 &_swigt__p_wxTGAHandler,
49797 &_swigt__p_wxTIFFHandler,
49798 &_swigt__p_wxTextAttr,
49799 &_swigt__p_wxTextCtrl,
49800 &_swigt__p_wxTextUrlEvent,
49801 &_swigt__p_wxToggleButton,
49802 &_swigt__p_wxToolBar,
49803 &_swigt__p_wxToolBarBase,
49804 &_swigt__p_wxToolBarToolBase,
49805 &_swigt__p_wxToolbook,
49806 &_swigt__p_wxToolbookEvent,
49807 &_swigt__p_wxTreeEvent,
49808 &_swigt__p_wxTreeItemId,
49809 &_swigt__p_wxTreebook,
49810 &_swigt__p_wxTreebookEvent,
49811 &_swigt__p_wxUpdateUIEvent,
49812 &_swigt__p_wxValidator,
49813 &_swigt__p_wxVisualAttributes,
49814 &_swigt__p_wxWindow,
49815 &_swigt__p_wxWindowBase,
49816 &_swigt__p_wxWindowCreateEvent,
49817 &_swigt__p_wxWindowDestroyEvent,
49818 &_swigt__p_wxXPMHandler,
49819 };
49820
49821 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49822 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49823 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49824 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49825 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49826 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49827 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49828 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49829 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49830 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49831 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49832 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49833 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}};
49834 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}};
49835 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}};
49836 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}};
49837 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49838 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49839 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49840 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49841 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49842 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49843 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49844 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49845 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49846 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49847 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49848 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49849 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49850 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49851 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49852 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49853 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49854 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49855 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49856 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49857 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}};
49858 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49859 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49860 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}};
49861 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
49862 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49863 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49864 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49865 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49866 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49867 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49868 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49869 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49870 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49871 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49872 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49873 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49874 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49875 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49876 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49877 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49878 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49879 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49880 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49881 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49882 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49883 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49884 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49885 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49886 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49887 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49888 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49889 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49890 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49891 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49892 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49893 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49894 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}};
49895 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
49896 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49897 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49898 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49899 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_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_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_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}};
49900 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49901 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49902 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49903 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49904 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49905 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49906 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49907 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49908 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49909 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}};
49910 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49911 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49912 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49913 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49914 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}};
49915 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49916 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}};
49917 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49918 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49919 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49920 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49921 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49922 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49923 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49924 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49925 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49926 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49927 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49928 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}};
49929 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49930 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49931 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49932 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49933 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49934 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49935 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49936 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49937 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49938 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49939 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49940 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49941 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49942 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49943 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49944 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49945 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49946 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49947 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49948 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49949 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49950 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49951 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49952 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49953 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49954 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49955 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49956 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49957 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49958 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49959 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49960 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_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_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_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}};
49961 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49962 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}};
49963 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49964 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49965 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}};
49966 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49967 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49968 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49969 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49970 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49971 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49972 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49973 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49974 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49975 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49976 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49977 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49978 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49979 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49980 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49981 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49982 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49983 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49984 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49985 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}};
49986 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49987 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49988 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49989 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}};
49990 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49991 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49992 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49993 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49994 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49995 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49996 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49997 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}};
49998 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49999 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}};
50000 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
50001
50002 static swig_cast_info *swig_cast_initial[] = {
50003 _swigc__p_bool,
50004 _swigc__p_char,
50005 _swigc__p_form_ops_t,
50006 _swigc__p_int,
50007 _swigc__p_long,
50008 _swigc__p_unsigned_char,
50009 _swigc__p_unsigned_int,
50010 _swigc__p_unsigned_long,
50011 _swigc__p_void,
50012 _swigc__p_wxANIHandler,
50013 _swigc__p_wxAcceleratorTable,
50014 _swigc__p_wxActivateEvent,
50015 _swigc__p_wxArrayInt,
50016 _swigc__p_wxArrayString,
50017 _swigc__p_wxBMPHandler,
50018 _swigc__p_wxBitmap,
50019 _swigc__p_wxBitmapButton,
50020 _swigc__p_wxBookCtrlBase,
50021 _swigc__p_wxBookCtrlBaseEvent,
50022 _swigc__p_wxBoxSizer,
50023 _swigc__p_wxButton,
50024 _swigc__p_wxCURHandler,
50025 _swigc__p_wxCheckBox,
50026 _swigc__p_wxCheckListBox,
50027 _swigc__p_wxChildFocusEvent,
50028 _swigc__p_wxChoice,
50029 _swigc__p_wxChoicebook,
50030 _swigc__p_wxChoicebookEvent,
50031 _swigc__p_wxClipboardTextEvent,
50032 _swigc__p_wxCloseEvent,
50033 _swigc__p_wxCollapsiblePane,
50034 _swigc__p_wxCollapsiblePaneEvent,
50035 _swigc__p_wxColour,
50036 _swigc__p_wxColourPickerCtrl,
50037 _swigc__p_wxColourPickerEvent,
50038 _swigc__p_wxComboBox,
50039 _swigc__p_wxCommandEvent,
50040 _swigc__p_wxContextHelp,
50041 _swigc__p_wxContextHelpButton,
50042 _swigc__p_wxContextMenuEvent,
50043 _swigc__p_wxControl,
50044 _swigc__p_wxControlWithItems,
50045 _swigc__p_wxCursor,
50046 _swigc__p_wxDC,
50047 _swigc__p_wxDateEvent,
50048 _swigc__p_wxDatePickerCtrl,
50049 _swigc__p_wxDateTime,
50050 _swigc__p_wxDirFilterListCtrl,
50051 _swigc__p_wxDirPickerCtrl,
50052 _swigc__p_wxDisplayChangedEvent,
50053 _swigc__p_wxDropFilesEvent,
50054 _swigc__p_wxDuplexMode,
50055 _swigc__p_wxEraseEvent,
50056 _swigc__p_wxEvent,
50057 _swigc__p_wxEventBlocker,
50058 _swigc__p_wxEvtHandler,
50059 _swigc__p_wxFSFile,
50060 _swigc__p_wxFileDirPickerEvent,
50061 _swigc__p_wxFilePickerCtrl,
50062 _swigc__p_wxFileSystem,
50063 _swigc__p_wxFlexGridSizer,
50064 _swigc__p_wxFocusEvent,
50065 _swigc__p_wxFont,
50066 _swigc__p_wxFontPickerCtrl,
50067 _swigc__p_wxFontPickerEvent,
50068 _swigc__p_wxGBSizerItem,
50069 _swigc__p_wxGIFHandler,
50070 _swigc__p_wxGauge,
50071 _swigc__p_wxGenericDirCtrl,
50072 _swigc__p_wxGenericDragImage,
50073 _swigc__p_wxGridBagSizer,
50074 _swigc__p_wxGridSizer,
50075 _swigc__p_wxHelpEvent,
50076 _swigc__p_wxHelpProvider,
50077 _swigc__p_wxHyperlinkCtrl,
50078 _swigc__p_wxHyperlinkEvent,
50079 _swigc__p_wxICOHandler,
50080 _swigc__p_wxIcon,
50081 _swigc__p_wxIconizeEvent,
50082 _swigc__p_wxIdleEvent,
50083 _swigc__p_wxImage,
50084 _swigc__p_wxImageHandler,
50085 _swigc__p_wxImageList,
50086 _swigc__p_wxIndividualLayoutConstraint,
50087 _swigc__p_wxInitDialogEvent,
50088 _swigc__p_wxItemContainer,
50089 _swigc__p_wxJPEGHandler,
50090 _swigc__p_wxKeyEvent,
50091 _swigc__p_wxLayoutConstraints,
50092 _swigc__p_wxListBox,
50093 _swigc__p_wxListEvent,
50094 _swigc__p_wxListItem,
50095 _swigc__p_wxListItemAttr,
50096 _swigc__p_wxListView,
50097 _swigc__p_wxListbook,
50098 _swigc__p_wxListbookEvent,
50099 _swigc__p_wxMaximizeEvent,
50100 _swigc__p_wxMemoryDC,
50101 _swigc__p_wxMenu,
50102 _swigc__p_wxMenuBar,
50103 _swigc__p_wxMenuEvent,
50104 _swigc__p_wxMenuItem,
50105 _swigc__p_wxMouseCaptureChangedEvent,
50106 _swigc__p_wxMouseCaptureLostEvent,
50107 _swigc__p_wxMouseEvent,
50108 _swigc__p_wxMoveEvent,
50109 _swigc__p_wxNavigationKeyEvent,
50110 _swigc__p_wxNcPaintEvent,
50111 _swigc__p_wxNotebook,
50112 _swigc__p_wxNotebookEvent,
50113 _swigc__p_wxNotifyEvent,
50114 _swigc__p_wxObject,
50115 _swigc__p_wxPCXHandler,
50116 _swigc__p_wxPNGHandler,
50117 _swigc__p_wxPNMHandler,
50118 _swigc__p_wxPaintEvent,
50119 _swigc__p_wxPaletteChangedEvent,
50120 _swigc__p_wxPaperSize,
50121 _swigc__p_wxPickerBase,
50122 _swigc__p_wxPoint,
50123 _swigc__p_wxPyApp,
50124 _swigc__p_wxPyCommandEvent,
50125 _swigc__p_wxPyControl,
50126 _swigc__p_wxPyEvent,
50127 _swigc__p_wxPyImageHandler,
50128 _swigc__p_wxPyListCtrl,
50129 _swigc__p_wxPySizer,
50130 _swigc__p_wxPyTreeCtrl,
50131 _swigc__p_wxPyTreeItemData,
50132 _swigc__p_wxPyValidator,
50133 _swigc__p_wxQueryNewPaletteEvent,
50134 _swigc__p_wxRadioBox,
50135 _swigc__p_wxRadioButton,
50136 _swigc__p_wxRect,
50137 _swigc__p_wxScrollBar,
50138 _swigc__p_wxScrollEvent,
50139 _swigc__p_wxScrollWinEvent,
50140 _swigc__p_wxSearchCtrl,
50141 _swigc__p_wxSetCursorEvent,
50142 _swigc__p_wxShowEvent,
50143 _swigc__p_wxSimpleHelpProvider,
50144 _swigc__p_wxSize,
50145 _swigc__p_wxSizeEvent,
50146 _swigc__p_wxSizer,
50147 _swigc__p_wxSizerItem,
50148 _swigc__p_wxSlider,
50149 _swigc__p_wxSpinButton,
50150 _swigc__p_wxSpinCtrl,
50151 _swigc__p_wxSpinEvent,
50152 _swigc__p_wxStaticBitmap,
50153 _swigc__p_wxStaticBox,
50154 _swigc__p_wxStaticBoxSizer,
50155 _swigc__p_wxStaticLine,
50156 _swigc__p_wxStaticText,
50157 _swigc__p_wxStdDialogButtonSizer,
50158 _swigc__p_wxString,
50159 _swigc__p_wxSysColourChangedEvent,
50160 _swigc__p_wxTGAHandler,
50161 _swigc__p_wxTIFFHandler,
50162 _swigc__p_wxTextAttr,
50163 _swigc__p_wxTextCtrl,
50164 _swigc__p_wxTextUrlEvent,
50165 _swigc__p_wxToggleButton,
50166 _swigc__p_wxToolBar,
50167 _swigc__p_wxToolBarBase,
50168 _swigc__p_wxToolBarToolBase,
50169 _swigc__p_wxToolbook,
50170 _swigc__p_wxToolbookEvent,
50171 _swigc__p_wxTreeEvent,
50172 _swigc__p_wxTreeItemId,
50173 _swigc__p_wxTreebook,
50174 _swigc__p_wxTreebookEvent,
50175 _swigc__p_wxUpdateUIEvent,
50176 _swigc__p_wxValidator,
50177 _swigc__p_wxVisualAttributes,
50178 _swigc__p_wxWindow,
50179 _swigc__p_wxWindowBase,
50180 _swigc__p_wxWindowCreateEvent,
50181 _swigc__p_wxWindowDestroyEvent,
50182 _swigc__p_wxXPMHandler,
50183 };
50184
50185
50186 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50187
50188 static swig_const_info swig_const_table[] = {
50189 {0, 0, 0, 0.0, 0, 0}};
50190
50191 #ifdef __cplusplus
50192 }
50193 #endif
50194 /* -----------------------------------------------------------------------------
50195 * Type initialization:
50196 * This problem is tough by the requirement that no dynamic
50197 * memory is used. Also, since swig_type_info structures store pointers to
50198 * swig_cast_info structures and swig_cast_info structures store pointers back
50199 * to swig_type_info structures, we need some lookup code at initialization.
50200 * The idea is that swig generates all the structures that are needed.
50201 * The runtime then collects these partially filled structures.
50202 * The SWIG_InitializeModule function takes these initial arrays out of
50203 * swig_module, and does all the lookup, filling in the swig_module.types
50204 * array with the correct data and linking the correct swig_cast_info
50205 * structures together.
50206 *
50207 * The generated swig_type_info structures are assigned staticly to an initial
50208 * array. We just loop though that array, and handle each type individually.
50209 * First we lookup if this type has been already loaded, and if so, use the
50210 * loaded structure instead of the generated one. Then we have to fill in the
50211 * cast linked list. The cast data is initially stored in something like a
50212 * two-dimensional array. Each row corresponds to a type (there are the same
50213 * number of rows as there are in the swig_type_initial array). Each entry in
50214 * a column is one of the swig_cast_info structures for that type.
50215 * The cast_initial array is actually an array of arrays, because each row has
50216 * a variable number of columns. So to actually build the cast linked list,
50217 * we find the array of casts associated with the type, and loop through it
50218 * adding the casts to the list. The one last trick we need to do is making
50219 * sure the type pointer in the swig_cast_info struct is correct.
50220 *
50221 * First off, we lookup the cast->type name to see if it is already loaded.
50222 * There are three cases to handle:
50223 * 1) If the cast->type has already been loaded AND the type we are adding
50224 * casting info to has not been loaded (it is in this module), THEN we
50225 * replace the cast->type pointer with the type pointer that has already
50226 * been loaded.
50227 * 2) If BOTH types (the one we are adding casting info to, and the
50228 * cast->type) are loaded, THEN the cast info has already been loaded by
50229 * the previous module so we just ignore it.
50230 * 3) Finally, if cast->type has not already been loaded, then we add that
50231 * swig_cast_info to the linked list (because the cast->type) pointer will
50232 * be correct.
50233 * ----------------------------------------------------------------------------- */
50234
50235 #ifdef __cplusplus
50236 extern "C" {
50237 #if 0
50238 } /* c-mode */
50239 #endif
50240 #endif
50241
50242 #if 0
50243 #define SWIGRUNTIME_DEBUG
50244 #endif
50245
50246 SWIGRUNTIME void
50247 SWIG_InitializeModule(void *clientdata) {
50248 size_t i;
50249 swig_module_info *module_head;
50250 static int init_run = 0;
50251
50252 clientdata = clientdata;
50253
50254 if (init_run) return;
50255 init_run = 1;
50256
50257 /* Initialize the swig_module */
50258 swig_module.type_initial = swig_type_initial;
50259 swig_module.cast_initial = swig_cast_initial;
50260
50261 /* Try and load any already created modules */
50262 module_head = SWIG_GetModule(clientdata);
50263 if (module_head) {
50264 swig_module.next = module_head->next;
50265 module_head->next = &swig_module;
50266 } else {
50267 /* This is the first module loaded */
50268 swig_module.next = &swig_module;
50269 SWIG_SetModule(clientdata, &swig_module);
50270 }
50271
50272 /* Now work on filling in swig_module.types */
50273 #ifdef SWIGRUNTIME_DEBUG
50274 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50275 #endif
50276 for (i = 0; i < swig_module.size; ++i) {
50277 swig_type_info *type = 0;
50278 swig_type_info *ret;
50279 swig_cast_info *cast;
50280
50281 #ifdef SWIGRUNTIME_DEBUG
50282 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50283 #endif
50284
50285 /* if there is another module already loaded */
50286 if (swig_module.next != &swig_module) {
50287 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
50288 }
50289 if (type) {
50290 /* Overwrite clientdata field */
50291 #ifdef SWIGRUNTIME_DEBUG
50292 printf("SWIG_InitializeModule: found type %s\n", type->name);
50293 #endif
50294 if (swig_module.type_initial[i]->clientdata) {
50295 type->clientdata = swig_module.type_initial[i]->clientdata;
50296 #ifdef SWIGRUNTIME_DEBUG
50297 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50298 #endif
50299 }
50300 } else {
50301 type = swig_module.type_initial[i];
50302 }
50303
50304 /* Insert casting types */
50305 cast = swig_module.cast_initial[i];
50306 while (cast->type) {
50307 /* Don't need to add information already in the list */
50308 ret = 0;
50309 #ifdef SWIGRUNTIME_DEBUG
50310 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50311 #endif
50312 if (swig_module.next != &swig_module) {
50313 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50314 #ifdef SWIGRUNTIME_DEBUG
50315 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50316 #endif
50317 }
50318 if (ret) {
50319 if (type == swig_module.type_initial[i]) {
50320 #ifdef SWIGRUNTIME_DEBUG
50321 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50322 #endif
50323 cast->type = ret;
50324 ret = 0;
50325 } else {
50326 /* Check for casting already in the list */
50327 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50328 #ifdef SWIGRUNTIME_DEBUG
50329 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50330 #endif
50331 if (!ocast) ret = 0;
50332 }
50333 }
50334
50335 if (!ret) {
50336 #ifdef SWIGRUNTIME_DEBUG
50337 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50338 #endif
50339 if (type->cast) {
50340 type->cast->prev = cast;
50341 cast->next = type->cast;
50342 }
50343 type->cast = cast;
50344 }
50345 cast++;
50346 }
50347 /* Set entry in modules->types array equal to the type */
50348 swig_module.types[i] = type;
50349 }
50350 swig_module.types[i] = 0;
50351
50352 #ifdef SWIGRUNTIME_DEBUG
50353 printf("**** SWIG_InitializeModule: Cast List ******\n");
50354 for (i = 0; i < swig_module.size; ++i) {
50355 int j = 0;
50356 swig_cast_info *cast = swig_module.cast_initial[i];
50357 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50358 while (cast->type) {
50359 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50360 cast++;
50361 ++j;
50362 }
50363 printf("---- Total casts: %d\n",j);
50364 }
50365 printf("**** SWIG_InitializeModule: Cast List ******\n");
50366 #endif
50367 }
50368
50369 /* This function will propagate the clientdata field of type to
50370 * any new swig_type_info structures that have been added into the list
50371 * of equivalent types. It is like calling
50372 * SWIG_TypeClientData(type, clientdata) a second time.
50373 */
50374 SWIGRUNTIME void
50375 SWIG_PropagateClientData(void) {
50376 size_t i;
50377 swig_cast_info *equiv;
50378 static int init_run = 0;
50379
50380 if (init_run) return;
50381 init_run = 1;
50382
50383 for (i = 0; i < swig_module.size; i++) {
50384 if (swig_module.types[i]->clientdata) {
50385 equiv = swig_module.types[i]->cast;
50386 while (equiv) {
50387 if (!equiv->converter) {
50388 if (equiv->type && !equiv->type->clientdata)
50389 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50390 }
50391 equiv = equiv->next;
50392 }
50393 }
50394 }
50395 }
50396
50397 #ifdef __cplusplus
50398 #if 0
50399 {
50400 /* c-mode */
50401 #endif
50402 }
50403 #endif
50404
50405
50406
50407 #ifdef __cplusplus
50408 extern "C" {
50409 #endif
50410
50411 /* Python-specific SWIG API */
50412 #define SWIG_newvarlink() SWIG_Python_newvarlink()
50413 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50414 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50415
50416 /* -----------------------------------------------------------------------------
50417 * global variable support code.
50418 * ----------------------------------------------------------------------------- */
50419
50420 typedef struct swig_globalvar {
50421 char *name; /* Name of global variable */
50422 PyObject *(*get_attr)(void); /* Return the current value */
50423 int (*set_attr)(PyObject *); /* Set the value */
50424 struct swig_globalvar *next;
50425 } swig_globalvar;
50426
50427 typedef struct swig_varlinkobject {
50428 PyObject_HEAD
50429 swig_globalvar *vars;
50430 } swig_varlinkobject;
50431
50432 SWIGINTERN PyObject *
50433 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50434 return PyString_FromString("<Swig global variables>");
50435 }
50436
50437 SWIGINTERN PyObject *
50438 swig_varlink_str(swig_varlinkobject *v) {
50439 PyObject *str = PyString_FromString("(");
50440 swig_globalvar *var;
50441 for (var = v->vars; var; var=var->next) {
50442 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50443 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50444 }
50445 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50446 return str;
50447 }
50448
50449 SWIGINTERN int
50450 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50451 PyObject *str = swig_varlink_str(v);
50452 fprintf(fp,"Swig global variables ");
50453 fprintf(fp,"%s\n", PyString_AsString(str));
50454 Py_DECREF(str);
50455 return 0;
50456 }
50457
50458 SWIGINTERN void
50459 swig_varlink_dealloc(swig_varlinkobject *v) {
50460 swig_globalvar *var = v->vars;
50461 while (var) {
50462 swig_globalvar *n = var->next;
50463 free(var->name);
50464 free(var);
50465 var = n;
50466 }
50467 }
50468
50469 SWIGINTERN PyObject *
50470 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50471 PyObject *res = NULL;
50472 swig_globalvar *var = v->vars;
50473 while (var) {
50474 if (strcmp(var->name,n) == 0) {
50475 res = (*var->get_attr)();
50476 break;
50477 }
50478 var = var->next;
50479 }
50480 if (res == NULL && !PyErr_Occurred()) {
50481 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50482 }
50483 return res;
50484 }
50485
50486 SWIGINTERN int
50487 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50488 int res = 1;
50489 swig_globalvar *var = v->vars;
50490 while (var) {
50491 if (strcmp(var->name,n) == 0) {
50492 res = (*var->set_attr)(p);
50493 break;
50494 }
50495 var = var->next;
50496 }
50497 if (res == 1 && !PyErr_Occurred()) {
50498 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50499 }
50500 return res;
50501 }
50502
50503 SWIGINTERN PyTypeObject*
50504 swig_varlink_type(void) {
50505 static char varlink__doc__[] = "Swig var link object";
50506 static PyTypeObject varlink_type;
50507 static int type_init = 0;
50508 if (!type_init) {
50509 const PyTypeObject tmp
50510 = {
50511 PyObject_HEAD_INIT(NULL)
50512 0, /* Number of items in variable part (ob_size) */
50513 (char *)"swigvarlink", /* Type name (tp_name) */
50514 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50515 0, /* Itemsize (tp_itemsize) */
50516 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50517 (printfunc) swig_varlink_print, /* Print (tp_print) */
50518 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50519 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50520 0, /* tp_compare */
50521 (reprfunc) swig_varlink_repr, /* tp_repr */
50522 0, /* tp_as_number */
50523 0, /* tp_as_sequence */
50524 0, /* tp_as_mapping */
50525 0, /* tp_hash */
50526 0, /* tp_call */
50527 (reprfunc)swig_varlink_str, /* tp_str */
50528 0, /* tp_getattro */
50529 0, /* tp_setattro */
50530 0, /* tp_as_buffer */
50531 0, /* tp_flags */
50532 varlink__doc__, /* tp_doc */
50533 0, /* tp_traverse */
50534 0, /* tp_clear */
50535 0, /* tp_richcompare */
50536 0, /* tp_weaklistoffset */
50537 #if PY_VERSION_HEX >= 0x02020000
50538 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50539 #endif
50540 #if PY_VERSION_HEX >= 0x02030000
50541 0, /* tp_del */
50542 #endif
50543 #ifdef COUNT_ALLOCS
50544 0,0,0,0 /* tp_alloc -> tp_next */
50545 #endif
50546 };
50547 varlink_type = tmp;
50548 varlink_type.ob_type = &PyType_Type;
50549 type_init = 1;
50550 }
50551 return &varlink_type;
50552 }
50553
50554 /* Create a variable linking object for use later */
50555 SWIGINTERN PyObject *
50556 SWIG_Python_newvarlink(void) {
50557 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50558 if (result) {
50559 result->vars = 0;
50560 }
50561 return ((PyObject*) result);
50562 }
50563
50564 SWIGINTERN void
50565 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50566 swig_varlinkobject *v = (swig_varlinkobject *) p;
50567 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50568 if (gv) {
50569 size_t size = strlen(name)+1;
50570 gv->name = (char *)malloc(size);
50571 if (gv->name) {
50572 strncpy(gv->name,name,size);
50573 gv->get_attr = get_attr;
50574 gv->set_attr = set_attr;
50575 gv->next = v->vars;
50576 }
50577 }
50578 v->vars = gv;
50579 }
50580
50581 SWIGINTERN PyObject *
50582 SWIG_globals() {
50583 static PyObject *_SWIG_globals = 0;
50584 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50585 return _SWIG_globals;
50586 }
50587
50588 /* -----------------------------------------------------------------------------
50589 * constants/methods manipulation
50590 * ----------------------------------------------------------------------------- */
50591
50592 /* Install Constants */
50593 SWIGINTERN void
50594 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50595 PyObject *obj = 0;
50596 size_t i;
50597 for (i = 0; constants[i].type; ++i) {
50598 switch(constants[i].type) {
50599 case SWIG_PY_POINTER:
50600 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50601 break;
50602 case SWIG_PY_BINARY:
50603 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50604 break;
50605 default:
50606 obj = 0;
50607 break;
50608 }
50609 if (obj) {
50610 PyDict_SetItemString(d, constants[i].name, obj);
50611 Py_DECREF(obj);
50612 }
50613 }
50614 }
50615
50616 /* -----------------------------------------------------------------------------*/
50617 /* Fix SwigMethods to carry the callback ptrs when needed */
50618 /* -----------------------------------------------------------------------------*/
50619
50620 SWIGINTERN void
50621 SWIG_Python_FixMethods(PyMethodDef *methods,
50622 swig_const_info *const_table,
50623 swig_type_info **types,
50624 swig_type_info **types_initial) {
50625 size_t i;
50626 for (i = 0; methods[i].ml_name; ++i) {
50627 const char *c = methods[i].ml_doc;
50628 if (c && (c = strstr(c, "swig_ptr: "))) {
50629 int j;
50630 swig_const_info *ci = 0;
50631 const char *name = c + 10;
50632 for (j = 0; const_table[j].type; ++j) {
50633 if (strncmp(const_table[j].name, name,
50634 strlen(const_table[j].name)) == 0) {
50635 ci = &(const_table[j]);
50636 break;
50637 }
50638 }
50639 if (ci) {
50640 size_t shift = (ci->ptype) - types;
50641 swig_type_info *ty = types_initial[shift];
50642 size_t ldoc = (c - methods[i].ml_doc);
50643 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50644 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50645 if (ndoc) {
50646 char *buff = ndoc;
50647 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50648 if (ptr) {
50649 strncpy(buff, methods[i].ml_doc, ldoc);
50650 buff += ldoc;
50651 strncpy(buff, "swig_ptr: ", 10);
50652 buff += 10;
50653 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50654 methods[i].ml_doc = ndoc;
50655 }
50656 }
50657 }
50658 }
50659 }
50660 }
50661
50662 #ifdef __cplusplus
50663 }
50664 #endif
50665
50666 /* -----------------------------------------------------------------------------*
50667 * Partial Init method
50668 * -----------------------------------------------------------------------------*/
50669
50670 #ifdef __cplusplus
50671 extern "C"
50672 #endif
50673 SWIGEXPORT void SWIG_init(void) {
50674 PyObject *m, *d;
50675
50676 /* Fix SwigMethods to carry the callback ptrs when needed */
50677 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50678
50679 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50680 d = PyModule_GetDict(m);
50681
50682 SWIG_InitializeModule(0);
50683 SWIG_InstallConstants(d,swig_const_table);
50684
50685
50686 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50687 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50688 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50689 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50690 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50691 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50692 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50693 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50694 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50695 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50696 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50697 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50698 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50699 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50700 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50701 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50702 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50703 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50704 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50705 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50706 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50707 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50708 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50709 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50710 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50711 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50712 SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
50713 SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
50714 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
50715 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
50716 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
50717 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50718 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50719 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50720 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50721 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50722 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50723 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50724 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50725 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50726 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50727 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50728 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50729 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50730 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50731 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50732 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50733 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50734 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50735 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50736 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50737 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50738 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50739 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50740 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50741 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50742 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50743 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50744 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50745 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50746 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50747 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50748 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50749 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50750 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50751 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50752 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50753 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50754 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50755 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50756 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50757 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50758 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50759 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50760 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50761 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50762 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50763 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50764 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50765 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50766 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50767 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50768 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50769 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50770 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50771 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50772 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50773 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50774 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50775 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50776 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50777 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50778 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50779 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50780 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50781 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50782 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50783 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50784 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50785 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50786 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50787 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50788 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50789 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50790 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50791 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50792 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50793 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50794 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50795 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50796 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50797 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50798 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50799 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50800 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50801 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50802 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50803 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50804 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50805 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50806 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50807 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50808 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50809 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50810 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50811 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50812 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50813 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50814 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50815 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50816 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50817 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50818 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50819 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50820 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50821 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50822 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50823 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50824 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50825 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50826 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50827 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50828 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50829 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50830 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50831 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50832 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50833 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50834 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50835 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50836 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50837 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50838 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50839 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50840 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50841 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50842 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50843 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50844 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50845 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50846 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50847 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50848 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50849 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50850 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50851 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50852 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50853 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50854 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50855 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50856 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50857 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50858 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50859 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50860 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50861 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50862 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50863 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50864 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50865 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50866 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50867 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50868 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50869 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50870 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50871 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50872 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50873 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50874 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50875 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50876 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50877 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50878 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50879 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50880 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50881 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50882 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50883 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50884 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50885 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50886 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50887 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50888 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50889 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50890 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50891 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50892 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50893 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50894 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50895 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50896 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50897 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50898 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50899 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50900 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50901 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50902 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50903 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50904 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50905 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50906 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50907 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50908 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50909 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50910 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50911 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50912 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50913 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50914 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50915 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50916 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50917 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50918 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50919 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50920 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50921 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50922 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50923 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50924 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50925 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50926 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50927 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50928 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50929 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50930 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50931 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50932 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50933 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50934 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50935 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50936 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50937 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50938 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50939 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50940 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50941 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50942 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50943 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50944 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50945 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50946 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50947 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50948 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50949 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50950 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50951 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50952
50953 // Map renamed classes back to their common name for OOR
50954 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50955
50956 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50957 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50958 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50959 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50960 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50961 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50962 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50963 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50964 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50965 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50966 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50967 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50968 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50969 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50970 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50971 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50972 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50973 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50974 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50975 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50976 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50977 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50978 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50979 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50980 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50981 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50982 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50983 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50984 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50985 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50986 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50987 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50988 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50989 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50990 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50991 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50992 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50993 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50994 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50995 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50996 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50997 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50998 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50999 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
51000 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
51001 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
51002 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
51003 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
51004 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
51005 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
51006 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
51007 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
51008 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
51009 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
51010 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
51011 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
51012
51013 // Map renamed classes back to their common name for OOR
51014 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
51015 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
51016
51017 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
51018 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
51019 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
51020 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
51021 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
51022 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
51023 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
51024 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
51025 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
51026 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
51027 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
51028
51029 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
51030
51031 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
51032 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
51033 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
51034 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
51035 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
51036 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
51037 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
51038 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
51039 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
51040 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
51041 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
51042 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
51043 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
51044 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
51045 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
51046 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
51047 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
51048 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
51049 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
51050 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
51051 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
51052 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
51053 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
51054 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
51055 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
51056 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
51057 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
51058 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
51059 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
51060 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
51061 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
51062 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
51063 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
51064 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
51065 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
51066 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
51067 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
51068 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
51069 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
51070 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
51071 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
51072 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
51073 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
51074 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
51075 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
51076 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
51077 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
51078 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
51079 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
51080 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
51081 }
51082