4c14ba6993933d0378272d6440ee7238399bb64c
[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 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2494 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2495 #define SWIGTYPE_p_wxComboBox swig_types[33]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2497 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2498 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2499 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2500 #define SWIGTYPE_p_wxControl swig_types[38]
2501 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2502 #define SWIGTYPE_p_wxCursor swig_types[40]
2503 #define SWIGTYPE_p_wxDC swig_types[41]
2504 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2505 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDateTime swig_types[44]
2507 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2508 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2509 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2510 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2511 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2512 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2513 #define SWIGTYPE_p_wxEvent swig_types[51]
2514 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2515 #define SWIGTYPE_p_wxFSFile swig_types[53]
2516 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2517 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2521 #define SWIGTYPE_p_wxFont swig_types[59]
2522 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2523 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2525 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2526 #define SWIGTYPE_p_wxGauge swig_types[64]
2527 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2528 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2529 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2530 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2531 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2532 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2533 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2534 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2535 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2536 #define SWIGTYPE_p_wxIcon swig_types[74]
2537 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2538 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2539 #define SWIGTYPE_p_wxImage swig_types[77]
2540 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2541 #define SWIGTYPE_p_wxImageList swig_types[79]
2542 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2543 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2544 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2545 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2546 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2548 #define SWIGTYPE_p_wxListBox swig_types[86]
2549 #define SWIGTYPE_p_wxListEvent swig_types[87]
2550 #define SWIGTYPE_p_wxListItem swig_types[88]
2551 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2552 #define SWIGTYPE_p_wxListView swig_types[90]
2553 #define SWIGTYPE_p_wxListbook swig_types[91]
2554 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2555 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2556 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2557 #define SWIGTYPE_p_wxMenu swig_types[95]
2558 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2559 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2560 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2561 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2562 #define SWIGTYPE_p_wxMouseEvent swig_types[100]
2563 #define SWIGTYPE_p_wxMoveEvent swig_types[101]
2564 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2565 #define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2566 #define SWIGTYPE_p_wxNotebook swig_types[104]
2567 #define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2568 #define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2569 #define SWIGTYPE_p_wxObject swig_types[107]
2570 #define SWIGTYPE_p_wxPCXHandler swig_types[108]
2571 #define SWIGTYPE_p_wxPNGHandler swig_types[109]
2572 #define SWIGTYPE_p_wxPNMHandler swig_types[110]
2573 #define SWIGTYPE_p_wxPaintEvent swig_types[111]
2574 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2575 #define SWIGTYPE_p_wxPaperSize swig_types[113]
2576 #define SWIGTYPE_p_wxPickerBase swig_types[114]
2577 #define SWIGTYPE_p_wxPoint swig_types[115]
2578 #define SWIGTYPE_p_wxPyApp swig_types[116]
2579 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2580 #define SWIGTYPE_p_wxPyControl swig_types[118]
2581 #define SWIGTYPE_p_wxPyEvent swig_types[119]
2582 #define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2583 #define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2584 #define SWIGTYPE_p_wxPySizer swig_types[122]
2585 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2586 #define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2587 #define SWIGTYPE_p_wxPyValidator swig_types[125]
2588 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2589 #define SWIGTYPE_p_wxRadioBox swig_types[127]
2590 #define SWIGTYPE_p_wxRadioButton swig_types[128]
2591 #define SWIGTYPE_p_wxRect swig_types[129]
2592 #define SWIGTYPE_p_wxScrollBar swig_types[130]
2593 #define SWIGTYPE_p_wxScrollEvent swig_types[131]
2594 #define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2595 #define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2596 #define SWIGTYPE_p_wxShowEvent swig_types[134]
2597 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2598 #define SWIGTYPE_p_wxSize swig_types[136]
2599 #define SWIGTYPE_p_wxSizeEvent swig_types[137]
2600 #define SWIGTYPE_p_wxSizer swig_types[138]
2601 #define SWIGTYPE_p_wxSizerItem swig_types[139]
2602 #define SWIGTYPE_p_wxSlider swig_types[140]
2603 #define SWIGTYPE_p_wxSpinButton swig_types[141]
2604 #define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2605 #define SWIGTYPE_p_wxSpinEvent swig_types[143]
2606 #define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2607 #define SWIGTYPE_p_wxStaticBox swig_types[145]
2608 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2609 #define SWIGTYPE_p_wxStaticLine swig_types[147]
2610 #define SWIGTYPE_p_wxStaticText swig_types[148]
2611 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2612 #define SWIGTYPE_p_wxString swig_types[150]
2613 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2614 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2615 #define SWIGTYPE_p_wxTextAttr swig_types[153]
2616 #define SWIGTYPE_p_wxTextCtrl swig_types[154]
2617 #define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2618 #define SWIGTYPE_p_wxToggleButton swig_types[156]
2619 #define SWIGTYPE_p_wxToolBar swig_types[157]
2620 #define SWIGTYPE_p_wxToolBarBase swig_types[158]
2621 #define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2622 #define SWIGTYPE_p_wxToolbook swig_types[160]
2623 #define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2624 #define SWIGTYPE_p_wxTreeCtrl swig_types[162]
2625 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2626 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2627 #define SWIGTYPE_p_wxTreebook swig_types[165]
2628 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2629 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2630 #define SWIGTYPE_p_wxValidator swig_types[168]
2631 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2632 #define SWIGTYPE_p_wxWindow swig_types[170]
2633 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2634 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2637 static swig_type_info *swig_types[176];
2638 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _controls_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_controls_
2663
2664 #define SWIG_name "_controls_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741 static const wxString wxPyControlNameStr(wxControlNameStr);
2742
2743 const wxArrayString wxPyEmptyStringArray;
2744
2745 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2746
2747 #define SWIG_From_long PyInt_FromLong
2748
2749
2750 SWIGINTERNINLINE PyObject *
2751 SWIG_From_int (int value)
2752 {
2753 return SWIG_From_long (value);
2754 }
2755
2756
2757 #include <limits.h>
2758 #ifndef LLONG_MIN
2759 # define LLONG_MIN LONG_LONG_MIN
2760 #endif
2761 #ifndef LLONG_MAX
2762 # define LLONG_MAX LONG_LONG_MAX
2763 #endif
2764 #ifndef ULLONG_MAX
2765 # define ULLONG_MAX ULONG_LONG_MAX
2766 #endif
2767
2768
2769 SWIGINTERN int
2770 SWIG_AsVal_long (PyObject* obj, long* val)
2771 {
2772 if (PyNumber_Check(obj)) {
2773 if (val) *val = PyInt_AsLong(obj);
2774 return SWIG_OK;
2775 }
2776 return SWIG_TypeError;
2777 }
2778
2779
2780 SWIGINTERN int
2781 SWIG_AsVal_int (PyObject * obj, int *val)
2782 {
2783 long v;
2784 int res = SWIG_AsVal_long (obj, &v);
2785 if (SWIG_IsOK(res)) {
2786 if ((v < INT_MIN || v > INT_MAX)) {
2787 return SWIG_OverflowError;
2788 } else {
2789 if (val) *val = static_cast< int >(v);
2790 }
2791 }
2792 return res;
2793 }
2794
2795 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2796
2797 SWIGINTERN int
2798 SWIG_AsVal_bool (PyObject *obj, bool *val)
2799 {
2800 if (obj == Py_True) {
2801 if (val) *val = true;
2802 return SWIG_OK;
2803 } else if (obj == Py_False) {
2804 if (val) *val = false;
2805 return SWIG_OK;
2806 } else {
2807 long v = 0;
2808 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2809 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2810 return res;
2811 }
2812 }
2813
2814 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2815 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2816 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2817 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2818 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2819 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2820
2821 #include <wx/checklst.h>
2822
2823 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2824 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2825 if (clientData)
2826 {
2827 wxPyClientData* data = new wxPyClientData(clientData);
2828 self->Insert(item, pos, data);
2829 }
2830 else
2831 self->Insert(item, pos);
2832 }
2833
2834 SWIGINTERN int
2835 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2836 {
2837 long v = 0;
2838 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2839 return SWIG_TypeError;
2840 }
2841 else if (val)
2842 *val = (unsigned long)v;
2843 return SWIG_OK;
2844 }
2845
2846
2847 SWIGINTERN int
2848 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2849 {
2850 unsigned long v;
2851 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2852 if (SWIG_IsOK(res)) {
2853 if ((v > UINT_MAX)) {
2854 return SWIG_OverflowError;
2855 } else {
2856 if (val) *val = static_cast< unsigned int >(v);
2857 }
2858 }
2859 return res;
2860 }
2861
2862 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2863 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2864 wxArrayInt lst;
2865 self->GetSelections(lst);
2866 PyObject *tup = PyTuple_New(lst.GetCount());
2867 for (size_t i=0; i<lst.GetCount(); i++)
2868 {
2869 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2870 }
2871 wxPyEndBlockThreads(blocked);
2872 return tup;
2873 }
2874 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetTextColour(c);
2878 #endif
2879 }
2880 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2881 #ifdef __WXMSW__
2882 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2883 self->GetItem(item)->SetBackgroundColour(c);
2884 #endif
2885 }
2886 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2887 #ifdef __WXMSW__
2888 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2889 self->GetItem(item)->SetFont(f);
2890 #endif
2891 }
2892 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2893 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2894 self->AppendText(text);
2895 }
2896 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2897 return self->GetValue().Mid(from, to - from);
2898 }
2899 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2900 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2901 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2902 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2903 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2904
2905 SWIGINTERNINLINE PyObject*
2906 SWIG_From_unsigned_SS_long (unsigned long value)
2907 {
2908 return (value > LONG_MAX) ?
2909 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2910 }
2911
2912
2913 SWIGINTERNINLINE PyObject *
2914 SWIG_From_size_t (size_t value)
2915 {
2916 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2917 }
2918
2919
2920 SWIGINTERNINLINE PyObject *
2921 SWIG_From_unsigned_SS_int (unsigned int value)
2922 {
2923 return SWIG_From_unsigned_SS_long (value);
2924 }
2925
2926
2927 #include <wx/slider.h>
2928
2929
2930 static const wxString wxPySliderNameStr(wxSliderNameStr);
2931 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2932
2933 #if !wxUSE_TOGGLEBTN
2934 // implement dummy items for platforms that don't have this class
2935
2936 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2937
2938 class wxToggleButton : public wxControl
2939 {
2940 public:
2941 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2942 const wxPoint&, const wxSize&, long,
2943 const wxValidator&, const wxString&)
2944 { wxPyRaiseNotImplemented(); }
2945
2946 wxToggleButton()
2947 { wxPyRaiseNotImplemented(); }
2948 };
2949 #endif
2950
2951 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2952
2953 SWIGINTERNINLINE int
2954 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2955 {
2956 unsigned long v;
2957 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2958 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2959 return res;
2960 }
2961
2962 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2963 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2964 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2965 if (udata) {
2966 Py_INCREF(udata->m_obj);
2967 return udata->m_obj;
2968 } else {
2969 Py_INCREF(Py_None);
2970 return Py_None;
2971 }
2972 }
2973 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2974 self->SetClientData(new wxPyUserData(clientData));
2975 }
2976 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){
2977 wxPyUserData* udata = NULL;
2978 if (clientData && clientData != Py_None)
2979 udata = new wxPyUserData(clientData);
2980 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2981 shortHelp, longHelp, udata);
2982 }
2983 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){
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
2990 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2991 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2992 if (udata) {
2993 Py_INCREF(udata->m_obj);
2994 return udata->m_obj;
2995 } else {
2996 Py_INCREF(Py_None);
2997 return Py_None;
2998 }
2999 }
3000 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3001 self->SetToolClientData(id, new wxPyUserData(clientData));
3002 }
3003
3004 #include <wx/listctrl.h>
3005
3006 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3007 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3008 // Python aware sorting function for wxPyListCtrl
3009 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3010 int retval = 0;
3011 PyObject* func = (PyObject*)funcPtr;
3012 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3013
3014 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3015 PyObject* result = PyEval_CallObject(func, args);
3016 Py_DECREF(args);
3017 if (result) {
3018 retval = PyInt_AsLong(result);
3019 Py_DECREF(result);
3020 }
3021
3022 wxPyEndBlockThreads(blocked);
3023 return retval;
3024 }
3025
3026 // C++ Version of a Python aware class
3027 class wxPyListCtrl : public wxListCtrl {
3028 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3029 public:
3030 wxPyListCtrl() : wxListCtrl() {}
3031 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3032 const wxPoint& pos,
3033 const wxSize& size,
3034 long style,
3035 const wxValidator& validator,
3036 const wxString& name) :
3037 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3038
3039 bool Create(wxWindow* parent, wxWindowID id,
3040 const wxPoint& pos,
3041 const wxSize& size,
3042 long style,
3043 const wxValidator& validator,
3044 const wxString& name) {
3045 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3046 }
3047
3048 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3049 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3050
3051 // use the virtual version to avoid a confusing assert in the base class
3052 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3053 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3054
3055 PYPRIVATE;
3056 };
3057
3058 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3059
3060 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3061 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3062 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3063 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3064
3065
3066 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3067 wxListItem item;
3068 item.SetMask( wxLIST_MASK_STATE |
3069 wxLIST_MASK_TEXT |
3070 wxLIST_MASK_IMAGE |
3071 wxLIST_MASK_DATA |
3072 wxLIST_SET_ITEM |
3073 wxLIST_MASK_WIDTH |
3074 wxLIST_MASK_FORMAT
3075 );
3076 if (self->GetColumn(col, item))
3077 return new wxListItem(item);
3078 else
3079 return NULL;
3080 }
3081 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3082 wxListItem* info = new wxListItem;
3083 info->m_itemId = itemId;
3084 info->m_col = col;
3085 info->m_mask = 0xFFFF;
3086 self->GetItem(*info);
3087 return info;
3088 }
3089 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3090 wxPoint pos;
3091 self->GetItemPosition(item, pos);
3092 return pos;
3093 }
3094 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3095 wxRect rect;
3096 self->GetItemRect(item, rect, code);
3097 return rect;
3098 }
3099 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3100 if (!PyCallable_Check(func))
3101 return false;
3102 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3103 }
3104 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3105
3106
3107
3108 return (wxWindow*)self->m_mainWin;
3109
3110 }
3111
3112 #include <wx/treectrl.h>
3113 #include "wx/wxPython/pytree.h"
3114
3115 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3116 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3117 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3118 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3119
3120 static wxTreeItemId wxNullTreeItemId;
3121
3122 // C++ version of Python aware wxTreeCtrl
3123 class wxPyTreeCtrl : public wxTreeCtrl {
3124 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3125 public:
3126 wxPyTreeCtrl() : wxTreeCtrl() {}
3127 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3128 const wxPoint& pos,
3129 const wxSize& size,
3130 long style,
3131 const wxValidator& validator,
3132 const wxString& name) :
3133 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3134
3135 bool Create(wxWindow *parent, wxWindowID id,
3136 const wxPoint& pos,
3137 const wxSize& size,
3138 long style,
3139 const wxValidator& validator,
3140 const wxString& name) {
3141 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3142 }
3143
3144
3145 int OnCompareItems(const wxTreeItemId& item1,
3146 const wxTreeItemId& item2) {
3147 int rval = 0;
3148 bool found;
3149 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3150 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3151 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3152 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3153 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3154 Py_DECREF(o1);
3155 Py_DECREF(o2);
3156 }
3157 wxPyEndBlockThreads(blocked);
3158 if (! found)
3159 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3160 return rval;
3161 }
3162 PYPRIVATE;
3163 };
3164
3165 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3166
3167
3168 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3169 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3170 if (data == NULL) {
3171 data = new wxPyTreeItemData();
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
3175 return data;
3176 }
3177 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data->GetData();
3185 }
3186 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3187 data->SetId(item); // set the id
3188 self->SetItemData(item, data);
3189 }
3190 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3191 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3192 if (data == NULL) {
3193 data = new wxPyTreeItemData(obj);
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 } else
3197 data->SetData(obj);
3198 }
3199 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3200 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3201 PyObject* rval = PyList_New(0);
3202 wxArrayTreeItemIds array;
3203 size_t num, x;
3204 num = self->GetSelections(array);
3205 for (x=0; x < num; x++) {
3206 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3207 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3208 PyList_Append(rval, item);
3209 Py_DECREF(item);
3210 }
3211 wxPyEndBlockThreads(blocked);
3212 return rval;
3213 }
3214 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3215 void* cookie = 0;
3216 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3218 PyObject* tup = PyTuple_New(2);
3219 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3220 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3221 wxPyEndBlockThreads(blocked);
3222 return tup;
3223 }
3224 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3227 PyObject* tup = PyTuple_New(2);
3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
3233 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3234 wxRect rect;
3235 if (self->GetBoundingRect(item, rect, textOnly)) {
3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3237 wxRect* r = new wxRect(rect);
3238 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3239 wxPyEndBlockThreads(blocked);
3240 return val;
3241 }
3242 else
3243 RETURN_NONE();
3244 }
3245 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3246
3247 SWIGINTERNINLINE PyObject*
3248 SWIG_From_bool (bool value)
3249 {
3250 return PyBool_FromLong(value ? 1 : 0);
3251 }
3252
3253 // C++ version of Python aware wxControl
3254 class wxPyControl : public wxControl
3255 {
3256 DECLARE_DYNAMIC_CLASS(wxPyControl)
3257 public:
3258 wxPyControl() : wxControl() {}
3259 wxPyControl(wxWindow* parent, const wxWindowID id,
3260 const wxPoint& pos = wxDefaultPosition,
3261 const wxSize& size = wxDefaultSize,
3262 long style = 0,
3263 const wxValidator& validator=wxDefaultValidator,
3264 const wxString& name = wxPyControlNameStr)
3265 : wxControl(parent, id, pos, size, style, validator, name) {}
3266
3267 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3268
3269 bool DoEraseBackground(wxDC* dc) {
3270 #ifdef __WXMSW__
3271 return wxWindow::DoEraseBackground(dc->GetHDC());
3272 #else
3273 dc->SetBackground(wxBrush(GetBackgroundColour()));
3274 dc->Clear();
3275 return true;
3276 #endif
3277 }
3278
3279 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3280 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3281 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3282 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3283
3284 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3285 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3286 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3287
3288 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3289 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3290
3291 DEC_PYCALLBACK__(InitDialog);
3292 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3293 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3294 DEC_PYCALLBACK_BOOL_(Validate);
3295
3296 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3297 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3298 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3299
3300 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3301 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3302
3303 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3304 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3305
3306 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3307
3308 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3309
3310 PYPRIVATE;
3311 };
3312
3313 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3314
3315 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3316 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3317 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3318 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3319
3320 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3321 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3322 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3323
3324 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3325 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3326
3327 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3328 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3329 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3330 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3331
3332 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3333 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3335
3336 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3337 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3338
3339 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3340 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3341
3342 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3343
3344 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3345
3346
3347
3348 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3349
3350 #include <wx/generic/dragimgg.h>
3351
3352 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3353 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3354 wxDateTime rv;
3355 self->GetRange(&rv, NULL);
3356 return rv;
3357 }
3358 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3359 wxDateTime rv;
3360 self->GetRange(NULL, &rv);
3361 return rv;
3362 }
3363 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3364 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3365 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3366 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3367 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3368 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3369 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3370 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3371 #ifdef __cplusplus
3372 extern "C" {
3373 #endif
3374 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3375 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3376 return 1;
3377 }
3378
3379
3380 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3381 PyObject *pyobj = 0;
3382
3383 {
3384 #if wxUSE_UNICODE
3385 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3386 #else
3387 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3388 #endif
3389 }
3390 return pyobj;
3391 }
3392
3393
3394 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj = 0;
3396 wxWindow *arg1 = (wxWindow *) 0 ;
3397 int arg2 = (int) -1 ;
3398 wxString const &arg3_defvalue = wxPyEmptyString ;
3399 wxString *arg3 = (wxString *) &arg3_defvalue ;
3400 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3401 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3402 wxSize const &arg5_defvalue = wxDefaultSize ;
3403 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3404 long arg6 = (long) 0 ;
3405 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3406 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3407 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3408 wxString *arg8 = (wxString *) &arg8_defvalue ;
3409 wxButton *result = 0 ;
3410 void *argp1 = 0 ;
3411 int res1 = 0 ;
3412 int val2 ;
3413 int ecode2 = 0 ;
3414 bool temp3 = false ;
3415 wxPoint temp4 ;
3416 wxSize temp5 ;
3417 long val6 ;
3418 int ecode6 = 0 ;
3419 void *argp7 = 0 ;
3420 int res7 = 0 ;
3421 bool temp8 = false ;
3422 PyObject * obj0 = 0 ;
3423 PyObject * obj1 = 0 ;
3424 PyObject * obj2 = 0 ;
3425 PyObject * obj3 = 0 ;
3426 PyObject * obj4 = 0 ;
3427 PyObject * obj5 = 0 ;
3428 PyObject * obj6 = 0 ;
3429 PyObject * obj7 = 0 ;
3430 char * kwnames[] = {
3431 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3432 };
3433
3434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3436 if (!SWIG_IsOK(res1)) {
3437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3438 }
3439 arg1 = reinterpret_cast< wxWindow * >(argp1);
3440 if (obj1) {
3441 ecode2 = SWIG_AsVal_int(obj1, &val2);
3442 if (!SWIG_IsOK(ecode2)) {
3443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3444 }
3445 arg2 = static_cast< int >(val2);
3446 }
3447 if (obj2) {
3448 {
3449 arg3 = wxString_in_helper(obj2);
3450 if (arg3 == NULL) SWIG_fail;
3451 temp3 = true;
3452 }
3453 }
3454 if (obj3) {
3455 {
3456 arg4 = &temp4;
3457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3458 }
3459 }
3460 if (obj4) {
3461 {
3462 arg5 = &temp5;
3463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3464 }
3465 }
3466 if (obj5) {
3467 ecode6 = SWIG_AsVal_long(obj5, &val6);
3468 if (!SWIG_IsOK(ecode6)) {
3469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3470 }
3471 arg6 = static_cast< long >(val6);
3472 }
3473 if (obj6) {
3474 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3475 if (!SWIG_IsOK(res7)) {
3476 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3477 }
3478 if (!argp7) {
3479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3480 }
3481 arg7 = reinterpret_cast< wxValidator * >(argp7);
3482 }
3483 if (obj7) {
3484 {
3485 arg8 = wxString_in_helper(obj7);
3486 if (arg8 == NULL) SWIG_fail;
3487 temp8 = true;
3488 }
3489 }
3490 {
3491 if (!wxPyCheckForApp()) SWIG_fail;
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3498 {
3499 if (temp3)
3500 delete arg3;
3501 }
3502 {
3503 if (temp8)
3504 delete arg8;
3505 }
3506 return resultobj;
3507 fail:
3508 {
3509 if (temp3)
3510 delete arg3;
3511 }
3512 {
3513 if (temp8)
3514 delete arg8;
3515 }
3516 return NULL;
3517 }
3518
3519
3520 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3521 PyObject *resultobj = 0;
3522 wxButton *result = 0 ;
3523
3524 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3525 {
3526 if (!wxPyCheckForApp()) SWIG_fail;
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (wxButton *)new wxButton();
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3533 return resultobj;
3534 fail:
3535 return NULL;
3536 }
3537
3538
3539 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3540 PyObject *resultobj = 0;
3541 wxButton *arg1 = (wxButton *) 0 ;
3542 wxWindow *arg2 = (wxWindow *) 0 ;
3543 int arg3 = (int) -1 ;
3544 wxString const &arg4_defvalue = wxPyEmptyString ;
3545 wxString *arg4 = (wxString *) &arg4_defvalue ;
3546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3548 wxSize const &arg6_defvalue = wxDefaultSize ;
3549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3550 long arg7 = (long) 0 ;
3551 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3552 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3553 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3554 wxString *arg9 = (wxString *) &arg9_defvalue ;
3555 bool result;
3556 void *argp1 = 0 ;
3557 int res1 = 0 ;
3558 void *argp2 = 0 ;
3559 int res2 = 0 ;
3560 int val3 ;
3561 int ecode3 = 0 ;
3562 bool temp4 = false ;
3563 wxPoint temp5 ;
3564 wxSize temp6 ;
3565 long val7 ;
3566 int ecode7 = 0 ;
3567 void *argp8 = 0 ;
3568 int res8 = 0 ;
3569 bool temp9 = false ;
3570 PyObject * obj0 = 0 ;
3571 PyObject * obj1 = 0 ;
3572 PyObject * obj2 = 0 ;
3573 PyObject * obj3 = 0 ;
3574 PyObject * obj4 = 0 ;
3575 PyObject * obj5 = 0 ;
3576 PyObject * obj6 = 0 ;
3577 PyObject * obj7 = 0 ;
3578 PyObject * obj8 = 0 ;
3579 char * kwnames[] = {
3580 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3581 };
3582
3583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3585 if (!SWIG_IsOK(res1)) {
3586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3587 }
3588 arg1 = reinterpret_cast< wxButton * >(argp1);
3589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3590 if (!SWIG_IsOK(res2)) {
3591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3592 }
3593 arg2 = reinterpret_cast< wxWindow * >(argp2);
3594 if (obj2) {
3595 ecode3 = SWIG_AsVal_int(obj2, &val3);
3596 if (!SWIG_IsOK(ecode3)) {
3597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3598 }
3599 arg3 = static_cast< int >(val3);
3600 }
3601 if (obj3) {
3602 {
3603 arg4 = wxString_in_helper(obj3);
3604 if (arg4 == NULL) SWIG_fail;
3605 temp4 = true;
3606 }
3607 }
3608 if (obj4) {
3609 {
3610 arg5 = &temp5;
3611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3612 }
3613 }
3614 if (obj5) {
3615 {
3616 arg6 = &temp6;
3617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3618 }
3619 }
3620 if (obj6) {
3621 ecode7 = SWIG_AsVal_long(obj6, &val7);
3622 if (!SWIG_IsOK(ecode7)) {
3623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3624 }
3625 arg7 = static_cast< long >(val7);
3626 }
3627 if (obj7) {
3628 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3629 if (!SWIG_IsOK(res8)) {
3630 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3631 }
3632 if (!argp8) {
3633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3634 }
3635 arg8 = reinterpret_cast< wxValidator * >(argp8);
3636 }
3637 if (obj8) {
3638 {
3639 arg9 = wxString_in_helper(obj8);
3640 if (arg9 == NULL) SWIG_fail;
3641 temp9 = true;
3642 }
3643 }
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 {
3654 if (temp4)
3655 delete arg4;
3656 }
3657 {
3658 if (temp9)
3659 delete arg9;
3660 }
3661 return resultobj;
3662 fail:
3663 {
3664 if (temp4)
3665 delete arg4;
3666 }
3667 {
3668 if (temp9)
3669 delete arg9;
3670 }
3671 return NULL;
3672 }
3673
3674
3675 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxButton *arg1 = (wxButton *) 0 ;
3678 void *argp1 = 0 ;
3679 int res1 = 0 ;
3680 PyObject *swig_obj[1] ;
3681
3682 if (!args) SWIG_fail;
3683 swig_obj[0] = args;
3684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3685 if (!SWIG_IsOK(res1)) {
3686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3687 }
3688 arg1 = reinterpret_cast< wxButton * >(argp1);
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 (arg1)->SetDefault();
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = SWIG_Py_Void();
3696 return resultobj;
3697 fail:
3698 return NULL;
3699 }
3700
3701
3702 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3703 PyObject *resultobj = 0;
3704 wxSize result;
3705
3706 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 result = wxButton::GetDefaultSize();
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3714 return resultobj;
3715 fail:
3716 return NULL;
3717 }
3718
3719
3720 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3721 PyObject *resultobj = 0;
3722 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3723 SwigValueWrapper<wxVisualAttributes > result;
3724 int val1 ;
3725 int ecode1 = 0 ;
3726 PyObject * obj0 = 0 ;
3727 char * kwnames[] = {
3728 (char *) "variant", NULL
3729 };
3730
3731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3732 if (obj0) {
3733 ecode1 = SWIG_AsVal_int(obj0, &val1);
3734 if (!SWIG_IsOK(ecode1)) {
3735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3736 }
3737 arg1 = static_cast< wxWindowVariant >(val1);
3738 }
3739 {
3740 if (!wxPyCheckForApp()) SWIG_fail;
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = wxButton::GetClassDefaultAttributes(arg1);
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3754 PyObject *obj;
3755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3756 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3757 return SWIG_Py_Void();
3758 }
3759
3760 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 return SWIG_Python_InitShadowInstance(args);
3762 }
3763
3764 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj = 0;
3766 wxWindow *arg1 = (wxWindow *) 0 ;
3767 int arg2 = (int) -1 ;
3768 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3769 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3770 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3771 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3772 wxSize const &arg5_defvalue = wxDefaultSize ;
3773 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3774 long arg6 = (long) wxBU_AUTODRAW ;
3775 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3776 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3777 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3778 wxString *arg8 = (wxString *) &arg8_defvalue ;
3779 wxBitmapButton *result = 0 ;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 int val2 ;
3783 int ecode2 = 0 ;
3784 void *argp3 = 0 ;
3785 int res3 = 0 ;
3786 wxPoint temp4 ;
3787 wxSize temp5 ;
3788 long val6 ;
3789 int ecode6 = 0 ;
3790 void *argp7 = 0 ;
3791 int res7 = 0 ;
3792 bool temp8 = false ;
3793 PyObject * obj0 = 0 ;
3794 PyObject * obj1 = 0 ;
3795 PyObject * obj2 = 0 ;
3796 PyObject * obj3 = 0 ;
3797 PyObject * obj4 = 0 ;
3798 PyObject * obj5 = 0 ;
3799 PyObject * obj6 = 0 ;
3800 PyObject * obj7 = 0 ;
3801 char * kwnames[] = {
3802 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3803 };
3804
3805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3807 if (!SWIG_IsOK(res1)) {
3808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3809 }
3810 arg1 = reinterpret_cast< wxWindow * >(argp1);
3811 if (obj1) {
3812 ecode2 = SWIG_AsVal_int(obj1, &val2);
3813 if (!SWIG_IsOK(ecode2)) {
3814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3815 }
3816 arg2 = static_cast< int >(val2);
3817 }
3818 if (obj2) {
3819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3820 if (!SWIG_IsOK(res3)) {
3821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3822 }
3823 if (!argp3) {
3824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3825 }
3826 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3827 }
3828 if (obj3) {
3829 {
3830 arg4 = &temp4;
3831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3832 }
3833 }
3834 if (obj4) {
3835 {
3836 arg5 = &temp5;
3837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3838 }
3839 }
3840 if (obj5) {
3841 ecode6 = SWIG_AsVal_long(obj5, &val6);
3842 if (!SWIG_IsOK(ecode6)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3844 }
3845 arg6 = static_cast< long >(val6);
3846 }
3847 if (obj6) {
3848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3849 if (!SWIG_IsOK(res7)) {
3850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3851 }
3852 if (!argp7) {
3853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3854 }
3855 arg7 = reinterpret_cast< wxValidator * >(argp7);
3856 }
3857 if (obj7) {
3858 {
3859 arg8 = wxString_in_helper(obj7);
3860 if (arg8 == NULL) SWIG_fail;
3861 temp8 = true;
3862 }
3863 }
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3872 {
3873 if (temp8)
3874 delete arg8;
3875 }
3876 return resultobj;
3877 fail:
3878 {
3879 if (temp8)
3880 delete arg8;
3881 }
3882 return NULL;
3883 }
3884
3885
3886 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3887 PyObject *resultobj = 0;
3888 wxBitmapButton *result = 0 ;
3889
3890 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3891 {
3892 if (!wxPyCheckForApp()) SWIG_fail;
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 result = (wxBitmapButton *)new wxBitmapButton();
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3899 return resultobj;
3900 fail:
3901 return NULL;
3902 }
3903
3904
3905 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3906 PyObject *resultobj = 0;
3907 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3908 wxWindow *arg2 = (wxWindow *) 0 ;
3909 int arg3 = (int) -1 ;
3910 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3911 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3912 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3913 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3914 wxSize const &arg6_defvalue = wxDefaultSize ;
3915 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3916 long arg7 = (long) wxBU_AUTODRAW ;
3917 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3918 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3919 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3920 wxString *arg9 = (wxString *) &arg9_defvalue ;
3921 bool result;
3922 void *argp1 = 0 ;
3923 int res1 = 0 ;
3924 void *argp2 = 0 ;
3925 int res2 = 0 ;
3926 int val3 ;
3927 int ecode3 = 0 ;
3928 void *argp4 = 0 ;
3929 int res4 = 0 ;
3930 wxPoint temp5 ;
3931 wxSize temp6 ;
3932 long val7 ;
3933 int ecode7 = 0 ;
3934 void *argp8 = 0 ;
3935 int res8 = 0 ;
3936 bool temp9 = false ;
3937 PyObject * obj0 = 0 ;
3938 PyObject * obj1 = 0 ;
3939 PyObject * obj2 = 0 ;
3940 PyObject * obj3 = 0 ;
3941 PyObject * obj4 = 0 ;
3942 PyObject * obj5 = 0 ;
3943 PyObject * obj6 = 0 ;
3944 PyObject * obj7 = 0 ;
3945 PyObject * obj8 = 0 ;
3946 char * kwnames[] = {
3947 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3948 };
3949
3950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3952 if (!SWIG_IsOK(res1)) {
3953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3954 }
3955 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3957 if (!SWIG_IsOK(res2)) {
3958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3959 }
3960 arg2 = reinterpret_cast< wxWindow * >(argp2);
3961 if (obj2) {
3962 ecode3 = SWIG_AsVal_int(obj2, &val3);
3963 if (!SWIG_IsOK(ecode3)) {
3964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3965 }
3966 arg3 = static_cast< int >(val3);
3967 }
3968 if (obj3) {
3969 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3970 if (!SWIG_IsOK(res4)) {
3971 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3972 }
3973 if (!argp4) {
3974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3975 }
3976 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3977 }
3978 if (obj4) {
3979 {
3980 arg5 = &temp5;
3981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3982 }
3983 }
3984 if (obj5) {
3985 {
3986 arg6 = &temp6;
3987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3988 }
3989 }
3990 if (obj6) {
3991 ecode7 = SWIG_AsVal_long(obj6, &val7);
3992 if (!SWIG_IsOK(ecode7)) {
3993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3994 }
3995 arg7 = static_cast< long >(val7);
3996 }
3997 if (obj7) {
3998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3999 if (!SWIG_IsOK(res8)) {
4000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4001 }
4002 if (!argp8) {
4003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4004 }
4005 arg8 = reinterpret_cast< wxValidator * >(argp8);
4006 }
4007 if (obj8) {
4008 {
4009 arg9 = wxString_in_helper(obj8);
4010 if (arg9 == NULL) SWIG_fail;
4011 temp9 = true;
4012 }
4013 }
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 {
4021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4022 }
4023 {
4024 if (temp9)
4025 delete arg9;
4026 }
4027 return resultobj;
4028 fail:
4029 {
4030 if (temp9)
4031 delete arg9;
4032 }
4033 return NULL;
4034 }
4035
4036
4037 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4038 PyObject *resultobj = 0;
4039 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4040 wxBitmap result;
4041 void *argp1 = 0 ;
4042 int res1 = 0 ;
4043 PyObject *swig_obj[1] ;
4044
4045 if (!args) SWIG_fail;
4046 swig_obj[0] = args;
4047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4048 if (!SWIG_IsOK(res1)) {
4049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4050 }
4051 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 result = (arg1)->GetBitmapLabel();
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4059 return resultobj;
4060 fail:
4061 return NULL;
4062 }
4063
4064
4065 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4066 PyObject *resultobj = 0;
4067 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4068 wxBitmap result;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 PyObject *swig_obj[1] ;
4072
4073 if (!args) SWIG_fail;
4074 swig_obj[0] = args;
4075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4078 }
4079 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (arg1)->GetBitmapDisabled();
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4087 return resultobj;
4088 fail:
4089 return NULL;
4090 }
4091
4092
4093 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *resultobj = 0;
4095 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4096 wxBitmap result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 PyObject *swig_obj[1] ;
4100
4101 if (!args) SWIG_fail;
4102 swig_obj[0] = args;
4103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4104 if (!SWIG_IsOK(res1)) {
4105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4106 }
4107 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (arg1)->GetBitmapFocus();
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4124 wxBitmap result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 PyObject *swig_obj[1] ;
4128
4129 if (!args) SWIG_fail;
4130 swig_obj[0] = args;
4131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4134 }
4135 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (arg1)->GetBitmapSelected();
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4150 PyObject *resultobj = 0;
4151 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4152 wxBitmap result;
4153 void *argp1 = 0 ;
4154 int res1 = 0 ;
4155 PyObject *swig_obj[1] ;
4156
4157 if (!args) SWIG_fail;
4158 swig_obj[0] = args;
4159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4162 }
4163 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (arg1)->GetBitmapHover();
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4171 return resultobj;
4172 fail:
4173 return NULL;
4174 }
4175
4176
4177 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj = 0;
4179 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4180 wxBitmap *arg2 = 0 ;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 void *argp2 = 0 ;
4184 int res2 = 0 ;
4185 PyObject * obj0 = 0 ;
4186 PyObject * obj1 = 0 ;
4187 char * kwnames[] = {
4188 (char *) "self",(char *) "bitmap", NULL
4189 };
4190
4191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4195 }
4196 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4198 if (!SWIG_IsOK(res2)) {
4199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4200 }
4201 if (!argp2) {
4202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4203 }
4204 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 resultobj = SWIG_Py_Void();
4212 return resultobj;
4213 fail:
4214 return NULL;
4215 }
4216
4217
4218 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj = 0;
4220 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4221 wxBitmap *arg2 = 0 ;
4222 void *argp1 = 0 ;
4223 int res1 = 0 ;
4224 void *argp2 = 0 ;
4225 int res2 = 0 ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 char * kwnames[] = {
4229 (char *) "self",(char *) "bitmap", NULL
4230 };
4231
4232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4236 }
4237 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4239 if (!SWIG_IsOK(res2)) {
4240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4241 }
4242 if (!argp2) {
4243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4244 }
4245 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_Py_Void();
4253 return resultobj;
4254 fail:
4255 return NULL;
4256 }
4257
4258
4259 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj = 0;
4261 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4262 wxBitmap *arg2 = 0 ;
4263 void *argp1 = 0 ;
4264 int res1 = 0 ;
4265 void *argp2 = 0 ;
4266 int res2 = 0 ;
4267 PyObject * obj0 = 0 ;
4268 PyObject * obj1 = 0 ;
4269 char * kwnames[] = {
4270 (char *) "self",(char *) "bitmap", NULL
4271 };
4272
4273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4275 if (!SWIG_IsOK(res1)) {
4276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4277 }
4278 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4280 if (!SWIG_IsOK(res2)) {
4281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4282 }
4283 if (!argp2) {
4284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4285 }
4286 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 resultobj = SWIG_Py_Void();
4294 return resultobj;
4295 fail:
4296 return NULL;
4297 }
4298
4299
4300 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4301 PyObject *resultobj = 0;
4302 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4303 wxBitmap *arg2 = 0 ;
4304 void *argp1 = 0 ;
4305 int res1 = 0 ;
4306 void *argp2 = 0 ;
4307 int res2 = 0 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char * kwnames[] = {
4311 (char *) "self",(char *) "bitmap", NULL
4312 };
4313
4314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4316 if (!SWIG_IsOK(res1)) {
4317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4318 }
4319 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4321 if (!SWIG_IsOK(res2)) {
4322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4323 }
4324 if (!argp2) {
4325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4326 }
4327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_Py_Void();
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj = 0;
4343 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4344 wxBitmap *arg2 = 0 ;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 void *argp2 = 0 ;
4348 int res2 = 0 ;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 char * kwnames[] = {
4352 (char *) "self",(char *) "hover", NULL
4353 };
4354
4355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4359 }
4360 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4362 if (!SWIG_IsOK(res2)) {
4363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4364 }
4365 if (!argp2) {
4366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4367 }
4368 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_Py_Void();
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4385 int arg2 ;
4386 int arg3 ;
4387 void *argp1 = 0 ;
4388 int res1 = 0 ;
4389 int val2 ;
4390 int ecode2 = 0 ;
4391 int val3 ;
4392 int ecode3 = 0 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 PyObject * obj2 = 0 ;
4396 char * kwnames[] = {
4397 (char *) "self",(char *) "x",(char *) "y", NULL
4398 };
4399
4400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4402 if (!SWIG_IsOK(res1)) {
4403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4404 }
4405 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4406 ecode2 = SWIG_AsVal_int(obj1, &val2);
4407 if (!SWIG_IsOK(ecode2)) {
4408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4409 }
4410 arg2 = static_cast< int >(val2);
4411 ecode3 = SWIG_AsVal_int(obj2, &val3);
4412 if (!SWIG_IsOK(ecode3)) {
4413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4414 }
4415 arg3 = static_cast< int >(val3);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 (arg1)->SetMargins(arg2,arg3);
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = SWIG_Py_Void();
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4430 PyObject *resultobj = 0;
4431 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 PyObject *swig_obj[1] ;
4436
4437 if (!args) SWIG_fail;
4438 swig_obj[0] = args;
4439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4442 }
4443 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_From_int(static_cast< int >(result));
4451 return resultobj;
4452 fail:
4453 return NULL;
4454 }
4455
4456
4457 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458 PyObject *resultobj = 0;
4459 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4460 int result;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 PyObject *swig_obj[1] ;
4464
4465 if (!args) SWIG_fail;
4466 swig_obj[0] = args;
4467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4468 if (!SWIG_IsOK(res1)) {
4469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4470 }
4471 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_From_int(static_cast< int >(result));
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *obj;
4487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4488 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4489 return SWIG_Py_Void();
4490 }
4491
4492 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 return SWIG_Python_InitShadowInstance(args);
4494 }
4495
4496 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4497 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4498 return 1;
4499 }
4500
4501
4502 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4503 PyObject *pyobj = 0;
4504
4505 {
4506 #if wxUSE_UNICODE
4507 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4508 #else
4509 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4510 #endif
4511 }
4512 return pyobj;
4513 }
4514
4515
4516 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 wxWindow *arg1 = (wxWindow *) 0 ;
4519 int arg2 = (int) -1 ;
4520 wxString const &arg3_defvalue = wxPyEmptyString ;
4521 wxString *arg3 = (wxString *) &arg3_defvalue ;
4522 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4523 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4524 wxSize const &arg5_defvalue = wxDefaultSize ;
4525 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4526 long arg6 = (long) 0 ;
4527 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4528 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4529 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4530 wxString *arg8 = (wxString *) &arg8_defvalue ;
4531 wxCheckBox *result = 0 ;
4532 void *argp1 = 0 ;
4533 int res1 = 0 ;
4534 int val2 ;
4535 int ecode2 = 0 ;
4536 bool temp3 = false ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 long val6 ;
4540 int ecode6 = 0 ;
4541 void *argp7 = 0 ;
4542 int res7 = 0 ;
4543 bool temp8 = false ;
4544 PyObject * obj0 = 0 ;
4545 PyObject * obj1 = 0 ;
4546 PyObject * obj2 = 0 ;
4547 PyObject * obj3 = 0 ;
4548 PyObject * obj4 = 0 ;
4549 PyObject * obj5 = 0 ;
4550 PyObject * obj6 = 0 ;
4551 PyObject * obj7 = 0 ;
4552 char * kwnames[] = {
4553 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4554 };
4555
4556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4558 if (!SWIG_IsOK(res1)) {
4559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4560 }
4561 arg1 = reinterpret_cast< wxWindow * >(argp1);
4562 if (obj1) {
4563 ecode2 = SWIG_AsVal_int(obj1, &val2);
4564 if (!SWIG_IsOK(ecode2)) {
4565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4566 }
4567 arg2 = static_cast< int >(val2);
4568 }
4569 if (obj2) {
4570 {
4571 arg3 = wxString_in_helper(obj2);
4572 if (arg3 == NULL) SWIG_fail;
4573 temp3 = true;
4574 }
4575 }
4576 if (obj3) {
4577 {
4578 arg4 = &temp4;
4579 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4580 }
4581 }
4582 if (obj4) {
4583 {
4584 arg5 = &temp5;
4585 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4586 }
4587 }
4588 if (obj5) {
4589 ecode6 = SWIG_AsVal_long(obj5, &val6);
4590 if (!SWIG_IsOK(ecode6)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4592 }
4593 arg6 = static_cast< long >(val6);
4594 }
4595 if (obj6) {
4596 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4597 if (!SWIG_IsOK(res7)) {
4598 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4599 }
4600 if (!argp7) {
4601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4602 }
4603 arg7 = reinterpret_cast< wxValidator * >(argp7);
4604 }
4605 if (obj7) {
4606 {
4607 arg8 = wxString_in_helper(obj7);
4608 if (arg8 == NULL) SWIG_fail;
4609 temp8 = true;
4610 }
4611 }
4612 {
4613 if (!wxPyCheckForApp()) SWIG_fail;
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4620 {
4621 if (temp3)
4622 delete arg3;
4623 }
4624 {
4625 if (temp8)
4626 delete arg8;
4627 }
4628 return resultobj;
4629 fail:
4630 {
4631 if (temp3)
4632 delete arg3;
4633 }
4634 {
4635 if (temp8)
4636 delete arg8;
4637 }
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4643 PyObject *resultobj = 0;
4644 wxCheckBox *result = 0 ;
4645
4646 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4647 {
4648 if (!wxPyCheckForApp()) SWIG_fail;
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 result = (wxCheckBox *)new wxCheckBox();
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4655 return resultobj;
4656 fail:
4657 return NULL;
4658 }
4659
4660
4661 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj = 0;
4663 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4664 wxWindow *arg2 = (wxWindow *) 0 ;
4665 int arg3 = (int) -1 ;
4666 wxString const &arg4_defvalue = wxPyEmptyString ;
4667 wxString *arg4 = (wxString *) &arg4_defvalue ;
4668 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4669 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4670 wxSize const &arg6_defvalue = wxDefaultSize ;
4671 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4672 long arg7 = (long) 0 ;
4673 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4674 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4675 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4676 wxString *arg9 = (wxString *) &arg9_defvalue ;
4677 bool result;
4678 void *argp1 = 0 ;
4679 int res1 = 0 ;
4680 void *argp2 = 0 ;
4681 int res2 = 0 ;
4682 int val3 ;
4683 int ecode3 = 0 ;
4684 bool temp4 = false ;
4685 wxPoint temp5 ;
4686 wxSize temp6 ;
4687 long val7 ;
4688 int ecode7 = 0 ;
4689 void *argp8 = 0 ;
4690 int res8 = 0 ;
4691 bool temp9 = false ;
4692 PyObject * obj0 = 0 ;
4693 PyObject * obj1 = 0 ;
4694 PyObject * obj2 = 0 ;
4695 PyObject * obj3 = 0 ;
4696 PyObject * obj4 = 0 ;
4697 PyObject * obj5 = 0 ;
4698 PyObject * obj6 = 0 ;
4699 PyObject * obj7 = 0 ;
4700 PyObject * obj8 = 0 ;
4701 char * kwnames[] = {
4702 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4703 };
4704
4705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4709 }
4710 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4712 if (!SWIG_IsOK(res2)) {
4713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4714 }
4715 arg2 = reinterpret_cast< wxWindow * >(argp2);
4716 if (obj2) {
4717 ecode3 = SWIG_AsVal_int(obj2, &val3);
4718 if (!SWIG_IsOK(ecode3)) {
4719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4720 }
4721 arg3 = static_cast< int >(val3);
4722 }
4723 if (obj3) {
4724 {
4725 arg4 = wxString_in_helper(obj3);
4726 if (arg4 == NULL) SWIG_fail;
4727 temp4 = true;
4728 }
4729 }
4730 if (obj4) {
4731 {
4732 arg5 = &temp5;
4733 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4734 }
4735 }
4736 if (obj5) {
4737 {
4738 arg6 = &temp6;
4739 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4740 }
4741 }
4742 if (obj6) {
4743 ecode7 = SWIG_AsVal_long(obj6, &val7);
4744 if (!SWIG_IsOK(ecode7)) {
4745 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4746 }
4747 arg7 = static_cast< long >(val7);
4748 }
4749 if (obj7) {
4750 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4751 if (!SWIG_IsOK(res8)) {
4752 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4753 }
4754 if (!argp8) {
4755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4756 }
4757 arg8 = reinterpret_cast< wxValidator * >(argp8);
4758 }
4759 if (obj8) {
4760 {
4761 arg9 = wxString_in_helper(obj8);
4762 if (arg9 == NULL) SWIG_fail;
4763 temp9 = true;
4764 }
4765 }
4766 {
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 {
4773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4774 }
4775 {
4776 if (temp4)
4777 delete arg4;
4778 }
4779 {
4780 if (temp9)
4781 delete arg9;
4782 }
4783 return resultobj;
4784 fail:
4785 {
4786 if (temp4)
4787 delete arg4;
4788 }
4789 {
4790 if (temp9)
4791 delete arg9;
4792 }
4793 return NULL;
4794 }
4795
4796
4797 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4800 bool result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4810 }
4811 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->GetValue();
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 {
4819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4820 }
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4828 PyObject *resultobj = 0;
4829 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4830 bool result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 PyObject *swig_obj[1] ;
4834
4835 if (!args) SWIG_fail;
4836 swig_obj[0] = args;
4837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4838 if (!SWIG_IsOK(res1)) {
4839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4840 }
4841 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = (bool)(arg1)->IsChecked();
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 {
4849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4850 }
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj = 0;
4859 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4860 bool arg2 ;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 bool val2 ;
4864 int ecode2 = 0 ;
4865 PyObject * obj0 = 0 ;
4866 PyObject * obj1 = 0 ;
4867 char * kwnames[] = {
4868 (char *) "self",(char *) "state", NULL
4869 };
4870
4871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4873 if (!SWIG_IsOK(res1)) {
4874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4875 }
4876 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4877 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4878 if (!SWIG_IsOK(ecode2)) {
4879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4880 }
4881 arg2 = static_cast< bool >(val2);
4882 {
4883 PyThreadState* __tstate = wxPyBeginAllowThreads();
4884 (arg1)->SetValue(arg2);
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 resultobj = SWIG_Py_Void();
4889 return resultobj;
4890 fail:
4891 return NULL;
4892 }
4893
4894
4895 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4896 PyObject *resultobj = 0;
4897 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4898 wxCheckBoxState result;
4899 void *argp1 = 0 ;
4900 int res1 = 0 ;
4901 PyObject *swig_obj[1] ;
4902
4903 if (!args) SWIG_fail;
4904 swig_obj[0] = args;
4905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4906 if (!SWIG_IsOK(res1)) {
4907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4908 }
4909 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 resultobj = SWIG_From_int(static_cast< int >(result));
4917 return resultobj;
4918 fail:
4919 return NULL;
4920 }
4921
4922
4923 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj = 0;
4925 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4926 wxCheckBoxState arg2 ;
4927 void *argp1 = 0 ;
4928 int res1 = 0 ;
4929 int val2 ;
4930 int ecode2 = 0 ;
4931 PyObject * obj0 = 0 ;
4932 PyObject * obj1 = 0 ;
4933 char * kwnames[] = {
4934 (char *) "self",(char *) "state", NULL
4935 };
4936
4937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4939 if (!SWIG_IsOK(res1)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4941 }
4942 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4943 ecode2 = SWIG_AsVal_int(obj1, &val2);
4944 if (!SWIG_IsOK(ecode2)) {
4945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4946 }
4947 arg2 = static_cast< wxCheckBoxState >(val2);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 (arg1)->Set3StateValue(arg2);
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_Py_Void();
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4964 bool result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4974 }
4975 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 {
4983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4984 }
4985 return resultobj;
4986 fail:
4987 return NULL;
4988 }
4989
4990
4991 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992 PyObject *resultobj = 0;
4993 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4994 bool result;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 PyObject *swig_obj[1] ;
4998
4999 if (!args) SWIG_fail;
5000 swig_obj[0] = args;
5001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5002 if (!SWIG_IsOK(res1)) {
5003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5004 }
5005 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5014 }
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj = 0;
5023 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5024 SwigValueWrapper<wxVisualAttributes > result;
5025 int val1 ;
5026 int ecode1 = 0 ;
5027 PyObject * obj0 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "variant", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5033 if (obj0) {
5034 ecode1 = SWIG_AsVal_int(obj0, &val1);
5035 if (!SWIG_IsOK(ecode1)) {
5036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5037 }
5038 arg1 = static_cast< wxWindowVariant >(val1);
5039 }
5040 {
5041 if (!wxPyCheckForApp()) SWIG_fail;
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 PyObject *obj;
5056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5057 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5058 return SWIG_Py_Void();
5059 }
5060
5061 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 return SWIG_Python_InitShadowInstance(args);
5063 }
5064
5065 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5066 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5067 return 1;
5068 }
5069
5070
5071 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5072 PyObject *pyobj = 0;
5073
5074 {
5075 #if wxUSE_UNICODE
5076 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5077 #else
5078 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5079 #endif
5080 }
5081 return pyobj;
5082 }
5083
5084
5085 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5086 PyObject *resultobj = 0;
5087 wxWindow *arg1 = (wxWindow *) 0 ;
5088 int arg2 = (int) -1 ;
5089 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5090 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5091 wxSize const &arg4_defvalue = wxDefaultSize ;
5092 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5093 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5094 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5095 long arg6 = (long) 0 ;
5096 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5097 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5098 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5099 wxString *arg8 = (wxString *) &arg8_defvalue ;
5100 wxChoice *result = 0 ;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 int val2 ;
5104 int ecode2 = 0 ;
5105 wxPoint temp3 ;
5106 wxSize temp4 ;
5107 bool temp5 = false ;
5108 long val6 ;
5109 int ecode6 = 0 ;
5110 void *argp7 = 0 ;
5111 int res7 = 0 ;
5112 bool temp8 = false ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5115 PyObject * obj2 = 0 ;
5116 PyObject * obj3 = 0 ;
5117 PyObject * obj4 = 0 ;
5118 PyObject * obj5 = 0 ;
5119 PyObject * obj6 = 0 ;
5120 PyObject * obj7 = 0 ;
5121 char * kwnames[] = {
5122 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5123 };
5124
5125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5129 }
5130 arg1 = reinterpret_cast< wxWindow * >(argp1);
5131 if (obj1) {
5132 ecode2 = SWIG_AsVal_int(obj1, &val2);
5133 if (!SWIG_IsOK(ecode2)) {
5134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5135 }
5136 arg2 = static_cast< int >(val2);
5137 }
5138 if (obj2) {
5139 {
5140 arg3 = &temp3;
5141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5142 }
5143 }
5144 if (obj3) {
5145 {
5146 arg4 = &temp4;
5147 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5148 }
5149 }
5150 if (obj4) {
5151 {
5152 if (! PySequence_Check(obj4)) {
5153 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5154 SWIG_fail;
5155 }
5156 arg5 = new wxArrayString;
5157 temp5 = true;
5158 int i, len=PySequence_Length(obj4);
5159 for (i=0; i<len; i++) {
5160 PyObject* item = PySequence_GetItem(obj4, i);
5161 wxString* s = wxString_in_helper(item);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 arg5->Add(*s);
5164 delete s;
5165 Py_DECREF(item);
5166 }
5167 }
5168 }
5169 if (obj5) {
5170 ecode6 = SWIG_AsVal_long(obj5, &val6);
5171 if (!SWIG_IsOK(ecode6)) {
5172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5173 }
5174 arg6 = static_cast< long >(val6);
5175 }
5176 if (obj6) {
5177 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5178 if (!SWIG_IsOK(res7)) {
5179 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5180 }
5181 if (!argp7) {
5182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5183 }
5184 arg7 = reinterpret_cast< wxValidator * >(argp7);
5185 }
5186 if (obj7) {
5187 {
5188 arg8 = wxString_in_helper(obj7);
5189 if (arg8 == NULL) SWIG_fail;
5190 temp8 = true;
5191 }
5192 }
5193 {
5194 if (!wxPyCheckForApp()) SWIG_fail;
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5201 {
5202 if (temp5) delete arg5;
5203 }
5204 {
5205 if (temp8)
5206 delete arg8;
5207 }
5208 return resultobj;
5209 fail:
5210 {
5211 if (temp5) delete arg5;
5212 }
5213 {
5214 if (temp8)
5215 delete arg8;
5216 }
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxChoice *result = 0 ;
5224
5225 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5226 {
5227 if (!wxPyCheckForApp()) SWIG_fail;
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (wxChoice *)new wxChoice();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5234 return resultobj;
5235 fail:
5236 return NULL;
5237 }
5238
5239
5240 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5241 PyObject *resultobj = 0;
5242 wxChoice *arg1 = (wxChoice *) 0 ;
5243 wxWindow *arg2 = (wxWindow *) 0 ;
5244 int arg3 = (int) -1 ;
5245 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5246 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5247 wxSize const &arg5_defvalue = wxDefaultSize ;
5248 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5249 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5250 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5251 long arg7 = (long) 0 ;
5252 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5253 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5254 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5255 wxString *arg9 = (wxString *) &arg9_defvalue ;
5256 bool result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 void *argp2 = 0 ;
5260 int res2 = 0 ;
5261 int val3 ;
5262 int ecode3 = 0 ;
5263 wxPoint temp4 ;
5264 wxSize temp5 ;
5265 bool temp6 = false ;
5266 long val7 ;
5267 int ecode7 = 0 ;
5268 void *argp8 = 0 ;
5269 int res8 = 0 ;
5270 bool temp9 = false ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 PyObject * obj2 = 0 ;
5274 PyObject * obj3 = 0 ;
5275 PyObject * obj4 = 0 ;
5276 PyObject * obj5 = 0 ;
5277 PyObject * obj6 = 0 ;
5278 PyObject * obj7 = 0 ;
5279 PyObject * obj8 = 0 ;
5280 char * kwnames[] = {
5281 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5282 };
5283
5284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5288 }
5289 arg1 = reinterpret_cast< wxChoice * >(argp1);
5290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5291 if (!SWIG_IsOK(res2)) {
5292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5293 }
5294 arg2 = reinterpret_cast< wxWindow * >(argp2);
5295 if (obj2) {
5296 ecode3 = SWIG_AsVal_int(obj2, &val3);
5297 if (!SWIG_IsOK(ecode3)) {
5298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5299 }
5300 arg3 = static_cast< int >(val3);
5301 }
5302 if (obj3) {
5303 {
5304 arg4 = &temp4;
5305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5306 }
5307 }
5308 if (obj4) {
5309 {
5310 arg5 = &temp5;
5311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5312 }
5313 }
5314 if (obj5) {
5315 {
5316 if (! PySequence_Check(obj5)) {
5317 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5318 SWIG_fail;
5319 }
5320 arg6 = new wxArrayString;
5321 temp6 = true;
5322 int i, len=PySequence_Length(obj5);
5323 for (i=0; i<len; i++) {
5324 PyObject* item = PySequence_GetItem(obj5, i);
5325 wxString* s = wxString_in_helper(item);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 arg6->Add(*s);
5328 delete s;
5329 Py_DECREF(item);
5330 }
5331 }
5332 }
5333 if (obj6) {
5334 ecode7 = SWIG_AsVal_long(obj6, &val7);
5335 if (!SWIG_IsOK(ecode7)) {
5336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5337 }
5338 arg7 = static_cast< long >(val7);
5339 }
5340 if (obj7) {
5341 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5342 if (!SWIG_IsOK(res8)) {
5343 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5344 }
5345 if (!argp8) {
5346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5347 }
5348 arg8 = reinterpret_cast< wxValidator * >(argp8);
5349 }
5350 if (obj8) {
5351 {
5352 arg9 = wxString_in_helper(obj8);
5353 if (arg9 == NULL) SWIG_fail;
5354 temp9 = true;
5355 }
5356 }
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5365 }
5366 {
5367 if (temp6) delete arg6;
5368 }
5369 {
5370 if (temp9)
5371 delete arg9;
5372 }
5373 return resultobj;
5374 fail:
5375 {
5376 if (temp6) delete arg6;
5377 }
5378 {
5379 if (temp9)
5380 delete arg9;
5381 }
5382 return NULL;
5383 }
5384
5385
5386 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5387 PyObject *resultobj = 0;
5388 wxChoice *arg1 = (wxChoice *) 0 ;
5389 int result;
5390 void *argp1 = 0 ;
5391 int res1 = 0 ;
5392 PyObject *swig_obj[1] ;
5393
5394 if (!args) SWIG_fail;
5395 swig_obj[0] = args;
5396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5399 }
5400 arg1 = reinterpret_cast< wxChoice * >(argp1);
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_From_int(static_cast< int >(result));
5408 return resultobj;
5409 fail:
5410 return NULL;
5411 }
5412
5413
5414 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj = 0;
5416 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5417 SwigValueWrapper<wxVisualAttributes > result;
5418 int val1 ;
5419 int ecode1 = 0 ;
5420 PyObject * obj0 = 0 ;
5421 char * kwnames[] = {
5422 (char *) "variant", NULL
5423 };
5424
5425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5426 if (obj0) {
5427 ecode1 = SWIG_AsVal_int(obj0, &val1);
5428 if (!SWIG_IsOK(ecode1)) {
5429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5430 }
5431 arg1 = static_cast< wxWindowVariant >(val1);
5432 }
5433 {
5434 if (!wxPyCheckForApp()) SWIG_fail;
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = wxChoice::GetClassDefaultAttributes(arg1);
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5441 return resultobj;
5442 fail:
5443 return NULL;
5444 }
5445
5446
5447 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *obj;
5449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5450 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5451 return SWIG_Py_Void();
5452 }
5453
5454 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 return SWIG_Python_InitShadowInstance(args);
5456 }
5457
5458 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5459 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5460 return 1;
5461 }
5462
5463
5464 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5465 PyObject *pyobj = 0;
5466
5467 {
5468 #if wxUSE_UNICODE
5469 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5470 #else
5471 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5472 #endif
5473 }
5474 return pyobj;
5475 }
5476
5477
5478 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj = 0;
5480 wxWindow *arg1 = (wxWindow *) 0 ;
5481 int arg2 = (int) -1 ;
5482 wxString const &arg3_defvalue = wxPyEmptyString ;
5483 wxString *arg3 = (wxString *) &arg3_defvalue ;
5484 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5485 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5486 wxSize const &arg5_defvalue = wxDefaultSize ;
5487 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5488 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5489 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5490 long arg7 = (long) 0 ;
5491 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5492 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5493 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5494 wxString *arg9 = (wxString *) &arg9_defvalue ;
5495 wxComboBox *result = 0 ;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 int val2 ;
5499 int ecode2 = 0 ;
5500 bool temp3 = false ;
5501 wxPoint temp4 ;
5502 wxSize temp5 ;
5503 bool temp6 = false ;
5504 long val7 ;
5505 int ecode7 = 0 ;
5506 void *argp8 = 0 ;
5507 int res8 = 0 ;
5508 bool temp9 = false ;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 PyObject * obj2 = 0 ;
5512 PyObject * obj3 = 0 ;
5513 PyObject * obj4 = 0 ;
5514 PyObject * obj5 = 0 ;
5515 PyObject * obj6 = 0 ;
5516 PyObject * obj7 = 0 ;
5517 PyObject * obj8 = 0 ;
5518 char * kwnames[] = {
5519 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5520 };
5521
5522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5524 if (!SWIG_IsOK(res1)) {
5525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5526 }
5527 arg1 = reinterpret_cast< wxWindow * >(argp1);
5528 if (obj1) {
5529 ecode2 = SWIG_AsVal_int(obj1, &val2);
5530 if (!SWIG_IsOK(ecode2)) {
5531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5532 }
5533 arg2 = static_cast< int >(val2);
5534 }
5535 if (obj2) {
5536 {
5537 arg3 = wxString_in_helper(obj2);
5538 if (arg3 == NULL) SWIG_fail;
5539 temp3 = true;
5540 }
5541 }
5542 if (obj3) {
5543 {
5544 arg4 = &temp4;
5545 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5546 }
5547 }
5548 if (obj4) {
5549 {
5550 arg5 = &temp5;
5551 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5552 }
5553 }
5554 if (obj5) {
5555 {
5556 if (! PySequence_Check(obj5)) {
5557 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5558 SWIG_fail;
5559 }
5560 arg6 = new wxArrayString;
5561 temp6 = true;
5562 int i, len=PySequence_Length(obj5);
5563 for (i=0; i<len; i++) {
5564 PyObject* item = PySequence_GetItem(obj5, i);
5565 wxString* s = wxString_in_helper(item);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 arg6->Add(*s);
5568 delete s;
5569 Py_DECREF(item);
5570 }
5571 }
5572 }
5573 if (obj6) {
5574 ecode7 = SWIG_AsVal_long(obj6, &val7);
5575 if (!SWIG_IsOK(ecode7)) {
5576 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5577 }
5578 arg7 = static_cast< long >(val7);
5579 }
5580 if (obj7) {
5581 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5582 if (!SWIG_IsOK(res8)) {
5583 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5584 }
5585 if (!argp8) {
5586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5587 }
5588 arg8 = reinterpret_cast< wxValidator * >(argp8);
5589 }
5590 if (obj8) {
5591 {
5592 arg9 = wxString_in_helper(obj8);
5593 if (arg9 == NULL) SWIG_fail;
5594 temp9 = true;
5595 }
5596 }
5597 {
5598 if (!wxPyCheckForApp()) SWIG_fail;
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 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);
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5605 {
5606 if (temp3)
5607 delete arg3;
5608 }
5609 {
5610 if (temp6) delete arg6;
5611 }
5612 {
5613 if (temp9)
5614 delete arg9;
5615 }
5616 return resultobj;
5617 fail:
5618 {
5619 if (temp3)
5620 delete arg3;
5621 }
5622 {
5623 if (temp6) delete arg6;
5624 }
5625 {
5626 if (temp9)
5627 delete arg9;
5628 }
5629 return NULL;
5630 }
5631
5632
5633 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5634 PyObject *resultobj = 0;
5635 wxComboBox *result = 0 ;
5636
5637 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5638 {
5639 if (!wxPyCheckForApp()) SWIG_fail;
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (wxComboBox *)new wxComboBox();
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj = 0;
5654 wxComboBox *arg1 = (wxComboBox *) 0 ;
5655 wxWindow *arg2 = (wxWindow *) 0 ;
5656 int arg3 = (int) -1 ;
5657 wxString const &arg4_defvalue = wxPyEmptyString ;
5658 wxString *arg4 = (wxString *) &arg4_defvalue ;
5659 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5660 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5661 wxSize const &arg6_defvalue = wxDefaultSize ;
5662 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5663 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5664 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5665 long arg8 = (long) 0 ;
5666 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5667 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5668 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5669 wxString *arg10 = (wxString *) &arg10_defvalue ;
5670 bool result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 void *argp2 = 0 ;
5674 int res2 = 0 ;
5675 int val3 ;
5676 int ecode3 = 0 ;
5677 bool temp4 = false ;
5678 wxPoint temp5 ;
5679 wxSize temp6 ;
5680 bool temp7 = false ;
5681 long val8 ;
5682 int ecode8 = 0 ;
5683 void *argp9 = 0 ;
5684 int res9 = 0 ;
5685 bool temp10 = false ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 PyObject * obj2 = 0 ;
5689 PyObject * obj3 = 0 ;
5690 PyObject * obj4 = 0 ;
5691 PyObject * obj5 = 0 ;
5692 PyObject * obj6 = 0 ;
5693 PyObject * obj7 = 0 ;
5694 PyObject * obj8 = 0 ;
5695 PyObject * obj9 = 0 ;
5696 char * kwnames[] = {
5697 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5698 };
5699
5700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5702 if (!SWIG_IsOK(res1)) {
5703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5704 }
5705 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5707 if (!SWIG_IsOK(res2)) {
5708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5709 }
5710 arg2 = reinterpret_cast< wxWindow * >(argp2);
5711 if (obj2) {
5712 ecode3 = SWIG_AsVal_int(obj2, &val3);
5713 if (!SWIG_IsOK(ecode3)) {
5714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5715 }
5716 arg3 = static_cast< int >(val3);
5717 }
5718 if (obj3) {
5719 {
5720 arg4 = wxString_in_helper(obj3);
5721 if (arg4 == NULL) SWIG_fail;
5722 temp4 = true;
5723 }
5724 }
5725 if (obj4) {
5726 {
5727 arg5 = &temp5;
5728 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5729 }
5730 }
5731 if (obj5) {
5732 {
5733 arg6 = &temp6;
5734 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5735 }
5736 }
5737 if (obj6) {
5738 {
5739 if (! PySequence_Check(obj6)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg7 = new wxArrayString;
5744 temp7 = true;
5745 int i, len=PySequence_Length(obj6);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj6, i);
5748 wxString* s = wxString_in_helper(item);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 arg7->Add(*s);
5751 delete s;
5752 Py_DECREF(item);
5753 }
5754 }
5755 }
5756 if (obj7) {
5757 ecode8 = SWIG_AsVal_long(obj7, &val8);
5758 if (!SWIG_IsOK(ecode8)) {
5759 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5760 }
5761 arg8 = static_cast< long >(val8);
5762 }
5763 if (obj8) {
5764 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5765 if (!SWIG_IsOK(res9)) {
5766 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5767 }
5768 if (!argp9) {
5769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5770 }
5771 arg9 = reinterpret_cast< wxValidator * >(argp9);
5772 }
5773 if (obj9) {
5774 {
5775 arg10 = wxString_in_helper(obj9);
5776 if (arg10 == NULL) SWIG_fail;
5777 temp10 = true;
5778 }
5779 }
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 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);
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5788 }
5789 {
5790 if (temp4)
5791 delete arg4;
5792 }
5793 {
5794 if (temp7) delete arg7;
5795 }
5796 {
5797 if (temp10)
5798 delete arg10;
5799 }
5800 return resultobj;
5801 fail:
5802 {
5803 if (temp4)
5804 delete arg4;
5805 }
5806 {
5807 if (temp7) delete arg7;
5808 }
5809 {
5810 if (temp10)
5811 delete arg10;
5812 }
5813 return NULL;
5814 }
5815
5816
5817 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5818 PyObject *resultobj = 0;
5819 wxComboBox *arg1 = (wxComboBox *) 0 ;
5820 wxString result;
5821 void *argp1 = 0 ;
5822 int res1 = 0 ;
5823 PyObject *swig_obj[1] ;
5824
5825 if (!args) SWIG_fail;
5826 swig_obj[0] = args;
5827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5828 if (!SWIG_IsOK(res1)) {
5829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5830 }
5831 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5832 {
5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
5834 result = ((wxComboBox const *)arg1)->GetValue();
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 {
5839 #if wxUSE_UNICODE
5840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5841 #else
5842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5843 #endif
5844 }
5845 return resultobj;
5846 fail:
5847 return NULL;
5848 }
5849
5850
5851 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj = 0;
5853 wxComboBox *arg1 = (wxComboBox *) 0 ;
5854 wxString *arg2 = 0 ;
5855 void *argp1 = 0 ;
5856 int res1 = 0 ;
5857 bool temp2 = false ;
5858 PyObject * obj0 = 0 ;
5859 PyObject * obj1 = 0 ;
5860 char * kwnames[] = {
5861 (char *) "self",(char *) "value", NULL
5862 };
5863
5864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5866 if (!SWIG_IsOK(res1)) {
5867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5868 }
5869 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5870 {
5871 arg2 = wxString_in_helper(obj1);
5872 if (arg2 == NULL) SWIG_fail;
5873 temp2 = true;
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->SetValue((wxString const &)*arg2);
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_Py_Void();
5882 {
5883 if (temp2)
5884 delete arg2;
5885 }
5886 return resultobj;
5887 fail:
5888 {
5889 if (temp2)
5890 delete arg2;
5891 }
5892 return NULL;
5893 }
5894
5895
5896 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5897 PyObject *resultobj = 0;
5898 wxComboBox *arg1 = (wxComboBox *) 0 ;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Copy();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxComboBox *arg1 = (wxComboBox *) 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 PyObject *swig_obj[1] ;
5929
5930 if (!args) SWIG_fail;
5931 swig_obj[0] = args;
5932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5933 if (!SWIG_IsOK(res1)) {
5934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Cut();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945 fail:
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5962 }
5963 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 (arg1)->Paste();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_Py_Void();
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj = 0;
5979 wxComboBox *arg1 = (wxComboBox *) 0 ;
5980 long arg2 ;
5981 void *argp1 = 0 ;
5982 int res1 = 0 ;
5983 long val2 ;
5984 int ecode2 = 0 ;
5985 PyObject * obj0 = 0 ;
5986 PyObject * obj1 = 0 ;
5987 char * kwnames[] = {
5988 (char *) "self",(char *) "pos", NULL
5989 };
5990
5991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5995 }
5996 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5997 ecode2 = SWIG_AsVal_long(obj1, &val2);
5998 if (!SWIG_IsOK(ecode2)) {
5999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6000 }
6001 arg2 = static_cast< long >(val2);
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 (arg1)->SetInsertionPoint(arg2);
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 resultobj = SWIG_Py_Void();
6009 return resultobj;
6010 fail:
6011 return NULL;
6012 }
6013
6014
6015 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 wxComboBox *arg1 = (wxComboBox *) 0 ;
6018 long result;
6019 void *argp1 = 0 ;
6020 int res1 = 0 ;
6021 PyObject *swig_obj[1] ;
6022
6023 if (!args) SWIG_fail;
6024 swig_obj[0] = args;
6025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6028 }
6029 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 resultobj = SWIG_From_long(static_cast< long >(result));
6037 return resultobj;
6038 fail:
6039 return NULL;
6040 }
6041
6042
6043 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6044 PyObject *resultobj = 0;
6045 wxComboBox *arg1 = (wxComboBox *) 0 ;
6046 long result;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 PyObject *swig_obj[1] ;
6050
6051 if (!args) SWIG_fail;
6052 swig_obj[0] = args;
6053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6056 }
6057 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_From_long(static_cast< long >(result));
6065 return resultobj;
6066 fail:
6067 return NULL;
6068 }
6069
6070
6071 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6072 PyObject *resultobj = 0;
6073 wxComboBox *arg1 = (wxComboBox *) 0 ;
6074 long arg2 ;
6075 long arg3 ;
6076 wxString *arg4 = 0 ;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 long val2 ;
6080 int ecode2 = 0 ;
6081 long val3 ;
6082 int ecode3 = 0 ;
6083 bool temp4 = false ;
6084 PyObject * obj0 = 0 ;
6085 PyObject * obj1 = 0 ;
6086 PyObject * obj2 = 0 ;
6087 PyObject * obj3 = 0 ;
6088 char * kwnames[] = {
6089 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6090 };
6091
6092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6094 if (!SWIG_IsOK(res1)) {
6095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6096 }
6097 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6098 ecode2 = SWIG_AsVal_long(obj1, &val2);
6099 if (!SWIG_IsOK(ecode2)) {
6100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6101 }
6102 arg2 = static_cast< long >(val2);
6103 ecode3 = SWIG_AsVal_long(obj2, &val3);
6104 if (!SWIG_IsOK(ecode3)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6106 }
6107 arg3 = static_cast< long >(val3);
6108 {
6109 arg4 = wxString_in_helper(obj3);
6110 if (arg4 == NULL) SWIG_fail;
6111 temp4 = true;
6112 }
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 resultobj = SWIG_Py_Void();
6120 {
6121 if (temp4)
6122 delete arg4;
6123 }
6124 return resultobj;
6125 fail:
6126 {
6127 if (temp4)
6128 delete arg4;
6129 }
6130 return NULL;
6131 }
6132
6133
6134 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj = 0;
6136 wxComboBox *arg1 = (wxComboBox *) 0 ;
6137 long arg2 ;
6138 long arg3 ;
6139 void *argp1 = 0 ;
6140 int res1 = 0 ;
6141 long val2 ;
6142 int ecode2 = 0 ;
6143 long val3 ;
6144 int ecode3 = 0 ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 PyObject * obj2 = 0 ;
6148 char * kwnames[] = {
6149 (char *) "self",(char *) "from",(char *) "to", NULL
6150 };
6151
6152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6156 }
6157 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6158 ecode2 = SWIG_AsVal_long(obj1, &val2);
6159 if (!SWIG_IsOK(ecode2)) {
6160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6161 }
6162 arg2 = static_cast< long >(val2);
6163 ecode3 = SWIG_AsVal_long(obj2, &val3);
6164 if (!SWIG_IsOK(ecode3)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6166 }
6167 arg3 = static_cast< long >(val3);
6168 {
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 (arg1)->SetSelection(arg2,arg3);
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_Py_Void();
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxComboBox *arg1 = (wxComboBox *) 0 ;
6184 long *arg2 = (long *) 0 ;
6185 long *arg3 = (long *) 0 ;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 long temp2 ;
6189 int res2 = SWIG_TMPOBJ ;
6190 long temp3 ;
6191 int res3 = SWIG_TMPOBJ ;
6192 PyObject *swig_obj[1] ;
6193
6194 arg2 = &temp2;
6195 arg3 = &temp3;
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6201 }
6202 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 (arg1)->GetSelection(arg2,arg3);
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_Py_Void();
6210 if (SWIG_IsTmpObj(res2)) {
6211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6212 } else {
6213 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6215 }
6216 if (SWIG_IsTmpObj(res3)) {
6217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6218 } else {
6219 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6221 }
6222 return resultobj;
6223 fail:
6224 return NULL;
6225 }
6226
6227
6228 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6229 PyObject *resultobj = 0;
6230 wxComboBox *arg1 = (wxComboBox *) 0 ;
6231 int result;
6232 void *argp1 = 0 ;
6233 int res1 = 0 ;
6234 PyObject *swig_obj[1] ;
6235
6236 if (!args) SWIG_fail;
6237 swig_obj[0] = args;
6238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6239 if (!SWIG_IsOK(res1)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6241 }
6242 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
6249 resultobj = SWIG_From_int(static_cast< int >(result));
6250 return resultobj;
6251 fail:
6252 return NULL;
6253 }
6254
6255
6256 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6257 PyObject *resultobj = 0;
6258 wxComboBox *arg1 = (wxComboBox *) 0 ;
6259 wxString *arg2 = 0 ;
6260 bool result;
6261 void *argp1 = 0 ;
6262 int res1 = 0 ;
6263 bool temp2 = false ;
6264 PyObject * obj0 = 0 ;
6265 PyObject * obj1 = 0 ;
6266 char * kwnames[] = {
6267 (char *) "self",(char *) "string", NULL
6268 };
6269
6270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6272 if (!SWIG_IsOK(res1)) {
6273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6274 }
6275 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6276 {
6277 arg2 = wxString_in_helper(obj1);
6278 if (arg2 == NULL) SWIG_fail;
6279 temp2 = true;
6280 }
6281 {
6282 PyThreadState* __tstate = wxPyBeginAllowThreads();
6283 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6289 }
6290 {
6291 if (temp2)
6292 delete arg2;
6293 }
6294 return resultobj;
6295 fail:
6296 {
6297 if (temp2)
6298 delete arg2;
6299 }
6300 return NULL;
6301 }
6302
6303
6304 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6305 PyObject *resultobj = 0;
6306 wxComboBox *arg1 = (wxComboBox *) 0 ;
6307 int arg2 ;
6308 wxString *arg3 = 0 ;
6309 void *argp1 = 0 ;
6310 int res1 = 0 ;
6311 int val2 ;
6312 int ecode2 = 0 ;
6313 bool temp3 = false ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 PyObject * obj2 = 0 ;
6317 char * kwnames[] = {
6318 (char *) "self",(char *) "n",(char *) "string", NULL
6319 };
6320
6321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6325 }
6326 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6327 ecode2 = SWIG_AsVal_int(obj1, &val2);
6328 if (!SWIG_IsOK(ecode2)) {
6329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6330 }
6331 arg2 = static_cast< int >(val2);
6332 {
6333 arg3 = wxString_in_helper(obj2);
6334 if (arg3 == NULL) SWIG_fail;
6335 temp3 = true;
6336 }
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 (arg1)->SetString(arg2,(wxString const &)*arg3);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_Py_Void();
6344 {
6345 if (temp3)
6346 delete arg3;
6347 }
6348 return resultobj;
6349 fail:
6350 {
6351 if (temp3)
6352 delete arg3;
6353 }
6354 return NULL;
6355 }
6356
6357
6358 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = 0;
6360 wxComboBox *arg1 = (wxComboBox *) 0 ;
6361 bool arg2 ;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 bool val2 ;
6365 int ecode2 = 0 ;
6366 PyObject * obj0 = 0 ;
6367 PyObject * obj1 = 0 ;
6368 char * kwnames[] = {
6369 (char *) "self",(char *) "editable", NULL
6370 };
6371
6372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6374 if (!SWIG_IsOK(res1)) {
6375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6376 }
6377 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6379 if (!SWIG_IsOK(ecode2)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6381 }
6382 arg2 = static_cast< bool >(val2);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetEditable(arg2);
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391 fail:
6392 return NULL;
6393 }
6394
6395
6396 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 PyObject *swig_obj[1] ;
6402
6403 if (!args) SWIG_fail;
6404 swig_obj[0] = args;
6405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6406 if (!SWIG_IsOK(res1)) {
6407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6408 }
6409 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->SetInsertionPointEnd();
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 long arg2 ;
6427 long arg3 ;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 long val2 ;
6431 int ecode2 = 0 ;
6432 long val3 ;
6433 int ecode3 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 PyObject * obj2 = 0 ;
6437 char * kwnames[] = {
6438 (char *) "self",(char *) "from",(char *) "to", NULL
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6445 }
6446 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6447 ecode2 = SWIG_AsVal_long(obj1, &val2);
6448 if (!SWIG_IsOK(ecode2)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6450 }
6451 arg2 = static_cast< long >(val2);
6452 ecode3 = SWIG_AsVal_long(obj2, &val3);
6453 if (!SWIG_IsOK(ecode3)) {
6454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6455 }
6456 arg3 = static_cast< long >(val3);
6457 {
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 (arg1)->Remove(arg2,arg3);
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_Py_Void();
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxComboBox *arg1 = (wxComboBox *) 0 ;
6473 bool result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6483 }
6484 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 {
6492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6493 }
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Undo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->Redo();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549 fail:
6550 return NULL;
6551 }
6552
6553
6554 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6566 }
6567 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 (arg1)->SelectAll();
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_Py_Void();
6575 return resultobj;
6576 fail:
6577 return NULL;
6578 }
6579
6580
6581 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6582 PyObject *resultobj = 0;
6583 wxComboBox *arg1 = (wxComboBox *) 0 ;
6584 bool result;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 PyObject *swig_obj[1] ;
6588
6589 if (!args) SWIG_fail;
6590 swig_obj[0] = args;
6591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6592 if (!SWIG_IsOK(res1)) {
6593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6594 }
6595 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxComboBox *arg1 = (wxComboBox *) 0 ;
6614 bool result;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 result = (bool)((wxComboBox const *)arg1)->CanCut();
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 {
6633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6634 }
6635 return resultobj;
6636 fail:
6637 return NULL;
6638 }
6639
6640
6641 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6642 PyObject *resultobj = 0;
6643 wxComboBox *arg1 = (wxComboBox *) 0 ;
6644 bool result;
6645 void *argp1 = 0 ;
6646 int res1 = 0 ;
6647 PyObject *swig_obj[1] ;
6648
6649 if (!args) SWIG_fail;
6650 swig_obj[0] = args;
6651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6652 if (!SWIG_IsOK(res1)) {
6653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6654 }
6655 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 {
6663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6664 }
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6672 PyObject *resultobj = 0;
6673 wxComboBox *arg1 = (wxComboBox *) 0 ;
6674 bool result;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject *swig_obj[1] ;
6678
6679 if (!args) SWIG_fail;
6680 swig_obj[0] = args;
6681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6684 }
6685 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6694 }
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 wxComboBox *arg1 = (wxComboBox *) 0 ;
6704 bool result;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 PyObject *swig_obj[1] ;
6708
6709 if (!args) SWIG_fail;
6710 swig_obj[0] = args;
6711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6712 if (!SWIG_IsOK(res1)) {
6713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6714 }
6715 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6724 }
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6734 SwigValueWrapper<wxVisualAttributes > result;
6735 int val1 ;
6736 int ecode1 = 0 ;
6737 PyObject * obj0 = 0 ;
6738 char * kwnames[] = {
6739 (char *) "variant", NULL
6740 };
6741
6742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6743 if (obj0) {
6744 ecode1 = SWIG_AsVal_int(obj0, &val1);
6745 if (!SWIG_IsOK(ecode1)) {
6746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6747 }
6748 arg1 = static_cast< wxWindowVariant >(val1);
6749 }
6750 {
6751 if (!wxPyCheckForApp()) SWIG_fail;
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = wxComboBox::GetClassDefaultAttributes(arg1);
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *obj;
6766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6767 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6768 return SWIG_Py_Void();
6769 }
6770
6771 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 return SWIG_Python_InitShadowInstance(args);
6773 }
6774
6775 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6776 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6777 return 1;
6778 }
6779
6780
6781 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6782 PyObject *pyobj = 0;
6783
6784 {
6785 #if wxUSE_UNICODE
6786 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6787 #else
6788 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6789 #endif
6790 }
6791 return pyobj;
6792 }
6793
6794
6795 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxWindow *arg1 = (wxWindow *) 0 ;
6798 int arg2 = (int) -1 ;
6799 int arg3 = (int) 100 ;
6800 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6801 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6802 wxSize const &arg5_defvalue = wxDefaultSize ;
6803 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6804 long arg6 = (long) wxGA_HORIZONTAL ;
6805 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6806 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6807 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6808 wxString *arg8 = (wxString *) &arg8_defvalue ;
6809 wxGauge *result = 0 ;
6810 void *argp1 = 0 ;
6811 int res1 = 0 ;
6812 int val2 ;
6813 int ecode2 = 0 ;
6814 int val3 ;
6815 int ecode3 = 0 ;
6816 wxPoint temp4 ;
6817 wxSize temp5 ;
6818 long val6 ;
6819 int ecode6 = 0 ;
6820 void *argp7 = 0 ;
6821 int res7 = 0 ;
6822 bool temp8 = false ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 PyObject * obj3 = 0 ;
6827 PyObject * obj4 = 0 ;
6828 PyObject * obj5 = 0 ;
6829 PyObject * obj6 = 0 ;
6830 PyObject * obj7 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6839 }
6840 arg1 = reinterpret_cast< wxWindow * >(argp1);
6841 if (obj1) {
6842 ecode2 = SWIG_AsVal_int(obj1, &val2);
6843 if (!SWIG_IsOK(ecode2)) {
6844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6845 }
6846 arg2 = static_cast< int >(val2);
6847 }
6848 if (obj2) {
6849 ecode3 = SWIG_AsVal_int(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6852 }
6853 arg3 = static_cast< int >(val3);
6854 }
6855 if (obj3) {
6856 {
6857 arg4 = &temp4;
6858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6859 }
6860 }
6861 if (obj4) {
6862 {
6863 arg5 = &temp5;
6864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6865 }
6866 }
6867 if (obj5) {
6868 ecode6 = SWIG_AsVal_long(obj5, &val6);
6869 if (!SWIG_IsOK(ecode6)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6871 }
6872 arg6 = static_cast< long >(val6);
6873 }
6874 if (obj6) {
6875 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6876 if (!SWIG_IsOK(res7)) {
6877 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6878 }
6879 if (!argp7) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6881 }
6882 arg7 = reinterpret_cast< wxValidator * >(argp7);
6883 }
6884 if (obj7) {
6885 {
6886 arg8 = wxString_in_helper(obj7);
6887 if (arg8 == NULL) SWIG_fail;
6888 temp8 = true;
6889 }
6890 }
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6899 {
6900 if (temp8)
6901 delete arg8;
6902 }
6903 return resultobj;
6904 fail:
6905 {
6906 if (temp8)
6907 delete arg8;
6908 }
6909 return NULL;
6910 }
6911
6912
6913 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6914 PyObject *resultobj = 0;
6915 wxGauge *result = 0 ;
6916
6917 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6918 {
6919 if (!wxPyCheckForApp()) SWIG_fail;
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxGauge *)new wxGauge();
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6926 return resultobj;
6927 fail:
6928 return NULL;
6929 }
6930
6931
6932 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxGauge *arg1 = (wxGauge *) 0 ;
6935 wxWindow *arg2 = (wxWindow *) 0 ;
6936 int arg3 = (int) -1 ;
6937 int arg4 = (int) 100 ;
6938 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6939 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6940 wxSize const &arg6_defvalue = wxDefaultSize ;
6941 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6942 long arg7 = (long) wxGA_HORIZONTAL ;
6943 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6944 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6945 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6946 wxString *arg9 = (wxString *) &arg9_defvalue ;
6947 bool result;
6948 void *argp1 = 0 ;
6949 int res1 = 0 ;
6950 void *argp2 = 0 ;
6951 int res2 = 0 ;
6952 int val3 ;
6953 int ecode3 = 0 ;
6954 int val4 ;
6955 int ecode4 = 0 ;
6956 wxPoint temp5 ;
6957 wxSize temp6 ;
6958 long val7 ;
6959 int ecode7 = 0 ;
6960 void *argp8 = 0 ;
6961 int res8 = 0 ;
6962 bool temp9 = false ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 PyObject * obj2 = 0 ;
6966 PyObject * obj3 = 0 ;
6967 PyObject * obj4 = 0 ;
6968 PyObject * obj5 = 0 ;
6969 PyObject * obj6 = 0 ;
6970 PyObject * obj7 = 0 ;
6971 PyObject * obj8 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6980 }
6981 arg1 = reinterpret_cast< wxGauge * >(argp1);
6982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6983 if (!SWIG_IsOK(res2)) {
6984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6985 }
6986 arg2 = reinterpret_cast< wxWindow * >(argp2);
6987 if (obj2) {
6988 ecode3 = SWIG_AsVal_int(obj2, &val3);
6989 if (!SWIG_IsOK(ecode3)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6991 }
6992 arg3 = static_cast< int >(val3);
6993 }
6994 if (obj3) {
6995 ecode4 = SWIG_AsVal_int(obj3, &val4);
6996 if (!SWIG_IsOK(ecode4)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6998 }
6999 arg4 = static_cast< int >(val4);
7000 }
7001 if (obj4) {
7002 {
7003 arg5 = &temp5;
7004 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7005 }
7006 }
7007 if (obj5) {
7008 {
7009 arg6 = &temp6;
7010 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7011 }
7012 }
7013 if (obj6) {
7014 ecode7 = SWIG_AsVal_long(obj6, &val7);
7015 if (!SWIG_IsOK(ecode7)) {
7016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7017 }
7018 arg7 = static_cast< long >(val7);
7019 }
7020 if (obj7) {
7021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7022 if (!SWIG_IsOK(res8)) {
7023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7024 }
7025 if (!argp8) {
7026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 arg8 = reinterpret_cast< wxValidator * >(argp8);
7029 }
7030 if (obj8) {
7031 {
7032 arg9 = wxString_in_helper(obj8);
7033 if (arg9 == NULL) SWIG_fail;
7034 temp9 = true;
7035 }
7036 }
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7045 }
7046 {
7047 if (temp9)
7048 delete arg9;
7049 }
7050 return resultobj;
7051 fail:
7052 {
7053 if (temp9)
7054 delete arg9;
7055 }
7056 return NULL;
7057 }
7058
7059
7060 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj = 0;
7062 wxGauge *arg1 = (wxGauge *) 0 ;
7063 int arg2 ;
7064 void *argp1 = 0 ;
7065 int res1 = 0 ;
7066 int val2 ;
7067 int ecode2 = 0 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 char * kwnames[] = {
7071 (char *) "self",(char *) "range", NULL
7072 };
7073
7074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7076 if (!SWIG_IsOK(res1)) {
7077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7078 }
7079 arg1 = reinterpret_cast< wxGauge * >(argp1);
7080 ecode2 = SWIG_AsVal_int(obj1, &val2);
7081 if (!SWIG_IsOK(ecode2)) {
7082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7083 }
7084 arg2 = static_cast< int >(val2);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetRange(arg2);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093 fail:
7094 return NULL;
7095 }
7096
7097
7098 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 int result;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxGauge * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (int)((wxGauge const *)arg1)->GetRange();
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121 fail:
7122 return NULL;
7123 }
7124
7125
7126 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj = 0;
7128 wxGauge *arg1 = (wxGauge *) 0 ;
7129 int arg2 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 int val2 ;
7133 int ecode2 = 0 ;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7136 char * kwnames[] = {
7137 (char *) "self",(char *) "pos", NULL
7138 };
7139
7140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7144 }
7145 arg1 = reinterpret_cast< wxGauge * >(argp1);
7146 ecode2 = SWIG_AsVal_int(obj1, &val2);
7147 if (!SWIG_IsOK(ecode2)) {
7148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7149 }
7150 arg2 = static_cast< int >(val2);
7151 {
7152 PyThreadState* __tstate = wxPyBeginAllowThreads();
7153 (arg1)->SetValue(arg2);
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_Py_Void();
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxGauge *arg1 = (wxGauge *) 0 ;
7167 int result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7177 }
7178 arg1 = reinterpret_cast< wxGauge * >(argp1);
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (int)((wxGauge const *)arg1)->GetValue();
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_From_int(static_cast< int >(result));
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 PyObject *resultobj = 0;
7194 wxGauge *arg1 = (wxGauge *) 0 ;
7195 bool result;
7196 void *argp1 = 0 ;
7197 int res1 = 0 ;
7198 PyObject *swig_obj[1] ;
7199
7200 if (!args) SWIG_fail;
7201 swig_obj[0] = args;
7202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7203 if (!SWIG_IsOK(res1)) {
7204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7205 }
7206 arg1 = reinterpret_cast< wxGauge * >(argp1);
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 result = (bool)((wxGauge const *)arg1)->IsVertical();
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 {
7214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7215 }
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = 0;
7224 wxGauge *arg1 = (wxGauge *) 0 ;
7225 int arg2 ;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 int val2 ;
7229 int ecode2 = 0 ;
7230 PyObject * obj0 = 0 ;
7231 PyObject * obj1 = 0 ;
7232 char * kwnames[] = {
7233 (char *) "self",(char *) "w", NULL
7234 };
7235
7236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7238 if (!SWIG_IsOK(res1)) {
7239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7240 }
7241 arg1 = reinterpret_cast< wxGauge * >(argp1);
7242 ecode2 = SWIG_AsVal_int(obj1, &val2);
7243 if (!SWIG_IsOK(ecode2)) {
7244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7245 }
7246 arg2 = static_cast< int >(val2);
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 (arg1)->SetShadowWidth(arg2);
7250 wxPyEndAllowThreads(__tstate);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_Py_Void();
7254 return resultobj;
7255 fail:
7256 return NULL;
7257 }
7258
7259
7260 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7261 PyObject *resultobj = 0;
7262 wxGauge *arg1 = (wxGauge *) 0 ;
7263 int result;
7264 void *argp1 = 0 ;
7265 int res1 = 0 ;
7266 PyObject *swig_obj[1] ;
7267
7268 if (!args) SWIG_fail;
7269 swig_obj[0] = args;
7270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7271 if (!SWIG_IsOK(res1)) {
7272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7273 }
7274 arg1 = reinterpret_cast< wxGauge * >(argp1);
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 resultobj = SWIG_From_int(static_cast< int >(result));
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj = 0;
7290 wxGauge *arg1 = (wxGauge *) 0 ;
7291 int arg2 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294 int val2 ;
7295 int ecode2 = 0 ;
7296 PyObject * obj0 = 0 ;
7297 PyObject * obj1 = 0 ;
7298 char * kwnames[] = {
7299 (char *) "self",(char *) "w", NULL
7300 };
7301
7302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7306 }
7307 arg1 = reinterpret_cast< wxGauge * >(argp1);
7308 ecode2 = SWIG_AsVal_int(obj1, &val2);
7309 if (!SWIG_IsOK(ecode2)) {
7310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7311 }
7312 arg2 = static_cast< int >(val2);
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 (arg1)->SetBezelFace(arg2);
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_Py_Void();
7320 return resultobj;
7321 fail:
7322 return NULL;
7323 }
7324
7325
7326 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxGauge *arg1 = (wxGauge *) 0 ;
7329 int result;
7330 void *argp1 = 0 ;
7331 int res1 = 0 ;
7332 PyObject *swig_obj[1] ;
7333
7334 if (!args) SWIG_fail;
7335 swig_obj[0] = args;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7339 }
7340 arg1 = reinterpret_cast< wxGauge * >(argp1);
7341 {
7342 PyThreadState* __tstate = wxPyBeginAllowThreads();
7343 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 resultobj = SWIG_From_int(static_cast< int >(result));
7348 return resultobj;
7349 fail:
7350 return NULL;
7351 }
7352
7353
7354 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7355 PyObject *resultobj = 0;
7356 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7357 SwigValueWrapper<wxVisualAttributes > result;
7358 int val1 ;
7359 int ecode1 = 0 ;
7360 PyObject * obj0 = 0 ;
7361 char * kwnames[] = {
7362 (char *) "variant", NULL
7363 };
7364
7365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7366 if (obj0) {
7367 ecode1 = SWIG_AsVal_int(obj0, &val1);
7368 if (!SWIG_IsOK(ecode1)) {
7369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7370 }
7371 arg1 = static_cast< wxWindowVariant >(val1);
7372 }
7373 {
7374 if (!wxPyCheckForApp()) SWIG_fail;
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = wxGauge::GetClassDefaultAttributes(arg1);
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7381 return resultobj;
7382 fail:
7383 return NULL;
7384 }
7385
7386
7387 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7388 PyObject *obj;
7389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7390 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7391 return SWIG_Py_Void();
7392 }
7393
7394 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 return SWIG_Python_InitShadowInstance(args);
7396 }
7397
7398 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7399 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7400 return 1;
7401 }
7402
7403
7404 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7405 PyObject *pyobj = 0;
7406
7407 {
7408 #if wxUSE_UNICODE
7409 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7410 #else
7411 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7412 #endif
7413 }
7414 return pyobj;
7415 }
7416
7417
7418 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7419 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7420 return 1;
7421 }
7422
7423
7424 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7425 PyObject *pyobj = 0;
7426
7427 {
7428 #if wxUSE_UNICODE
7429 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7430 #else
7431 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7432 #endif
7433 }
7434 return pyobj;
7435 }
7436
7437
7438 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7439 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7440 return 1;
7441 }
7442
7443
7444 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7445 PyObject *pyobj = 0;
7446
7447 {
7448 #if wxUSE_UNICODE
7449 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7450 #else
7451 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7452 #endif
7453 }
7454 return pyobj;
7455 }
7456
7457
7458 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj = 0;
7460 wxWindow *arg1 = (wxWindow *) 0 ;
7461 int arg2 = (int) -1 ;
7462 wxString const &arg3_defvalue = wxPyEmptyString ;
7463 wxString *arg3 = (wxString *) &arg3_defvalue ;
7464 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7465 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7466 wxSize const &arg5_defvalue = wxDefaultSize ;
7467 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7468 long arg6 = (long) 0 ;
7469 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7470 wxString *arg7 = (wxString *) &arg7_defvalue ;
7471 wxStaticBox *result = 0 ;
7472 void *argp1 = 0 ;
7473 int res1 = 0 ;
7474 int val2 ;
7475 int ecode2 = 0 ;
7476 bool temp3 = false ;
7477 wxPoint temp4 ;
7478 wxSize temp5 ;
7479 long val6 ;
7480 int ecode6 = 0 ;
7481 bool temp7 = false ;
7482 PyObject * obj0 = 0 ;
7483 PyObject * obj1 = 0 ;
7484 PyObject * obj2 = 0 ;
7485 PyObject * obj3 = 0 ;
7486 PyObject * obj4 = 0 ;
7487 PyObject * obj5 = 0 ;
7488 PyObject * obj6 = 0 ;
7489 char * kwnames[] = {
7490 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7491 };
7492
7493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7495 if (!SWIG_IsOK(res1)) {
7496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7497 }
7498 arg1 = reinterpret_cast< wxWindow * >(argp1);
7499 if (obj1) {
7500 ecode2 = SWIG_AsVal_int(obj1, &val2);
7501 if (!SWIG_IsOK(ecode2)) {
7502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7503 }
7504 arg2 = static_cast< int >(val2);
7505 }
7506 if (obj2) {
7507 {
7508 arg3 = wxString_in_helper(obj2);
7509 if (arg3 == NULL) SWIG_fail;
7510 temp3 = true;
7511 }
7512 }
7513 if (obj3) {
7514 {
7515 arg4 = &temp4;
7516 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7517 }
7518 }
7519 if (obj4) {
7520 {
7521 arg5 = &temp5;
7522 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7523 }
7524 }
7525 if (obj5) {
7526 ecode6 = SWIG_AsVal_long(obj5, &val6);
7527 if (!SWIG_IsOK(ecode6)) {
7528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7529 }
7530 arg6 = static_cast< long >(val6);
7531 }
7532 if (obj6) {
7533 {
7534 arg7 = wxString_in_helper(obj6);
7535 if (arg7 == NULL) SWIG_fail;
7536 temp7 = true;
7537 }
7538 }
7539 {
7540 if (!wxPyCheckForApp()) SWIG_fail;
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7547 {
7548 if (temp3)
7549 delete arg3;
7550 }
7551 {
7552 if (temp7)
7553 delete arg7;
7554 }
7555 return resultobj;
7556 fail:
7557 {
7558 if (temp3)
7559 delete arg3;
7560 }
7561 {
7562 if (temp7)
7563 delete arg7;
7564 }
7565 return NULL;
7566 }
7567
7568
7569 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7570 PyObject *resultobj = 0;
7571 wxStaticBox *result = 0 ;
7572
7573 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7574 {
7575 if (!wxPyCheckForApp()) SWIG_fail;
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 result = (wxStaticBox *)new wxStaticBox();
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
7581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7582 return resultobj;
7583 fail:
7584 return NULL;
7585 }
7586
7587
7588 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj = 0;
7590 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7591 wxWindow *arg2 = (wxWindow *) 0 ;
7592 int arg3 = (int) -1 ;
7593 wxString const &arg4_defvalue = wxPyEmptyString ;
7594 wxString *arg4 = (wxString *) &arg4_defvalue ;
7595 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7596 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7597 wxSize const &arg6_defvalue = wxDefaultSize ;
7598 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7599 long arg7 = (long) 0 ;
7600 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7601 wxString *arg8 = (wxString *) &arg8_defvalue ;
7602 bool result;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 void *argp2 = 0 ;
7606 int res2 = 0 ;
7607 int val3 ;
7608 int ecode3 = 0 ;
7609 bool temp4 = false ;
7610 wxPoint temp5 ;
7611 wxSize temp6 ;
7612 long val7 ;
7613 int ecode7 = 0 ;
7614 bool temp8 = false ;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7617 PyObject * obj2 = 0 ;
7618 PyObject * obj3 = 0 ;
7619 PyObject * obj4 = 0 ;
7620 PyObject * obj5 = 0 ;
7621 PyObject * obj6 = 0 ;
7622 PyObject * obj7 = 0 ;
7623 char * kwnames[] = {
7624 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7625 };
7626
7627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7631 }
7632 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7634 if (!SWIG_IsOK(res2)) {
7635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7636 }
7637 arg2 = reinterpret_cast< wxWindow * >(argp2);
7638 if (obj2) {
7639 ecode3 = SWIG_AsVal_int(obj2, &val3);
7640 if (!SWIG_IsOK(ecode3)) {
7641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7642 }
7643 arg3 = static_cast< int >(val3);
7644 }
7645 if (obj3) {
7646 {
7647 arg4 = wxString_in_helper(obj3);
7648 if (arg4 == NULL) SWIG_fail;
7649 temp4 = true;
7650 }
7651 }
7652 if (obj4) {
7653 {
7654 arg5 = &temp5;
7655 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7656 }
7657 }
7658 if (obj5) {
7659 {
7660 arg6 = &temp6;
7661 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7662 }
7663 }
7664 if (obj6) {
7665 ecode7 = SWIG_AsVal_long(obj6, &val7);
7666 if (!SWIG_IsOK(ecode7)) {
7667 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7668 }
7669 arg7 = static_cast< long >(val7);
7670 }
7671 if (obj7) {
7672 {
7673 arg8 = wxString_in_helper(obj7);
7674 if (arg8 == NULL) SWIG_fail;
7675 temp8 = true;
7676 }
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 {
7685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7686 }
7687 {
7688 if (temp4)
7689 delete arg4;
7690 }
7691 {
7692 if (temp8)
7693 delete arg8;
7694 }
7695 return resultobj;
7696 fail:
7697 {
7698 if (temp4)
7699 delete arg4;
7700 }
7701 {
7702 if (temp8)
7703 delete arg8;
7704 }
7705 return NULL;
7706 }
7707
7708
7709 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj = 0;
7711 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7712 SwigValueWrapper<wxVisualAttributes > result;
7713 int val1 ;
7714 int ecode1 = 0 ;
7715 PyObject * obj0 = 0 ;
7716 char * kwnames[] = {
7717 (char *) "variant", NULL
7718 };
7719
7720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7721 if (obj0) {
7722 ecode1 = SWIG_AsVal_int(obj0, &val1);
7723 if (!SWIG_IsOK(ecode1)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7725 }
7726 arg1 = static_cast< wxWindowVariant >(val1);
7727 }
7728 {
7729 if (!wxPyCheckForApp()) SWIG_fail;
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7736 return resultobj;
7737 fail:
7738 return NULL;
7739 }
7740
7741
7742 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7743 PyObject *obj;
7744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7745 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7746 return SWIG_Py_Void();
7747 }
7748
7749 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7750 return SWIG_Python_InitShadowInstance(args);
7751 }
7752
7753 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj = 0;
7755 wxWindow *arg1 = (wxWindow *) 0 ;
7756 int arg2 = (int) -1 ;
7757 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7758 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7759 wxSize const &arg4_defvalue = wxDefaultSize ;
7760 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7761 long arg5 = (long) wxLI_HORIZONTAL ;
7762 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7763 wxString *arg6 = (wxString *) &arg6_defvalue ;
7764 wxStaticLine *result = 0 ;
7765 void *argp1 = 0 ;
7766 int res1 = 0 ;
7767 int val2 ;
7768 int ecode2 = 0 ;
7769 wxPoint temp3 ;
7770 wxSize temp4 ;
7771 long val5 ;
7772 int ecode5 = 0 ;
7773 bool temp6 = false ;
7774 PyObject * obj0 = 0 ;
7775 PyObject * obj1 = 0 ;
7776 PyObject * obj2 = 0 ;
7777 PyObject * obj3 = 0 ;
7778 PyObject * obj4 = 0 ;
7779 PyObject * obj5 = 0 ;
7780 char * kwnames[] = {
7781 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7782 };
7783
7784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7786 if (!SWIG_IsOK(res1)) {
7787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7788 }
7789 arg1 = reinterpret_cast< wxWindow * >(argp1);
7790 if (obj1) {
7791 ecode2 = SWIG_AsVal_int(obj1, &val2);
7792 if (!SWIG_IsOK(ecode2)) {
7793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7794 }
7795 arg2 = static_cast< int >(val2);
7796 }
7797 if (obj2) {
7798 {
7799 arg3 = &temp3;
7800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7801 }
7802 }
7803 if (obj3) {
7804 {
7805 arg4 = &temp4;
7806 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7807 }
7808 }
7809 if (obj4) {
7810 ecode5 = SWIG_AsVal_long(obj4, &val5);
7811 if (!SWIG_IsOK(ecode5)) {
7812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7813 }
7814 arg5 = static_cast< long >(val5);
7815 }
7816 if (obj5) {
7817 {
7818 arg6 = wxString_in_helper(obj5);
7819 if (arg6 == NULL) SWIG_fail;
7820 temp6 = true;
7821 }
7822 }
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7831 {
7832 if (temp6)
7833 delete arg6;
7834 }
7835 return resultobj;
7836 fail:
7837 {
7838 if (temp6)
7839 delete arg6;
7840 }
7841 return NULL;
7842 }
7843
7844
7845 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7846 PyObject *resultobj = 0;
7847 wxStaticLine *result = 0 ;
7848
7849 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7850 {
7851 if (!wxPyCheckForApp()) SWIG_fail;
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (wxStaticLine *)new wxStaticLine();
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7858 return resultobj;
7859 fail:
7860 return NULL;
7861 }
7862
7863
7864 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj = 0;
7866 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7867 wxWindow *arg2 = (wxWindow *) 0 ;
7868 int arg3 = (int) -1 ;
7869 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7870 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7871 wxSize const &arg5_defvalue = wxDefaultSize ;
7872 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7873 long arg6 = (long) wxLI_HORIZONTAL ;
7874 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7875 wxString *arg7 = (wxString *) &arg7_defvalue ;
7876 bool result;
7877 void *argp1 = 0 ;
7878 int res1 = 0 ;
7879 void *argp2 = 0 ;
7880 int res2 = 0 ;
7881 int val3 ;
7882 int ecode3 = 0 ;
7883 wxPoint temp4 ;
7884 wxSize temp5 ;
7885 long val6 ;
7886 int ecode6 = 0 ;
7887 bool temp7 = false ;
7888 PyObject * obj0 = 0 ;
7889 PyObject * obj1 = 0 ;
7890 PyObject * obj2 = 0 ;
7891 PyObject * obj3 = 0 ;
7892 PyObject * obj4 = 0 ;
7893 PyObject * obj5 = 0 ;
7894 PyObject * obj6 = 0 ;
7895 char * kwnames[] = {
7896 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7897 };
7898
7899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7901 if (!SWIG_IsOK(res1)) {
7902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7903 }
7904 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7906 if (!SWIG_IsOK(res2)) {
7907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7908 }
7909 arg2 = reinterpret_cast< wxWindow * >(argp2);
7910 if (obj2) {
7911 ecode3 = SWIG_AsVal_int(obj2, &val3);
7912 if (!SWIG_IsOK(ecode3)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7914 }
7915 arg3 = static_cast< int >(val3);
7916 }
7917 if (obj3) {
7918 {
7919 arg4 = &temp4;
7920 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7921 }
7922 }
7923 if (obj4) {
7924 {
7925 arg5 = &temp5;
7926 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7927 }
7928 }
7929 if (obj5) {
7930 ecode6 = SWIG_AsVal_long(obj5, &val6);
7931 if (!SWIG_IsOK(ecode6)) {
7932 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7933 }
7934 arg6 = static_cast< long >(val6);
7935 }
7936 if (obj6) {
7937 {
7938 arg7 = wxString_in_helper(obj6);
7939 if (arg7 == NULL) SWIG_fail;
7940 temp7 = true;
7941 }
7942 }
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 {
7950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7951 }
7952 {
7953 if (temp7)
7954 delete arg7;
7955 }
7956 return resultobj;
7957 fail:
7958 {
7959 if (temp7)
7960 delete arg7;
7961 }
7962 return NULL;
7963 }
7964
7965
7966 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7967 PyObject *resultobj = 0;
7968 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7969 bool result;
7970 void *argp1 = 0 ;
7971 int res1 = 0 ;
7972 PyObject *swig_obj[1] ;
7973
7974 if (!args) SWIG_fail;
7975 swig_obj[0] = args;
7976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7977 if (!SWIG_IsOK(res1)) {
7978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7979 }
7980 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 {
7988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7989 }
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7997 PyObject *resultobj = 0;
7998 int result;
7999
8000 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 result = (int)wxStaticLine::GetDefaultSize();
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 resultobj = SWIG_From_int(static_cast< int >(result));
8008 return resultobj;
8009 fail:
8010 return NULL;
8011 }
8012
8013
8014 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj = 0;
8016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8017 SwigValueWrapper<wxVisualAttributes > result;
8018 int val1 ;
8019 int ecode1 = 0 ;
8020 PyObject * obj0 = 0 ;
8021 char * kwnames[] = {
8022 (char *) "variant", NULL
8023 };
8024
8025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8026 if (obj0) {
8027 ecode1 = SWIG_AsVal_int(obj0, &val1);
8028 if (!SWIG_IsOK(ecode1)) {
8029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8030 }
8031 arg1 = static_cast< wxWindowVariant >(val1);
8032 }
8033 {
8034 if (!wxPyCheckForApp()) SWIG_fail;
8035 PyThreadState* __tstate = wxPyBeginAllowThreads();
8036 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 PyObject *obj;
8049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8050 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8051 return SWIG_Py_Void();
8052 }
8053
8054 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8055 return SWIG_Python_InitShadowInstance(args);
8056 }
8057
8058 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj = 0;
8060 wxWindow *arg1 = (wxWindow *) 0 ;
8061 int arg2 = (int) -1 ;
8062 wxString const &arg3_defvalue = wxPyEmptyString ;
8063 wxString *arg3 = (wxString *) &arg3_defvalue ;
8064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8066 wxSize const &arg5_defvalue = wxDefaultSize ;
8067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8068 long arg6 = (long) 0 ;
8069 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8070 wxString *arg7 = (wxString *) &arg7_defvalue ;
8071 wxStaticText *result = 0 ;
8072 void *argp1 = 0 ;
8073 int res1 = 0 ;
8074 int val2 ;
8075 int ecode2 = 0 ;
8076 bool temp3 = false ;
8077 wxPoint temp4 ;
8078 wxSize temp5 ;
8079 long val6 ;
8080 int ecode6 = 0 ;
8081 bool temp7 = false ;
8082 PyObject * obj0 = 0 ;
8083 PyObject * obj1 = 0 ;
8084 PyObject * obj2 = 0 ;
8085 PyObject * obj3 = 0 ;
8086 PyObject * obj4 = 0 ;
8087 PyObject * obj5 = 0 ;
8088 PyObject * obj6 = 0 ;
8089 char * kwnames[] = {
8090 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8091 };
8092
8093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8097 }
8098 arg1 = reinterpret_cast< wxWindow * >(argp1);
8099 if (obj1) {
8100 ecode2 = SWIG_AsVal_int(obj1, &val2);
8101 if (!SWIG_IsOK(ecode2)) {
8102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8103 }
8104 arg2 = static_cast< int >(val2);
8105 }
8106 if (obj2) {
8107 {
8108 arg3 = wxString_in_helper(obj2);
8109 if (arg3 == NULL) SWIG_fail;
8110 temp3 = true;
8111 }
8112 }
8113 if (obj3) {
8114 {
8115 arg4 = &temp4;
8116 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8117 }
8118 }
8119 if (obj4) {
8120 {
8121 arg5 = &temp5;
8122 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8123 }
8124 }
8125 if (obj5) {
8126 ecode6 = SWIG_AsVal_long(obj5, &val6);
8127 if (!SWIG_IsOK(ecode6)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8129 }
8130 arg6 = static_cast< long >(val6);
8131 }
8132 if (obj6) {
8133 {
8134 arg7 = wxString_in_helper(obj6);
8135 if (arg7 == NULL) SWIG_fail;
8136 temp7 = true;
8137 }
8138 }
8139 {
8140 if (!wxPyCheckForApp()) SWIG_fail;
8141 PyThreadState* __tstate = wxPyBeginAllowThreads();
8142 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8147 {
8148 if (temp3)
8149 delete arg3;
8150 }
8151 {
8152 if (temp7)
8153 delete arg7;
8154 }
8155 return resultobj;
8156 fail:
8157 {
8158 if (temp3)
8159 delete arg3;
8160 }
8161 {
8162 if (temp7)
8163 delete arg7;
8164 }
8165 return NULL;
8166 }
8167
8168
8169 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8170 PyObject *resultobj = 0;
8171 wxStaticText *result = 0 ;
8172
8173 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8174 {
8175 if (!wxPyCheckForApp()) SWIG_fail;
8176 PyThreadState* __tstate = wxPyBeginAllowThreads();
8177 result = (wxStaticText *)new wxStaticText();
8178 wxPyEndAllowThreads(__tstate);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8182 return resultobj;
8183 fail:
8184 return NULL;
8185 }
8186
8187
8188 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8189 PyObject *resultobj = 0;
8190 wxStaticText *arg1 = (wxStaticText *) 0 ;
8191 wxWindow *arg2 = (wxWindow *) 0 ;
8192 int arg3 = (int) -1 ;
8193 wxString const &arg4_defvalue = wxPyEmptyString ;
8194 wxString *arg4 = (wxString *) &arg4_defvalue ;
8195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8197 wxSize const &arg6_defvalue = wxDefaultSize ;
8198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8199 long arg7 = (long) 0 ;
8200 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8201 wxString *arg8 = (wxString *) &arg8_defvalue ;
8202 bool result;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 bool temp4 = false ;
8210 wxPoint temp5 ;
8211 wxSize temp6 ;
8212 long val7 ;
8213 int ecode7 = 0 ;
8214 bool temp8 = false ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8218 PyObject * obj3 = 0 ;
8219 PyObject * obj4 = 0 ;
8220 PyObject * obj5 = 0 ;
8221 PyObject * obj6 = 0 ;
8222 PyObject * obj7 = 0 ;
8223 char * kwnames[] = {
8224 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8225 };
8226
8227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8229 if (!SWIG_IsOK(res1)) {
8230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8231 }
8232 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8234 if (!SWIG_IsOK(res2)) {
8235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8236 }
8237 arg2 = reinterpret_cast< wxWindow * >(argp2);
8238 if (obj2) {
8239 ecode3 = SWIG_AsVal_int(obj2, &val3);
8240 if (!SWIG_IsOK(ecode3)) {
8241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8242 }
8243 arg3 = static_cast< int >(val3);
8244 }
8245 if (obj3) {
8246 {
8247 arg4 = wxString_in_helper(obj3);
8248 if (arg4 == NULL) SWIG_fail;
8249 temp4 = true;
8250 }
8251 }
8252 if (obj4) {
8253 {
8254 arg5 = &temp5;
8255 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8256 }
8257 }
8258 if (obj5) {
8259 {
8260 arg6 = &temp6;
8261 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8262 }
8263 }
8264 if (obj6) {
8265 ecode7 = SWIG_AsVal_long(obj6, &val7);
8266 if (!SWIG_IsOK(ecode7)) {
8267 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8268 }
8269 arg7 = static_cast< long >(val7);
8270 }
8271 if (obj7) {
8272 {
8273 arg8 = wxString_in_helper(obj7);
8274 if (arg8 == NULL) SWIG_fail;
8275 temp8 = true;
8276 }
8277 }
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 {
8285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8286 }
8287 {
8288 if (temp4)
8289 delete arg4;
8290 }
8291 {
8292 if (temp8)
8293 delete arg8;
8294 }
8295 return resultobj;
8296 fail:
8297 {
8298 if (temp4)
8299 delete arg4;
8300 }
8301 {
8302 if (temp8)
8303 delete arg8;
8304 }
8305 return NULL;
8306 }
8307
8308
8309 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj = 0;
8311 wxStaticText *arg1 = (wxStaticText *) 0 ;
8312 int arg2 ;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 int val2 ;
8316 int ecode2 = 0 ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 char * kwnames[] = {
8320 (char *) "self",(char *) "width", NULL
8321 };
8322
8323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8325 if (!SWIG_IsOK(res1)) {
8326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8327 }
8328 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8329 ecode2 = SWIG_AsVal_int(obj1, &val2);
8330 if (!SWIG_IsOK(ecode2)) {
8331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8332 }
8333 arg2 = static_cast< int >(val2);
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 (arg1)->Wrap(arg2);
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 resultobj = SWIG_Py_Void();
8341 return resultobj;
8342 fail:
8343 return NULL;
8344 }
8345
8346
8347 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj = 0;
8349 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8350 SwigValueWrapper<wxVisualAttributes > result;
8351 int val1 ;
8352 int ecode1 = 0 ;
8353 PyObject * obj0 = 0 ;
8354 char * kwnames[] = {
8355 (char *) "variant", NULL
8356 };
8357
8358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8359 if (obj0) {
8360 ecode1 = SWIG_AsVal_int(obj0, &val1);
8361 if (!SWIG_IsOK(ecode1)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8363 }
8364 arg1 = static_cast< wxWindowVariant >(val1);
8365 }
8366 {
8367 if (!wxPyCheckForApp()) SWIG_fail;
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = wxStaticText::GetClassDefaultAttributes(arg1);
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8374 return resultobj;
8375 fail:
8376 return NULL;
8377 }
8378
8379
8380 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8381 PyObject *obj;
8382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8383 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8384 return SWIG_Py_Void();
8385 }
8386
8387 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8388 return SWIG_Python_InitShadowInstance(args);
8389 }
8390
8391 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj = 0;
8393 wxWindow *arg1 = (wxWindow *) 0 ;
8394 int arg2 = (int) -1 ;
8395 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8396 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8397 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8398 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8399 wxSize const &arg5_defvalue = wxDefaultSize ;
8400 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8401 long arg6 = (long) 0 ;
8402 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8403 wxString *arg7 = (wxString *) &arg7_defvalue ;
8404 wxStaticBitmap *result = 0 ;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407 int val2 ;
8408 int ecode2 = 0 ;
8409 void *argp3 = 0 ;
8410 int res3 = 0 ;
8411 wxPoint temp4 ;
8412 wxSize temp5 ;
8413 long val6 ;
8414 int ecode6 = 0 ;
8415 bool temp7 = false ;
8416 PyObject * obj0 = 0 ;
8417 PyObject * obj1 = 0 ;
8418 PyObject * obj2 = 0 ;
8419 PyObject * obj3 = 0 ;
8420 PyObject * obj4 = 0 ;
8421 PyObject * obj5 = 0 ;
8422 PyObject * obj6 = 0 ;
8423 char * kwnames[] = {
8424 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8425 };
8426
8427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8429 if (!SWIG_IsOK(res1)) {
8430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8431 }
8432 arg1 = reinterpret_cast< wxWindow * >(argp1);
8433 if (obj1) {
8434 ecode2 = SWIG_AsVal_int(obj1, &val2);
8435 if (!SWIG_IsOK(ecode2)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8437 }
8438 arg2 = static_cast< int >(val2);
8439 }
8440 if (obj2) {
8441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8442 if (!SWIG_IsOK(res3)) {
8443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8444 }
8445 if (!argp3) {
8446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8447 }
8448 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8449 }
8450 if (obj3) {
8451 {
8452 arg4 = &temp4;
8453 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8454 }
8455 }
8456 if (obj4) {
8457 {
8458 arg5 = &temp5;
8459 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8460 }
8461 }
8462 if (obj5) {
8463 ecode6 = SWIG_AsVal_long(obj5, &val6);
8464 if (!SWIG_IsOK(ecode6)) {
8465 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8466 }
8467 arg6 = static_cast< long >(val6);
8468 }
8469 if (obj6) {
8470 {
8471 arg7 = wxString_in_helper(obj6);
8472 if (arg7 == NULL) SWIG_fail;
8473 temp7 = true;
8474 }
8475 }
8476 {
8477 if (!wxPyCheckForApp()) SWIG_fail;
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8484 {
8485 if (temp7)
8486 delete arg7;
8487 }
8488 return resultobj;
8489 fail:
8490 {
8491 if (temp7)
8492 delete arg7;
8493 }
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8499 PyObject *resultobj = 0;
8500 wxStaticBitmap *result = 0 ;
8501
8502 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8503 {
8504 if (!wxPyCheckForApp()) SWIG_fail;
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 result = (wxStaticBitmap *)new wxStaticBitmap();
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj = 0;
8519 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8520 wxWindow *arg2 = (wxWindow *) 0 ;
8521 int arg3 = (int) -1 ;
8522 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8523 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8526 wxSize const &arg6_defvalue = wxDefaultSize ;
8527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8528 long arg7 = (long) 0 ;
8529 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8530 wxString *arg8 = (wxString *) &arg8_defvalue ;
8531 bool result;
8532 void *argp1 = 0 ;
8533 int res1 = 0 ;
8534 void *argp2 = 0 ;
8535 int res2 = 0 ;
8536 int val3 ;
8537 int ecode3 = 0 ;
8538 void *argp4 = 0 ;
8539 int res4 = 0 ;
8540 wxPoint temp5 ;
8541 wxSize temp6 ;
8542 long val7 ;
8543 int ecode7 = 0 ;
8544 bool temp8 = false ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 PyObject * obj2 = 0 ;
8548 PyObject * obj3 = 0 ;
8549 PyObject * obj4 = 0 ;
8550 PyObject * obj5 = 0 ;
8551 PyObject * obj6 = 0 ;
8552 PyObject * obj7 = 0 ;
8553 char * kwnames[] = {
8554 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8555 };
8556
8557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8559 if (!SWIG_IsOK(res1)) {
8560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8561 }
8562 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8564 if (!SWIG_IsOK(res2)) {
8565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8566 }
8567 arg2 = reinterpret_cast< wxWindow * >(argp2);
8568 if (obj2) {
8569 ecode3 = SWIG_AsVal_int(obj2, &val3);
8570 if (!SWIG_IsOK(ecode3)) {
8571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8572 }
8573 arg3 = static_cast< int >(val3);
8574 }
8575 if (obj3) {
8576 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8577 if (!SWIG_IsOK(res4)) {
8578 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8579 }
8580 if (!argp4) {
8581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8582 }
8583 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8584 }
8585 if (obj4) {
8586 {
8587 arg5 = &temp5;
8588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8589 }
8590 }
8591 if (obj5) {
8592 {
8593 arg6 = &temp6;
8594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8595 }
8596 }
8597 if (obj6) {
8598 ecode7 = SWIG_AsVal_long(obj6, &val7);
8599 if (!SWIG_IsOK(ecode7)) {
8600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8601 }
8602 arg7 = static_cast< long >(val7);
8603 }
8604 if (obj7) {
8605 {
8606 arg8 = wxString_in_helper(obj7);
8607 if (arg8 == NULL) SWIG_fail;
8608 temp8 = true;
8609 }
8610 }
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8619 }
8620 {
8621 if (temp8)
8622 delete arg8;
8623 }
8624 return resultobj;
8625 fail:
8626 {
8627 if (temp8)
8628 delete arg8;
8629 }
8630 return NULL;
8631 }
8632
8633
8634 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635 PyObject *resultobj = 0;
8636 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8637 wxBitmap result;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 PyObject *swig_obj[1] ;
8641
8642 if (!args) SWIG_fail;
8643 swig_obj[0] = args;
8644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8645 if (!SWIG_IsOK(res1)) {
8646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8647 }
8648 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (arg1)->GetBitmap();
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8656 return resultobj;
8657 fail:
8658 return NULL;
8659 }
8660
8661
8662 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj = 0;
8664 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8665 wxBitmap *arg2 = 0 ;
8666 void *argp1 = 0 ;
8667 int res1 = 0 ;
8668 void *argp2 = 0 ;
8669 int res2 = 0 ;
8670 PyObject * obj0 = 0 ;
8671 PyObject * obj1 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "bitmap", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8680 }
8681 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8690 {
8691 PyThreadState* __tstate = wxPyBeginAllowThreads();
8692 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 resultobj = SWIG_Py_Void();
8697 return resultobj;
8698 fail:
8699 return NULL;
8700 }
8701
8702
8703 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8704 PyObject *resultobj = 0;
8705 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8706 wxIcon *arg2 = 0 ;
8707 void *argp1 = 0 ;
8708 int res1 = 0 ;
8709 void *argp2 = 0 ;
8710 int res2 = 0 ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char * kwnames[] = {
8714 (char *) "self",(char *) "icon", NULL
8715 };
8716
8717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8719 if (!SWIG_IsOK(res1)) {
8720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8721 }
8722 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8724 if (!SWIG_IsOK(res2)) {
8725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8726 }
8727 if (!argp2) {
8728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8729 }
8730 arg2 = reinterpret_cast< wxIcon * >(argp2);
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 (arg1)->SetIcon((wxIcon const &)*arg2);
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 resultobj = SWIG_Py_Void();
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj = 0;
8746 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8747 SwigValueWrapper<wxVisualAttributes > result;
8748 int val1 ;
8749 int ecode1 = 0 ;
8750 PyObject * obj0 = 0 ;
8751 char * kwnames[] = {
8752 (char *) "variant", NULL
8753 };
8754
8755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8756 if (obj0) {
8757 ecode1 = SWIG_AsVal_int(obj0, &val1);
8758 if (!SWIG_IsOK(ecode1)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8760 }
8761 arg1 = static_cast< wxWindowVariant >(val1);
8762 }
8763 {
8764 if (!wxPyCheckForApp()) SWIG_fail;
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8767 wxPyEndAllowThreads(__tstate);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 }
8770 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8771 return resultobj;
8772 fail:
8773 return NULL;
8774 }
8775
8776
8777 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8778 PyObject *obj;
8779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8780 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8781 return SWIG_Py_Void();
8782 }
8783
8784 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 return SWIG_Python_InitShadowInstance(args);
8786 }
8787
8788 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8789 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8790 return 1;
8791 }
8792
8793
8794 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8795 PyObject *pyobj = 0;
8796
8797 {
8798 #if wxUSE_UNICODE
8799 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8800 #else
8801 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8802 #endif
8803 }
8804 return pyobj;
8805 }
8806
8807
8808 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxWindow *arg1 = (wxWindow *) 0 ;
8811 int arg2 = (int) -1 ;
8812 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8813 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8814 wxSize const &arg4_defvalue = wxDefaultSize ;
8815 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8816 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8817 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8818 long arg6 = (long) 0 ;
8819 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8820 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8821 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8822 wxString *arg8 = (wxString *) &arg8_defvalue ;
8823 wxListBox *result = 0 ;
8824 void *argp1 = 0 ;
8825 int res1 = 0 ;
8826 int val2 ;
8827 int ecode2 = 0 ;
8828 wxPoint temp3 ;
8829 wxSize temp4 ;
8830 bool temp5 = false ;
8831 long val6 ;
8832 int ecode6 = 0 ;
8833 void *argp7 = 0 ;
8834 int res7 = 0 ;
8835 bool temp8 = false ;
8836 PyObject * obj0 = 0 ;
8837 PyObject * obj1 = 0 ;
8838 PyObject * obj2 = 0 ;
8839 PyObject * obj3 = 0 ;
8840 PyObject * obj4 = 0 ;
8841 PyObject * obj5 = 0 ;
8842 PyObject * obj6 = 0 ;
8843 PyObject * obj7 = 0 ;
8844 char * kwnames[] = {
8845 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8846 };
8847
8848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8852 }
8853 arg1 = reinterpret_cast< wxWindow * >(argp1);
8854 if (obj1) {
8855 ecode2 = SWIG_AsVal_int(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8858 }
8859 arg2 = static_cast< int >(val2);
8860 }
8861 if (obj2) {
8862 {
8863 arg3 = &temp3;
8864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8865 }
8866 }
8867 if (obj3) {
8868 {
8869 arg4 = &temp4;
8870 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8871 }
8872 }
8873 if (obj4) {
8874 {
8875 if (! PySequence_Check(obj4)) {
8876 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8877 SWIG_fail;
8878 }
8879 arg5 = new wxArrayString;
8880 temp5 = true;
8881 int i, len=PySequence_Length(obj4);
8882 for (i=0; i<len; i++) {
8883 PyObject* item = PySequence_GetItem(obj4, i);
8884 wxString* s = wxString_in_helper(item);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 arg5->Add(*s);
8887 delete s;
8888 Py_DECREF(item);
8889 }
8890 }
8891 }
8892 if (obj5) {
8893 ecode6 = SWIG_AsVal_long(obj5, &val6);
8894 if (!SWIG_IsOK(ecode6)) {
8895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8896 }
8897 arg6 = static_cast< long >(val6);
8898 }
8899 if (obj6) {
8900 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8901 if (!SWIG_IsOK(res7)) {
8902 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8903 }
8904 if (!argp7) {
8905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8906 }
8907 arg7 = reinterpret_cast< wxValidator * >(argp7);
8908 }
8909 if (obj7) {
8910 {
8911 arg8 = wxString_in_helper(obj7);
8912 if (arg8 == NULL) SWIG_fail;
8913 temp8 = true;
8914 }
8915 }
8916 {
8917 if (!wxPyCheckForApp()) SWIG_fail;
8918 PyThreadState* __tstate = wxPyBeginAllowThreads();
8919 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8924 {
8925 if (temp5) delete arg5;
8926 }
8927 {
8928 if (temp8)
8929 delete arg8;
8930 }
8931 return resultobj;
8932 fail:
8933 {
8934 if (temp5) delete arg5;
8935 }
8936 {
8937 if (temp8)
8938 delete arg8;
8939 }
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *resultobj = 0;
8946 wxListBox *result = 0 ;
8947
8948 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8949 {
8950 if (!wxPyCheckForApp()) SWIG_fail;
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (wxListBox *)new wxListBox();
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj = 0;
8965 wxListBox *arg1 = (wxListBox *) 0 ;
8966 wxWindow *arg2 = (wxWindow *) 0 ;
8967 int arg3 = (int) -1 ;
8968 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8969 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8970 wxSize const &arg5_defvalue = wxDefaultSize ;
8971 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8972 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8973 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8974 long arg7 = (long) 0 ;
8975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8977 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8978 wxString *arg9 = (wxString *) &arg9_defvalue ;
8979 bool result;
8980 void *argp1 = 0 ;
8981 int res1 = 0 ;
8982 void *argp2 = 0 ;
8983 int res2 = 0 ;
8984 int val3 ;
8985 int ecode3 = 0 ;
8986 wxPoint temp4 ;
8987 wxSize temp5 ;
8988 bool temp6 = false ;
8989 long val7 ;
8990 int ecode7 = 0 ;
8991 void *argp8 = 0 ;
8992 int res8 = 0 ;
8993 bool temp9 = false ;
8994 PyObject * obj0 = 0 ;
8995 PyObject * obj1 = 0 ;
8996 PyObject * obj2 = 0 ;
8997 PyObject * obj3 = 0 ;
8998 PyObject * obj4 = 0 ;
8999 PyObject * obj5 = 0 ;
9000 PyObject * obj6 = 0 ;
9001 PyObject * obj7 = 0 ;
9002 PyObject * obj8 = 0 ;
9003 char * kwnames[] = {
9004 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9005 };
9006
9007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9009 if (!SWIG_IsOK(res1)) {
9010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9011 }
9012 arg1 = reinterpret_cast< wxListBox * >(argp1);
9013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9014 if (!SWIG_IsOK(res2)) {
9015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9016 }
9017 arg2 = reinterpret_cast< wxWindow * >(argp2);
9018 if (obj2) {
9019 ecode3 = SWIG_AsVal_int(obj2, &val3);
9020 if (!SWIG_IsOK(ecode3)) {
9021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9022 }
9023 arg3 = static_cast< int >(val3);
9024 }
9025 if (obj3) {
9026 {
9027 arg4 = &temp4;
9028 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9029 }
9030 }
9031 if (obj4) {
9032 {
9033 arg5 = &temp5;
9034 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9035 }
9036 }
9037 if (obj5) {
9038 {
9039 if (! PySequence_Check(obj5)) {
9040 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9041 SWIG_fail;
9042 }
9043 arg6 = new wxArrayString;
9044 temp6 = true;
9045 int i, len=PySequence_Length(obj5);
9046 for (i=0; i<len; i++) {
9047 PyObject* item = PySequence_GetItem(obj5, i);
9048 wxString* s = wxString_in_helper(item);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 arg6->Add(*s);
9051 delete s;
9052 Py_DECREF(item);
9053 }
9054 }
9055 }
9056 if (obj6) {
9057 ecode7 = SWIG_AsVal_long(obj6, &val7);
9058 if (!SWIG_IsOK(ecode7)) {
9059 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9060 }
9061 arg7 = static_cast< long >(val7);
9062 }
9063 if (obj7) {
9064 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9065 if (!SWIG_IsOK(res8)) {
9066 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9067 }
9068 if (!argp8) {
9069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9070 }
9071 arg8 = reinterpret_cast< wxValidator * >(argp8);
9072 }
9073 if (obj8) {
9074 {
9075 arg9 = wxString_in_helper(obj8);
9076 if (arg9 == NULL) SWIG_fail;
9077 temp9 = true;
9078 }
9079 }
9080 {
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 {
9087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9088 }
9089 {
9090 if (temp6) delete arg6;
9091 }
9092 {
9093 if (temp9)
9094 delete arg9;
9095 }
9096 return resultobj;
9097 fail:
9098 {
9099 if (temp6) delete arg6;
9100 }
9101 {
9102 if (temp9)
9103 delete arg9;
9104 }
9105 return NULL;
9106 }
9107
9108
9109 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj = 0;
9111 wxListBox *arg1 = (wxListBox *) 0 ;
9112 wxString *arg2 = 0 ;
9113 int arg3 ;
9114 PyObject *arg4 = (PyObject *) NULL ;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 bool temp2 = false ;
9118 int val3 ;
9119 int ecode3 = 0 ;
9120 PyObject * obj0 = 0 ;
9121 PyObject * obj1 = 0 ;
9122 PyObject * obj2 = 0 ;
9123 PyObject * obj3 = 0 ;
9124 char * kwnames[] = {
9125 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9126 };
9127
9128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9130 if (!SWIG_IsOK(res1)) {
9131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9132 }
9133 arg1 = reinterpret_cast< wxListBox * >(argp1);
9134 {
9135 arg2 = wxString_in_helper(obj1);
9136 if (arg2 == NULL) SWIG_fail;
9137 temp2 = true;
9138 }
9139 ecode3 = SWIG_AsVal_int(obj2, &val3);
9140 if (!SWIG_IsOK(ecode3)) {
9141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9142 }
9143 arg3 = static_cast< int >(val3);
9144 if (obj3) {
9145 arg4 = obj3;
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 resultobj = SWIG_Py_Void();
9154 {
9155 if (temp2)
9156 delete arg2;
9157 }
9158 return resultobj;
9159 fail:
9160 {
9161 if (temp2)
9162 delete arg2;
9163 }
9164 return NULL;
9165 }
9166
9167
9168 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9169 PyObject *resultobj = 0;
9170 wxListBox *arg1 = (wxListBox *) 0 ;
9171 wxArrayString *arg2 = 0 ;
9172 unsigned int arg3 ;
9173 void *argp1 = 0 ;
9174 int res1 = 0 ;
9175 bool temp2 = false ;
9176 unsigned int val3 ;
9177 int ecode3 = 0 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 PyObject * obj2 = 0 ;
9181 char * kwnames[] = {
9182 (char *) "self",(char *) "items",(char *) "pos", NULL
9183 };
9184
9185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9187 if (!SWIG_IsOK(res1)) {
9188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9189 }
9190 arg1 = reinterpret_cast< wxListBox * >(argp1);
9191 {
9192 if (! PySequence_Check(obj1)) {
9193 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9194 SWIG_fail;
9195 }
9196 arg2 = new wxArrayString;
9197 temp2 = true;
9198 int i, len=PySequence_Length(obj1);
9199 for (i=0; i<len; i++) {
9200 PyObject* item = PySequence_GetItem(obj1, i);
9201 wxString* s = wxString_in_helper(item);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 arg2->Add(*s);
9204 delete s;
9205 Py_DECREF(item);
9206 }
9207 }
9208 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9209 if (!SWIG_IsOK(ecode3)) {
9210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9211 }
9212 arg3 = static_cast< unsigned int >(val3);
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = SWIG_Py_Void();
9220 {
9221 if (temp2) delete arg2;
9222 }
9223 return resultobj;
9224 fail:
9225 {
9226 if (temp2) delete arg2;
9227 }
9228 return NULL;
9229 }
9230
9231
9232 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9233 PyObject *resultobj = 0;
9234 wxListBox *arg1 = (wxListBox *) 0 ;
9235 wxArrayString *arg2 = 0 ;
9236 void *argp1 = 0 ;
9237 int res1 = 0 ;
9238 bool temp2 = false ;
9239 PyObject * obj0 = 0 ;
9240 PyObject * obj1 = 0 ;
9241 char * kwnames[] = {
9242 (char *) "self",(char *) "items", NULL
9243 };
9244
9245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9247 if (!SWIG_IsOK(res1)) {
9248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9249 }
9250 arg1 = reinterpret_cast< wxListBox * >(argp1);
9251 {
9252 if (! PySequence_Check(obj1)) {
9253 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9254 SWIG_fail;
9255 }
9256 arg2 = new wxArrayString;
9257 temp2 = true;
9258 int i, len=PySequence_Length(obj1);
9259 for (i=0; i<len; i++) {
9260 PyObject* item = PySequence_GetItem(obj1, i);
9261 wxString* s = wxString_in_helper(item);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 arg2->Add(*s);
9264 delete s;
9265 Py_DECREF(item);
9266 }
9267 }
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 (arg1)->Set((wxArrayString const &)*arg2);
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 resultobj = SWIG_Py_Void();
9275 {
9276 if (temp2) delete arg2;
9277 }
9278 return resultobj;
9279 fail:
9280 {
9281 if (temp2) delete arg2;
9282 }
9283 return NULL;
9284 }
9285
9286
9287 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj = 0;
9289 wxListBox *arg1 = (wxListBox *) 0 ;
9290 int arg2 ;
9291 bool result;
9292 void *argp1 = 0 ;
9293 int res1 = 0 ;
9294 int val2 ;
9295 int ecode2 = 0 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 char * kwnames[] = {
9299 (char *) "self",(char *) "n", NULL
9300 };
9301
9302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9304 if (!SWIG_IsOK(res1)) {
9305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9306 }
9307 arg1 = reinterpret_cast< wxListBox * >(argp1);
9308 ecode2 = SWIG_AsVal_int(obj1, &val2);
9309 if (!SWIG_IsOK(ecode2)) {
9310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9311 }
9312 arg2 = static_cast< int >(val2);
9313 {
9314 PyThreadState* __tstate = wxPyBeginAllowThreads();
9315 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 {
9320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9321 }
9322 return resultobj;
9323 fail:
9324 return NULL;
9325 }
9326
9327
9328 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9329 PyObject *resultobj = 0;
9330 wxListBox *arg1 = (wxListBox *) 0 ;
9331 int arg2 ;
9332 bool arg3 = (bool) true ;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 int val2 ;
9336 int ecode2 = 0 ;
9337 bool val3 ;
9338 int ecode3 = 0 ;
9339 PyObject * obj0 = 0 ;
9340 PyObject * obj1 = 0 ;
9341 PyObject * obj2 = 0 ;
9342 char * kwnames[] = {
9343 (char *) "self",(char *) "n",(char *) "select", NULL
9344 };
9345
9346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9350 }
9351 arg1 = reinterpret_cast< wxListBox * >(argp1);
9352 ecode2 = SWIG_AsVal_int(obj1, &val2);
9353 if (!SWIG_IsOK(ecode2)) {
9354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9355 }
9356 arg2 = static_cast< int >(val2);
9357 if (obj2) {
9358 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9359 if (!SWIG_IsOK(ecode3)) {
9360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9361 }
9362 arg3 = static_cast< bool >(val3);
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 (arg1)->SetSelection(arg2,arg3);
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 resultobj = SWIG_Py_Void();
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj = 0;
9379 wxListBox *arg1 = (wxListBox *) 0 ;
9380 int arg2 ;
9381 void *argp1 = 0 ;
9382 int res1 = 0 ;
9383 int val2 ;
9384 int ecode2 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "self",(char *) "n", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9395 }
9396 arg1 = reinterpret_cast< wxListBox * >(argp1);
9397 ecode2 = SWIG_AsVal_int(obj1, &val2);
9398 if (!SWIG_IsOK(ecode2)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9400 }
9401 arg2 = static_cast< int >(val2);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->Select(arg2);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_Py_Void();
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = 0;
9417 wxListBox *arg1 = (wxListBox *) 0 ;
9418 int arg2 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 int val2 ;
9422 int ecode2 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "self",(char *) "n", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9431 if (!SWIG_IsOK(res1)) {
9432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9433 }
9434 arg1 = reinterpret_cast< wxListBox * >(argp1);
9435 ecode2 = SWIG_AsVal_int(obj1, &val2);
9436 if (!SWIG_IsOK(ecode2)) {
9437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9438 }
9439 arg2 = static_cast< int >(val2);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->Deselect(arg2);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_Py_Void();
9447 return resultobj;
9448 fail:
9449 return NULL;
9450 }
9451
9452
9453 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = 0;
9455 wxListBox *arg1 = (wxListBox *) 0 ;
9456 int arg2 = (int) -1 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 int val2 ;
9460 int ecode2 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 char * kwnames[] = {
9464 (char *) "self",(char *) "itemToLeaveSelected", NULL
9465 };
9466
9467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9471 }
9472 arg1 = reinterpret_cast< wxListBox * >(argp1);
9473 if (obj1) {
9474 ecode2 = SWIG_AsVal_int(obj1, &val2);
9475 if (!SWIG_IsOK(ecode2)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9477 }
9478 arg2 = static_cast< int >(val2);
9479 }
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 (arg1)->DeselectAll(arg2);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 resultobj = SWIG_Py_Void();
9487 return resultobj;
9488 fail:
9489 return NULL;
9490 }
9491
9492
9493 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9494 PyObject *resultobj = 0;
9495 wxListBox *arg1 = (wxListBox *) 0 ;
9496 wxString *arg2 = 0 ;
9497 bool arg3 = (bool) true ;
9498 bool result;
9499 void *argp1 = 0 ;
9500 int res1 = 0 ;
9501 bool temp2 = false ;
9502 bool val3 ;
9503 int ecode3 = 0 ;
9504 PyObject * obj0 = 0 ;
9505 PyObject * obj1 = 0 ;
9506 PyObject * obj2 = 0 ;
9507 char * kwnames[] = {
9508 (char *) "self",(char *) "s",(char *) "select", NULL
9509 };
9510
9511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9513 if (!SWIG_IsOK(res1)) {
9514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9515 }
9516 arg1 = reinterpret_cast< wxListBox * >(argp1);
9517 {
9518 arg2 = wxString_in_helper(obj1);
9519 if (arg2 == NULL) SWIG_fail;
9520 temp2 = true;
9521 }
9522 if (obj2) {
9523 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9524 if (!SWIG_IsOK(ecode3)) {
9525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9526 }
9527 arg3 = static_cast< bool >(val3);
9528 }
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 {
9536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9537 }
9538 {
9539 if (temp2)
9540 delete arg2;
9541 }
9542 return resultobj;
9543 fail:
9544 {
9545 if (temp2)
9546 delete arg2;
9547 }
9548 return NULL;
9549 }
9550
9551
9552 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9553 PyObject *resultobj = 0;
9554 wxListBox *arg1 = (wxListBox *) 0 ;
9555 PyObject *result = 0 ;
9556 void *argp1 = 0 ;
9557 int res1 = 0 ;
9558 PyObject *swig_obj[1] ;
9559
9560 if (!args) SWIG_fail;
9561 swig_obj[0] = args;
9562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9565 }
9566 arg1 = reinterpret_cast< wxListBox * >(argp1);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (PyObject *)wxListBox_GetSelections(arg1);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = result;
9574 return resultobj;
9575 fail:
9576 return NULL;
9577 }
9578
9579
9580 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj = 0;
9582 wxListBox *arg1 = (wxListBox *) 0 ;
9583 int arg2 ;
9584 void *argp1 = 0 ;
9585 int res1 = 0 ;
9586 int val2 ;
9587 int ecode2 = 0 ;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 char * kwnames[] = {
9591 (char *) "self",(char *) "n", NULL
9592 };
9593
9594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9596 if (!SWIG_IsOK(res1)) {
9597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9598 }
9599 arg1 = reinterpret_cast< wxListBox * >(argp1);
9600 ecode2 = SWIG_AsVal_int(obj1, &val2);
9601 if (!SWIG_IsOK(ecode2)) {
9602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9603 }
9604 arg2 = static_cast< int >(val2);
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 (arg1)->SetFirstItem(arg2);
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_Py_Void();
9612 return resultobj;
9613 fail:
9614 return NULL;
9615 }
9616
9617
9618 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj = 0;
9620 wxListBox *arg1 = (wxListBox *) 0 ;
9621 wxString *arg2 = 0 ;
9622 void *argp1 = 0 ;
9623 int res1 = 0 ;
9624 bool temp2 = false ;
9625 PyObject * obj0 = 0 ;
9626 PyObject * obj1 = 0 ;
9627 char * kwnames[] = {
9628 (char *) "self",(char *) "s", NULL
9629 };
9630
9631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9633 if (!SWIG_IsOK(res1)) {
9634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9635 }
9636 arg1 = reinterpret_cast< wxListBox * >(argp1);
9637 {
9638 arg2 = wxString_in_helper(obj1);
9639 if (arg2 == NULL) SWIG_fail;
9640 temp2 = true;
9641 }
9642 {
9643 PyThreadState* __tstate = wxPyBeginAllowThreads();
9644 (arg1)->SetFirstItem((wxString const &)*arg2);
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_Py_Void();
9649 {
9650 if (temp2)
9651 delete arg2;
9652 }
9653 return resultobj;
9654 fail:
9655 {
9656 if (temp2)
9657 delete arg2;
9658 }
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxListBox *arg1 = (wxListBox *) 0 ;
9666 int arg2 ;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 int val2 ;
9670 int ecode2 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 char * kwnames[] = {
9674 (char *) "self",(char *) "n", NULL
9675 };
9676
9677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9681 }
9682 arg1 = reinterpret_cast< wxListBox * >(argp1);
9683 ecode2 = SWIG_AsVal_int(obj1, &val2);
9684 if (!SWIG_IsOK(ecode2)) {
9685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9686 }
9687 arg2 = static_cast< int >(val2);
9688 {
9689 PyThreadState* __tstate = wxPyBeginAllowThreads();
9690 (arg1)->EnsureVisible(arg2);
9691 wxPyEndAllowThreads(__tstate);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 resultobj = SWIG_Py_Void();
9695 return resultobj;
9696 fail:
9697 return NULL;
9698 }
9699
9700
9701 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9702 PyObject *resultobj = 0;
9703 wxListBox *arg1 = (wxListBox *) 0 ;
9704 wxString *arg2 = 0 ;
9705 void *argp1 = 0 ;
9706 int res1 = 0 ;
9707 bool temp2 = false ;
9708 PyObject * obj0 = 0 ;
9709 PyObject * obj1 = 0 ;
9710 char * kwnames[] = {
9711 (char *) "self",(char *) "s", NULL
9712 };
9713
9714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9718 }
9719 arg1 = reinterpret_cast< wxListBox * >(argp1);
9720 {
9721 arg2 = wxString_in_helper(obj1);
9722 if (arg2 == NULL) SWIG_fail;
9723 temp2 = true;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_Py_Void();
9732 {
9733 if (temp2)
9734 delete arg2;
9735 }
9736 return resultobj;
9737 fail:
9738 {
9739 if (temp2)
9740 delete arg2;
9741 }
9742 return NULL;
9743 }
9744
9745
9746 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9747 PyObject *resultobj = 0;
9748 wxListBox *arg1 = (wxListBox *) 0 ;
9749 bool result;
9750 void *argp1 = 0 ;
9751 int res1 = 0 ;
9752 PyObject *swig_obj[1] ;
9753
9754 if (!args) SWIG_fail;
9755 swig_obj[0] = args;
9756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9759 }
9760 arg1 = reinterpret_cast< wxListBox * >(argp1);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (bool)((wxListBox const *)arg1)->IsSorted();
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 {
9768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9769 }
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj = 0;
9778 wxListBox *arg1 = (wxListBox *) 0 ;
9779 wxPoint *arg2 = 0 ;
9780 int result;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 wxPoint temp2 ;
9784 PyObject * obj0 = 0 ;
9785 PyObject * obj1 = 0 ;
9786 char * kwnames[] = {
9787 (char *) "self",(char *) "pt", NULL
9788 };
9789
9790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9792 if (!SWIG_IsOK(res1)) {
9793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9794 }
9795 arg1 = reinterpret_cast< wxListBox * >(argp1);
9796 {
9797 arg2 = &temp2;
9798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9799 }
9800 {
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 resultobj = SWIG_From_int(static_cast< int >(result));
9807 return resultobj;
9808 fail:
9809 return NULL;
9810 }
9811
9812
9813 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj = 0;
9815 wxListBox *arg1 = (wxListBox *) 0 ;
9816 int arg2 ;
9817 wxColour *arg3 = 0 ;
9818 void *argp1 = 0 ;
9819 int res1 = 0 ;
9820 int val2 ;
9821 int ecode2 = 0 ;
9822 wxColour temp3 ;
9823 PyObject * obj0 = 0 ;
9824 PyObject * obj1 = 0 ;
9825 PyObject * obj2 = 0 ;
9826 char * kwnames[] = {
9827 (char *) "self",(char *) "item",(char *) "c", NULL
9828 };
9829
9830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9832 if (!SWIG_IsOK(res1)) {
9833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9834 }
9835 arg1 = reinterpret_cast< wxListBox * >(argp1);
9836 ecode2 = SWIG_AsVal_int(obj1, &val2);
9837 if (!SWIG_IsOK(ecode2)) {
9838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9839 }
9840 arg2 = static_cast< int >(val2);
9841 {
9842 arg3 = &temp3;
9843 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9844 }
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_Py_Void();
9852 return resultobj;
9853 fail:
9854 return NULL;
9855 }
9856
9857
9858 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj = 0;
9860 wxListBox *arg1 = (wxListBox *) 0 ;
9861 int arg2 ;
9862 wxColour *arg3 = 0 ;
9863 void *argp1 = 0 ;
9864 int res1 = 0 ;
9865 int val2 ;
9866 int ecode2 = 0 ;
9867 wxColour temp3 ;
9868 PyObject * obj0 = 0 ;
9869 PyObject * obj1 = 0 ;
9870 PyObject * obj2 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "self",(char *) "item",(char *) "c", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9877 if (!SWIG_IsOK(res1)) {
9878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9879 }
9880 arg1 = reinterpret_cast< wxListBox * >(argp1);
9881 ecode2 = SWIG_AsVal_int(obj1, &val2);
9882 if (!SWIG_IsOK(ecode2)) {
9883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9884 }
9885 arg2 = static_cast< int >(val2);
9886 {
9887 arg3 = &temp3;
9888 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9889 }
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 resultobj = SWIG_Py_Void();
9897 return resultobj;
9898 fail:
9899 return NULL;
9900 }
9901
9902
9903 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj = 0;
9905 wxListBox *arg1 = (wxListBox *) 0 ;
9906 int arg2 ;
9907 wxFont *arg3 = 0 ;
9908 void *argp1 = 0 ;
9909 int res1 = 0 ;
9910 int val2 ;
9911 int ecode2 = 0 ;
9912 void *argp3 = 0 ;
9913 int res3 = 0 ;
9914 PyObject * obj0 = 0 ;
9915 PyObject * obj1 = 0 ;
9916 PyObject * obj2 = 0 ;
9917 char * kwnames[] = {
9918 (char *) "self",(char *) "item",(char *) "f", NULL
9919 };
9920
9921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9923 if (!SWIG_IsOK(res1)) {
9924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9925 }
9926 arg1 = reinterpret_cast< wxListBox * >(argp1);
9927 ecode2 = SWIG_AsVal_int(obj1, &val2);
9928 if (!SWIG_IsOK(ecode2)) {
9929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9930 }
9931 arg2 = static_cast< int >(val2);
9932 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9933 if (!SWIG_IsOK(res3)) {
9934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9935 }
9936 if (!argp3) {
9937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9938 }
9939 arg3 = reinterpret_cast< wxFont * >(argp3);
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 resultobj = SWIG_Py_Void();
9947 return resultobj;
9948 fail:
9949 return NULL;
9950 }
9951
9952
9953 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9956 SwigValueWrapper<wxVisualAttributes > result;
9957 int val1 ;
9958 int ecode1 = 0 ;
9959 PyObject * obj0 = 0 ;
9960 char * kwnames[] = {
9961 (char *) "variant", NULL
9962 };
9963
9964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9965 if (obj0) {
9966 ecode1 = SWIG_AsVal_int(obj0, &val1);
9967 if (!SWIG_IsOK(ecode1)) {
9968 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9969 }
9970 arg1 = static_cast< wxWindowVariant >(val1);
9971 }
9972 {
9973 if (!wxPyCheckForApp()) SWIG_fail;
9974 PyThreadState* __tstate = wxPyBeginAllowThreads();
9975 result = wxListBox::GetClassDefaultAttributes(arg1);
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9980 return resultobj;
9981 fail:
9982 return NULL;
9983 }
9984
9985
9986 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9987 PyObject *obj;
9988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9989 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9990 return SWIG_Py_Void();
9991 }
9992
9993 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 return SWIG_Python_InitShadowInstance(args);
9995 }
9996
9997 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9998 PyObject *resultobj = 0;
9999 wxWindow *arg1 = (wxWindow *) 0 ;
10000 int arg2 = (int) -1 ;
10001 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10002 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10003 wxSize const &arg4_defvalue = wxDefaultSize ;
10004 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10005 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10006 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10007 long arg6 = (long) 0 ;
10008 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10009 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10010 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10011 wxString *arg8 = (wxString *) &arg8_defvalue ;
10012 wxCheckListBox *result = 0 ;
10013 void *argp1 = 0 ;
10014 int res1 = 0 ;
10015 int val2 ;
10016 int ecode2 = 0 ;
10017 wxPoint temp3 ;
10018 wxSize temp4 ;
10019 bool temp5 = false ;
10020 long val6 ;
10021 int ecode6 = 0 ;
10022 void *argp7 = 0 ;
10023 int res7 = 0 ;
10024 bool temp8 = false ;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 PyObject * obj2 = 0 ;
10028 PyObject * obj3 = 0 ;
10029 PyObject * obj4 = 0 ;
10030 PyObject * obj5 = 0 ;
10031 PyObject * obj6 = 0 ;
10032 PyObject * obj7 = 0 ;
10033 char * kwnames[] = {
10034 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10035 };
10036
10037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10041 }
10042 arg1 = reinterpret_cast< wxWindow * >(argp1);
10043 if (obj1) {
10044 ecode2 = SWIG_AsVal_int(obj1, &val2);
10045 if (!SWIG_IsOK(ecode2)) {
10046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10047 }
10048 arg2 = static_cast< int >(val2);
10049 }
10050 if (obj2) {
10051 {
10052 arg3 = &temp3;
10053 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10054 }
10055 }
10056 if (obj3) {
10057 {
10058 arg4 = &temp4;
10059 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10060 }
10061 }
10062 if (obj4) {
10063 {
10064 if (! PySequence_Check(obj4)) {
10065 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10066 SWIG_fail;
10067 }
10068 arg5 = new wxArrayString;
10069 temp5 = true;
10070 int i, len=PySequence_Length(obj4);
10071 for (i=0; i<len; i++) {
10072 PyObject* item = PySequence_GetItem(obj4, i);
10073 wxString* s = wxString_in_helper(item);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 arg5->Add(*s);
10076 delete s;
10077 Py_DECREF(item);
10078 }
10079 }
10080 }
10081 if (obj5) {
10082 ecode6 = SWIG_AsVal_long(obj5, &val6);
10083 if (!SWIG_IsOK(ecode6)) {
10084 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10085 }
10086 arg6 = static_cast< long >(val6);
10087 }
10088 if (obj6) {
10089 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10090 if (!SWIG_IsOK(res7)) {
10091 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10092 }
10093 if (!argp7) {
10094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10095 }
10096 arg7 = reinterpret_cast< wxValidator * >(argp7);
10097 }
10098 if (obj7) {
10099 {
10100 arg8 = wxString_in_helper(obj7);
10101 if (arg8 == NULL) SWIG_fail;
10102 temp8 = true;
10103 }
10104 }
10105 {
10106 if (!wxPyCheckForApp()) SWIG_fail;
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10109 wxPyEndAllowThreads(__tstate);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 }
10112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10113 {
10114 if (temp5) delete arg5;
10115 }
10116 {
10117 if (temp8)
10118 delete arg8;
10119 }
10120 return resultobj;
10121 fail:
10122 {
10123 if (temp5) delete arg5;
10124 }
10125 {
10126 if (temp8)
10127 delete arg8;
10128 }
10129 return NULL;
10130 }
10131
10132
10133 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10134 PyObject *resultobj = 0;
10135 wxCheckListBox *result = 0 ;
10136
10137 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10138 {
10139 if (!wxPyCheckForApp()) SWIG_fail;
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (wxCheckListBox *)new wxCheckListBox();
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10146 return resultobj;
10147 fail:
10148 return NULL;
10149 }
10150
10151
10152 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj = 0;
10154 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10155 wxWindow *arg2 = (wxWindow *) 0 ;
10156 int arg3 = (int) -1 ;
10157 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10158 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10159 wxSize const &arg5_defvalue = wxDefaultSize ;
10160 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10161 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10162 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10163 long arg7 = (long) 0 ;
10164 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10165 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10166 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10167 wxString *arg9 = (wxString *) &arg9_defvalue ;
10168 bool result;
10169 void *argp1 = 0 ;
10170 int res1 = 0 ;
10171 void *argp2 = 0 ;
10172 int res2 = 0 ;
10173 int val3 ;
10174 int ecode3 = 0 ;
10175 wxPoint temp4 ;
10176 wxSize temp5 ;
10177 bool temp6 = false ;
10178 long val7 ;
10179 int ecode7 = 0 ;
10180 void *argp8 = 0 ;
10181 int res8 = 0 ;
10182 bool temp9 = false ;
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10185 PyObject * obj2 = 0 ;
10186 PyObject * obj3 = 0 ;
10187 PyObject * obj4 = 0 ;
10188 PyObject * obj5 = 0 ;
10189 PyObject * obj6 = 0 ;
10190 PyObject * obj7 = 0 ;
10191 PyObject * obj8 = 0 ;
10192 char * kwnames[] = {
10193 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10194 };
10195
10196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10200 }
10201 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10203 if (!SWIG_IsOK(res2)) {
10204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10205 }
10206 arg2 = reinterpret_cast< wxWindow * >(argp2);
10207 if (obj2) {
10208 ecode3 = SWIG_AsVal_int(obj2, &val3);
10209 if (!SWIG_IsOK(ecode3)) {
10210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10211 }
10212 arg3 = static_cast< int >(val3);
10213 }
10214 if (obj3) {
10215 {
10216 arg4 = &temp4;
10217 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10218 }
10219 }
10220 if (obj4) {
10221 {
10222 arg5 = &temp5;
10223 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10224 }
10225 }
10226 if (obj5) {
10227 {
10228 if (! PySequence_Check(obj5)) {
10229 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10230 SWIG_fail;
10231 }
10232 arg6 = new wxArrayString;
10233 temp6 = true;
10234 int i, len=PySequence_Length(obj5);
10235 for (i=0; i<len; i++) {
10236 PyObject* item = PySequence_GetItem(obj5, i);
10237 wxString* s = wxString_in_helper(item);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 arg6->Add(*s);
10240 delete s;
10241 Py_DECREF(item);
10242 }
10243 }
10244 }
10245 if (obj6) {
10246 ecode7 = SWIG_AsVal_long(obj6, &val7);
10247 if (!SWIG_IsOK(ecode7)) {
10248 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10249 }
10250 arg7 = static_cast< long >(val7);
10251 }
10252 if (obj7) {
10253 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10254 if (!SWIG_IsOK(res8)) {
10255 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10256 }
10257 if (!argp8) {
10258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10259 }
10260 arg8 = reinterpret_cast< wxValidator * >(argp8);
10261 }
10262 if (obj8) {
10263 {
10264 arg9 = wxString_in_helper(obj8);
10265 if (arg9 == NULL) SWIG_fail;
10266 temp9 = true;
10267 }
10268 }
10269 {
10270 PyThreadState* __tstate = wxPyBeginAllowThreads();
10271 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 {
10276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10277 }
10278 {
10279 if (temp6) delete arg6;
10280 }
10281 {
10282 if (temp9)
10283 delete arg9;
10284 }
10285 return resultobj;
10286 fail:
10287 {
10288 if (temp6) delete arg6;
10289 }
10290 {
10291 if (temp9)
10292 delete arg9;
10293 }
10294 return NULL;
10295 }
10296
10297
10298 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj = 0;
10300 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10301 unsigned int arg2 ;
10302 bool result;
10303 void *argp1 = 0 ;
10304 int res1 = 0 ;
10305 unsigned int val2 ;
10306 int ecode2 = 0 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 char * kwnames[] = {
10310 (char *) "self",(char *) "index", NULL
10311 };
10312
10313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10315 if (!SWIG_IsOK(res1)) {
10316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10317 }
10318 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10319 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10320 if (!SWIG_IsOK(ecode2)) {
10321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10322 }
10323 arg2 = static_cast< unsigned int >(val2);
10324 {
10325 PyThreadState* __tstate = wxPyBeginAllowThreads();
10326 result = (bool)(arg1)->IsChecked(arg2);
10327 wxPyEndAllowThreads(__tstate);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
10331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10332 }
10333 return resultobj;
10334 fail:
10335 return NULL;
10336 }
10337
10338
10339 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj = 0;
10341 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10342 unsigned int arg2 ;
10343 int arg3 = (int) true ;
10344 void *argp1 = 0 ;
10345 int res1 = 0 ;
10346 unsigned int val2 ;
10347 int ecode2 = 0 ;
10348 int val3 ;
10349 int ecode3 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 char * kwnames[] = {
10354 (char *) "self",(char *) "index",(char *) "check", NULL
10355 };
10356
10357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10359 if (!SWIG_IsOK(res1)) {
10360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10361 }
10362 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10363 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10364 if (!SWIG_IsOK(ecode2)) {
10365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10366 }
10367 arg2 = static_cast< unsigned int >(val2);
10368 if (obj2) {
10369 ecode3 = SWIG_AsVal_int(obj2, &val3);
10370 if (!SWIG_IsOK(ecode3)) {
10371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10372 }
10373 arg3 = static_cast< int >(val3);
10374 }
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 (arg1)->Check(arg2,arg3);
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 resultobj = SWIG_Py_Void();
10382 return resultobj;
10383 fail:
10384 return NULL;
10385 }
10386
10387
10388 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10389 PyObject *resultobj = 0;
10390 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10391 int result;
10392 void *argp1 = 0 ;
10393 int res1 = 0 ;
10394 PyObject *swig_obj[1] ;
10395
10396 if (!args) SWIG_fail;
10397 swig_obj[0] = args;
10398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10401 }
10402 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (int)(arg1)->GetItemHeight();
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_From_int(static_cast< int >(result));
10410 return resultobj;
10411 fail:
10412 return NULL;
10413 }
10414
10415
10416 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 PyObject *obj;
10418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10419 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10420 return SWIG_Py_Void();
10421 }
10422
10423 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 return SWIG_Python_InitShadowInstance(args);
10425 }
10426
10427 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10428 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10429 return 1;
10430 }
10431
10432
10433 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10434 PyObject *pyobj = 0;
10435
10436 {
10437 #if wxUSE_UNICODE
10438 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10439 #else
10440 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10441 #endif
10442 }
10443 return pyobj;
10444 }
10445
10446
10447 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 wxColour const &arg1_defvalue = wxNullColour ;
10450 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10451 wxColour const &arg2_defvalue = wxNullColour ;
10452 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10453 wxFont const &arg3_defvalue = wxNullFont ;
10454 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10455 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10456 wxTextAttr *result = 0 ;
10457 wxColour temp1 ;
10458 wxColour temp2 ;
10459 void *argp3 = 0 ;
10460 int res3 = 0 ;
10461 int val4 ;
10462 int ecode4 = 0 ;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10465 PyObject * obj2 = 0 ;
10466 PyObject * obj3 = 0 ;
10467 char * kwnames[] = {
10468 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10469 };
10470
10471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10472 if (obj0) {
10473 {
10474 arg1 = &temp1;
10475 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10476 }
10477 }
10478 if (obj1) {
10479 {
10480 arg2 = &temp2;
10481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10482 }
10483 }
10484 if (obj2) {
10485 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10486 if (!SWIG_IsOK(res3)) {
10487 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10488 }
10489 if (!argp3) {
10490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10491 }
10492 arg3 = reinterpret_cast< wxFont * >(argp3);
10493 }
10494 if (obj3) {
10495 ecode4 = SWIG_AsVal_int(obj3, &val4);
10496 if (!SWIG_IsOK(ecode4)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10498 }
10499 arg4 = static_cast< wxTextAttrAlignment >(val4);
10500 }
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10508 return resultobj;
10509 fail:
10510 return NULL;
10511 }
10512
10513
10514 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 PyObject *swig_obj[1] ;
10520
10521 if (!args) SWIG_fail;
10522 swig_obj[0] = args;
10523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10526 }
10527 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 delete arg1;
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537 fail:
10538 return NULL;
10539 }
10540
10541
10542 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 PyObject *swig_obj[1] ;
10548
10549 if (!args) SWIG_fail;
10550 swig_obj[0] = args;
10551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10554 }
10555 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 (arg1)->Init();
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 resultobj = SWIG_Py_Void();
10563 return resultobj;
10564 fail:
10565 return NULL;
10566 }
10567
10568
10569 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj = 0;
10571 wxTextAttr *arg1 = 0 ;
10572 wxTextAttr *arg2 = 0 ;
10573 wxTextAttr result;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 void *argp2 = 0 ;
10577 int res2 = 0 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 char * kwnames[] = {
10581 (char *) "base",(char *) "overlay", NULL
10582 };
10583
10584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10585 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10588 }
10589 if (!argp1) {
10590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10591 }
10592 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10594 if (!SWIG_IsOK(res2)) {
10595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10596 }
10597 if (!argp2) {
10598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10599 }
10600 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10617 wxColour *arg2 = 0 ;
10618 void *argp1 = 0 ;
10619 int res1 = 0 ;
10620 wxColour temp2 ;
10621 PyObject * obj0 = 0 ;
10622 PyObject * obj1 = 0 ;
10623 char * kwnames[] = {
10624 (char *) "self",(char *) "colText", NULL
10625 };
10626
10627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10629 if (!SWIG_IsOK(res1)) {
10630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10631 }
10632 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10633 {
10634 arg2 = &temp2;
10635 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10636 }
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 (arg1)->SetTextColour((wxColour const &)*arg2);
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 resultobj = SWIG_Py_Void();
10644 return resultobj;
10645 fail:
10646 return NULL;
10647 }
10648
10649
10650 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj = 0;
10652 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10653 wxColour *arg2 = 0 ;
10654 void *argp1 = 0 ;
10655 int res1 = 0 ;
10656 wxColour temp2 ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659 char * kwnames[] = {
10660 (char *) "self",(char *) "colBack", NULL
10661 };
10662
10663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10665 if (!SWIG_IsOK(res1)) {
10666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10667 }
10668 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10669 {
10670 arg2 = &temp2;
10671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10672 }
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10676 wxPyEndAllowThreads(__tstate);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 resultobj = SWIG_Py_Void();
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj = 0;
10688 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10689 wxFont *arg2 = 0 ;
10690 long arg3 = (long) wxTEXT_ATTR_FONT ;
10691 void *argp1 = 0 ;
10692 int res1 = 0 ;
10693 void *argp2 = 0 ;
10694 int res2 = 0 ;
10695 long val3 ;
10696 int ecode3 = 0 ;
10697 PyObject * obj0 = 0 ;
10698 PyObject * obj1 = 0 ;
10699 PyObject * obj2 = 0 ;
10700 char * kwnames[] = {
10701 (char *) "self",(char *) "font",(char *) "flags", NULL
10702 };
10703
10704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10706 if (!SWIG_IsOK(res1)) {
10707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10708 }
10709 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10711 if (!SWIG_IsOK(res2)) {
10712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10713 }
10714 if (!argp2) {
10715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10716 }
10717 arg2 = reinterpret_cast< wxFont * >(argp2);
10718 if (obj2) {
10719 ecode3 = SWIG_AsVal_long(obj2, &val3);
10720 if (!SWIG_IsOK(ecode3)) {
10721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10722 }
10723 arg3 = static_cast< long >(val3);
10724 }
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 resultobj = SWIG_Py_Void();
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj = 0;
10740 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10741 wxTextAttrAlignment arg2 ;
10742 void *argp1 = 0 ;
10743 int res1 = 0 ;
10744 int val2 ;
10745 int ecode2 = 0 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 char * kwnames[] = {
10749 (char *) "self",(char *) "alignment", NULL
10750 };
10751
10752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10754 if (!SWIG_IsOK(res1)) {
10755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10756 }
10757 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10758 ecode2 = SWIG_AsVal_int(obj1, &val2);
10759 if (!SWIG_IsOK(ecode2)) {
10760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10761 }
10762 arg2 = static_cast< wxTextAttrAlignment >(val2);
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 (arg1)->SetAlignment(arg2);
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 resultobj = SWIG_Py_Void();
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10777 PyObject *resultobj = 0;
10778 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10779 wxArrayInt *arg2 = 0 ;
10780 void *argp1 = 0 ;
10781 int res1 = 0 ;
10782 bool temp2 = false ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char * kwnames[] = {
10786 (char *) "self",(char *) "tabs", NULL
10787 };
10788
10789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10791 if (!SWIG_IsOK(res1)) {
10792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10793 }
10794 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10795 {
10796 if (! PySequence_Check(obj1)) {
10797 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10798 SWIG_fail;
10799 }
10800 arg2 = new wxArrayInt;
10801 temp2 = true;
10802 int i, len=PySequence_Length(obj1);
10803 for (i=0; i<len; i++) {
10804 PyObject* item = PySequence_GetItem(obj1, i);
10805 PyObject* number = PyNumber_Int(item);
10806 arg2->Add(PyInt_AS_LONG(number));
10807 Py_DECREF(item);
10808 Py_DECREF(number);
10809 }
10810 }
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10814 wxPyEndAllowThreads(__tstate);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 }
10817 resultobj = SWIG_Py_Void();
10818 {
10819 if (temp2) delete arg2;
10820 }
10821 return resultobj;
10822 fail:
10823 {
10824 if (temp2) delete arg2;
10825 }
10826 return NULL;
10827 }
10828
10829
10830 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj = 0;
10832 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10833 int arg2 ;
10834 int arg3 = (int) 0 ;
10835 void *argp1 = 0 ;
10836 int res1 = 0 ;
10837 int val2 ;
10838 int ecode2 = 0 ;
10839 int val3 ;
10840 int ecode3 = 0 ;
10841 PyObject * obj0 = 0 ;
10842 PyObject * obj1 = 0 ;
10843 PyObject * obj2 = 0 ;
10844 char * kwnames[] = {
10845 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10846 };
10847
10848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10850 if (!SWIG_IsOK(res1)) {
10851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10852 }
10853 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10854 ecode2 = SWIG_AsVal_int(obj1, &val2);
10855 if (!SWIG_IsOK(ecode2)) {
10856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10857 }
10858 arg2 = static_cast< int >(val2);
10859 if (obj2) {
10860 ecode3 = SWIG_AsVal_int(obj2, &val3);
10861 if (!SWIG_IsOK(ecode3)) {
10862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10863 }
10864 arg3 = static_cast< int >(val3);
10865 }
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->SetLeftIndent(arg2,arg3);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_Py_Void();
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj = 0;
10881 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10882 int arg2 ;
10883 void *argp1 = 0 ;
10884 int res1 = 0 ;
10885 int val2 ;
10886 int ecode2 = 0 ;
10887 PyObject * obj0 = 0 ;
10888 PyObject * obj1 = 0 ;
10889 char * kwnames[] = {
10890 (char *) "self",(char *) "indent", NULL
10891 };
10892
10893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10895 if (!SWIG_IsOK(res1)) {
10896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10897 }
10898 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10899 ecode2 = SWIG_AsVal_int(obj1, &val2);
10900 if (!SWIG_IsOK(ecode2)) {
10901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10902 }
10903 arg2 = static_cast< int >(val2);
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetRightIndent(arg2);
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 resultobj = SWIG_Py_Void();
10911 return resultobj;
10912 fail:
10913 return NULL;
10914 }
10915
10916
10917 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj = 0;
10919 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10920 long arg2 ;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 long val2 ;
10924 int ecode2 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char * kwnames[] = {
10928 (char *) "self",(char *) "flags", NULL
10929 };
10930
10931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10933 if (!SWIG_IsOK(res1)) {
10934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10935 }
10936 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10937 ecode2 = SWIG_AsVal_long(obj1, &val2);
10938 if (!SWIG_IsOK(ecode2)) {
10939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10940 }
10941 arg2 = static_cast< long >(val2);
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 (arg1)->SetFlags(arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_Py_Void();
10949 return resultobj;
10950 fail:
10951 return NULL;
10952 }
10953
10954
10955 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10956 PyObject *resultobj = 0;
10957 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10958 bool result;
10959 void *argp1 = 0 ;
10960 int res1 = 0 ;
10961 PyObject *swig_obj[1] ;
10962
10963 if (!args) SWIG_fail;
10964 swig_obj[0] = args;
10965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10968 }
10969 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 }
10976 {
10977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10978 }
10979 return resultobj;
10980 fail:
10981 return NULL;
10982 }
10983
10984
10985 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10986 PyObject *resultobj = 0;
10987 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10988 bool result;
10989 void *argp1 = 0 ;
10990 int res1 = 0 ;
10991 PyObject *swig_obj[1] ;
10992
10993 if (!args) SWIG_fail;
10994 swig_obj[0] = args;
10995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10998 }
10999 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 {
11007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11008 }
11009 return resultobj;
11010 fail:
11011 return NULL;
11012 }
11013
11014
11015 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11016 PyObject *resultobj = 0;
11017 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 PyObject *swig_obj[1] ;
11022
11023 if (!args) SWIG_fail;
11024 swig_obj[0] = args;
11025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11026 if (!SWIG_IsOK(res1)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11028 }
11029 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11030 {
11031 PyThreadState* __tstate = wxPyBeginAllowThreads();
11032 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11033 wxPyEndAllowThreads(__tstate);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 {
11037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11038 }
11039 return resultobj;
11040 fail:
11041 return NULL;
11042 }
11043
11044
11045 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11046 PyObject *resultobj = 0;
11047 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11048 bool result;
11049 void *argp1 = 0 ;
11050 int res1 = 0 ;
11051 PyObject *swig_obj[1] ;
11052
11053 if (!args) SWIG_fail;
11054 swig_obj[0] = args;
11055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11056 if (!SWIG_IsOK(res1)) {
11057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11058 }
11059 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11068 }
11069 return resultobj;
11070 fail:
11071 return NULL;
11072 }
11073
11074
11075 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11076 PyObject *resultobj = 0;
11077 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11078 bool result;
11079 void *argp1 = 0 ;
11080 int res1 = 0 ;
11081 PyObject *swig_obj[1] ;
11082
11083 if (!args) SWIG_fail;
11084 swig_obj[0] = args;
11085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11086 if (!SWIG_IsOK(res1)) {
11087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11088 }
11089 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
11092 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 {
11097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11098 }
11099 return resultobj;
11100 fail:
11101 return NULL;
11102 }
11103
11104
11105 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11106 PyObject *resultobj = 0;
11107 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11108 bool result;
11109 void *argp1 = 0 ;
11110 int res1 = 0 ;
11111 PyObject *swig_obj[1] ;
11112
11113 if (!args) SWIG_fail;
11114 swig_obj[0] = args;
11115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11118 }
11119 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11128 }
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11138 bool result;
11139 void *argp1 = 0 ;
11140 int res1 = 0 ;
11141 PyObject *swig_obj[1] ;
11142
11143 if (!args) SWIG_fail;
11144 swig_obj[0] = args;
11145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11148 }
11149 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 {
11157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11158 }
11159 return resultobj;
11160 fail:
11161 return NULL;
11162 }
11163
11164
11165 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11166 PyObject *resultobj = 0;
11167 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11168 long arg2 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 long val2 ;
11173 int ecode2 = 0 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 char * kwnames[] = {
11177 (char *) "self",(char *) "flag", NULL
11178 };
11179
11180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11184 }
11185 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11186 ecode2 = SWIG_AsVal_long(obj1, &val2);
11187 if (!SWIG_IsOK(ecode2)) {
11188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11189 }
11190 arg2 = static_cast< long >(val2);
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 {
11198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11199 }
11200 return resultobj;
11201 fail:
11202 return NULL;
11203 }
11204
11205
11206 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11207 PyObject *resultobj = 0;
11208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11209 wxColour *result = 0 ;
11210 void *argp1 = 0 ;
11211 int res1 = 0 ;
11212 PyObject *swig_obj[1] ;
11213
11214 if (!args) SWIG_fail;
11215 swig_obj[0] = args;
11216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11217 if (!SWIG_IsOK(res1)) {
11218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11219 }
11220 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 {
11224 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11225 result = (wxColour *) &_result_ref;
11226 }
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11231 return resultobj;
11232 fail:
11233 return NULL;
11234 }
11235
11236
11237 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxColour *result = 0 ;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
11254 {
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11256 result = (wxColour *) &_result_ref;
11257 }
11258 wxPyEndAllowThreads(__tstate);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxFont *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 {
11286 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11287 result = (wxFont *) &_result_ref;
11288 }
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 wxFont* resultptr = new wxFont(*result);
11294 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11295 }
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11303 PyObject *resultobj = 0;
11304 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11305 wxTextAttrAlignment result;
11306 void *argp1 = 0 ;
11307 int res1 = 0 ;
11308 PyObject *swig_obj[1] ;
11309
11310 if (!args) SWIG_fail;
11311 swig_obj[0] = args;
11312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11315 }
11316 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 resultobj = SWIG_From_int(static_cast< int >(result));
11324 return resultobj;
11325 fail:
11326 return NULL;
11327 }
11328
11329
11330 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11331 PyObject *resultobj = 0;
11332 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11333 wxArrayInt *result = 0 ;
11334 void *argp1 = 0 ;
11335 int res1 = 0 ;
11336 PyObject *swig_obj[1] ;
11337
11338 if (!args) SWIG_fail;
11339 swig_obj[0] = args;
11340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11343 }
11344 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 {
11348 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11349 result = (wxArrayInt *) &_result_ref;
11350 }
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 {
11355 resultobj = PyList_New(0);
11356 size_t idx;
11357 for (idx = 0; idx < result->GetCount(); idx += 1) {
11358 PyObject* val = PyInt_FromLong( result->Item(idx) );
11359 PyList_Append(resultobj, val);
11360 Py_DECREF(val);
11361 }
11362 }
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11370 PyObject *resultobj = 0;
11371 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11372 long result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 PyObject *swig_obj[1] ;
11376
11377 if (!args) SWIG_fail;
11378 swig_obj[0] = args;
11379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11380 if (!SWIG_IsOK(res1)) {
11381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11382 }
11383 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_From_long(static_cast< long >(result));
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 PyObject *resultobj = 0;
11399 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11400 long result;
11401 void *argp1 = 0 ;
11402 int res1 = 0 ;
11403 PyObject *swig_obj[1] ;
11404
11405 if (!args) SWIG_fail;
11406 swig_obj[0] = args;
11407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11410 }
11411 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 resultobj = SWIG_From_long(static_cast< long >(result));
11419 return resultobj;
11420 fail:
11421 return NULL;
11422 }
11423
11424
11425 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11426 PyObject *resultobj = 0;
11427 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11428 long result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 PyObject *swig_obj[1] ;
11432
11433 if (!args) SWIG_fail;
11434 swig_obj[0] = args;
11435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11438 }
11439 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_From_long(static_cast< long >(result));
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11456 long result;
11457 void *argp1 = 0 ;
11458 int res1 = 0 ;
11459 PyObject *swig_obj[1] ;
11460
11461 if (!args) SWIG_fail;
11462 swig_obj[0] = args;
11463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 resultobj = SWIG_From_long(static_cast< long >(result));
11475 return resultobj;
11476 fail:
11477 return NULL;
11478 }
11479
11480
11481 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11482 PyObject *resultobj = 0;
11483 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11484 bool result;
11485 void *argp1 = 0 ;
11486 int res1 = 0 ;
11487 PyObject *swig_obj[1] ;
11488
11489 if (!args) SWIG_fail;
11490 swig_obj[0] = args;
11491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11494 }
11495 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11496 {
11497 PyThreadState* __tstate = wxPyBeginAllowThreads();
11498 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 {
11503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11504 }
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj = 0;
11513 wxTextAttr *arg1 = 0 ;
11514 wxTextAttr *arg2 = 0 ;
11515 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11516 wxTextAttr result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 void *argp2 = 0 ;
11520 int res2 = 0 ;
11521 void *argp3 = 0 ;
11522 int res3 = 0 ;
11523 PyObject * obj0 = 0 ;
11524 PyObject * obj1 = 0 ;
11525 PyObject * obj2 = 0 ;
11526 char * kwnames[] = {
11527 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11528 };
11529
11530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11534 }
11535 if (!argp1) {
11536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11537 }
11538 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11540 if (!SWIG_IsOK(res2)) {
11541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11542 }
11543 if (!argp2) {
11544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11545 }
11546 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11547 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11548 if (!SWIG_IsOK(res3)) {
11549 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11550 }
11551 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11552 {
11553 PyThreadState* __tstate = wxPyBeginAllowThreads();
11554 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11559 return resultobj;
11560 fail:
11561 return NULL;
11562 }
11563
11564
11565 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11566 PyObject *obj;
11567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11568 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11569 return SWIG_Py_Void();
11570 }
11571
11572 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11573 return SWIG_Python_InitShadowInstance(args);
11574 }
11575
11576 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj = 0;
11578 wxWindow *arg1 = (wxWindow *) 0 ;
11579 int arg2 = (int) -1 ;
11580 wxString const &arg3_defvalue = wxPyEmptyString ;
11581 wxString *arg3 = (wxString *) &arg3_defvalue ;
11582 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11583 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11584 wxSize const &arg5_defvalue = wxDefaultSize ;
11585 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11586 long arg6 = (long) 0 ;
11587 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11588 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11589 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11590 wxString *arg8 = (wxString *) &arg8_defvalue ;
11591 wxTextCtrl *result = 0 ;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 int val2 ;
11595 int ecode2 = 0 ;
11596 bool temp3 = false ;
11597 wxPoint temp4 ;
11598 wxSize temp5 ;
11599 long val6 ;
11600 int ecode6 = 0 ;
11601 void *argp7 = 0 ;
11602 int res7 = 0 ;
11603 bool temp8 = false ;
11604 PyObject * obj0 = 0 ;
11605 PyObject * obj1 = 0 ;
11606 PyObject * obj2 = 0 ;
11607 PyObject * obj3 = 0 ;
11608 PyObject * obj4 = 0 ;
11609 PyObject * obj5 = 0 ;
11610 PyObject * obj6 = 0 ;
11611 PyObject * obj7 = 0 ;
11612 char * kwnames[] = {
11613 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11614 };
11615
11616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11618 if (!SWIG_IsOK(res1)) {
11619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11620 }
11621 arg1 = reinterpret_cast< wxWindow * >(argp1);
11622 if (obj1) {
11623 ecode2 = SWIG_AsVal_int(obj1, &val2);
11624 if (!SWIG_IsOK(ecode2)) {
11625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11626 }
11627 arg2 = static_cast< int >(val2);
11628 }
11629 if (obj2) {
11630 {
11631 arg3 = wxString_in_helper(obj2);
11632 if (arg3 == NULL) SWIG_fail;
11633 temp3 = true;
11634 }
11635 }
11636 if (obj3) {
11637 {
11638 arg4 = &temp4;
11639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11640 }
11641 }
11642 if (obj4) {
11643 {
11644 arg5 = &temp5;
11645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11646 }
11647 }
11648 if (obj5) {
11649 ecode6 = SWIG_AsVal_long(obj5, &val6);
11650 if (!SWIG_IsOK(ecode6)) {
11651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11652 }
11653 arg6 = static_cast< long >(val6);
11654 }
11655 if (obj6) {
11656 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11657 if (!SWIG_IsOK(res7)) {
11658 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11659 }
11660 if (!argp7) {
11661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11662 }
11663 arg7 = reinterpret_cast< wxValidator * >(argp7);
11664 }
11665 if (obj7) {
11666 {
11667 arg8 = wxString_in_helper(obj7);
11668 if (arg8 == NULL) SWIG_fail;
11669 temp8 = true;
11670 }
11671 }
11672 {
11673 if (!wxPyCheckForApp()) SWIG_fail;
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11680 {
11681 if (temp3)
11682 delete arg3;
11683 }
11684 {
11685 if (temp8)
11686 delete arg8;
11687 }
11688 return resultobj;
11689 fail:
11690 {
11691 if (temp3)
11692 delete arg3;
11693 }
11694 {
11695 if (temp8)
11696 delete arg8;
11697 }
11698 return NULL;
11699 }
11700
11701
11702 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11703 PyObject *resultobj = 0;
11704 wxTextCtrl *result = 0 ;
11705
11706 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11707 {
11708 if (!wxPyCheckForApp()) SWIG_fail;
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (wxTextCtrl *)new wxTextCtrl();
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj = 0;
11723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11724 wxWindow *arg2 = (wxWindow *) 0 ;
11725 int arg3 = (int) -1 ;
11726 wxString const &arg4_defvalue = wxPyEmptyString ;
11727 wxString *arg4 = (wxString *) &arg4_defvalue ;
11728 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11729 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11730 wxSize const &arg6_defvalue = wxDefaultSize ;
11731 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11732 long arg7 = (long) 0 ;
11733 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11734 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11735 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11736 wxString *arg9 = (wxString *) &arg9_defvalue ;
11737 bool result;
11738 void *argp1 = 0 ;
11739 int res1 = 0 ;
11740 void *argp2 = 0 ;
11741 int res2 = 0 ;
11742 int val3 ;
11743 int ecode3 = 0 ;
11744 bool temp4 = false ;
11745 wxPoint temp5 ;
11746 wxSize temp6 ;
11747 long val7 ;
11748 int ecode7 = 0 ;
11749 void *argp8 = 0 ;
11750 int res8 = 0 ;
11751 bool temp9 = false ;
11752 PyObject * obj0 = 0 ;
11753 PyObject * obj1 = 0 ;
11754 PyObject * obj2 = 0 ;
11755 PyObject * obj3 = 0 ;
11756 PyObject * obj4 = 0 ;
11757 PyObject * obj5 = 0 ;
11758 PyObject * obj6 = 0 ;
11759 PyObject * obj7 = 0 ;
11760 PyObject * obj8 = 0 ;
11761 char * kwnames[] = {
11762 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11763 };
11764
11765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11767 if (!SWIG_IsOK(res1)) {
11768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11769 }
11770 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11772 if (!SWIG_IsOK(res2)) {
11773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11774 }
11775 arg2 = reinterpret_cast< wxWindow * >(argp2);
11776 if (obj2) {
11777 ecode3 = SWIG_AsVal_int(obj2, &val3);
11778 if (!SWIG_IsOK(ecode3)) {
11779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11780 }
11781 arg3 = static_cast< int >(val3);
11782 }
11783 if (obj3) {
11784 {
11785 arg4 = wxString_in_helper(obj3);
11786 if (arg4 == NULL) SWIG_fail;
11787 temp4 = true;
11788 }
11789 }
11790 if (obj4) {
11791 {
11792 arg5 = &temp5;
11793 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11794 }
11795 }
11796 if (obj5) {
11797 {
11798 arg6 = &temp6;
11799 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11800 }
11801 }
11802 if (obj6) {
11803 ecode7 = SWIG_AsVal_long(obj6, &val7);
11804 if (!SWIG_IsOK(ecode7)) {
11805 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11806 }
11807 arg7 = static_cast< long >(val7);
11808 }
11809 if (obj7) {
11810 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11811 if (!SWIG_IsOK(res8)) {
11812 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11813 }
11814 if (!argp8) {
11815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11816 }
11817 arg8 = reinterpret_cast< wxValidator * >(argp8);
11818 }
11819 if (obj8) {
11820 {
11821 arg9 = wxString_in_helper(obj8);
11822 if (arg9 == NULL) SWIG_fail;
11823 temp9 = true;
11824 }
11825 }
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 {
11833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11834 }
11835 {
11836 if (temp4)
11837 delete arg4;
11838 }
11839 {
11840 if (temp9)
11841 delete arg9;
11842 }
11843 return resultobj;
11844 fail:
11845 {
11846 if (temp4)
11847 delete arg4;
11848 }
11849 {
11850 if (temp9)
11851 delete arg9;
11852 }
11853 return NULL;
11854 }
11855
11856
11857 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11858 PyObject *resultobj = 0;
11859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11860 wxString result;
11861 void *argp1 = 0 ;
11862 int res1 = 0 ;
11863 PyObject *swig_obj[1] ;
11864
11865 if (!args) SWIG_fail;
11866 swig_obj[0] = args;
11867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11868 if (!SWIG_IsOK(res1)) {
11869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11870 }
11871 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = ((wxTextCtrl const *)arg1)->GetValue();
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
11879 #if wxUSE_UNICODE
11880 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11881 #else
11882 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11883 #endif
11884 }
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11894 wxString *arg2 = 0 ;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 bool temp2 = false ;
11898 PyObject * obj0 = 0 ;
11899 PyObject * obj1 = 0 ;
11900 char * kwnames[] = {
11901 (char *) "self",(char *) "value", NULL
11902 };
11903
11904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11908 }
11909 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11910 {
11911 arg2 = wxString_in_helper(obj1);
11912 if (arg2 == NULL) SWIG_fail;
11913 temp2 = true;
11914 }
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 (arg1)->SetValue((wxString const &)*arg2);
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_Py_Void();
11922 {
11923 if (temp2)
11924 delete arg2;
11925 }
11926 return resultobj;
11927 fail:
11928 {
11929 if (temp2)
11930 delete arg2;
11931 }
11932 return NULL;
11933 }
11934
11935
11936 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11939 long arg2 ;
11940 long arg3 ;
11941 wxString result;
11942 void *argp1 = 0 ;
11943 int res1 = 0 ;
11944 long val2 ;
11945 int ecode2 = 0 ;
11946 long val3 ;
11947 int ecode3 = 0 ;
11948 PyObject * obj0 = 0 ;
11949 PyObject * obj1 = 0 ;
11950 PyObject * obj2 = 0 ;
11951 char * kwnames[] = {
11952 (char *) "self",(char *) "from",(char *) "to", NULL
11953 };
11954
11955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11959 }
11960 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11961 ecode2 = SWIG_AsVal_long(obj1, &val2);
11962 if (!SWIG_IsOK(ecode2)) {
11963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11964 }
11965 arg2 = static_cast< long >(val2);
11966 ecode3 = SWIG_AsVal_long(obj2, &val3);
11967 if (!SWIG_IsOK(ecode3)) {
11968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11969 }
11970 arg3 = static_cast< long >(val3);
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978 #if wxUSE_UNICODE
11979 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11980 #else
11981 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11982 #endif
11983 }
11984 return resultobj;
11985 fail:
11986 return NULL;
11987 }
11988
11989
11990 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj = 0;
11992 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11993 long arg2 ;
11994 int result;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 long val2 ;
11998 int ecode2 = 0 ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12001 char * kwnames[] = {
12002 (char *) "self",(char *) "lineNo", NULL
12003 };
12004
12005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12007 if (!SWIG_IsOK(res1)) {
12008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12009 }
12010 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12011 ecode2 = SWIG_AsVal_long(obj1, &val2);
12012 if (!SWIG_IsOK(ecode2)) {
12013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12014 }
12015 arg2 = static_cast< long >(val2);
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 resultobj = SWIG_From_int(static_cast< int >(result));
12023 return resultobj;
12024 fail:
12025 return NULL;
12026 }
12027
12028
12029 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj = 0;
12031 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12032 long arg2 ;
12033 wxString result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 long val2 ;
12037 int ecode2 = 0 ;
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
12040 char * kwnames[] = {
12041 (char *) "self",(char *) "lineNo", NULL
12042 };
12043
12044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12046 if (!SWIG_IsOK(res1)) {
12047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12048 }
12049 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12050 ecode2 = SWIG_AsVal_long(obj1, &val2);
12051 if (!SWIG_IsOK(ecode2)) {
12052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12053 }
12054 arg2 = static_cast< long >(val2);
12055 {
12056 PyThreadState* __tstate = wxPyBeginAllowThreads();
12057 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 {
12062 #if wxUSE_UNICODE
12063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12064 #else
12065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12066 #endif
12067 }
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12075 PyObject *resultobj = 0;
12076 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12077 int result;
12078 void *argp1 = 0 ;
12079 int res1 = 0 ;
12080 PyObject *swig_obj[1] ;
12081
12082 if (!args) SWIG_fail;
12083 swig_obj[0] = args;
12084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12085 if (!SWIG_IsOK(res1)) {
12086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12087 }
12088 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_From_int(static_cast< int >(result));
12096 return resultobj;
12097 fail:
12098 return NULL;
12099 }
12100
12101
12102 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12103 PyObject *resultobj = 0;
12104 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12105 bool result;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 PyObject *swig_obj[1] ;
12109
12110 if (!args) SWIG_fail;
12111 swig_obj[0] = args;
12112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12113 if (!SWIG_IsOK(res1)) {
12114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12115 }
12116 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12125 }
12126 return resultobj;
12127 fail:
12128 return NULL;
12129 }
12130
12131
12132 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12133 PyObject *resultobj = 0;
12134 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12135 bool result;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 PyObject *swig_obj[1] ;
12139
12140 if (!args) SWIG_fail;
12141 swig_obj[0] = args;
12142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12145 }
12146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12155 }
12156 return resultobj;
12157 fail:
12158 return NULL;
12159 }
12160
12161
12162 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12163 PyObject *resultobj = 0;
12164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12165 bool result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 PyObject *swig_obj[1] ;
12169
12170 if (!args) SWIG_fail;
12171 swig_obj[0] = args;
12172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12175 }
12176 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12185 }
12186 return resultobj;
12187 fail:
12188 return NULL;
12189 }
12190
12191
12192 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12193 PyObject *resultobj = 0;
12194 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12195 bool result;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 PyObject *swig_obj[1] ;
12199
12200 if (!args) SWIG_fail;
12201 swig_obj[0] = args;
12202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12203 if (!SWIG_IsOK(res1)) {
12204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12205 }
12206 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 {
12214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12215 }
12216 return resultobj;
12217 fail:
12218 return NULL;
12219 }
12220
12221
12222 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12225 long *arg2 = (long *) 0 ;
12226 long *arg3 = (long *) 0 ;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 long temp2 ;
12230 int res2 = SWIG_TMPOBJ ;
12231 long temp3 ;
12232 int res3 = SWIG_TMPOBJ ;
12233 PyObject *swig_obj[1] ;
12234
12235 arg2 = &temp2;
12236 arg3 = &temp3;
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12242 }
12243 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 resultobj = SWIG_Py_Void();
12251 if (SWIG_IsTmpObj(res2)) {
12252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12253 } else {
12254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12256 }
12257 if (SWIG_IsTmpObj(res3)) {
12258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12259 } else {
12260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12262 }
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 wxString result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 #if wxUSE_UNICODE
12292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12293 #else
12294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12295 #endif
12296 }
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12306 void *argp1 = 0 ;
12307 int res1 = 0 ;
12308 PyObject *swig_obj[1] ;
12309
12310 if (!args) SWIG_fail;
12311 swig_obj[0] = args;
12312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12315 }
12316 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 (arg1)->Clear();
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 resultobj = SWIG_Py_Void();
12324 return resultobj;
12325 fail:
12326 return NULL;
12327 }
12328
12329
12330 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj = 0;
12332 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12333 long arg2 ;
12334 long arg3 ;
12335 wxString *arg4 = 0 ;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 long val2 ;
12339 int ecode2 = 0 ;
12340 long val3 ;
12341 int ecode3 = 0 ;
12342 bool temp4 = false ;
12343 PyObject * obj0 = 0 ;
12344 PyObject * obj1 = 0 ;
12345 PyObject * obj2 = 0 ;
12346 PyObject * obj3 = 0 ;
12347 char * kwnames[] = {
12348 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12349 };
12350
12351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12355 }
12356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12357 ecode2 = SWIG_AsVal_long(obj1, &val2);
12358 if (!SWIG_IsOK(ecode2)) {
12359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12360 }
12361 arg2 = static_cast< long >(val2);
12362 ecode3 = SWIG_AsVal_long(obj2, &val3);
12363 if (!SWIG_IsOK(ecode3)) {
12364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12365 }
12366 arg3 = static_cast< long >(val3);
12367 {
12368 arg4 = wxString_in_helper(obj3);
12369 if (arg4 == NULL) SWIG_fail;
12370 temp4 = true;
12371 }
12372 {
12373 PyThreadState* __tstate = wxPyBeginAllowThreads();
12374 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 resultobj = SWIG_Py_Void();
12379 {
12380 if (temp4)
12381 delete arg4;
12382 }
12383 return resultobj;
12384 fail:
12385 {
12386 if (temp4)
12387 delete arg4;
12388 }
12389 return NULL;
12390 }
12391
12392
12393 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj = 0;
12395 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12396 long arg2 ;
12397 long arg3 ;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 long val2 ;
12401 int ecode2 = 0 ;
12402 long val3 ;
12403 int ecode3 = 0 ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 PyObject * obj2 = 0 ;
12407 char * kwnames[] = {
12408 (char *) "self",(char *) "from",(char *) "to", NULL
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12415 }
12416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12417 ecode2 = SWIG_AsVal_long(obj1, &val2);
12418 if (!SWIG_IsOK(ecode2)) {
12419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12420 }
12421 arg2 = static_cast< long >(val2);
12422 ecode3 = SWIG_AsVal_long(obj2, &val3);
12423 if (!SWIG_IsOK(ecode3)) {
12424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12425 }
12426 arg3 = static_cast< long >(val3);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 (arg1)->Remove(arg2,arg3);
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_Py_Void();
12434 return resultobj;
12435 fail:
12436 return NULL;
12437 }
12438
12439
12440 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 wxString *arg2 = 0 ;
12444 bool result;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 bool temp2 = false ;
12448 PyObject * obj0 = 0 ;
12449 PyObject * obj1 = 0 ;
12450 char * kwnames[] = {
12451 (char *) "self",(char *) "file", NULL
12452 };
12453
12454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12456 if (!SWIG_IsOK(res1)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12458 }
12459 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12460 {
12461 arg2 = wxString_in_helper(obj1);
12462 if (arg2 == NULL) SWIG_fail;
12463 temp2 = true;
12464 }
12465 {
12466 PyThreadState* __tstate = wxPyBeginAllowThreads();
12467 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 {
12472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12473 }
12474 {
12475 if (temp2)
12476 delete arg2;
12477 }
12478 return resultobj;
12479 fail:
12480 {
12481 if (temp2)
12482 delete arg2;
12483 }
12484 return NULL;
12485 }
12486
12487
12488 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj = 0;
12490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12491 wxString const &arg2_defvalue = wxPyEmptyString ;
12492 wxString *arg2 = (wxString *) &arg2_defvalue ;
12493 bool result;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 bool temp2 = false ;
12497 PyObject * obj0 = 0 ;
12498 PyObject * obj1 = 0 ;
12499 char * kwnames[] = {
12500 (char *) "self",(char *) "file", NULL
12501 };
12502
12503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12507 }
12508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12509 if (obj1) {
12510 {
12511 arg2 = wxString_in_helper(obj1);
12512 if (arg2 == NULL) SWIG_fail;
12513 temp2 = true;
12514 }
12515 }
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 {
12523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12524 }
12525 {
12526 if (temp2)
12527 delete arg2;
12528 }
12529 return resultobj;
12530 fail:
12531 {
12532 if (temp2)
12533 delete arg2;
12534 }
12535 return NULL;
12536 }
12537
12538
12539 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *resultobj = 0;
12541 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12542 void *argp1 = 0 ;
12543 int res1 = 0 ;
12544 PyObject *swig_obj[1] ;
12545
12546 if (!args) SWIG_fail;
12547 swig_obj[0] = args;
12548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12549 if (!SWIG_IsOK(res1)) {
12550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12551 }
12552 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->MarkDirty();
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 resultobj = SWIG_Py_Void();
12560 return resultobj;
12561 fail:
12562 return NULL;
12563 }
12564
12565
12566 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12567 PyObject *resultobj = 0;
12568 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 PyObject *swig_obj[1] ;
12572
12573 if (!args) SWIG_fail;
12574 swig_obj[0] = args;
12575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12578 }
12579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->DiscardEdits();
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588 fail:
12589 return NULL;
12590 }
12591
12592
12593 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj = 0;
12595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12596 bool arg2 ;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 bool val2 ;
12600 int ecode2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "modified", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12611 }
12612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12613 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12614 if (!SWIG_IsOK(ecode2)) {
12615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12616 }
12617 arg2 = static_cast< bool >(val2);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetModified(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj = 0;
12633 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12634 unsigned long arg2 ;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 unsigned long val2 ;
12638 int ecode2 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "len", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12649 }
12650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12651 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12652 if (!SWIG_IsOK(ecode2)) {
12653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12654 }
12655 arg2 = static_cast< unsigned long >(val2);
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 (arg1)->SetMaxLength(arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 resultobj = SWIG_Py_Void();
12663 return resultobj;
12664 fail:
12665 return NULL;
12666 }
12667
12668
12669 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj = 0;
12671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12672 wxString *arg2 = 0 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool temp2 = false ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 char * kwnames[] = {
12679 (char *) "self",(char *) "text", NULL
12680 };
12681
12682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12686 }
12687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12688 {
12689 arg2 = wxString_in_helper(obj1);
12690 if (arg2 == NULL) SWIG_fail;
12691 temp2 = true;
12692 }
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 (arg1)->WriteText((wxString const &)*arg2);
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 resultobj = SWIG_Py_Void();
12700 {
12701 if (temp2)
12702 delete arg2;
12703 }
12704 return resultobj;
12705 fail:
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 return NULL;
12711 }
12712
12713
12714 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj = 0;
12716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12717 wxString *arg2 = 0 ;
12718 void *argp1 = 0 ;
12719 int res1 = 0 ;
12720 bool temp2 = false ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "text", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12731 }
12732 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12733 {
12734 arg2 = wxString_in_helper(obj1);
12735 if (arg2 == NULL) SWIG_fail;
12736 temp2 = true;
12737 }
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->AppendText((wxString const &)*arg2);
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = SWIG_Py_Void();
12745 {
12746 if (temp2)
12747 delete arg2;
12748 }
12749 return resultobj;
12750 fail:
12751 {
12752 if (temp2)
12753 delete arg2;
12754 }
12755 return NULL;
12756 }
12757
12758
12759 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12762 wxKeyEvent *arg2 = 0 ;
12763 bool result;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 void *argp2 = 0 ;
12767 int res2 = 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "event", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12781 if (!SWIG_IsOK(res2)) {
12782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12783 }
12784 if (!argp2) {
12785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12786 }
12787 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 {
12795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12796 }
12797 return resultobj;
12798 fail:
12799 return NULL;
12800 }
12801
12802
12803 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj = 0;
12805 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12806 long arg2 ;
12807 long arg3 ;
12808 wxTextAttr *arg4 = 0 ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 long val2 ;
12813 int ecode2 = 0 ;
12814 long val3 ;
12815 int ecode3 = 0 ;
12816 void *argp4 = 0 ;
12817 int res4 = 0 ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 PyObject * obj3 = 0 ;
12822 char * kwnames[] = {
12823 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12824 };
12825
12826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12830 }
12831 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12832 ecode2 = SWIG_AsVal_long(obj1, &val2);
12833 if (!SWIG_IsOK(ecode2)) {
12834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12835 }
12836 arg2 = static_cast< long >(val2);
12837 ecode3 = SWIG_AsVal_long(obj2, &val3);
12838 if (!SWIG_IsOK(ecode3)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12840 }
12841 arg3 = static_cast< long >(val3);
12842 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12843 if (!SWIG_IsOK(res4)) {
12844 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12845 }
12846 if (!argp4) {
12847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12848 }
12849 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 {
12857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12858 }
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12868 long arg2 ;
12869 wxTextAttr *arg3 = 0 ;
12870 bool result;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 long val2 ;
12874 int ecode2 = 0 ;
12875 void *argp3 = 0 ;
12876 int res3 = 0 ;
12877 PyObject * obj0 = 0 ;
12878 PyObject * obj1 = 0 ;
12879 PyObject * obj2 = 0 ;
12880 char * kwnames[] = {
12881 (char *) "self",(char *) "position",(char *) "style", NULL
12882 };
12883
12884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12886 if (!SWIG_IsOK(res1)) {
12887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12888 }
12889 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12890 ecode2 = SWIG_AsVal_long(obj1, &val2);
12891 if (!SWIG_IsOK(ecode2)) {
12892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12893 }
12894 arg2 = static_cast< long >(val2);
12895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12896 if (!SWIG_IsOK(res3)) {
12897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12898 }
12899 if (!argp3) {
12900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12901 }
12902 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 {
12910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12911 }
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 wxTextAttr *arg2 = 0 ;
12922 bool result;
12923 void *argp1 = 0 ;
12924 int res1 = 0 ;
12925 void *argp2 = 0 ;
12926 int res2 = 0 ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 char * kwnames[] = {
12930 (char *) "self",(char *) "style", NULL
12931 };
12932
12933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12935 if (!SWIG_IsOK(res1)) {
12936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12937 }
12938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12939 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12940 if (!SWIG_IsOK(res2)) {
12941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12942 }
12943 if (!argp2) {
12944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12945 }
12946 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12955 }
12956 return resultobj;
12957 fail:
12958 return NULL;
12959 }
12960
12961
12962 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12963 PyObject *resultobj = 0;
12964 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12965 wxTextAttr *result = 0 ;
12966 void *argp1 = 0 ;
12967 int res1 = 0 ;
12968 PyObject *swig_obj[1] ;
12969
12970 if (!args) SWIG_fail;
12971 swig_obj[0] = args;
12972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12975 }
12976 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 {
12980 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12981 result = (wxTextAttr *) &_result_ref;
12982 }
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 long arg2 ;
12997 long arg3 ;
12998 long result;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 long val2 ;
13002 int ecode2 = 0 ;
13003 long val3 ;
13004 int ecode3 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 PyObject * obj1 = 0 ;
13007 PyObject * obj2 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "x",(char *) "y", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13016 }
13017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13018 ecode2 = SWIG_AsVal_long(obj1, &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13021 }
13022 arg2 = static_cast< long >(val2);
13023 ecode3 = SWIG_AsVal_long(obj2, &val3);
13024 if (!SWIG_IsOK(ecode3)) {
13025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13026 }
13027 arg3 = static_cast< long >(val3);
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = SWIG_From_long(static_cast< long >(result));
13035 return resultobj;
13036 fail:
13037 return NULL;
13038 }
13039
13040
13041 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj = 0;
13043 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13044 long arg2 ;
13045 long *arg3 = (long *) 0 ;
13046 long *arg4 = (long *) 0 ;
13047 void *argp1 = 0 ;
13048 int res1 = 0 ;
13049 long val2 ;
13050 int ecode2 = 0 ;
13051 long temp3 ;
13052 int res3 = SWIG_TMPOBJ ;
13053 long temp4 ;
13054 int res4 = SWIG_TMPOBJ ;
13055 PyObject * obj0 = 0 ;
13056 PyObject * obj1 = 0 ;
13057 char * kwnames[] = {
13058 (char *) "self",(char *) "pos", NULL
13059 };
13060
13061 arg3 = &temp3;
13062 arg4 = &temp4;
13063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13065 if (!SWIG_IsOK(res1)) {
13066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13067 }
13068 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13069 ecode2 = SWIG_AsVal_long(obj1, &val2);
13070 if (!SWIG_IsOK(ecode2)) {
13071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13072 }
13073 arg2 = static_cast< long >(val2);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_Py_Void();
13081 if (SWIG_IsTmpObj(res3)) {
13082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13083 } else {
13084 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13086 }
13087 if (SWIG_IsTmpObj(res4)) {
13088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13089 } else {
13090 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13092 }
13093 return resultobj;
13094 fail:
13095 return NULL;
13096 }
13097
13098
13099 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = 0;
13101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13102 long arg2 ;
13103 void *argp1 = 0 ;
13104 int res1 = 0 ;
13105 long val2 ;
13106 int ecode2 = 0 ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "self",(char *) "pos", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13117 }
13118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13119 ecode2 = SWIG_AsVal_long(obj1, &val2);
13120 if (!SWIG_IsOK(ecode2)) {
13121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13122 }
13123 arg2 = static_cast< long >(val2);
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 (arg1)->ShowPosition(arg2);
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 resultobj = SWIG_Py_Void();
13131 return resultobj;
13132 fail:
13133 return NULL;
13134 }
13135
13136
13137 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13138 PyObject *resultobj = 0;
13139 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13140 wxPoint *arg2 = 0 ;
13141 long *arg3 = (long *) 0 ;
13142 long *arg4 = (long *) 0 ;
13143 wxTextCtrlHitTestResult result;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 wxPoint temp2 ;
13147 long temp3 ;
13148 int res3 = SWIG_TMPOBJ ;
13149 long temp4 ;
13150 int res4 = SWIG_TMPOBJ ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "pt", NULL
13155 };
13156
13157 arg3 = &temp3;
13158 arg4 = &temp4;
13159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13161 if (!SWIG_IsOK(res1)) {
13162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13163 }
13164 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13165 {
13166 arg2 = &temp2;
13167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13168 }
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 resultobj = SWIG_From_int(static_cast< int >(result));
13176 if (SWIG_IsTmpObj(res3)) {
13177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13178 } else {
13179 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13181 }
13182 if (SWIG_IsTmpObj(res4)) {
13183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13184 } else {
13185 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13187 }
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = 0;
13196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13197 wxPoint *arg2 = 0 ;
13198 long *arg3 = (long *) 0 ;
13199 wxTextCtrlHitTestResult result;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 wxPoint temp2 ;
13203 long temp3 ;
13204 int res3 = SWIG_TMPOBJ ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 char * kwnames[] = {
13208 (char *) "self",(char *) "pt", NULL
13209 };
13210
13211 arg3 = &temp3;
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13216 }
13217 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13218 {
13219 arg2 = &temp2;
13220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_From_int(static_cast< int >(result));
13229 if (SWIG_IsTmpObj(res3)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 PyObject *swig_obj[1] ;
13247
13248 if (!args) SWIG_fail;
13249 swig_obj[0] = args;
13250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13253 }
13254 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->Copy();
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13271 void *argp1 = 0 ;
13272 int res1 = 0 ;
13273 PyObject *swig_obj[1] ;
13274
13275 if (!args) SWIG_fail;
13276 swig_obj[0] = args;
13277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13278 if (!SWIG_IsOK(res1)) {
13279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13280 }
13281 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13282 {
13283 PyThreadState* __tstate = wxPyBeginAllowThreads();
13284 (arg1)->Cut();
13285 wxPyEndAllowThreads(__tstate);
13286 if (PyErr_Occurred()) SWIG_fail;
13287 }
13288 resultobj = SWIG_Py_Void();
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13296 PyObject *resultobj = 0;
13297 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13298 void *argp1 = 0 ;
13299 int res1 = 0 ;
13300 PyObject *swig_obj[1] ;
13301
13302 if (!args) SWIG_fail;
13303 swig_obj[0] = args;
13304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13305 if (!SWIG_IsOK(res1)) {
13306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13307 }
13308 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 (arg1)->Paste();
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_Py_Void();
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13325 bool result;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 PyObject *swig_obj[1] ;
13329
13330 if (!args) SWIG_fail;
13331 swig_obj[0] = args;
13332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13335 }
13336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13355 bool result;
13356 void *argp1 = 0 ;
13357 int res1 = 0 ;
13358 PyObject *swig_obj[1] ;
13359
13360 if (!args) SWIG_fail;
13361 swig_obj[0] = args;
13362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13363 if (!SWIG_IsOK(res1)) {
13364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13365 }
13366 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 {
13374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13375 }
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13385 bool result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 {
13404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13405 }
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13415 void *argp1 = 0 ;
13416 int res1 = 0 ;
13417 PyObject *swig_obj[1] ;
13418
13419 if (!args) SWIG_fail;
13420 swig_obj[0] = args;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13424 }
13425 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->Undo();
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 resultobj = SWIG_Py_Void();
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 PyObject *swig_obj[1] ;
13445
13446 if (!args) SWIG_fail;
13447 swig_obj[0] = args;
13448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13451 }
13452 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 (arg1)->Redo();
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_Py_Void();
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 bool result;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 PyObject *swig_obj[1] ;
13473
13474 if (!args) SWIG_fail;
13475 swig_obj[0] = args;
13476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13477 if (!SWIG_IsOK(res1)) {
13478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13479 }
13480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13489 }
13490 return resultobj;
13491 fail:
13492 return NULL;
13493 }
13494
13495
13496 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13497 PyObject *resultobj = 0;
13498 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13499 bool result;
13500 void *argp1 = 0 ;
13501 int res1 = 0 ;
13502 PyObject *swig_obj[1] ;
13503
13504 if (!args) SWIG_fail;
13505 swig_obj[0] = args;
13506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13507 if (!SWIG_IsOK(res1)) {
13508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13509 }
13510 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 {
13518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13519 }
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj = 0;
13528 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13529 long arg2 ;
13530 void *argp1 = 0 ;
13531 int res1 = 0 ;
13532 long val2 ;
13533 int ecode2 = 0 ;
13534 PyObject * obj0 = 0 ;
13535 PyObject * obj1 = 0 ;
13536 char * kwnames[] = {
13537 (char *) "self",(char *) "pos", NULL
13538 };
13539
13540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13544 }
13545 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13546 ecode2 = SWIG_AsVal_long(obj1, &val2);
13547 if (!SWIG_IsOK(ecode2)) {
13548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13549 }
13550 arg2 = static_cast< long >(val2);
13551 {
13552 PyThreadState* __tstate = wxPyBeginAllowThreads();
13553 (arg1)->SetInsertionPoint(arg2);
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 resultobj = SWIG_Py_Void();
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13565 PyObject *resultobj = 0;
13566 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13567 void *argp1 = 0 ;
13568 int res1 = 0 ;
13569 PyObject *swig_obj[1] ;
13570
13571 if (!args) SWIG_fail;
13572 swig_obj[0] = args;
13573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13574 if (!SWIG_IsOK(res1)) {
13575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13576 }
13577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 (arg1)->SetInsertionPointEnd();
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = SWIG_Py_Void();
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13592 PyObject *resultobj = 0;
13593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13594 long result;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 PyObject *swig_obj[1] ;
13598
13599 if (!args) SWIG_fail;
13600 swig_obj[0] = args;
13601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13602 if (!SWIG_IsOK(res1)) {
13603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13604 }
13605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_From_long(static_cast< long >(result));
13613 return resultobj;
13614 fail:
13615 return NULL;
13616 }
13617
13618
13619 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13620 PyObject *resultobj = 0;
13621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13622 long result;
13623 void *argp1 = 0 ;
13624 int res1 = 0 ;
13625 PyObject *swig_obj[1] ;
13626
13627 if (!args) SWIG_fail;
13628 swig_obj[0] = args;
13629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13630 if (!SWIG_IsOK(res1)) {
13631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13632 }
13633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13634 {
13635 PyThreadState* __tstate = wxPyBeginAllowThreads();
13636 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 resultobj = SWIG_From_long(static_cast< long >(result));
13641 return resultobj;
13642 fail:
13643 return NULL;
13644 }
13645
13646
13647 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj = 0;
13649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13650 long arg2 ;
13651 long arg3 ;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 long val2 ;
13655 int ecode2 = 0 ;
13656 long val3 ;
13657 int ecode3 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 PyObject * obj2 = 0 ;
13661 char * kwnames[] = {
13662 (char *) "self",(char *) "from",(char *) "to", NULL
13663 };
13664
13665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13667 if (!SWIG_IsOK(res1)) {
13668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13669 }
13670 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13671 ecode2 = SWIG_AsVal_long(obj1, &val2);
13672 if (!SWIG_IsOK(ecode2)) {
13673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13674 }
13675 arg2 = static_cast< long >(val2);
13676 ecode3 = SWIG_AsVal_long(obj2, &val3);
13677 if (!SWIG_IsOK(ecode3)) {
13678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13679 }
13680 arg3 = static_cast< long >(val3);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 (arg1)->SetSelection(arg2,arg3);
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_Py_Void();
13688 return resultobj;
13689 fail:
13690 return NULL;
13691 }
13692
13693
13694 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 PyObject *swig_obj[1] ;
13700
13701 if (!args) SWIG_fail;
13702 swig_obj[0] = args;
13703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13704 if (!SWIG_IsOK(res1)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13706 }
13707 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 (arg1)->SelectAll();
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_Py_Void();
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13724 bool arg2 ;
13725 void *argp1 = 0 ;
13726 int res1 = 0 ;
13727 bool val2 ;
13728 int ecode2 = 0 ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "editable", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13739 }
13740 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13741 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13742 if (!SWIG_IsOK(ecode2)) {
13743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13744 }
13745 arg2 = static_cast< bool >(val2);
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 (arg1)->SetEditable(arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_Py_Void();
13753 return resultobj;
13754 fail:
13755 return NULL;
13756 }
13757
13758
13759 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13762 wxString *arg2 = 0 ;
13763 void *argp1 = 0 ;
13764 int res1 = 0 ;
13765 bool temp2 = false ;
13766 PyObject * obj0 = 0 ;
13767 PyObject * obj1 = 0 ;
13768 char * kwnames[] = {
13769 (char *) "self",(char *) "text", NULL
13770 };
13771
13772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13774 if (!SWIG_IsOK(res1)) {
13775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13776 }
13777 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13778 {
13779 arg2 = wxString_in_helper(obj1);
13780 if (arg2 == NULL) SWIG_fail;
13781 temp2 = true;
13782 }
13783 {
13784 PyThreadState* __tstate = wxPyBeginAllowThreads();
13785 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 resultobj = SWIG_Py_Void();
13790 {
13791 if (temp2)
13792 delete arg2;
13793 }
13794 return resultobj;
13795 fail:
13796 {
13797 if (temp2)
13798 delete arg2;
13799 }
13800 return NULL;
13801 }
13802
13803
13804 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj = 0;
13806 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13807 long arg2 ;
13808 long arg3 ;
13809 wxString result;
13810 void *argp1 = 0 ;
13811 int res1 = 0 ;
13812 long val2 ;
13813 int ecode2 = 0 ;
13814 long val3 ;
13815 int ecode3 = 0 ;
13816 PyObject * obj0 = 0 ;
13817 PyObject * obj1 = 0 ;
13818 PyObject * obj2 = 0 ;
13819 char * kwnames[] = {
13820 (char *) "self",(char *) "from",(char *) "to", NULL
13821 };
13822
13823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13825 if (!SWIG_IsOK(res1)) {
13826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13827 }
13828 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13829 ecode2 = SWIG_AsVal_long(obj1, &val2);
13830 if (!SWIG_IsOK(ecode2)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13832 }
13833 arg2 = static_cast< long >(val2);
13834 ecode3 = SWIG_AsVal_long(obj2, &val3);
13835 if (!SWIG_IsOK(ecode3)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13837 }
13838 arg3 = static_cast< long >(val3);
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 {
13846 #if wxUSE_UNICODE
13847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13848 #else
13849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13850 #endif
13851 }
13852 return resultobj;
13853 fail:
13854 return NULL;
13855 }
13856
13857
13858 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13859 PyObject *resultobj = 0;
13860 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13861 SwigValueWrapper<wxVisualAttributes > result;
13862 int val1 ;
13863 int ecode1 = 0 ;
13864 PyObject * obj0 = 0 ;
13865 char * kwnames[] = {
13866 (char *) "variant", NULL
13867 };
13868
13869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13870 if (obj0) {
13871 ecode1 = SWIG_AsVal_int(obj0, &val1);
13872 if (!SWIG_IsOK(ecode1)) {
13873 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13874 }
13875 arg1 = static_cast< wxWindowVariant >(val1);
13876 }
13877 {
13878 if (!wxPyCheckForApp()) SWIG_fail;
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13892 PyObject *obj;
13893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13894 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13895 return SWIG_Py_Void();
13896 }
13897
13898 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13899 return SWIG_Python_InitShadowInstance(args);
13900 }
13901
13902 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = 0;
13904 int arg1 ;
13905 wxMouseEvent *arg2 = 0 ;
13906 long arg3 ;
13907 long arg4 ;
13908 wxTextUrlEvent *result = 0 ;
13909 int val1 ;
13910 int ecode1 = 0 ;
13911 void *argp2 = 0 ;
13912 int res2 = 0 ;
13913 long val3 ;
13914 int ecode3 = 0 ;
13915 long val4 ;
13916 int ecode4 = 0 ;
13917 PyObject * obj0 = 0 ;
13918 PyObject * obj1 = 0 ;
13919 PyObject * obj2 = 0 ;
13920 PyObject * obj3 = 0 ;
13921 char * kwnames[] = {
13922 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13923 };
13924
13925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13926 ecode1 = SWIG_AsVal_int(obj0, &val1);
13927 if (!SWIG_IsOK(ecode1)) {
13928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13929 }
13930 arg1 = static_cast< int >(val1);
13931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13932 if (!SWIG_IsOK(res2)) {
13933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13934 }
13935 if (!argp2) {
13936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13937 }
13938 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13939 ecode3 = SWIG_AsVal_long(obj2, &val3);
13940 if (!SWIG_IsOK(ecode3)) {
13941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13942 }
13943 arg3 = static_cast< long >(val3);
13944 ecode4 = SWIG_AsVal_long(obj3, &val4);
13945 if (!SWIG_IsOK(ecode4)) {
13946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13947 }
13948 arg4 = static_cast< long >(val4);
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13956 return resultobj;
13957 fail:
13958 return NULL;
13959 }
13960
13961
13962 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13963 PyObject *resultobj = 0;
13964 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13965 wxMouseEvent *result = 0 ;
13966 void *argp1 = 0 ;
13967 int res1 = 0 ;
13968 PyObject *swig_obj[1] ;
13969
13970 if (!args) SWIG_fail;
13971 swig_obj[0] = args;
13972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13973 if (!SWIG_IsOK(res1)) {
13974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13975 }
13976 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13977 {
13978 PyThreadState* __tstate = wxPyBeginAllowThreads();
13979 {
13980 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13981 result = (wxMouseEvent *) &_result_ref;
13982 }
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13994 PyObject *resultobj = 0;
13995 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13996 long result;
13997 void *argp1 = 0 ;
13998 int res1 = 0 ;
13999 PyObject *swig_obj[1] ;
14000
14001 if (!args) SWIG_fail;
14002 swig_obj[0] = args;
14003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14004 if (!SWIG_IsOK(res1)) {
14005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14006 }
14007 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 resultobj = SWIG_From_long(static_cast< long >(result));
14015 return resultobj;
14016 fail:
14017 return NULL;
14018 }
14019
14020
14021 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14022 PyObject *resultobj = 0;
14023 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14024 long result;
14025 void *argp1 = 0 ;
14026 int res1 = 0 ;
14027 PyObject *swig_obj[1] ;
14028
14029 if (!args) SWIG_fail;
14030 swig_obj[0] = args;
14031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14032 if (!SWIG_IsOK(res1)) {
14033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14034 }
14035 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14036 {
14037 PyThreadState* __tstate = wxPyBeginAllowThreads();
14038 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14039 wxPyEndAllowThreads(__tstate);
14040 if (PyErr_Occurred()) SWIG_fail;
14041 }
14042 resultobj = SWIG_From_long(static_cast< long >(result));
14043 return resultobj;
14044 fail:
14045 return NULL;
14046 }
14047
14048
14049 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14050 PyObject *obj;
14051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14052 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14053 return SWIG_Py_Void();
14054 }
14055
14056 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14057 return SWIG_Python_InitShadowInstance(args);
14058 }
14059
14060 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14061 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14062 return 1;
14063 }
14064
14065
14066 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14067 PyObject *pyobj = 0;
14068
14069 {
14070 #if wxUSE_UNICODE
14071 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14072 #else
14073 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14074 #endif
14075 }
14076 return pyobj;
14077 }
14078
14079
14080 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj = 0;
14082 wxWindow *arg1 = (wxWindow *) 0 ;
14083 int arg2 = (int) -1 ;
14084 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14085 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14086 wxSize const &arg4_defvalue = wxDefaultSize ;
14087 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14088 long arg5 = (long) wxSB_HORIZONTAL ;
14089 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14090 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14091 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14092 wxString *arg7 = (wxString *) &arg7_defvalue ;
14093 wxScrollBar *result = 0 ;
14094 void *argp1 = 0 ;
14095 int res1 = 0 ;
14096 int val2 ;
14097 int ecode2 = 0 ;
14098 wxPoint temp3 ;
14099 wxSize temp4 ;
14100 long val5 ;
14101 int ecode5 = 0 ;
14102 void *argp6 = 0 ;
14103 int res6 = 0 ;
14104 bool temp7 = false ;
14105 PyObject * obj0 = 0 ;
14106 PyObject * obj1 = 0 ;
14107 PyObject * obj2 = 0 ;
14108 PyObject * obj3 = 0 ;
14109 PyObject * obj4 = 0 ;
14110 PyObject * obj5 = 0 ;
14111 PyObject * obj6 = 0 ;
14112 char * kwnames[] = {
14113 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14114 };
14115
14116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14118 if (!SWIG_IsOK(res1)) {
14119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14120 }
14121 arg1 = reinterpret_cast< wxWindow * >(argp1);
14122 if (obj1) {
14123 ecode2 = SWIG_AsVal_int(obj1, &val2);
14124 if (!SWIG_IsOK(ecode2)) {
14125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14126 }
14127 arg2 = static_cast< int >(val2);
14128 }
14129 if (obj2) {
14130 {
14131 arg3 = &temp3;
14132 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14133 }
14134 }
14135 if (obj3) {
14136 {
14137 arg4 = &temp4;
14138 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14139 }
14140 }
14141 if (obj4) {
14142 ecode5 = SWIG_AsVal_long(obj4, &val5);
14143 if (!SWIG_IsOK(ecode5)) {
14144 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14145 }
14146 arg5 = static_cast< long >(val5);
14147 }
14148 if (obj5) {
14149 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14150 if (!SWIG_IsOK(res6)) {
14151 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14152 }
14153 if (!argp6) {
14154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14155 }
14156 arg6 = reinterpret_cast< wxValidator * >(argp6);
14157 }
14158 if (obj6) {
14159 {
14160 arg7 = wxString_in_helper(obj6);
14161 if (arg7 == NULL) SWIG_fail;
14162 temp7 = true;
14163 }
14164 }
14165 {
14166 if (!wxPyCheckForApp()) SWIG_fail;
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14173 {
14174 if (temp7)
14175 delete arg7;
14176 }
14177 return resultobj;
14178 fail:
14179 {
14180 if (temp7)
14181 delete arg7;
14182 }
14183 return NULL;
14184 }
14185
14186
14187 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14188 PyObject *resultobj = 0;
14189 wxScrollBar *result = 0 ;
14190
14191 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14192 {
14193 if (!wxPyCheckForApp()) SWIG_fail;
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 result = (wxScrollBar *)new wxScrollBar();
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj = 0;
14208 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14209 wxWindow *arg2 = (wxWindow *) 0 ;
14210 int arg3 = (int) -1 ;
14211 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14212 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14213 wxSize const &arg5_defvalue = wxDefaultSize ;
14214 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14215 long arg6 = (long) wxSB_HORIZONTAL ;
14216 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14217 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14218 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14219 wxString *arg8 = (wxString *) &arg8_defvalue ;
14220 bool result;
14221 void *argp1 = 0 ;
14222 int res1 = 0 ;
14223 void *argp2 = 0 ;
14224 int res2 = 0 ;
14225 int val3 ;
14226 int ecode3 = 0 ;
14227 wxPoint temp4 ;
14228 wxSize temp5 ;
14229 long val6 ;
14230 int ecode6 = 0 ;
14231 void *argp7 = 0 ;
14232 int res7 = 0 ;
14233 bool temp8 = false ;
14234 PyObject * obj0 = 0 ;
14235 PyObject * obj1 = 0 ;
14236 PyObject * obj2 = 0 ;
14237 PyObject * obj3 = 0 ;
14238 PyObject * obj4 = 0 ;
14239 PyObject * obj5 = 0 ;
14240 PyObject * obj6 = 0 ;
14241 PyObject * obj7 = 0 ;
14242 char * kwnames[] = {
14243 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14244 };
14245
14246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14248 if (!SWIG_IsOK(res1)) {
14249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14250 }
14251 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14253 if (!SWIG_IsOK(res2)) {
14254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14255 }
14256 arg2 = reinterpret_cast< wxWindow * >(argp2);
14257 if (obj2) {
14258 ecode3 = SWIG_AsVal_int(obj2, &val3);
14259 if (!SWIG_IsOK(ecode3)) {
14260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14261 }
14262 arg3 = static_cast< int >(val3);
14263 }
14264 if (obj3) {
14265 {
14266 arg4 = &temp4;
14267 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14268 }
14269 }
14270 if (obj4) {
14271 {
14272 arg5 = &temp5;
14273 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14274 }
14275 }
14276 if (obj5) {
14277 ecode6 = SWIG_AsVal_long(obj5, &val6);
14278 if (!SWIG_IsOK(ecode6)) {
14279 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14280 }
14281 arg6 = static_cast< long >(val6);
14282 }
14283 if (obj6) {
14284 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14285 if (!SWIG_IsOK(res7)) {
14286 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14287 }
14288 if (!argp7) {
14289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14290 }
14291 arg7 = reinterpret_cast< wxValidator * >(argp7);
14292 }
14293 if (obj7) {
14294 {
14295 arg8 = wxString_in_helper(obj7);
14296 if (arg8 == NULL) SWIG_fail;
14297 temp8 = true;
14298 }
14299 }
14300 {
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 {
14307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14308 }
14309 {
14310 if (temp8)
14311 delete arg8;
14312 }
14313 return resultobj;
14314 fail:
14315 {
14316 if (temp8)
14317 delete arg8;
14318 }
14319 return NULL;
14320 }
14321
14322
14323 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14324 PyObject *resultobj = 0;
14325 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14326 int result;
14327 void *argp1 = 0 ;
14328 int res1 = 0 ;
14329 PyObject *swig_obj[1] ;
14330
14331 if (!args) SWIG_fail;
14332 swig_obj[0] = args;
14333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14334 if (!SWIG_IsOK(res1)) {
14335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14336 }
14337 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14338 {
14339 PyThreadState* __tstate = wxPyBeginAllowThreads();
14340 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 resultobj = SWIG_From_int(static_cast< int >(result));
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14352 PyObject *resultobj = 0;
14353 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14354 int result;
14355 void *argp1 = 0 ;
14356 int res1 = 0 ;
14357 PyObject *swig_obj[1] ;
14358
14359 if (!args) SWIG_fail;
14360 swig_obj[0] = args;
14361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14362 if (!SWIG_IsOK(res1)) {
14363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14364 }
14365 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 resultobj = SWIG_From_int(static_cast< int >(result));
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14380 PyObject *resultobj = 0;
14381 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14382 int result;
14383 void *argp1 = 0 ;
14384 int res1 = 0 ;
14385 PyObject *swig_obj[1] ;
14386
14387 if (!args) SWIG_fail;
14388 swig_obj[0] = args;
14389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14390 if (!SWIG_IsOK(res1)) {
14391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14392 }
14393 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14397 wxPyEndAllowThreads(__tstate);
14398 if (PyErr_Occurred()) SWIG_fail;
14399 }
14400 resultobj = SWIG_From_int(static_cast< int >(result));
14401 return resultobj;
14402 fail:
14403 return NULL;
14404 }
14405
14406
14407 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14408 PyObject *resultobj = 0;
14409 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14410 int result;
14411 void *argp1 = 0 ;
14412 int res1 = 0 ;
14413 PyObject *swig_obj[1] ;
14414
14415 if (!args) SWIG_fail;
14416 swig_obj[0] = args;
14417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14418 if (!SWIG_IsOK(res1)) {
14419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14420 }
14421 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = (int)((wxScrollBar const *)arg1)->GetRange();
14425 wxPyEndAllowThreads(__tstate);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 resultobj = SWIG_From_int(static_cast< int >(result));
14429 return resultobj;
14430 fail:
14431 return NULL;
14432 }
14433
14434
14435 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14436 PyObject *resultobj = 0;
14437 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14438 bool result;
14439 void *argp1 = 0 ;
14440 int res1 = 0 ;
14441 PyObject *swig_obj[1] ;
14442
14443 if (!args) SWIG_fail;
14444 swig_obj[0] = args;
14445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14446 if (!SWIG_IsOK(res1)) {
14447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14448 }
14449 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14450 {
14451 PyThreadState* __tstate = wxPyBeginAllowThreads();
14452 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14453 wxPyEndAllowThreads(__tstate);
14454 if (PyErr_Occurred()) SWIG_fail;
14455 }
14456 {
14457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14458 }
14459 return resultobj;
14460 fail:
14461 return NULL;
14462 }
14463
14464
14465 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14466 PyObject *resultobj = 0;
14467 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14468 int arg2 ;
14469 void *argp1 = 0 ;
14470 int res1 = 0 ;
14471 int val2 ;
14472 int ecode2 = 0 ;
14473 PyObject * obj0 = 0 ;
14474 PyObject * obj1 = 0 ;
14475 char * kwnames[] = {
14476 (char *) "self",(char *) "viewStart", NULL
14477 };
14478
14479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14481 if (!SWIG_IsOK(res1)) {
14482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14483 }
14484 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14485 ecode2 = SWIG_AsVal_int(obj1, &val2);
14486 if (!SWIG_IsOK(ecode2)) {
14487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14488 }
14489 arg2 = static_cast< int >(val2);
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 (arg1)->SetThumbPosition(arg2);
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 resultobj = SWIG_Py_Void();
14497 return resultobj;
14498 fail:
14499 return NULL;
14500 }
14501
14502
14503 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj = 0;
14505 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14506 SwigValueWrapper<wxVisualAttributes > result;
14507 int val1 ;
14508 int ecode1 = 0 ;
14509 PyObject * obj0 = 0 ;
14510 char * kwnames[] = {
14511 (char *) "variant", NULL
14512 };
14513
14514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14515 if (obj0) {
14516 ecode1 = SWIG_AsVal_int(obj0, &val1);
14517 if (!SWIG_IsOK(ecode1)) {
14518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14519 }
14520 arg1 = static_cast< wxWindowVariant >(val1);
14521 }
14522 {
14523 if (!wxPyCheckForApp()) SWIG_fail;
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14530 return resultobj;
14531 fail:
14532 return NULL;
14533 }
14534
14535
14536 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14537 PyObject *obj;
14538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14539 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14540 return SWIG_Py_Void();
14541 }
14542
14543 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14544 return SWIG_Python_InitShadowInstance(args);
14545 }
14546
14547 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14548 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14549 return 1;
14550 }
14551
14552
14553 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14554 PyObject *pyobj = 0;
14555
14556 {
14557 #if wxUSE_UNICODE
14558 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14559 #else
14560 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14561 #endif
14562 }
14563 return pyobj;
14564 }
14565
14566
14567 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14568 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14569 return 1;
14570 }
14571
14572
14573 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14574 PyObject *pyobj = 0;
14575
14576 {
14577 #if wxUSE_UNICODE
14578 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14579 #else
14580 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14581 #endif
14582 }
14583 return pyobj;
14584 }
14585
14586
14587 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14588 PyObject *resultobj = 0;
14589 wxWindow *arg1 = (wxWindow *) 0 ;
14590 int arg2 = (int) -1 ;
14591 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14592 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14593 wxSize const &arg4_defvalue = wxDefaultSize ;
14594 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14595 long arg5 = (long) wxSP_HORIZONTAL ;
14596 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14597 wxString *arg6 = (wxString *) &arg6_defvalue ;
14598 wxSpinButton *result = 0 ;
14599 void *argp1 = 0 ;
14600 int res1 = 0 ;
14601 int val2 ;
14602 int ecode2 = 0 ;
14603 wxPoint temp3 ;
14604 wxSize temp4 ;
14605 long val5 ;
14606 int ecode5 = 0 ;
14607 bool temp6 = false ;
14608 PyObject * obj0 = 0 ;
14609 PyObject * obj1 = 0 ;
14610 PyObject * obj2 = 0 ;
14611 PyObject * obj3 = 0 ;
14612 PyObject * obj4 = 0 ;
14613 PyObject * obj5 = 0 ;
14614 char * kwnames[] = {
14615 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14616 };
14617
14618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14620 if (!SWIG_IsOK(res1)) {
14621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14622 }
14623 arg1 = reinterpret_cast< wxWindow * >(argp1);
14624 if (obj1) {
14625 ecode2 = SWIG_AsVal_int(obj1, &val2);
14626 if (!SWIG_IsOK(ecode2)) {
14627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14628 }
14629 arg2 = static_cast< int >(val2);
14630 }
14631 if (obj2) {
14632 {
14633 arg3 = &temp3;
14634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14635 }
14636 }
14637 if (obj3) {
14638 {
14639 arg4 = &temp4;
14640 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14641 }
14642 }
14643 if (obj4) {
14644 ecode5 = SWIG_AsVal_long(obj4, &val5);
14645 if (!SWIG_IsOK(ecode5)) {
14646 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14647 }
14648 arg5 = static_cast< long >(val5);
14649 }
14650 if (obj5) {
14651 {
14652 arg6 = wxString_in_helper(obj5);
14653 if (arg6 == NULL) SWIG_fail;
14654 temp6 = true;
14655 }
14656 }
14657 {
14658 if (!wxPyCheckForApp()) SWIG_fail;
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14665 {
14666 if (temp6)
14667 delete arg6;
14668 }
14669 return resultobj;
14670 fail:
14671 {
14672 if (temp6)
14673 delete arg6;
14674 }
14675 return NULL;
14676 }
14677
14678
14679 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14680 PyObject *resultobj = 0;
14681 wxSpinButton *result = 0 ;
14682
14683 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14684 {
14685 if (!wxPyCheckForApp()) SWIG_fail;
14686 PyThreadState* __tstate = wxPyBeginAllowThreads();
14687 result = (wxSpinButton *)new wxSpinButton();
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj = 0;
14700 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14701 wxWindow *arg2 = (wxWindow *) 0 ;
14702 int arg3 = (int) -1 ;
14703 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14704 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14705 wxSize const &arg5_defvalue = wxDefaultSize ;
14706 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14707 long arg6 = (long) wxSP_HORIZONTAL ;
14708 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14709 wxString *arg7 = (wxString *) &arg7_defvalue ;
14710 bool result;
14711 void *argp1 = 0 ;
14712 int res1 = 0 ;
14713 void *argp2 = 0 ;
14714 int res2 = 0 ;
14715 int val3 ;
14716 int ecode3 = 0 ;
14717 wxPoint temp4 ;
14718 wxSize temp5 ;
14719 long val6 ;
14720 int ecode6 = 0 ;
14721 bool temp7 = false ;
14722 PyObject * obj0 = 0 ;
14723 PyObject * obj1 = 0 ;
14724 PyObject * obj2 = 0 ;
14725 PyObject * obj3 = 0 ;
14726 PyObject * obj4 = 0 ;
14727 PyObject * obj5 = 0 ;
14728 PyObject * obj6 = 0 ;
14729 char * kwnames[] = {
14730 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14731 };
14732
14733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14737 }
14738 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14740 if (!SWIG_IsOK(res2)) {
14741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14742 }
14743 arg2 = reinterpret_cast< wxWindow * >(argp2);
14744 if (obj2) {
14745 ecode3 = SWIG_AsVal_int(obj2, &val3);
14746 if (!SWIG_IsOK(ecode3)) {
14747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14748 }
14749 arg3 = static_cast< int >(val3);
14750 }
14751 if (obj3) {
14752 {
14753 arg4 = &temp4;
14754 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14755 }
14756 }
14757 if (obj4) {
14758 {
14759 arg5 = &temp5;
14760 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14761 }
14762 }
14763 if (obj5) {
14764 ecode6 = SWIG_AsVal_long(obj5, &val6);
14765 if (!SWIG_IsOK(ecode6)) {
14766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14767 }
14768 arg6 = static_cast< long >(val6);
14769 }
14770 if (obj6) {
14771 {
14772 arg7 = wxString_in_helper(obj6);
14773 if (arg7 == NULL) SWIG_fail;
14774 temp7 = true;
14775 }
14776 }
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 {
14784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14785 }
14786 {
14787 if (temp7)
14788 delete arg7;
14789 }
14790 return resultobj;
14791 fail:
14792 {
14793 if (temp7)
14794 delete arg7;
14795 }
14796 return NULL;
14797 }
14798
14799
14800 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14801 PyObject *resultobj = 0;
14802 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14803 int result;
14804 void *argp1 = 0 ;
14805 int res1 = 0 ;
14806 PyObject *swig_obj[1] ;
14807
14808 if (!args) SWIG_fail;
14809 swig_obj[0] = args;
14810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14811 if (!SWIG_IsOK(res1)) {
14812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14813 }
14814 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 result = (int)((wxSpinButton const *)arg1)->GetValue();
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = SWIG_From_int(static_cast< int >(result));
14822 return resultobj;
14823 fail:
14824 return NULL;
14825 }
14826
14827
14828 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14829 PyObject *resultobj = 0;
14830 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14831 int result;
14832 void *argp1 = 0 ;
14833 int res1 = 0 ;
14834 PyObject *swig_obj[1] ;
14835
14836 if (!args) SWIG_fail;
14837 swig_obj[0] = args;
14838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14839 if (!SWIG_IsOK(res1)) {
14840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14841 }
14842 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14843 {
14844 PyThreadState* __tstate = wxPyBeginAllowThreads();
14845 result = (int)((wxSpinButton const *)arg1)->GetMin();
14846 wxPyEndAllowThreads(__tstate);
14847 if (PyErr_Occurred()) SWIG_fail;
14848 }
14849 resultobj = SWIG_From_int(static_cast< int >(result));
14850 return resultobj;
14851 fail:
14852 return NULL;
14853 }
14854
14855
14856 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14857 PyObject *resultobj = 0;
14858 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14859 int result;
14860 void *argp1 = 0 ;
14861 int res1 = 0 ;
14862 PyObject *swig_obj[1] ;
14863
14864 if (!args) SWIG_fail;
14865 swig_obj[0] = args;
14866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14869 }
14870 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = (int)((wxSpinButton const *)arg1)->GetMax();
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_From_int(static_cast< int >(result));
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj = 0;
14886 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14887 int arg2 ;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 int val2 ;
14891 int ecode2 = 0 ;
14892 PyObject * obj0 = 0 ;
14893 PyObject * obj1 = 0 ;
14894 char * kwnames[] = {
14895 (char *) "self",(char *) "val", NULL
14896 };
14897
14898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14900 if (!SWIG_IsOK(res1)) {
14901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14902 }
14903 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14904 ecode2 = SWIG_AsVal_int(obj1, &val2);
14905 if (!SWIG_IsOK(ecode2)) {
14906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14907 }
14908 arg2 = static_cast< int >(val2);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 (arg1)->SetValue(arg2);
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 resultobj = SWIG_Py_Void();
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj = 0;
14924 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14925 int arg2 ;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 int val2 ;
14929 int ecode2 = 0 ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "minVal", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14938 if (!SWIG_IsOK(res1)) {
14939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14940 }
14941 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14942 ecode2 = SWIG_AsVal_int(obj1, &val2);
14943 if (!SWIG_IsOK(ecode2)) {
14944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14945 }
14946 arg2 = static_cast< int >(val2);
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 (arg1)->SetMin(arg2);
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 resultobj = SWIG_Py_Void();
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14961 PyObject *resultobj = 0;
14962 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14963 int arg2 ;
14964 void *argp1 = 0 ;
14965 int res1 = 0 ;
14966 int val2 ;
14967 int ecode2 = 0 ;
14968 PyObject * obj0 = 0 ;
14969 PyObject * obj1 = 0 ;
14970 char * kwnames[] = {
14971 (char *) "self",(char *) "maxVal", NULL
14972 };
14973
14974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14976 if (!SWIG_IsOK(res1)) {
14977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14978 }
14979 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14980 ecode2 = SWIG_AsVal_int(obj1, &val2);
14981 if (!SWIG_IsOK(ecode2)) {
14982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14983 }
14984 arg2 = static_cast< int >(val2);
14985 {
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 (arg1)->SetMax(arg2);
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 resultobj = SWIG_Py_Void();
14992 return resultobj;
14993 fail:
14994 return NULL;
14995 }
14996
14997
14998 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj = 0;
15000 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15001 int arg2 ;
15002 int arg3 ;
15003 void *argp1 = 0 ;
15004 int res1 = 0 ;
15005 int val2 ;
15006 int ecode2 = 0 ;
15007 int val3 ;
15008 int ecode3 = 0 ;
15009 PyObject * obj0 = 0 ;
15010 PyObject * obj1 = 0 ;
15011 PyObject * obj2 = 0 ;
15012 char * kwnames[] = {
15013 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15014 };
15015
15016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15018 if (!SWIG_IsOK(res1)) {
15019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15020 }
15021 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15022 ecode2 = SWIG_AsVal_int(obj1, &val2);
15023 if (!SWIG_IsOK(ecode2)) {
15024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15025 }
15026 arg2 = static_cast< int >(val2);
15027 ecode3 = SWIG_AsVal_int(obj2, &val3);
15028 if (!SWIG_IsOK(ecode3)) {
15029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15030 }
15031 arg3 = static_cast< int >(val3);
15032 {
15033 PyThreadState* __tstate = wxPyBeginAllowThreads();
15034 (arg1)->SetRange(arg2,arg3);
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 resultobj = SWIG_Py_Void();
15039 return resultobj;
15040 fail:
15041 return NULL;
15042 }
15043
15044
15045 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15046 PyObject *resultobj = 0;
15047 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15048 bool result;
15049 void *argp1 = 0 ;
15050 int res1 = 0 ;
15051 PyObject *swig_obj[1] ;
15052
15053 if (!args) SWIG_fail;
15054 swig_obj[0] = args;
15055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15056 if (!SWIG_IsOK(res1)) {
15057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15058 }
15059 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15060 {
15061 PyThreadState* __tstate = wxPyBeginAllowThreads();
15062 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15063 wxPyEndAllowThreads(__tstate);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 }
15066 {
15067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15068 }
15069 return resultobj;
15070 fail:
15071 return NULL;
15072 }
15073
15074
15075 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj = 0;
15077 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15078 SwigValueWrapper<wxVisualAttributes > result;
15079 int val1 ;
15080 int ecode1 = 0 ;
15081 PyObject * obj0 = 0 ;
15082 char * kwnames[] = {
15083 (char *) "variant", NULL
15084 };
15085
15086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15087 if (obj0) {
15088 ecode1 = SWIG_AsVal_int(obj0, &val1);
15089 if (!SWIG_IsOK(ecode1)) {
15090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15091 }
15092 arg1 = static_cast< wxWindowVariant >(val1);
15093 }
15094 {
15095 if (!wxPyCheckForApp()) SWIG_fail;
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15098 wxPyEndAllowThreads(__tstate);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 }
15101 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15102 return resultobj;
15103 fail:
15104 return NULL;
15105 }
15106
15107
15108 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15109 PyObject *obj;
15110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15111 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15112 return SWIG_Py_Void();
15113 }
15114
15115 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15116 return SWIG_Python_InitShadowInstance(args);
15117 }
15118
15119 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj = 0;
15121 wxWindow *arg1 = (wxWindow *) 0 ;
15122 int arg2 = (int) -1 ;
15123 wxString const &arg3_defvalue = wxPyEmptyString ;
15124 wxString *arg3 = (wxString *) &arg3_defvalue ;
15125 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15126 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15127 wxSize const &arg5_defvalue = wxDefaultSize ;
15128 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15129 long arg6 = (long) wxSP_ARROW_KEYS ;
15130 int arg7 = (int) 0 ;
15131 int arg8 = (int) 100 ;
15132 int arg9 = (int) 0 ;
15133 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15134 wxString *arg10 = (wxString *) &arg10_defvalue ;
15135 wxSpinCtrl *result = 0 ;
15136 void *argp1 = 0 ;
15137 int res1 = 0 ;
15138 int val2 ;
15139 int ecode2 = 0 ;
15140 bool temp3 = false ;
15141 wxPoint temp4 ;
15142 wxSize temp5 ;
15143 long val6 ;
15144 int ecode6 = 0 ;
15145 int val7 ;
15146 int ecode7 = 0 ;
15147 int val8 ;
15148 int ecode8 = 0 ;
15149 int val9 ;
15150 int ecode9 = 0 ;
15151 bool temp10 = false ;
15152 PyObject * obj0 = 0 ;
15153 PyObject * obj1 = 0 ;
15154 PyObject * obj2 = 0 ;
15155 PyObject * obj3 = 0 ;
15156 PyObject * obj4 = 0 ;
15157 PyObject * obj5 = 0 ;
15158 PyObject * obj6 = 0 ;
15159 PyObject * obj7 = 0 ;
15160 PyObject * obj8 = 0 ;
15161 PyObject * obj9 = 0 ;
15162 char * kwnames[] = {
15163 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15164 };
15165
15166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15168 if (!SWIG_IsOK(res1)) {
15169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15170 }
15171 arg1 = reinterpret_cast< wxWindow * >(argp1);
15172 if (obj1) {
15173 ecode2 = SWIG_AsVal_int(obj1, &val2);
15174 if (!SWIG_IsOK(ecode2)) {
15175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15176 }
15177 arg2 = static_cast< int >(val2);
15178 }
15179 if (obj2) {
15180 {
15181 arg3 = wxString_in_helper(obj2);
15182 if (arg3 == NULL) SWIG_fail;
15183 temp3 = true;
15184 }
15185 }
15186 if (obj3) {
15187 {
15188 arg4 = &temp4;
15189 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15190 }
15191 }
15192 if (obj4) {
15193 {
15194 arg5 = &temp5;
15195 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15196 }
15197 }
15198 if (obj5) {
15199 ecode6 = SWIG_AsVal_long(obj5, &val6);
15200 if (!SWIG_IsOK(ecode6)) {
15201 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15202 }
15203 arg6 = static_cast< long >(val6);
15204 }
15205 if (obj6) {
15206 ecode7 = SWIG_AsVal_int(obj6, &val7);
15207 if (!SWIG_IsOK(ecode7)) {
15208 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15209 }
15210 arg7 = static_cast< int >(val7);
15211 }
15212 if (obj7) {
15213 ecode8 = SWIG_AsVal_int(obj7, &val8);
15214 if (!SWIG_IsOK(ecode8)) {
15215 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15216 }
15217 arg8 = static_cast< int >(val8);
15218 }
15219 if (obj8) {
15220 ecode9 = SWIG_AsVal_int(obj8, &val9);
15221 if (!SWIG_IsOK(ecode9)) {
15222 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15223 }
15224 arg9 = static_cast< int >(val9);
15225 }
15226 if (obj9) {
15227 {
15228 arg10 = wxString_in_helper(obj9);
15229 if (arg10 == NULL) SWIG_fail;
15230 temp10 = true;
15231 }
15232 }
15233 {
15234 if (!wxPyCheckForApp()) SWIG_fail;
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15241 {
15242 if (temp3)
15243 delete arg3;
15244 }
15245 {
15246 if (temp10)
15247 delete arg10;
15248 }
15249 return resultobj;
15250 fail:
15251 {
15252 if (temp3)
15253 delete arg3;
15254 }
15255 {
15256 if (temp10)
15257 delete arg10;
15258 }
15259 return NULL;
15260 }
15261
15262
15263 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15264 PyObject *resultobj = 0;
15265 wxSpinCtrl *result = 0 ;
15266
15267 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15268 {
15269 if (!wxPyCheckForApp()) SWIG_fail;
15270 PyThreadState* __tstate = wxPyBeginAllowThreads();
15271 result = (wxSpinCtrl *)new wxSpinCtrl();
15272 wxPyEndAllowThreads(__tstate);
15273 if (PyErr_Occurred()) SWIG_fail;
15274 }
15275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15276 return resultobj;
15277 fail:
15278 return NULL;
15279 }
15280
15281
15282 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj = 0;
15284 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15285 wxWindow *arg2 = (wxWindow *) 0 ;
15286 int arg3 = (int) -1 ;
15287 wxString const &arg4_defvalue = wxPyEmptyString ;
15288 wxString *arg4 = (wxString *) &arg4_defvalue ;
15289 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15290 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15291 wxSize const &arg6_defvalue = wxDefaultSize ;
15292 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15293 long arg7 = (long) wxSP_ARROW_KEYS ;
15294 int arg8 = (int) 0 ;
15295 int arg9 = (int) 100 ;
15296 int arg10 = (int) 0 ;
15297 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15298 wxString *arg11 = (wxString *) &arg11_defvalue ;
15299 bool result;
15300 void *argp1 = 0 ;
15301 int res1 = 0 ;
15302 void *argp2 = 0 ;
15303 int res2 = 0 ;
15304 int val3 ;
15305 int ecode3 = 0 ;
15306 bool temp4 = false ;
15307 wxPoint temp5 ;
15308 wxSize temp6 ;
15309 long val7 ;
15310 int ecode7 = 0 ;
15311 int val8 ;
15312 int ecode8 = 0 ;
15313 int val9 ;
15314 int ecode9 = 0 ;
15315 int val10 ;
15316 int ecode10 = 0 ;
15317 bool temp11 = false ;
15318 PyObject * obj0 = 0 ;
15319 PyObject * obj1 = 0 ;
15320 PyObject * obj2 = 0 ;
15321 PyObject * obj3 = 0 ;
15322 PyObject * obj4 = 0 ;
15323 PyObject * obj5 = 0 ;
15324 PyObject * obj6 = 0 ;
15325 PyObject * obj7 = 0 ;
15326 PyObject * obj8 = 0 ;
15327 PyObject * obj9 = 0 ;
15328 PyObject * obj10 = 0 ;
15329 char * kwnames[] = {
15330 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15331 };
15332
15333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15335 if (!SWIG_IsOK(res1)) {
15336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15337 }
15338 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15340 if (!SWIG_IsOK(res2)) {
15341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15342 }
15343 arg2 = reinterpret_cast< wxWindow * >(argp2);
15344 if (obj2) {
15345 ecode3 = SWIG_AsVal_int(obj2, &val3);
15346 if (!SWIG_IsOK(ecode3)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15348 }
15349 arg3 = static_cast< int >(val3);
15350 }
15351 if (obj3) {
15352 {
15353 arg4 = wxString_in_helper(obj3);
15354 if (arg4 == NULL) SWIG_fail;
15355 temp4 = true;
15356 }
15357 }
15358 if (obj4) {
15359 {
15360 arg5 = &temp5;
15361 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15362 }
15363 }
15364 if (obj5) {
15365 {
15366 arg6 = &temp6;
15367 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15368 }
15369 }
15370 if (obj6) {
15371 ecode7 = SWIG_AsVal_long(obj6, &val7);
15372 if (!SWIG_IsOK(ecode7)) {
15373 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15374 }
15375 arg7 = static_cast< long >(val7);
15376 }
15377 if (obj7) {
15378 ecode8 = SWIG_AsVal_int(obj7, &val8);
15379 if (!SWIG_IsOK(ecode8)) {
15380 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15381 }
15382 arg8 = static_cast< int >(val8);
15383 }
15384 if (obj8) {
15385 ecode9 = SWIG_AsVal_int(obj8, &val9);
15386 if (!SWIG_IsOK(ecode9)) {
15387 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15388 }
15389 arg9 = static_cast< int >(val9);
15390 }
15391 if (obj9) {
15392 ecode10 = SWIG_AsVal_int(obj9, &val10);
15393 if (!SWIG_IsOK(ecode10)) {
15394 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15395 }
15396 arg10 = static_cast< int >(val10);
15397 }
15398 if (obj10) {
15399 {
15400 arg11 = wxString_in_helper(obj10);
15401 if (arg11 == NULL) SWIG_fail;
15402 temp11 = true;
15403 }
15404 }
15405 {
15406 PyThreadState* __tstate = wxPyBeginAllowThreads();
15407 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 {
15412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15413 }
15414 {
15415 if (temp4)
15416 delete arg4;
15417 }
15418 {
15419 if (temp11)
15420 delete arg11;
15421 }
15422 return resultobj;
15423 fail:
15424 {
15425 if (temp4)
15426 delete arg4;
15427 }
15428 {
15429 if (temp11)
15430 delete arg11;
15431 }
15432 return NULL;
15433 }
15434
15435
15436 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15437 PyObject *resultobj = 0;
15438 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15439 int result;
15440 void *argp1 = 0 ;
15441 int res1 = 0 ;
15442 PyObject *swig_obj[1] ;
15443
15444 if (!args) SWIG_fail;
15445 swig_obj[0] = args;
15446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15449 }
15450 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 resultobj = SWIG_From_int(static_cast< int >(result));
15458 return resultobj;
15459 fail:
15460 return NULL;
15461 }
15462
15463
15464 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj = 0;
15466 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15467 int arg2 ;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 int val2 ;
15471 int ecode2 = 0 ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 char * kwnames[] = {
15475 (char *) "self",(char *) "value", NULL
15476 };
15477
15478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15480 if (!SWIG_IsOK(res1)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15482 }
15483 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15484 ecode2 = SWIG_AsVal_int(obj1, &val2);
15485 if (!SWIG_IsOK(ecode2)) {
15486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15487 }
15488 arg2 = static_cast< int >(val2);
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 (arg1)->SetValue(arg2);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 resultobj = SWIG_Py_Void();
15496 return resultobj;
15497 fail:
15498 return NULL;
15499 }
15500
15501
15502 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj = 0;
15504 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15505 wxString *arg2 = 0 ;
15506 void *argp1 = 0 ;
15507 int res1 = 0 ;
15508 bool temp2 = false ;
15509 PyObject * obj0 = 0 ;
15510 PyObject * obj1 = 0 ;
15511 char * kwnames[] = {
15512 (char *) "self",(char *) "text", NULL
15513 };
15514
15515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15517 if (!SWIG_IsOK(res1)) {
15518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15519 }
15520 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15521 {
15522 arg2 = wxString_in_helper(obj1);
15523 if (arg2 == NULL) SWIG_fail;
15524 temp2 = true;
15525 }
15526 {
15527 PyThreadState* __tstate = wxPyBeginAllowThreads();
15528 (arg1)->SetValue((wxString const &)*arg2);
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 resultobj = SWIG_Py_Void();
15533 {
15534 if (temp2)
15535 delete arg2;
15536 }
15537 return resultobj;
15538 fail:
15539 {
15540 if (temp2)
15541 delete arg2;
15542 }
15543 return NULL;
15544 }
15545
15546
15547 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj = 0;
15549 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15550 int arg2 ;
15551 int arg3 ;
15552 void *argp1 = 0 ;
15553 int res1 = 0 ;
15554 int val2 ;
15555 int ecode2 = 0 ;
15556 int val3 ;
15557 int ecode3 = 0 ;
15558 PyObject * obj0 = 0 ;
15559 PyObject * obj1 = 0 ;
15560 PyObject * obj2 = 0 ;
15561 char * kwnames[] = {
15562 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15563 };
15564
15565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15567 if (!SWIG_IsOK(res1)) {
15568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15569 }
15570 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15571 ecode2 = SWIG_AsVal_int(obj1, &val2);
15572 if (!SWIG_IsOK(ecode2)) {
15573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15574 }
15575 arg2 = static_cast< int >(val2);
15576 ecode3 = SWIG_AsVal_int(obj2, &val3);
15577 if (!SWIG_IsOK(ecode3)) {
15578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15579 }
15580 arg3 = static_cast< int >(val3);
15581 {
15582 PyThreadState* __tstate = wxPyBeginAllowThreads();
15583 (arg1)->SetRange(arg2,arg3);
15584 wxPyEndAllowThreads(__tstate);
15585 if (PyErr_Occurred()) SWIG_fail;
15586 }
15587 resultobj = SWIG_Py_Void();
15588 return resultobj;
15589 fail:
15590 return NULL;
15591 }
15592
15593
15594 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15595 PyObject *resultobj = 0;
15596 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15597 int result;
15598 void *argp1 = 0 ;
15599 int res1 = 0 ;
15600 PyObject *swig_obj[1] ;
15601
15602 if (!args) SWIG_fail;
15603 swig_obj[0] = args;
15604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15605 if (!SWIG_IsOK(res1)) {
15606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15607 }
15608 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = SWIG_From_int(static_cast< int >(result));
15616 return resultobj;
15617 fail:
15618 return NULL;
15619 }
15620
15621
15622 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15623 PyObject *resultobj = 0;
15624 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15625 int result;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 PyObject *swig_obj[1] ;
15629
15630 if (!args) SWIG_fail;
15631 swig_obj[0] = args;
15632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15633 if (!SWIG_IsOK(res1)) {
15634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15635 }
15636 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 resultobj = SWIG_From_int(static_cast< int >(result));
15644 return resultobj;
15645 fail:
15646 return NULL;
15647 }
15648
15649
15650 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15651 PyObject *resultobj = 0;
15652 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15653 long arg2 ;
15654 long arg3 ;
15655 void *argp1 = 0 ;
15656 int res1 = 0 ;
15657 long val2 ;
15658 int ecode2 = 0 ;
15659 long val3 ;
15660 int ecode3 = 0 ;
15661 PyObject * obj0 = 0 ;
15662 PyObject * obj1 = 0 ;
15663 PyObject * obj2 = 0 ;
15664 char * kwnames[] = {
15665 (char *) "self",(char *) "from",(char *) "to", NULL
15666 };
15667
15668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15670 if (!SWIG_IsOK(res1)) {
15671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15672 }
15673 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15674 ecode2 = SWIG_AsVal_long(obj1, &val2);
15675 if (!SWIG_IsOK(ecode2)) {
15676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15677 }
15678 arg2 = static_cast< long >(val2);
15679 ecode3 = SWIG_AsVal_long(obj2, &val3);
15680 if (!SWIG_IsOK(ecode3)) {
15681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15682 }
15683 arg3 = static_cast< long >(val3);
15684 {
15685 PyThreadState* __tstate = wxPyBeginAllowThreads();
15686 (arg1)->SetSelection(arg2,arg3);
15687 wxPyEndAllowThreads(__tstate);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 resultobj = SWIG_Py_Void();
15691 return resultobj;
15692 fail:
15693 return NULL;
15694 }
15695
15696
15697 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15698 PyObject *resultobj = 0;
15699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15700 SwigValueWrapper<wxVisualAttributes > result;
15701 int val1 ;
15702 int ecode1 = 0 ;
15703 PyObject * obj0 = 0 ;
15704 char * kwnames[] = {
15705 (char *) "variant", NULL
15706 };
15707
15708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15709 if (obj0) {
15710 ecode1 = SWIG_AsVal_int(obj0, &val1);
15711 if (!SWIG_IsOK(ecode1)) {
15712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15713 }
15714 arg1 = static_cast< wxWindowVariant >(val1);
15715 }
15716 {
15717 if (!wxPyCheckForApp()) SWIG_fail;
15718 PyThreadState* __tstate = wxPyBeginAllowThreads();
15719 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15720 wxPyEndAllowThreads(__tstate);
15721 if (PyErr_Occurred()) SWIG_fail;
15722 }
15723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15724 return resultobj;
15725 fail:
15726 return NULL;
15727 }
15728
15729
15730 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15731 PyObject *obj;
15732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15733 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15734 return SWIG_Py_Void();
15735 }
15736
15737 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15738 return SWIG_Python_InitShadowInstance(args);
15739 }
15740
15741 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15742 PyObject *resultobj = 0;
15743 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15744 int arg2 = (int) 0 ;
15745 wxSpinEvent *result = 0 ;
15746 int val1 ;
15747 int ecode1 = 0 ;
15748 int val2 ;
15749 int ecode2 = 0 ;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 char * kwnames[] = {
15753 (char *) "commandType",(char *) "winid", NULL
15754 };
15755
15756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15757 if (obj0) {
15758 ecode1 = SWIG_AsVal_int(obj0, &val1);
15759 if (!SWIG_IsOK(ecode1)) {
15760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15761 }
15762 arg1 = static_cast< wxEventType >(val1);
15763 }
15764 if (obj1) {
15765 ecode2 = SWIG_AsVal_int(obj1, &val2);
15766 if (!SWIG_IsOK(ecode2)) {
15767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15768 }
15769 arg2 = static_cast< int >(val2);
15770 }
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15785 PyObject *resultobj = 0;
15786 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15787 int result;
15788 void *argp1 = 0 ;
15789 int res1 = 0 ;
15790 PyObject *swig_obj[1] ;
15791
15792 if (!args) SWIG_fail;
15793 swig_obj[0] = args;
15794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15795 if (!SWIG_IsOK(res1)) {
15796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15797 }
15798 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15799 {
15800 PyThreadState* __tstate = wxPyBeginAllowThreads();
15801 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15802 wxPyEndAllowThreads(__tstate);
15803 if (PyErr_Occurred()) SWIG_fail;
15804 }
15805 resultobj = SWIG_From_int(static_cast< int >(result));
15806 return resultobj;
15807 fail:
15808 return NULL;
15809 }
15810
15811
15812 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj = 0;
15814 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15815 int arg2 ;
15816 void *argp1 = 0 ;
15817 int res1 = 0 ;
15818 int val2 ;
15819 int ecode2 = 0 ;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 char * kwnames[] = {
15823 (char *) "self",(char *) "pos", NULL
15824 };
15825
15826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15828 if (!SWIG_IsOK(res1)) {
15829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15830 }
15831 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15832 ecode2 = SWIG_AsVal_int(obj1, &val2);
15833 if (!SWIG_IsOK(ecode2)) {
15834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15835 }
15836 arg2 = static_cast< int >(val2);
15837 {
15838 PyThreadState* __tstate = wxPyBeginAllowThreads();
15839 (arg1)->SetPosition(arg2);
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 resultobj = SWIG_Py_Void();
15844 return resultobj;
15845 fail:
15846 return NULL;
15847 }
15848
15849
15850 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15851 PyObject *obj;
15852 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15853 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15854 return SWIG_Py_Void();
15855 }
15856
15857 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15858 return SWIG_Python_InitShadowInstance(args);
15859 }
15860
15861 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15862 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15863 return 1;
15864 }
15865
15866
15867 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15868 PyObject *pyobj = 0;
15869
15870 {
15871 #if wxUSE_UNICODE
15872 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15873 #else
15874 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15875 #endif
15876 }
15877 return pyobj;
15878 }
15879
15880
15881 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15882 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15883 return 1;
15884 }
15885
15886
15887 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15888 PyObject *pyobj = 0;
15889
15890 {
15891 #if wxUSE_UNICODE
15892 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15893 #else
15894 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15895 #endif
15896 }
15897 return pyobj;
15898 }
15899
15900
15901 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15902 PyObject *resultobj = 0;
15903 wxWindow *arg1 = (wxWindow *) 0 ;
15904 int arg2 = (int) -1 ;
15905 wxString const &arg3_defvalue = wxPyEmptyString ;
15906 wxString *arg3 = (wxString *) &arg3_defvalue ;
15907 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15908 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15909 wxSize const &arg5_defvalue = wxDefaultSize ;
15910 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15911 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15912 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15913 int arg7 = (int) 0 ;
15914 long arg8 = (long) wxRA_HORIZONTAL ;
15915 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15916 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15917 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15918 wxString *arg10 = (wxString *) &arg10_defvalue ;
15919 wxRadioBox *result = 0 ;
15920 void *argp1 = 0 ;
15921 int res1 = 0 ;
15922 int val2 ;
15923 int ecode2 = 0 ;
15924 bool temp3 = false ;
15925 wxPoint temp4 ;
15926 wxSize temp5 ;
15927 bool temp6 = false ;
15928 int val7 ;
15929 int ecode7 = 0 ;
15930 long val8 ;
15931 int ecode8 = 0 ;
15932 void *argp9 = 0 ;
15933 int res9 = 0 ;
15934 bool temp10 = false ;
15935 PyObject * obj0 = 0 ;
15936 PyObject * obj1 = 0 ;
15937 PyObject * obj2 = 0 ;
15938 PyObject * obj3 = 0 ;
15939 PyObject * obj4 = 0 ;
15940 PyObject * obj5 = 0 ;
15941 PyObject * obj6 = 0 ;
15942 PyObject * obj7 = 0 ;
15943 PyObject * obj8 = 0 ;
15944 PyObject * obj9 = 0 ;
15945 char * kwnames[] = {
15946 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15947 };
15948
15949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15951 if (!SWIG_IsOK(res1)) {
15952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15953 }
15954 arg1 = reinterpret_cast< wxWindow * >(argp1);
15955 if (obj1) {
15956 ecode2 = SWIG_AsVal_int(obj1, &val2);
15957 if (!SWIG_IsOK(ecode2)) {
15958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15959 }
15960 arg2 = static_cast< int >(val2);
15961 }
15962 if (obj2) {
15963 {
15964 arg3 = wxString_in_helper(obj2);
15965 if (arg3 == NULL) SWIG_fail;
15966 temp3 = true;
15967 }
15968 }
15969 if (obj3) {
15970 {
15971 arg4 = &temp4;
15972 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15973 }
15974 }
15975 if (obj4) {
15976 {
15977 arg5 = &temp5;
15978 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15979 }
15980 }
15981 if (obj5) {
15982 {
15983 if (! PySequence_Check(obj5)) {
15984 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15985 SWIG_fail;
15986 }
15987 arg6 = new wxArrayString;
15988 temp6 = true;
15989 int i, len=PySequence_Length(obj5);
15990 for (i=0; i<len; i++) {
15991 PyObject* item = PySequence_GetItem(obj5, i);
15992 wxString* s = wxString_in_helper(item);
15993 if (PyErr_Occurred()) SWIG_fail;
15994 arg6->Add(*s);
15995 delete s;
15996 Py_DECREF(item);
15997 }
15998 }
15999 }
16000 if (obj6) {
16001 ecode7 = SWIG_AsVal_int(obj6, &val7);
16002 if (!SWIG_IsOK(ecode7)) {
16003 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16004 }
16005 arg7 = static_cast< int >(val7);
16006 }
16007 if (obj7) {
16008 ecode8 = SWIG_AsVal_long(obj7, &val8);
16009 if (!SWIG_IsOK(ecode8)) {
16010 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16011 }
16012 arg8 = static_cast< long >(val8);
16013 }
16014 if (obj8) {
16015 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16016 if (!SWIG_IsOK(res9)) {
16017 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16018 }
16019 if (!argp9) {
16020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16021 }
16022 arg9 = reinterpret_cast< wxValidator * >(argp9);
16023 }
16024 if (obj9) {
16025 {
16026 arg10 = wxString_in_helper(obj9);
16027 if (arg10 == NULL) SWIG_fail;
16028 temp10 = true;
16029 }
16030 }
16031 {
16032 if (!wxPyCheckForApp()) SWIG_fail;
16033 PyThreadState* __tstate = wxPyBeginAllowThreads();
16034 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);
16035 wxPyEndAllowThreads(__tstate);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16039 {
16040 if (temp3)
16041 delete arg3;
16042 }
16043 {
16044 if (temp6) delete arg6;
16045 }
16046 {
16047 if (temp10)
16048 delete arg10;
16049 }
16050 return resultobj;
16051 fail:
16052 {
16053 if (temp3)
16054 delete arg3;
16055 }
16056 {
16057 if (temp6) delete arg6;
16058 }
16059 {
16060 if (temp10)
16061 delete arg10;
16062 }
16063 return NULL;
16064 }
16065
16066
16067 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16068 PyObject *resultobj = 0;
16069 wxRadioBox *result = 0 ;
16070
16071 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16072 {
16073 if (!wxPyCheckForApp()) SWIG_fail;
16074 PyThreadState* __tstate = wxPyBeginAllowThreads();
16075 result = (wxRadioBox *)new wxRadioBox();
16076 wxPyEndAllowThreads(__tstate);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 }
16079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16080 return resultobj;
16081 fail:
16082 return NULL;
16083 }
16084
16085
16086 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16087 PyObject *resultobj = 0;
16088 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16089 wxWindow *arg2 = (wxWindow *) 0 ;
16090 int arg3 = (int) -1 ;
16091 wxString const &arg4_defvalue = wxPyEmptyString ;
16092 wxString *arg4 = (wxString *) &arg4_defvalue ;
16093 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16094 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16095 wxSize const &arg6_defvalue = wxDefaultSize ;
16096 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16097 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16098 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16099 int arg8 = (int) 0 ;
16100 long arg9 = (long) wxRA_HORIZONTAL ;
16101 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16102 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16103 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16104 wxString *arg11 = (wxString *) &arg11_defvalue ;
16105 bool result;
16106 void *argp1 = 0 ;
16107 int res1 = 0 ;
16108 void *argp2 = 0 ;
16109 int res2 = 0 ;
16110 int val3 ;
16111 int ecode3 = 0 ;
16112 bool temp4 = false ;
16113 wxPoint temp5 ;
16114 wxSize temp6 ;
16115 bool temp7 = false ;
16116 int val8 ;
16117 int ecode8 = 0 ;
16118 long val9 ;
16119 int ecode9 = 0 ;
16120 void *argp10 = 0 ;
16121 int res10 = 0 ;
16122 bool temp11 = false ;
16123 PyObject * obj0 = 0 ;
16124 PyObject * obj1 = 0 ;
16125 PyObject * obj2 = 0 ;
16126 PyObject * obj3 = 0 ;
16127 PyObject * obj4 = 0 ;
16128 PyObject * obj5 = 0 ;
16129 PyObject * obj6 = 0 ;
16130 PyObject * obj7 = 0 ;
16131 PyObject * obj8 = 0 ;
16132 PyObject * obj9 = 0 ;
16133 PyObject * obj10 = 0 ;
16134 char * kwnames[] = {
16135 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16136 };
16137
16138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16140 if (!SWIG_IsOK(res1)) {
16141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16142 }
16143 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16144 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16145 if (!SWIG_IsOK(res2)) {
16146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16147 }
16148 arg2 = reinterpret_cast< wxWindow * >(argp2);
16149 if (obj2) {
16150 ecode3 = SWIG_AsVal_int(obj2, &val3);
16151 if (!SWIG_IsOK(ecode3)) {
16152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16153 }
16154 arg3 = static_cast< int >(val3);
16155 }
16156 if (obj3) {
16157 {
16158 arg4 = wxString_in_helper(obj3);
16159 if (arg4 == NULL) SWIG_fail;
16160 temp4 = true;
16161 }
16162 }
16163 if (obj4) {
16164 {
16165 arg5 = &temp5;
16166 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16167 }
16168 }
16169 if (obj5) {
16170 {
16171 arg6 = &temp6;
16172 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16173 }
16174 }
16175 if (obj6) {
16176 {
16177 if (! PySequence_Check(obj6)) {
16178 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16179 SWIG_fail;
16180 }
16181 arg7 = new wxArrayString;
16182 temp7 = true;
16183 int i, len=PySequence_Length(obj6);
16184 for (i=0; i<len; i++) {
16185 PyObject* item = PySequence_GetItem(obj6, i);
16186 wxString* s = wxString_in_helper(item);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 arg7->Add(*s);
16189 delete s;
16190 Py_DECREF(item);
16191 }
16192 }
16193 }
16194 if (obj7) {
16195 ecode8 = SWIG_AsVal_int(obj7, &val8);
16196 if (!SWIG_IsOK(ecode8)) {
16197 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16198 }
16199 arg8 = static_cast< int >(val8);
16200 }
16201 if (obj8) {
16202 ecode9 = SWIG_AsVal_long(obj8, &val9);
16203 if (!SWIG_IsOK(ecode9)) {
16204 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16205 }
16206 arg9 = static_cast< long >(val9);
16207 }
16208 if (obj9) {
16209 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16210 if (!SWIG_IsOK(res10)) {
16211 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16212 }
16213 if (!argp10) {
16214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16215 }
16216 arg10 = reinterpret_cast< wxValidator * >(argp10);
16217 }
16218 if (obj10) {
16219 {
16220 arg11 = wxString_in_helper(obj10);
16221 if (arg11 == NULL) SWIG_fail;
16222 temp11 = true;
16223 }
16224 }
16225 {
16226 PyThreadState* __tstate = wxPyBeginAllowThreads();
16227 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);
16228 wxPyEndAllowThreads(__tstate);
16229 if (PyErr_Occurred()) SWIG_fail;
16230 }
16231 {
16232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16233 }
16234 {
16235 if (temp4)
16236 delete arg4;
16237 }
16238 {
16239 if (temp7) delete arg7;
16240 }
16241 {
16242 if (temp11)
16243 delete arg11;
16244 }
16245 return resultobj;
16246 fail:
16247 {
16248 if (temp4)
16249 delete arg4;
16250 }
16251 {
16252 if (temp7) delete arg7;
16253 }
16254 {
16255 if (temp11)
16256 delete arg11;
16257 }
16258 return NULL;
16259 }
16260
16261
16262 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj = 0;
16264 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16265 int arg2 ;
16266 void *argp1 = 0 ;
16267 int res1 = 0 ;
16268 int val2 ;
16269 int ecode2 = 0 ;
16270 PyObject * obj0 = 0 ;
16271 PyObject * obj1 = 0 ;
16272 char * kwnames[] = {
16273 (char *) "self",(char *) "n", NULL
16274 };
16275
16276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16280 }
16281 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16282 ecode2 = SWIG_AsVal_int(obj1, &val2);
16283 if (!SWIG_IsOK(ecode2)) {
16284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16285 }
16286 arg2 = static_cast< int >(val2);
16287 {
16288 PyThreadState* __tstate = wxPyBeginAllowThreads();
16289 (arg1)->SetSelection(arg2);
16290 wxPyEndAllowThreads(__tstate);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 }
16293 resultobj = SWIG_Py_Void();
16294 return resultobj;
16295 fail:
16296 return NULL;
16297 }
16298
16299
16300 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16301 PyObject *resultobj = 0;
16302 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16303 int result;
16304 void *argp1 = 0 ;
16305 int res1 = 0 ;
16306 PyObject *swig_obj[1] ;
16307
16308 if (!args) SWIG_fail;
16309 swig_obj[0] = args;
16310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16311 if (!SWIG_IsOK(res1)) {
16312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16313 }
16314 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 resultobj = SWIG_From_int(static_cast< int >(result));
16322 return resultobj;
16323 fail:
16324 return NULL;
16325 }
16326
16327
16328 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16329 PyObject *resultobj = 0;
16330 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16331 wxString result;
16332 void *argp1 = 0 ;
16333 int res1 = 0 ;
16334 PyObject *swig_obj[1] ;
16335
16336 if (!args) SWIG_fail;
16337 swig_obj[0] = args;
16338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16339 if (!SWIG_IsOK(res1)) {
16340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16341 }
16342 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16343 {
16344 PyThreadState* __tstate = wxPyBeginAllowThreads();
16345 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16346 wxPyEndAllowThreads(__tstate);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
16349 {
16350 #if wxUSE_UNICODE
16351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16352 #else
16353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16354 #endif
16355 }
16356 return resultobj;
16357 fail:
16358 return NULL;
16359 }
16360
16361
16362 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj = 0;
16364 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16365 wxString *arg2 = 0 ;
16366 bool result;
16367 void *argp1 = 0 ;
16368 int res1 = 0 ;
16369 bool temp2 = false ;
16370 PyObject * obj0 = 0 ;
16371 PyObject * obj1 = 0 ;
16372 char * kwnames[] = {
16373 (char *) "self",(char *) "s", NULL
16374 };
16375
16376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16378 if (!SWIG_IsOK(res1)) {
16379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16380 }
16381 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16382 {
16383 arg2 = wxString_in_helper(obj1);
16384 if (arg2 == NULL) SWIG_fail;
16385 temp2 = true;
16386 }
16387 {
16388 PyThreadState* __tstate = wxPyBeginAllowThreads();
16389 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16390 wxPyEndAllowThreads(__tstate);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 {
16394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16395 }
16396 {
16397 if (temp2)
16398 delete arg2;
16399 }
16400 return resultobj;
16401 fail:
16402 {
16403 if (temp2)
16404 delete arg2;
16405 }
16406 return NULL;
16407 }
16408
16409
16410 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16411 PyObject *resultobj = 0;
16412 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16413 size_t result;
16414 void *argp1 = 0 ;
16415 int res1 = 0 ;
16416 PyObject *swig_obj[1] ;
16417
16418 if (!args) SWIG_fail;
16419 swig_obj[0] = args;
16420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16421 if (!SWIG_IsOK(res1)) {
16422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16423 }
16424 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16425 {
16426 PyThreadState* __tstate = wxPyBeginAllowThreads();
16427 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16428 wxPyEndAllowThreads(__tstate);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 }
16431 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16432 return resultobj;
16433 fail:
16434 return NULL;
16435 }
16436
16437
16438 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16439 PyObject *resultobj = 0;
16440 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16441 wxString *arg2 = 0 ;
16442 int result;
16443 void *argp1 = 0 ;
16444 int res1 = 0 ;
16445 bool temp2 = false ;
16446 PyObject * obj0 = 0 ;
16447 PyObject * obj1 = 0 ;
16448 char * kwnames[] = {
16449 (char *) "self",(char *) "s", NULL
16450 };
16451
16452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16454 if (!SWIG_IsOK(res1)) {
16455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16456 }
16457 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16458 {
16459 arg2 = wxString_in_helper(obj1);
16460 if (arg2 == NULL) SWIG_fail;
16461 temp2 = true;
16462 }
16463 {
16464 PyThreadState* __tstate = wxPyBeginAllowThreads();
16465 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16466 wxPyEndAllowThreads(__tstate);
16467 if (PyErr_Occurred()) SWIG_fail;
16468 }
16469 resultobj = SWIG_From_int(static_cast< int >(result));
16470 {
16471 if (temp2)
16472 delete arg2;
16473 }
16474 return resultobj;
16475 fail:
16476 {
16477 if (temp2)
16478 delete arg2;
16479 }
16480 return NULL;
16481 }
16482
16483
16484 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16485 PyObject *resultobj = 0;
16486 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16487 int arg2 ;
16488 wxString result;
16489 void *argp1 = 0 ;
16490 int res1 = 0 ;
16491 int val2 ;
16492 int ecode2 = 0 ;
16493 PyObject * obj0 = 0 ;
16494 PyObject * obj1 = 0 ;
16495 char * kwnames[] = {
16496 (char *) "self",(char *) "n", NULL
16497 };
16498
16499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16501 if (!SWIG_IsOK(res1)) {
16502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16503 }
16504 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16505 ecode2 = SWIG_AsVal_int(obj1, &val2);
16506 if (!SWIG_IsOK(ecode2)) {
16507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16508 }
16509 arg2 = static_cast< int >(val2);
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
16512 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 {
16517 #if wxUSE_UNICODE
16518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16519 #else
16520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16521 #endif
16522 }
16523 return resultobj;
16524 fail:
16525 return NULL;
16526 }
16527
16528
16529 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16532 int arg2 ;
16533 wxString *arg3 = 0 ;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 int val2 ;
16537 int ecode2 = 0 ;
16538 bool temp3 = false ;
16539 PyObject * obj0 = 0 ;
16540 PyObject * obj1 = 0 ;
16541 PyObject * obj2 = 0 ;
16542 char * kwnames[] = {
16543 (char *) "self",(char *) "n",(char *) "label", NULL
16544 };
16545
16546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16548 if (!SWIG_IsOK(res1)) {
16549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16550 }
16551 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16552 ecode2 = SWIG_AsVal_int(obj1, &val2);
16553 if (!SWIG_IsOK(ecode2)) {
16554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16555 }
16556 arg2 = static_cast< int >(val2);
16557 {
16558 arg3 = wxString_in_helper(obj2);
16559 if (arg3 == NULL) SWIG_fail;
16560 temp3 = true;
16561 }
16562 {
16563 PyThreadState* __tstate = wxPyBeginAllowThreads();
16564 (arg1)->SetString(arg2,(wxString const &)*arg3);
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 resultobj = SWIG_Py_Void();
16569 {
16570 if (temp3)
16571 delete arg3;
16572 }
16573 return resultobj;
16574 fail:
16575 {
16576 if (temp3)
16577 delete arg3;
16578 }
16579 return NULL;
16580 }
16581
16582
16583 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16584 PyObject *resultobj = 0;
16585 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16586 unsigned int arg2 ;
16587 bool arg3 = (bool) true ;
16588 void *argp1 = 0 ;
16589 int res1 = 0 ;
16590 unsigned int val2 ;
16591 int ecode2 = 0 ;
16592 bool val3 ;
16593 int ecode3 = 0 ;
16594 PyObject * obj0 = 0 ;
16595 PyObject * obj1 = 0 ;
16596 PyObject * obj2 = 0 ;
16597 char * kwnames[] = {
16598 (char *) "self",(char *) "n",(char *) "enable", NULL
16599 };
16600
16601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16603 if (!SWIG_IsOK(res1)) {
16604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16605 }
16606 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16607 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16608 if (!SWIG_IsOK(ecode2)) {
16609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16610 }
16611 arg2 = static_cast< unsigned int >(val2);
16612 if (obj2) {
16613 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16614 if (!SWIG_IsOK(ecode3)) {
16615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16616 }
16617 arg3 = static_cast< bool >(val3);
16618 }
16619 {
16620 PyThreadState* __tstate = wxPyBeginAllowThreads();
16621 (arg1)->Enable(arg2,arg3);
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 resultobj = SWIG_Py_Void();
16626 return resultobj;
16627 fail:
16628 return NULL;
16629 }
16630
16631
16632 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16633 PyObject *resultobj = 0;
16634 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16635 unsigned int arg2 ;
16636 bool arg3 = (bool) true ;
16637 void *argp1 = 0 ;
16638 int res1 = 0 ;
16639 unsigned int val2 ;
16640 int ecode2 = 0 ;
16641 bool val3 ;
16642 int ecode3 = 0 ;
16643 PyObject * obj0 = 0 ;
16644 PyObject * obj1 = 0 ;
16645 PyObject * obj2 = 0 ;
16646 char * kwnames[] = {
16647 (char *) "self",(char *) "n",(char *) "show", NULL
16648 };
16649
16650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16652 if (!SWIG_IsOK(res1)) {
16653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16654 }
16655 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16656 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16657 if (!SWIG_IsOK(ecode2)) {
16658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16659 }
16660 arg2 = static_cast< unsigned int >(val2);
16661 if (obj2) {
16662 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16663 if (!SWIG_IsOK(ecode3)) {
16664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16665 }
16666 arg3 = static_cast< bool >(val3);
16667 }
16668 {
16669 PyThreadState* __tstate = wxPyBeginAllowThreads();
16670 (arg1)->Show(arg2,arg3);
16671 wxPyEndAllowThreads(__tstate);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 }
16674 resultobj = SWIG_Py_Void();
16675 return resultobj;
16676 fail:
16677 return NULL;
16678 }
16679
16680
16681 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16682 PyObject *resultobj = 0;
16683 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16684 unsigned int arg2 ;
16685 bool result;
16686 void *argp1 = 0 ;
16687 int res1 = 0 ;
16688 unsigned int val2 ;
16689 int ecode2 = 0 ;
16690 PyObject * obj0 = 0 ;
16691 PyObject * obj1 = 0 ;
16692 char * kwnames[] = {
16693 (char *) "self",(char *) "n", NULL
16694 };
16695
16696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16698 if (!SWIG_IsOK(res1)) {
16699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16700 }
16701 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16702 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16703 if (!SWIG_IsOK(ecode2)) {
16704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16705 }
16706 arg2 = static_cast< unsigned int >(val2);
16707 {
16708 PyThreadState* __tstate = wxPyBeginAllowThreads();
16709 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16710 wxPyEndAllowThreads(__tstate);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
16713 {
16714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16715 }
16716 return resultobj;
16717 fail:
16718 return NULL;
16719 }
16720
16721
16722 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16723 PyObject *resultobj = 0;
16724 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16725 unsigned int arg2 ;
16726 bool result;
16727 void *argp1 = 0 ;
16728 int res1 = 0 ;
16729 unsigned int val2 ;
16730 int ecode2 = 0 ;
16731 PyObject * obj0 = 0 ;
16732 PyObject * obj1 = 0 ;
16733 char * kwnames[] = {
16734 (char *) "self",(char *) "n", NULL
16735 };
16736
16737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16739 if (!SWIG_IsOK(res1)) {
16740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16741 }
16742 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16743 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16744 if (!SWIG_IsOK(ecode2)) {
16745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16746 }
16747 arg2 = static_cast< unsigned int >(val2);
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
16750 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16751 wxPyEndAllowThreads(__tstate);
16752 if (PyErr_Occurred()) SWIG_fail;
16753 }
16754 {
16755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16756 }
16757 return resultobj;
16758 fail:
16759 return NULL;
16760 }
16761
16762
16763 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16764 PyObject *resultobj = 0;
16765 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16766 unsigned int result;
16767 void *argp1 = 0 ;
16768 int res1 = 0 ;
16769 PyObject *swig_obj[1] ;
16770
16771 if (!args) SWIG_fail;
16772 swig_obj[0] = args;
16773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16774 if (!SWIG_IsOK(res1)) {
16775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16776 }
16777 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16778 {
16779 PyThreadState* __tstate = wxPyBeginAllowThreads();
16780 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16785 return resultobj;
16786 fail:
16787 return NULL;
16788 }
16789
16790
16791 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16792 PyObject *resultobj = 0;
16793 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16794 unsigned int result;
16795 void *argp1 = 0 ;
16796 int res1 = 0 ;
16797 PyObject *swig_obj[1] ;
16798
16799 if (!args) SWIG_fail;
16800 swig_obj[0] = args;
16801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16802 if (!SWIG_IsOK(res1)) {
16803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16804 }
16805 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16809 wxPyEndAllowThreads(__tstate);
16810 if (PyErr_Occurred()) SWIG_fail;
16811 }
16812 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16813 return resultobj;
16814 fail:
16815 return NULL;
16816 }
16817
16818
16819 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj = 0;
16821 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16822 int arg2 ;
16823 wxDirection arg3 ;
16824 long arg4 ;
16825 int result;
16826 void *argp1 = 0 ;
16827 int res1 = 0 ;
16828 int val2 ;
16829 int ecode2 = 0 ;
16830 int val3 ;
16831 int ecode3 = 0 ;
16832 long val4 ;
16833 int ecode4 = 0 ;
16834 PyObject * obj0 = 0 ;
16835 PyObject * obj1 = 0 ;
16836 PyObject * obj2 = 0 ;
16837 PyObject * obj3 = 0 ;
16838 char * kwnames[] = {
16839 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16840 };
16841
16842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16844 if (!SWIG_IsOK(res1)) {
16845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16846 }
16847 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16848 ecode2 = SWIG_AsVal_int(obj1, &val2);
16849 if (!SWIG_IsOK(ecode2)) {
16850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16851 }
16852 arg2 = static_cast< int >(val2);
16853 ecode3 = SWIG_AsVal_int(obj2, &val3);
16854 if (!SWIG_IsOK(ecode3)) {
16855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16856 }
16857 arg3 = static_cast< wxDirection >(val3);
16858 ecode4 = SWIG_AsVal_long(obj3, &val4);
16859 if (!SWIG_IsOK(ecode4)) {
16860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16861 }
16862 arg4 = static_cast< long >(val4);
16863 {
16864 PyThreadState* __tstate = wxPyBeginAllowThreads();
16865 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 resultobj = SWIG_From_int(static_cast< int >(result));
16870 return resultobj;
16871 fail:
16872 return NULL;
16873 }
16874
16875
16876 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16877 PyObject *resultobj = 0;
16878 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16879 unsigned int arg2 ;
16880 wxString *arg3 = 0 ;
16881 void *argp1 = 0 ;
16882 int res1 = 0 ;
16883 unsigned int val2 ;
16884 int ecode2 = 0 ;
16885 bool temp3 = false ;
16886 PyObject * obj0 = 0 ;
16887 PyObject * obj1 = 0 ;
16888 PyObject * obj2 = 0 ;
16889 char * kwnames[] = {
16890 (char *) "self",(char *) "item",(char *) "text", NULL
16891 };
16892
16893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16895 if (!SWIG_IsOK(res1)) {
16896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16897 }
16898 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16899 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16900 if (!SWIG_IsOK(ecode2)) {
16901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16902 }
16903 arg2 = static_cast< unsigned int >(val2);
16904 {
16905 arg3 = wxString_in_helper(obj2);
16906 if (arg3 == NULL) SWIG_fail;
16907 temp3 = true;
16908 }
16909 {
16910 PyThreadState* __tstate = wxPyBeginAllowThreads();
16911 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16912 wxPyEndAllowThreads(__tstate);
16913 if (PyErr_Occurred()) SWIG_fail;
16914 }
16915 resultobj = SWIG_Py_Void();
16916 {
16917 if (temp3)
16918 delete arg3;
16919 }
16920 return resultobj;
16921 fail:
16922 {
16923 if (temp3)
16924 delete arg3;
16925 }
16926 return NULL;
16927 }
16928
16929
16930 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16931 PyObject *resultobj = 0;
16932 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16933 unsigned int arg2 ;
16934 wxToolTip *result = 0 ;
16935 void *argp1 = 0 ;
16936 int res1 = 0 ;
16937 unsigned int val2 ;
16938 int ecode2 = 0 ;
16939 PyObject * obj0 = 0 ;
16940 PyObject * obj1 = 0 ;
16941 char * kwnames[] = {
16942 (char *) "self",(char *) "item", NULL
16943 };
16944
16945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16947 if (!SWIG_IsOK(res1)) {
16948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16949 }
16950 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16951 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16952 if (!SWIG_IsOK(ecode2)) {
16953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16954 }
16955 arg2 = static_cast< unsigned int >(val2);
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 {
16963 resultobj = wxPyMake_wxObject(result, (bool)0);
16964 }
16965 return resultobj;
16966 fail:
16967 return NULL;
16968 }
16969
16970
16971 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16972 PyObject *resultobj = 0;
16973 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16974 unsigned int arg2 ;
16975 wxString *arg3 = 0 ;
16976 void *argp1 = 0 ;
16977 int res1 = 0 ;
16978 unsigned int val2 ;
16979 int ecode2 = 0 ;
16980 bool temp3 = false ;
16981 PyObject * obj0 = 0 ;
16982 PyObject * obj1 = 0 ;
16983 PyObject * obj2 = 0 ;
16984 char * kwnames[] = {
16985 (char *) "self",(char *) "n",(char *) "helpText", NULL
16986 };
16987
16988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16990 if (!SWIG_IsOK(res1)) {
16991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16992 }
16993 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16994 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16995 if (!SWIG_IsOK(ecode2)) {
16996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16997 }
16998 arg2 = static_cast< unsigned int >(val2);
16999 {
17000 arg3 = wxString_in_helper(obj2);
17001 if (arg3 == NULL) SWIG_fail;
17002 temp3 = true;
17003 }
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 resultobj = SWIG_Py_Void();
17011 {
17012 if (temp3)
17013 delete arg3;
17014 }
17015 return resultobj;
17016 fail:
17017 {
17018 if (temp3)
17019 delete arg3;
17020 }
17021 return NULL;
17022 }
17023
17024
17025 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17026 PyObject *resultobj = 0;
17027 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17028 unsigned int arg2 ;
17029 wxString result;
17030 void *argp1 = 0 ;
17031 int res1 = 0 ;
17032 unsigned int val2 ;
17033 int ecode2 = 0 ;
17034 PyObject * obj0 = 0 ;
17035 PyObject * obj1 = 0 ;
17036 char * kwnames[] = {
17037 (char *) "self",(char *) "n", NULL
17038 };
17039
17040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17042 if (!SWIG_IsOK(res1)) {
17043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17044 }
17045 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17046 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17047 if (!SWIG_IsOK(ecode2)) {
17048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17049 }
17050 arg2 = static_cast< unsigned int >(val2);
17051 {
17052 PyThreadState* __tstate = wxPyBeginAllowThreads();
17053 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17054 wxPyEndAllowThreads(__tstate);
17055 if (PyErr_Occurred()) SWIG_fail;
17056 }
17057 {
17058 #if wxUSE_UNICODE
17059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17060 #else
17061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17062 #endif
17063 }
17064 return resultobj;
17065 fail:
17066 return NULL;
17067 }
17068
17069
17070 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17071 PyObject *resultobj = 0;
17072 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17073 SwigValueWrapper<wxVisualAttributes > result;
17074 int val1 ;
17075 int ecode1 = 0 ;
17076 PyObject * obj0 = 0 ;
17077 char * kwnames[] = {
17078 (char *) "variant", NULL
17079 };
17080
17081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17082 if (obj0) {
17083 ecode1 = SWIG_AsVal_int(obj0, &val1);
17084 if (!SWIG_IsOK(ecode1)) {
17085 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17086 }
17087 arg1 = static_cast< wxWindowVariant >(val1);
17088 }
17089 {
17090 if (!wxPyCheckForApp()) SWIG_fail;
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17097 return resultobj;
17098 fail:
17099 return NULL;
17100 }
17101
17102
17103 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17104 PyObject *obj;
17105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17106 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17107 return SWIG_Py_Void();
17108 }
17109
17110 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17111 return SWIG_Python_InitShadowInstance(args);
17112 }
17113
17114 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj = 0;
17116 wxWindow *arg1 = (wxWindow *) 0 ;
17117 int arg2 = (int) -1 ;
17118 wxString const &arg3_defvalue = wxPyEmptyString ;
17119 wxString *arg3 = (wxString *) &arg3_defvalue ;
17120 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17121 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17122 wxSize const &arg5_defvalue = wxDefaultSize ;
17123 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17124 long arg6 = (long) 0 ;
17125 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17126 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17127 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17128 wxString *arg8 = (wxString *) &arg8_defvalue ;
17129 wxRadioButton *result = 0 ;
17130 void *argp1 = 0 ;
17131 int res1 = 0 ;
17132 int val2 ;
17133 int ecode2 = 0 ;
17134 bool temp3 = false ;
17135 wxPoint temp4 ;
17136 wxSize temp5 ;
17137 long val6 ;
17138 int ecode6 = 0 ;
17139 void *argp7 = 0 ;
17140 int res7 = 0 ;
17141 bool temp8 = false ;
17142 PyObject * obj0 = 0 ;
17143 PyObject * obj1 = 0 ;
17144 PyObject * obj2 = 0 ;
17145 PyObject * obj3 = 0 ;
17146 PyObject * obj4 = 0 ;
17147 PyObject * obj5 = 0 ;
17148 PyObject * obj6 = 0 ;
17149 PyObject * obj7 = 0 ;
17150 char * kwnames[] = {
17151 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17152 };
17153
17154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17156 if (!SWIG_IsOK(res1)) {
17157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17158 }
17159 arg1 = reinterpret_cast< wxWindow * >(argp1);
17160 if (obj1) {
17161 ecode2 = SWIG_AsVal_int(obj1, &val2);
17162 if (!SWIG_IsOK(ecode2)) {
17163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17164 }
17165 arg2 = static_cast< int >(val2);
17166 }
17167 if (obj2) {
17168 {
17169 arg3 = wxString_in_helper(obj2);
17170 if (arg3 == NULL) SWIG_fail;
17171 temp3 = true;
17172 }
17173 }
17174 if (obj3) {
17175 {
17176 arg4 = &temp4;
17177 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17178 }
17179 }
17180 if (obj4) {
17181 {
17182 arg5 = &temp5;
17183 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17184 }
17185 }
17186 if (obj5) {
17187 ecode6 = SWIG_AsVal_long(obj5, &val6);
17188 if (!SWIG_IsOK(ecode6)) {
17189 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17190 }
17191 arg6 = static_cast< long >(val6);
17192 }
17193 if (obj6) {
17194 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17195 if (!SWIG_IsOK(res7)) {
17196 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17197 }
17198 if (!argp7) {
17199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17200 }
17201 arg7 = reinterpret_cast< wxValidator * >(argp7);
17202 }
17203 if (obj7) {
17204 {
17205 arg8 = wxString_in_helper(obj7);
17206 if (arg8 == NULL) SWIG_fail;
17207 temp8 = true;
17208 }
17209 }
17210 {
17211 if (!wxPyCheckForApp()) SWIG_fail;
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17214 wxPyEndAllowThreads(__tstate);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17218 {
17219 if (temp3)
17220 delete arg3;
17221 }
17222 {
17223 if (temp8)
17224 delete arg8;
17225 }
17226 return resultobj;
17227 fail:
17228 {
17229 if (temp3)
17230 delete arg3;
17231 }
17232 {
17233 if (temp8)
17234 delete arg8;
17235 }
17236 return NULL;
17237 }
17238
17239
17240 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17241 PyObject *resultobj = 0;
17242 wxRadioButton *result = 0 ;
17243
17244 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17245 {
17246 if (!wxPyCheckForApp()) SWIG_fail;
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 result = (wxRadioButton *)new wxRadioButton();
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17253 return resultobj;
17254 fail:
17255 return NULL;
17256 }
17257
17258
17259 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17260 PyObject *resultobj = 0;
17261 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17262 wxWindow *arg2 = (wxWindow *) 0 ;
17263 int arg3 = (int) -1 ;
17264 wxString const &arg4_defvalue = wxPyEmptyString ;
17265 wxString *arg4 = (wxString *) &arg4_defvalue ;
17266 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17267 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17268 wxSize const &arg6_defvalue = wxDefaultSize ;
17269 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17270 long arg7 = (long) 0 ;
17271 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17272 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17273 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17274 wxString *arg9 = (wxString *) &arg9_defvalue ;
17275 bool result;
17276 void *argp1 = 0 ;
17277 int res1 = 0 ;
17278 void *argp2 = 0 ;
17279 int res2 = 0 ;
17280 int val3 ;
17281 int ecode3 = 0 ;
17282 bool temp4 = false ;
17283 wxPoint temp5 ;
17284 wxSize temp6 ;
17285 long val7 ;
17286 int ecode7 = 0 ;
17287 void *argp8 = 0 ;
17288 int res8 = 0 ;
17289 bool temp9 = false ;
17290 PyObject * obj0 = 0 ;
17291 PyObject * obj1 = 0 ;
17292 PyObject * obj2 = 0 ;
17293 PyObject * obj3 = 0 ;
17294 PyObject * obj4 = 0 ;
17295 PyObject * obj5 = 0 ;
17296 PyObject * obj6 = 0 ;
17297 PyObject * obj7 = 0 ;
17298 PyObject * obj8 = 0 ;
17299 char * kwnames[] = {
17300 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17301 };
17302
17303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17305 if (!SWIG_IsOK(res1)) {
17306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17307 }
17308 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17310 if (!SWIG_IsOK(res2)) {
17311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17312 }
17313 arg2 = reinterpret_cast< wxWindow * >(argp2);
17314 if (obj2) {
17315 ecode3 = SWIG_AsVal_int(obj2, &val3);
17316 if (!SWIG_IsOK(ecode3)) {
17317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17318 }
17319 arg3 = static_cast< int >(val3);
17320 }
17321 if (obj3) {
17322 {
17323 arg4 = wxString_in_helper(obj3);
17324 if (arg4 == NULL) SWIG_fail;
17325 temp4 = true;
17326 }
17327 }
17328 if (obj4) {
17329 {
17330 arg5 = &temp5;
17331 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17332 }
17333 }
17334 if (obj5) {
17335 {
17336 arg6 = &temp6;
17337 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17338 }
17339 }
17340 if (obj6) {
17341 ecode7 = SWIG_AsVal_long(obj6, &val7);
17342 if (!SWIG_IsOK(ecode7)) {
17343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17344 }
17345 arg7 = static_cast< long >(val7);
17346 }
17347 if (obj7) {
17348 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17349 if (!SWIG_IsOK(res8)) {
17350 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17351 }
17352 if (!argp8) {
17353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17354 }
17355 arg8 = reinterpret_cast< wxValidator * >(argp8);
17356 }
17357 if (obj8) {
17358 {
17359 arg9 = wxString_in_helper(obj8);
17360 if (arg9 == NULL) SWIG_fail;
17361 temp9 = true;
17362 }
17363 }
17364 {
17365 PyThreadState* __tstate = wxPyBeginAllowThreads();
17366 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17367 wxPyEndAllowThreads(__tstate);
17368 if (PyErr_Occurred()) SWIG_fail;
17369 }
17370 {
17371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17372 }
17373 {
17374 if (temp4)
17375 delete arg4;
17376 }
17377 {
17378 if (temp9)
17379 delete arg9;
17380 }
17381 return resultobj;
17382 fail:
17383 {
17384 if (temp4)
17385 delete arg4;
17386 }
17387 {
17388 if (temp9)
17389 delete arg9;
17390 }
17391 return NULL;
17392 }
17393
17394
17395 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17396 PyObject *resultobj = 0;
17397 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17398 bool result;
17399 void *argp1 = 0 ;
17400 int res1 = 0 ;
17401 PyObject *swig_obj[1] ;
17402
17403 if (!args) SWIG_fail;
17404 swig_obj[0] = args;
17405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17406 if (!SWIG_IsOK(res1)) {
17407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17408 }
17409 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 result = (bool)(arg1)->GetValue();
17413 wxPyEndAllowThreads(__tstate);
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 {
17417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17418 }
17419 return resultobj;
17420 fail:
17421 return NULL;
17422 }
17423
17424
17425 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj = 0;
17427 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17428 bool arg2 ;
17429 void *argp1 = 0 ;
17430 int res1 = 0 ;
17431 bool val2 ;
17432 int ecode2 = 0 ;
17433 PyObject * obj0 = 0 ;
17434 PyObject * obj1 = 0 ;
17435 char * kwnames[] = {
17436 (char *) "self",(char *) "value", NULL
17437 };
17438
17439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17441 if (!SWIG_IsOK(res1)) {
17442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17443 }
17444 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17445 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17446 if (!SWIG_IsOK(ecode2)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17448 }
17449 arg2 = static_cast< bool >(val2);
17450 {
17451 PyThreadState* __tstate = wxPyBeginAllowThreads();
17452 (arg1)->SetValue(arg2);
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 resultobj = SWIG_Py_Void();
17457 return resultobj;
17458 fail:
17459 return NULL;
17460 }
17461
17462
17463 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17464 PyObject *resultobj = 0;
17465 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17466 SwigValueWrapper<wxVisualAttributes > result;
17467 int val1 ;
17468 int ecode1 = 0 ;
17469 PyObject * obj0 = 0 ;
17470 char * kwnames[] = {
17471 (char *) "variant", NULL
17472 };
17473
17474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17475 if (obj0) {
17476 ecode1 = SWIG_AsVal_int(obj0, &val1);
17477 if (!SWIG_IsOK(ecode1)) {
17478 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17479 }
17480 arg1 = static_cast< wxWindowVariant >(val1);
17481 }
17482 {
17483 if (!wxPyCheckForApp()) SWIG_fail;
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17486 wxPyEndAllowThreads(__tstate);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 }
17489 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17490 return resultobj;
17491 fail:
17492 return NULL;
17493 }
17494
17495
17496 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17497 PyObject *obj;
17498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17499 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17500 return SWIG_Py_Void();
17501 }
17502
17503 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17504 return SWIG_Python_InitShadowInstance(args);
17505 }
17506
17507 SWIGINTERN int SliderNameStr_set(PyObject *) {
17508 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17509 return 1;
17510 }
17511
17512
17513 SWIGINTERN PyObject *SliderNameStr_get(void) {
17514 PyObject *pyobj = 0;
17515
17516 {
17517 #if wxUSE_UNICODE
17518 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17519 #else
17520 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17521 #endif
17522 }
17523 return pyobj;
17524 }
17525
17526
17527 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = 0;
17529 wxWindow *arg1 = (wxWindow *) 0 ;
17530 int arg2 = (int) -1 ;
17531 int arg3 = (int) 0 ;
17532 int arg4 = (int) 0 ;
17533 int arg5 = (int) 100 ;
17534 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17535 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17536 wxSize const &arg7_defvalue = wxDefaultSize ;
17537 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17538 long arg8 = (long) wxSL_HORIZONTAL ;
17539 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17540 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17541 wxString const &arg10_defvalue = wxPySliderNameStr ;
17542 wxString *arg10 = (wxString *) &arg10_defvalue ;
17543 wxSlider *result = 0 ;
17544 void *argp1 = 0 ;
17545 int res1 = 0 ;
17546 int val2 ;
17547 int ecode2 = 0 ;
17548 int val3 ;
17549 int ecode3 = 0 ;
17550 int val4 ;
17551 int ecode4 = 0 ;
17552 int val5 ;
17553 int ecode5 = 0 ;
17554 wxPoint temp6 ;
17555 wxSize temp7 ;
17556 long val8 ;
17557 int ecode8 = 0 ;
17558 void *argp9 = 0 ;
17559 int res9 = 0 ;
17560 bool temp10 = false ;
17561 PyObject * obj0 = 0 ;
17562 PyObject * obj1 = 0 ;
17563 PyObject * obj2 = 0 ;
17564 PyObject * obj3 = 0 ;
17565 PyObject * obj4 = 0 ;
17566 PyObject * obj5 = 0 ;
17567 PyObject * obj6 = 0 ;
17568 PyObject * obj7 = 0 ;
17569 PyObject * obj8 = 0 ;
17570 PyObject * obj9 = 0 ;
17571 char * kwnames[] = {
17572 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17573 };
17574
17575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17577 if (!SWIG_IsOK(res1)) {
17578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17579 }
17580 arg1 = reinterpret_cast< wxWindow * >(argp1);
17581 if (obj1) {
17582 ecode2 = SWIG_AsVal_int(obj1, &val2);
17583 if (!SWIG_IsOK(ecode2)) {
17584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17585 }
17586 arg2 = static_cast< int >(val2);
17587 }
17588 if (obj2) {
17589 ecode3 = SWIG_AsVal_int(obj2, &val3);
17590 if (!SWIG_IsOK(ecode3)) {
17591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17592 }
17593 arg3 = static_cast< int >(val3);
17594 }
17595 if (obj3) {
17596 ecode4 = SWIG_AsVal_int(obj3, &val4);
17597 if (!SWIG_IsOK(ecode4)) {
17598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17599 }
17600 arg4 = static_cast< int >(val4);
17601 }
17602 if (obj4) {
17603 ecode5 = SWIG_AsVal_int(obj4, &val5);
17604 if (!SWIG_IsOK(ecode5)) {
17605 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17606 }
17607 arg5 = static_cast< int >(val5);
17608 }
17609 if (obj5) {
17610 {
17611 arg6 = &temp6;
17612 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17613 }
17614 }
17615 if (obj6) {
17616 {
17617 arg7 = &temp7;
17618 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17619 }
17620 }
17621 if (obj7) {
17622 ecode8 = SWIG_AsVal_long(obj7, &val8);
17623 if (!SWIG_IsOK(ecode8)) {
17624 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17625 }
17626 arg8 = static_cast< long >(val8);
17627 }
17628 if (obj8) {
17629 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17630 if (!SWIG_IsOK(res9)) {
17631 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17632 }
17633 if (!argp9) {
17634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17635 }
17636 arg9 = reinterpret_cast< wxValidator * >(argp9);
17637 }
17638 if (obj9) {
17639 {
17640 arg10 = wxString_in_helper(obj9);
17641 if (arg10 == NULL) SWIG_fail;
17642 temp10 = true;
17643 }
17644 }
17645 {
17646 if (!wxPyCheckForApp()) SWIG_fail;
17647 PyThreadState* __tstate = wxPyBeginAllowThreads();
17648 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17649 wxPyEndAllowThreads(__tstate);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17653 {
17654 if (temp10)
17655 delete arg10;
17656 }
17657 return resultobj;
17658 fail:
17659 {
17660 if (temp10)
17661 delete arg10;
17662 }
17663 return NULL;
17664 }
17665
17666
17667 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17668 PyObject *resultobj = 0;
17669 wxSlider *result = 0 ;
17670
17671 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17672 {
17673 if (!wxPyCheckForApp()) SWIG_fail;
17674 PyThreadState* __tstate = wxPyBeginAllowThreads();
17675 result = (wxSlider *)new wxSlider();
17676 wxPyEndAllowThreads(__tstate);
17677 if (PyErr_Occurred()) SWIG_fail;
17678 }
17679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17680 return resultobj;
17681 fail:
17682 return NULL;
17683 }
17684
17685
17686 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17687 PyObject *resultobj = 0;
17688 wxSlider *arg1 = (wxSlider *) 0 ;
17689 wxWindow *arg2 = (wxWindow *) 0 ;
17690 int arg3 = (int) -1 ;
17691 int arg4 = (int) 0 ;
17692 int arg5 = (int) 0 ;
17693 int arg6 = (int) 100 ;
17694 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17695 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17696 wxSize const &arg8_defvalue = wxDefaultSize ;
17697 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17698 long arg9 = (long) wxSL_HORIZONTAL ;
17699 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17700 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17701 wxString const &arg11_defvalue = wxPySliderNameStr ;
17702 wxString *arg11 = (wxString *) &arg11_defvalue ;
17703 bool result;
17704 void *argp1 = 0 ;
17705 int res1 = 0 ;
17706 void *argp2 = 0 ;
17707 int res2 = 0 ;
17708 int val3 ;
17709 int ecode3 = 0 ;
17710 int val4 ;
17711 int ecode4 = 0 ;
17712 int val5 ;
17713 int ecode5 = 0 ;
17714 int val6 ;
17715 int ecode6 = 0 ;
17716 wxPoint temp7 ;
17717 wxSize temp8 ;
17718 long val9 ;
17719 int ecode9 = 0 ;
17720 void *argp10 = 0 ;
17721 int res10 = 0 ;
17722 bool temp11 = false ;
17723 PyObject * obj0 = 0 ;
17724 PyObject * obj1 = 0 ;
17725 PyObject * obj2 = 0 ;
17726 PyObject * obj3 = 0 ;
17727 PyObject * obj4 = 0 ;
17728 PyObject * obj5 = 0 ;
17729 PyObject * obj6 = 0 ;
17730 PyObject * obj7 = 0 ;
17731 PyObject * obj8 = 0 ;
17732 PyObject * obj9 = 0 ;
17733 PyObject * obj10 = 0 ;
17734 char * kwnames[] = {
17735 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17736 };
17737
17738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17740 if (!SWIG_IsOK(res1)) {
17741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17742 }
17743 arg1 = reinterpret_cast< wxSlider * >(argp1);
17744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17745 if (!SWIG_IsOK(res2)) {
17746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17747 }
17748 arg2 = reinterpret_cast< wxWindow * >(argp2);
17749 if (obj2) {
17750 ecode3 = SWIG_AsVal_int(obj2, &val3);
17751 if (!SWIG_IsOK(ecode3)) {
17752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17753 }
17754 arg3 = static_cast< int >(val3);
17755 }
17756 if (obj3) {
17757 ecode4 = SWIG_AsVal_int(obj3, &val4);
17758 if (!SWIG_IsOK(ecode4)) {
17759 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17760 }
17761 arg4 = static_cast< int >(val4);
17762 }
17763 if (obj4) {
17764 ecode5 = SWIG_AsVal_int(obj4, &val5);
17765 if (!SWIG_IsOK(ecode5)) {
17766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17767 }
17768 arg5 = static_cast< int >(val5);
17769 }
17770 if (obj5) {
17771 ecode6 = SWIG_AsVal_int(obj5, &val6);
17772 if (!SWIG_IsOK(ecode6)) {
17773 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17774 }
17775 arg6 = static_cast< int >(val6);
17776 }
17777 if (obj6) {
17778 {
17779 arg7 = &temp7;
17780 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17781 }
17782 }
17783 if (obj7) {
17784 {
17785 arg8 = &temp8;
17786 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17787 }
17788 }
17789 if (obj8) {
17790 ecode9 = SWIG_AsVal_long(obj8, &val9);
17791 if (!SWIG_IsOK(ecode9)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17793 }
17794 arg9 = static_cast< long >(val9);
17795 }
17796 if (obj9) {
17797 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17798 if (!SWIG_IsOK(res10)) {
17799 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17800 }
17801 if (!argp10) {
17802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17803 }
17804 arg10 = reinterpret_cast< wxValidator * >(argp10);
17805 }
17806 if (obj10) {
17807 {
17808 arg11 = wxString_in_helper(obj10);
17809 if (arg11 == NULL) SWIG_fail;
17810 temp11 = true;
17811 }
17812 }
17813 {
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 {
17820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17821 }
17822 {
17823 if (temp11)
17824 delete arg11;
17825 }
17826 return resultobj;
17827 fail:
17828 {
17829 if (temp11)
17830 delete arg11;
17831 }
17832 return NULL;
17833 }
17834
17835
17836 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17837 PyObject *resultobj = 0;
17838 wxSlider *arg1 = (wxSlider *) 0 ;
17839 int result;
17840 void *argp1 = 0 ;
17841 int res1 = 0 ;
17842 PyObject *swig_obj[1] ;
17843
17844 if (!args) SWIG_fail;
17845 swig_obj[0] = args;
17846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17847 if (!SWIG_IsOK(res1)) {
17848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17849 }
17850 arg1 = reinterpret_cast< wxSlider * >(argp1);
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 result = (int)((wxSlider const *)arg1)->GetValue();
17854 wxPyEndAllowThreads(__tstate);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 resultobj = SWIG_From_int(static_cast< int >(result));
17858 return resultobj;
17859 fail:
17860 return NULL;
17861 }
17862
17863
17864 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17865 PyObject *resultobj = 0;
17866 wxSlider *arg1 = (wxSlider *) 0 ;
17867 int arg2 ;
17868 void *argp1 = 0 ;
17869 int res1 = 0 ;
17870 int val2 ;
17871 int ecode2 = 0 ;
17872 PyObject * obj0 = 0 ;
17873 PyObject * obj1 = 0 ;
17874 char * kwnames[] = {
17875 (char *) "self",(char *) "value", NULL
17876 };
17877
17878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17880 if (!SWIG_IsOK(res1)) {
17881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17882 }
17883 arg1 = reinterpret_cast< wxSlider * >(argp1);
17884 ecode2 = SWIG_AsVal_int(obj1, &val2);
17885 if (!SWIG_IsOK(ecode2)) {
17886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17887 }
17888 arg2 = static_cast< int >(val2);
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 (arg1)->SetValue(arg2);
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_Py_Void();
17896 return resultobj;
17897 fail:
17898 return NULL;
17899 }
17900
17901
17902 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17903 PyObject *resultobj = 0;
17904 wxSlider *arg1 = (wxSlider *) 0 ;
17905 int arg2 ;
17906 int arg3 ;
17907 void *argp1 = 0 ;
17908 int res1 = 0 ;
17909 int val2 ;
17910 int ecode2 = 0 ;
17911 int val3 ;
17912 int ecode3 = 0 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 PyObject * obj2 = 0 ;
17916 char * kwnames[] = {
17917 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17918 };
17919
17920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17922 if (!SWIG_IsOK(res1)) {
17923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17924 }
17925 arg1 = reinterpret_cast< wxSlider * >(argp1);
17926 ecode2 = SWIG_AsVal_int(obj1, &val2);
17927 if (!SWIG_IsOK(ecode2)) {
17928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17929 }
17930 arg2 = static_cast< int >(val2);
17931 ecode3 = SWIG_AsVal_int(obj2, &val3);
17932 if (!SWIG_IsOK(ecode3)) {
17933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17934 }
17935 arg3 = static_cast< int >(val3);
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 (arg1)->SetRange(arg2,arg3);
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 resultobj = SWIG_Py_Void();
17943 return resultobj;
17944 fail:
17945 return NULL;
17946 }
17947
17948
17949 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17950 PyObject *resultobj = 0;
17951 wxSlider *arg1 = (wxSlider *) 0 ;
17952 int result;
17953 void *argp1 = 0 ;
17954 int res1 = 0 ;
17955 PyObject *swig_obj[1] ;
17956
17957 if (!args) SWIG_fail;
17958 swig_obj[0] = args;
17959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17960 if (!SWIG_IsOK(res1)) {
17961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17962 }
17963 arg1 = reinterpret_cast< wxSlider * >(argp1);
17964 {
17965 PyThreadState* __tstate = wxPyBeginAllowThreads();
17966 result = (int)((wxSlider const *)arg1)->GetMin();
17967 wxPyEndAllowThreads(__tstate);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 resultobj = SWIG_From_int(static_cast< int >(result));
17971 return resultobj;
17972 fail:
17973 return NULL;
17974 }
17975
17976
17977 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17978 PyObject *resultobj = 0;
17979 wxSlider *arg1 = (wxSlider *) 0 ;
17980 int result;
17981 void *argp1 = 0 ;
17982 int res1 = 0 ;
17983 PyObject *swig_obj[1] ;
17984
17985 if (!args) SWIG_fail;
17986 swig_obj[0] = args;
17987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17988 if (!SWIG_IsOK(res1)) {
17989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17990 }
17991 arg1 = reinterpret_cast< wxSlider * >(argp1);
17992 {
17993 PyThreadState* __tstate = wxPyBeginAllowThreads();
17994 result = (int)((wxSlider const *)arg1)->GetMax();
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 resultobj = SWIG_From_int(static_cast< int >(result));
17999 return resultobj;
18000 fail:
18001 return NULL;
18002 }
18003
18004
18005 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj = 0;
18007 wxSlider *arg1 = (wxSlider *) 0 ;
18008 int arg2 ;
18009 void *argp1 = 0 ;
18010 int res1 = 0 ;
18011 int val2 ;
18012 int ecode2 = 0 ;
18013 PyObject * obj0 = 0 ;
18014 PyObject * obj1 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "minValue", NULL
18017 };
18018
18019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18021 if (!SWIG_IsOK(res1)) {
18022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18023 }
18024 arg1 = reinterpret_cast< wxSlider * >(argp1);
18025 ecode2 = SWIG_AsVal_int(obj1, &val2);
18026 if (!SWIG_IsOK(ecode2)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18028 }
18029 arg2 = static_cast< int >(val2);
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->SetMin(arg2);
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 resultobj = SWIG_Py_Void();
18037 return resultobj;
18038 fail:
18039 return NULL;
18040 }
18041
18042
18043 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj = 0;
18045 wxSlider *arg1 = (wxSlider *) 0 ;
18046 int arg2 ;
18047 void *argp1 = 0 ;
18048 int res1 = 0 ;
18049 int val2 ;
18050 int ecode2 = 0 ;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 char * kwnames[] = {
18054 (char *) "self",(char *) "maxValue", NULL
18055 };
18056
18057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18059 if (!SWIG_IsOK(res1)) {
18060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18061 }
18062 arg1 = reinterpret_cast< wxSlider * >(argp1);
18063 ecode2 = SWIG_AsVal_int(obj1, &val2);
18064 if (!SWIG_IsOK(ecode2)) {
18065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18066 }
18067 arg2 = static_cast< int >(val2);
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 (arg1)->SetMax(arg2);
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_Py_Void();
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18082 PyObject *resultobj = 0;
18083 wxSlider *arg1 = (wxSlider *) 0 ;
18084 int arg2 ;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 int val2 ;
18088 int ecode2 = 0 ;
18089 PyObject * obj0 = 0 ;
18090 PyObject * obj1 = 0 ;
18091 char * kwnames[] = {
18092 (char *) "self",(char *) "lineSize", NULL
18093 };
18094
18095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18097 if (!SWIG_IsOK(res1)) {
18098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18099 }
18100 arg1 = reinterpret_cast< wxSlider * >(argp1);
18101 ecode2 = SWIG_AsVal_int(obj1, &val2);
18102 if (!SWIG_IsOK(ecode2)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18104 }
18105 arg2 = static_cast< int >(val2);
18106 {
18107 PyThreadState* __tstate = wxPyBeginAllowThreads();
18108 (arg1)->SetLineSize(arg2);
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 resultobj = SWIG_Py_Void();
18113 return resultobj;
18114 fail:
18115 return NULL;
18116 }
18117
18118
18119 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18120 PyObject *resultobj = 0;
18121 wxSlider *arg1 = (wxSlider *) 0 ;
18122 int arg2 ;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 int val2 ;
18126 int ecode2 = 0 ;
18127 PyObject * obj0 = 0 ;
18128 PyObject * obj1 = 0 ;
18129 char * kwnames[] = {
18130 (char *) "self",(char *) "pageSize", NULL
18131 };
18132
18133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18137 }
18138 arg1 = reinterpret_cast< wxSlider * >(argp1);
18139 ecode2 = SWIG_AsVal_int(obj1, &val2);
18140 if (!SWIG_IsOK(ecode2)) {
18141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18142 }
18143 arg2 = static_cast< int >(val2);
18144 {
18145 PyThreadState* __tstate = wxPyBeginAllowThreads();
18146 (arg1)->SetPageSize(arg2);
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 resultobj = SWIG_Py_Void();
18151 return resultobj;
18152 fail:
18153 return NULL;
18154 }
18155
18156
18157 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18158 PyObject *resultobj = 0;
18159 wxSlider *arg1 = (wxSlider *) 0 ;
18160 int result;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 PyObject *swig_obj[1] ;
18164
18165 if (!args) SWIG_fail;
18166 swig_obj[0] = args;
18167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18168 if (!SWIG_IsOK(res1)) {
18169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18170 }
18171 arg1 = reinterpret_cast< wxSlider * >(argp1);
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 result = (int)((wxSlider const *)arg1)->GetLineSize();
18175 wxPyEndAllowThreads(__tstate);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 resultobj = SWIG_From_int(static_cast< int >(result));
18179 return resultobj;
18180 fail:
18181 return NULL;
18182 }
18183
18184
18185 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18186 PyObject *resultobj = 0;
18187 wxSlider *arg1 = (wxSlider *) 0 ;
18188 int result;
18189 void *argp1 = 0 ;
18190 int res1 = 0 ;
18191 PyObject *swig_obj[1] ;
18192
18193 if (!args) SWIG_fail;
18194 swig_obj[0] = args;
18195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18196 if (!SWIG_IsOK(res1)) {
18197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18198 }
18199 arg1 = reinterpret_cast< wxSlider * >(argp1);
18200 {
18201 PyThreadState* __tstate = wxPyBeginAllowThreads();
18202 result = (int)((wxSlider const *)arg1)->GetPageSize();
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 resultobj = SWIG_From_int(static_cast< int >(result));
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj = 0;
18215 wxSlider *arg1 = (wxSlider *) 0 ;
18216 int arg2 ;
18217 void *argp1 = 0 ;
18218 int res1 = 0 ;
18219 int val2 ;
18220 int ecode2 = 0 ;
18221 PyObject * obj0 = 0 ;
18222 PyObject * obj1 = 0 ;
18223 char * kwnames[] = {
18224 (char *) "self",(char *) "lenPixels", NULL
18225 };
18226
18227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18229 if (!SWIG_IsOK(res1)) {
18230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18231 }
18232 arg1 = reinterpret_cast< wxSlider * >(argp1);
18233 ecode2 = SWIG_AsVal_int(obj1, &val2);
18234 if (!SWIG_IsOK(ecode2)) {
18235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18236 }
18237 arg2 = static_cast< int >(val2);
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 (arg1)->SetThumbLength(arg2);
18241 wxPyEndAllowThreads(__tstate);
18242 if (PyErr_Occurred()) SWIG_fail;
18243 }
18244 resultobj = SWIG_Py_Void();
18245 return resultobj;
18246 fail:
18247 return NULL;
18248 }
18249
18250
18251 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18252 PyObject *resultobj = 0;
18253 wxSlider *arg1 = (wxSlider *) 0 ;
18254 int result;
18255 void *argp1 = 0 ;
18256 int res1 = 0 ;
18257 PyObject *swig_obj[1] ;
18258
18259 if (!args) SWIG_fail;
18260 swig_obj[0] = args;
18261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18262 if (!SWIG_IsOK(res1)) {
18263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18264 }
18265 arg1 = reinterpret_cast< wxSlider * >(argp1);
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 resultobj = SWIG_From_int(static_cast< int >(result));
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18280 PyObject *resultobj = 0;
18281 wxSlider *arg1 = (wxSlider *) 0 ;
18282 int arg2 ;
18283 int arg3 = (int) 1 ;
18284 void *argp1 = 0 ;
18285 int res1 = 0 ;
18286 int val2 ;
18287 int ecode2 = 0 ;
18288 int val3 ;
18289 int ecode3 = 0 ;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 PyObject * obj2 = 0 ;
18293 char * kwnames[] = {
18294 (char *) "self",(char *) "n",(char *) "pos", NULL
18295 };
18296
18297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18299 if (!SWIG_IsOK(res1)) {
18300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18301 }
18302 arg1 = reinterpret_cast< wxSlider * >(argp1);
18303 ecode2 = SWIG_AsVal_int(obj1, &val2);
18304 if (!SWIG_IsOK(ecode2)) {
18305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18306 }
18307 arg2 = static_cast< int >(val2);
18308 if (obj2) {
18309 ecode3 = SWIG_AsVal_int(obj2, &val3);
18310 if (!SWIG_IsOK(ecode3)) {
18311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18312 }
18313 arg3 = static_cast< int >(val3);
18314 }
18315 {
18316 PyThreadState* __tstate = wxPyBeginAllowThreads();
18317 (arg1)->SetTickFreq(arg2,arg3);
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 resultobj = SWIG_Py_Void();
18322 return resultobj;
18323 fail:
18324 return NULL;
18325 }
18326
18327
18328 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18329 PyObject *resultobj = 0;
18330 wxSlider *arg1 = (wxSlider *) 0 ;
18331 int result;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 PyObject *swig_obj[1] ;
18335
18336 if (!args) SWIG_fail;
18337 swig_obj[0] = args;
18338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18341 }
18342 arg1 = reinterpret_cast< wxSlider * >(argp1);
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 resultobj = SWIG_From_int(static_cast< int >(result));
18350 return resultobj;
18351 fail:
18352 return NULL;
18353 }
18354
18355
18356 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18357 PyObject *resultobj = 0;
18358 wxSlider *arg1 = (wxSlider *) 0 ;
18359 void *argp1 = 0 ;
18360 int res1 = 0 ;
18361 PyObject *swig_obj[1] ;
18362
18363 if (!args) SWIG_fail;
18364 swig_obj[0] = args;
18365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18366 if (!SWIG_IsOK(res1)) {
18367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18368 }
18369 arg1 = reinterpret_cast< wxSlider * >(argp1);
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 (arg1)->ClearTicks();
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 resultobj = SWIG_Py_Void();
18377 return resultobj;
18378 fail:
18379 return NULL;
18380 }
18381
18382
18383 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18384 PyObject *resultobj = 0;
18385 wxSlider *arg1 = (wxSlider *) 0 ;
18386 int arg2 ;
18387 void *argp1 = 0 ;
18388 int res1 = 0 ;
18389 int val2 ;
18390 int ecode2 = 0 ;
18391 PyObject * obj0 = 0 ;
18392 PyObject * obj1 = 0 ;
18393 char * kwnames[] = {
18394 (char *) "self",(char *) "tickPos", NULL
18395 };
18396
18397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18399 if (!SWIG_IsOK(res1)) {
18400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18401 }
18402 arg1 = reinterpret_cast< wxSlider * >(argp1);
18403 ecode2 = SWIG_AsVal_int(obj1, &val2);
18404 if (!SWIG_IsOK(ecode2)) {
18405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18406 }
18407 arg2 = static_cast< int >(val2);
18408 {
18409 PyThreadState* __tstate = wxPyBeginAllowThreads();
18410 (arg1)->SetTick(arg2);
18411 wxPyEndAllowThreads(__tstate);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 }
18414 resultobj = SWIG_Py_Void();
18415 return resultobj;
18416 fail:
18417 return NULL;
18418 }
18419
18420
18421 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18422 PyObject *resultobj = 0;
18423 wxSlider *arg1 = (wxSlider *) 0 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 PyObject *swig_obj[1] ;
18427
18428 if (!args) SWIG_fail;
18429 swig_obj[0] = args;
18430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18431 if (!SWIG_IsOK(res1)) {
18432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18433 }
18434 arg1 = reinterpret_cast< wxSlider * >(argp1);
18435 {
18436 PyThreadState* __tstate = wxPyBeginAllowThreads();
18437 (arg1)->ClearSel();
18438 wxPyEndAllowThreads(__tstate);
18439 if (PyErr_Occurred()) SWIG_fail;
18440 }
18441 resultobj = SWIG_Py_Void();
18442 return resultobj;
18443 fail:
18444 return NULL;
18445 }
18446
18447
18448 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18449 PyObject *resultobj = 0;
18450 wxSlider *arg1 = (wxSlider *) 0 ;
18451 int result;
18452 void *argp1 = 0 ;
18453 int res1 = 0 ;
18454 PyObject *swig_obj[1] ;
18455
18456 if (!args) SWIG_fail;
18457 swig_obj[0] = args;
18458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18459 if (!SWIG_IsOK(res1)) {
18460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18461 }
18462 arg1 = reinterpret_cast< wxSlider * >(argp1);
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_From_int(static_cast< int >(result));
18470 return resultobj;
18471 fail:
18472 return NULL;
18473 }
18474
18475
18476 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18477 PyObject *resultobj = 0;
18478 wxSlider *arg1 = (wxSlider *) 0 ;
18479 int result;
18480 void *argp1 = 0 ;
18481 int res1 = 0 ;
18482 PyObject *swig_obj[1] ;
18483
18484 if (!args) SWIG_fail;
18485 swig_obj[0] = args;
18486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18487 if (!SWIG_IsOK(res1)) {
18488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18489 }
18490 arg1 = reinterpret_cast< wxSlider * >(argp1);
18491 {
18492 PyThreadState* __tstate = wxPyBeginAllowThreads();
18493 result = (int)((wxSlider const *)arg1)->GetSelStart();
18494 wxPyEndAllowThreads(__tstate);
18495 if (PyErr_Occurred()) SWIG_fail;
18496 }
18497 resultobj = SWIG_From_int(static_cast< int >(result));
18498 return resultobj;
18499 fail:
18500 return NULL;
18501 }
18502
18503
18504 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18505 PyObject *resultobj = 0;
18506 wxSlider *arg1 = (wxSlider *) 0 ;
18507 int arg2 ;
18508 int arg3 ;
18509 void *argp1 = 0 ;
18510 int res1 = 0 ;
18511 int val2 ;
18512 int ecode2 = 0 ;
18513 int val3 ;
18514 int ecode3 = 0 ;
18515 PyObject * obj0 = 0 ;
18516 PyObject * obj1 = 0 ;
18517 PyObject * obj2 = 0 ;
18518 char * kwnames[] = {
18519 (char *) "self",(char *) "min",(char *) "max", NULL
18520 };
18521
18522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18524 if (!SWIG_IsOK(res1)) {
18525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18526 }
18527 arg1 = reinterpret_cast< wxSlider * >(argp1);
18528 ecode2 = SWIG_AsVal_int(obj1, &val2);
18529 if (!SWIG_IsOK(ecode2)) {
18530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18531 }
18532 arg2 = static_cast< int >(val2);
18533 ecode3 = SWIG_AsVal_int(obj2, &val3);
18534 if (!SWIG_IsOK(ecode3)) {
18535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18536 }
18537 arg3 = static_cast< int >(val3);
18538 {
18539 PyThreadState* __tstate = wxPyBeginAllowThreads();
18540 (arg1)->SetSelection(arg2,arg3);
18541 wxPyEndAllowThreads(__tstate);
18542 if (PyErr_Occurred()) SWIG_fail;
18543 }
18544 resultobj = SWIG_Py_Void();
18545 return resultobj;
18546 fail:
18547 return NULL;
18548 }
18549
18550
18551 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18552 PyObject *resultobj = 0;
18553 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18554 SwigValueWrapper<wxVisualAttributes > result;
18555 int val1 ;
18556 int ecode1 = 0 ;
18557 PyObject * obj0 = 0 ;
18558 char * kwnames[] = {
18559 (char *) "variant", NULL
18560 };
18561
18562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18563 if (obj0) {
18564 ecode1 = SWIG_AsVal_int(obj0, &val1);
18565 if (!SWIG_IsOK(ecode1)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18567 }
18568 arg1 = static_cast< wxWindowVariant >(val1);
18569 }
18570 {
18571 if (!wxPyCheckForApp()) SWIG_fail;
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 result = wxSlider::GetClassDefaultAttributes(arg1);
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18578 return resultobj;
18579 fail:
18580 return NULL;
18581 }
18582
18583
18584 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18585 PyObject *obj;
18586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18587 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18588 return SWIG_Py_Void();
18589 }
18590
18591 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18592 return SWIG_Python_InitShadowInstance(args);
18593 }
18594
18595 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18596 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18597 return 1;
18598 }
18599
18600
18601 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18602 PyObject *pyobj = 0;
18603
18604 {
18605 #if wxUSE_UNICODE
18606 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18607 #else
18608 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18609 #endif
18610 }
18611 return pyobj;
18612 }
18613
18614
18615 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18616 PyObject *resultobj = 0;
18617 wxWindow *arg1 = (wxWindow *) 0 ;
18618 int arg2 = (int) -1 ;
18619 wxString const &arg3_defvalue = wxPyEmptyString ;
18620 wxString *arg3 = (wxString *) &arg3_defvalue ;
18621 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18622 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18623 wxSize const &arg5_defvalue = wxDefaultSize ;
18624 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18625 long arg6 = (long) 0 ;
18626 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18627 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18628 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18629 wxString *arg8 = (wxString *) &arg8_defvalue ;
18630 wxToggleButton *result = 0 ;
18631 void *argp1 = 0 ;
18632 int res1 = 0 ;
18633 int val2 ;
18634 int ecode2 = 0 ;
18635 bool temp3 = false ;
18636 wxPoint temp4 ;
18637 wxSize temp5 ;
18638 long val6 ;
18639 int ecode6 = 0 ;
18640 void *argp7 = 0 ;
18641 int res7 = 0 ;
18642 bool temp8 = false ;
18643 PyObject * obj0 = 0 ;
18644 PyObject * obj1 = 0 ;
18645 PyObject * obj2 = 0 ;
18646 PyObject * obj3 = 0 ;
18647 PyObject * obj4 = 0 ;
18648 PyObject * obj5 = 0 ;
18649 PyObject * obj6 = 0 ;
18650 PyObject * obj7 = 0 ;
18651 char * kwnames[] = {
18652 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18653 };
18654
18655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18657 if (!SWIG_IsOK(res1)) {
18658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18659 }
18660 arg1 = reinterpret_cast< wxWindow * >(argp1);
18661 if (obj1) {
18662 ecode2 = SWIG_AsVal_int(obj1, &val2);
18663 if (!SWIG_IsOK(ecode2)) {
18664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18665 }
18666 arg2 = static_cast< int >(val2);
18667 }
18668 if (obj2) {
18669 {
18670 arg3 = wxString_in_helper(obj2);
18671 if (arg3 == NULL) SWIG_fail;
18672 temp3 = true;
18673 }
18674 }
18675 if (obj3) {
18676 {
18677 arg4 = &temp4;
18678 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18679 }
18680 }
18681 if (obj4) {
18682 {
18683 arg5 = &temp5;
18684 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18685 }
18686 }
18687 if (obj5) {
18688 ecode6 = SWIG_AsVal_long(obj5, &val6);
18689 if (!SWIG_IsOK(ecode6)) {
18690 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18691 }
18692 arg6 = static_cast< long >(val6);
18693 }
18694 if (obj6) {
18695 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18696 if (!SWIG_IsOK(res7)) {
18697 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18698 }
18699 if (!argp7) {
18700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18701 }
18702 arg7 = reinterpret_cast< wxValidator * >(argp7);
18703 }
18704 if (obj7) {
18705 {
18706 arg8 = wxString_in_helper(obj7);
18707 if (arg8 == NULL) SWIG_fail;
18708 temp8 = true;
18709 }
18710 }
18711 {
18712 if (!wxPyCheckForApp()) SWIG_fail;
18713 PyThreadState* __tstate = wxPyBeginAllowThreads();
18714 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18715 wxPyEndAllowThreads(__tstate);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 }
18718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18719 {
18720 if (temp3)
18721 delete arg3;
18722 }
18723 {
18724 if (temp8)
18725 delete arg8;
18726 }
18727 return resultobj;
18728 fail:
18729 {
18730 if (temp3)
18731 delete arg3;
18732 }
18733 {
18734 if (temp8)
18735 delete arg8;
18736 }
18737 return NULL;
18738 }
18739
18740
18741 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18742 PyObject *resultobj = 0;
18743 wxToggleButton *result = 0 ;
18744
18745 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18746 {
18747 if (!wxPyCheckForApp()) SWIG_fail;
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 result = (wxToggleButton *)new wxToggleButton();
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18754 return resultobj;
18755 fail:
18756 return NULL;
18757 }
18758
18759
18760 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18761 PyObject *resultobj = 0;
18762 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18763 wxWindow *arg2 = (wxWindow *) 0 ;
18764 int arg3 = (int) -1 ;
18765 wxString const &arg4_defvalue = wxPyEmptyString ;
18766 wxString *arg4 = (wxString *) &arg4_defvalue ;
18767 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18768 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18769 wxSize const &arg6_defvalue = wxDefaultSize ;
18770 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18771 long arg7 = (long) 0 ;
18772 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18773 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18774 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18775 wxString *arg9 = (wxString *) &arg9_defvalue ;
18776 bool result;
18777 void *argp1 = 0 ;
18778 int res1 = 0 ;
18779 void *argp2 = 0 ;
18780 int res2 = 0 ;
18781 int val3 ;
18782 int ecode3 = 0 ;
18783 bool temp4 = false ;
18784 wxPoint temp5 ;
18785 wxSize temp6 ;
18786 long val7 ;
18787 int ecode7 = 0 ;
18788 void *argp8 = 0 ;
18789 int res8 = 0 ;
18790 bool temp9 = false ;
18791 PyObject * obj0 = 0 ;
18792 PyObject * obj1 = 0 ;
18793 PyObject * obj2 = 0 ;
18794 PyObject * obj3 = 0 ;
18795 PyObject * obj4 = 0 ;
18796 PyObject * obj5 = 0 ;
18797 PyObject * obj6 = 0 ;
18798 PyObject * obj7 = 0 ;
18799 PyObject * obj8 = 0 ;
18800 char * kwnames[] = {
18801 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18802 };
18803
18804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18806 if (!SWIG_IsOK(res1)) {
18807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18808 }
18809 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18811 if (!SWIG_IsOK(res2)) {
18812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18813 }
18814 arg2 = reinterpret_cast< wxWindow * >(argp2);
18815 if (obj2) {
18816 ecode3 = SWIG_AsVal_int(obj2, &val3);
18817 if (!SWIG_IsOK(ecode3)) {
18818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18819 }
18820 arg3 = static_cast< int >(val3);
18821 }
18822 if (obj3) {
18823 {
18824 arg4 = wxString_in_helper(obj3);
18825 if (arg4 == NULL) SWIG_fail;
18826 temp4 = true;
18827 }
18828 }
18829 if (obj4) {
18830 {
18831 arg5 = &temp5;
18832 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18833 }
18834 }
18835 if (obj5) {
18836 {
18837 arg6 = &temp6;
18838 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18839 }
18840 }
18841 if (obj6) {
18842 ecode7 = SWIG_AsVal_long(obj6, &val7);
18843 if (!SWIG_IsOK(ecode7)) {
18844 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18845 }
18846 arg7 = static_cast< long >(val7);
18847 }
18848 if (obj7) {
18849 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18850 if (!SWIG_IsOK(res8)) {
18851 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18852 }
18853 if (!argp8) {
18854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18855 }
18856 arg8 = reinterpret_cast< wxValidator * >(argp8);
18857 }
18858 if (obj8) {
18859 {
18860 arg9 = wxString_in_helper(obj8);
18861 if (arg9 == NULL) SWIG_fail;
18862 temp9 = true;
18863 }
18864 }
18865 {
18866 PyThreadState* __tstate = wxPyBeginAllowThreads();
18867 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 {
18872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18873 }
18874 {
18875 if (temp4)
18876 delete arg4;
18877 }
18878 {
18879 if (temp9)
18880 delete arg9;
18881 }
18882 return resultobj;
18883 fail:
18884 {
18885 if (temp4)
18886 delete arg4;
18887 }
18888 {
18889 if (temp9)
18890 delete arg9;
18891 }
18892 return NULL;
18893 }
18894
18895
18896 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18897 PyObject *resultobj = 0;
18898 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18899 bool arg2 ;
18900 void *argp1 = 0 ;
18901 int res1 = 0 ;
18902 bool val2 ;
18903 int ecode2 = 0 ;
18904 PyObject * obj0 = 0 ;
18905 PyObject * obj1 = 0 ;
18906 char * kwnames[] = {
18907 (char *) "self",(char *) "value", NULL
18908 };
18909
18910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18912 if (!SWIG_IsOK(res1)) {
18913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18914 }
18915 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18916 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18917 if (!SWIG_IsOK(ecode2)) {
18918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18919 }
18920 arg2 = static_cast< bool >(val2);
18921 {
18922 PyThreadState* __tstate = wxPyBeginAllowThreads();
18923 (arg1)->SetValue(arg2);
18924 wxPyEndAllowThreads(__tstate);
18925 if (PyErr_Occurred()) SWIG_fail;
18926 }
18927 resultobj = SWIG_Py_Void();
18928 return resultobj;
18929 fail:
18930 return NULL;
18931 }
18932
18933
18934 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18935 PyObject *resultobj = 0;
18936 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18937 bool result;
18938 void *argp1 = 0 ;
18939 int res1 = 0 ;
18940 PyObject *swig_obj[1] ;
18941
18942 if (!args) SWIG_fail;
18943 swig_obj[0] = args;
18944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18947 }
18948 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18949 {
18950 PyThreadState* __tstate = wxPyBeginAllowThreads();
18951 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18952 wxPyEndAllowThreads(__tstate);
18953 if (PyErr_Occurred()) SWIG_fail;
18954 }
18955 {
18956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18957 }
18958 return resultobj;
18959 fail:
18960 return NULL;
18961 }
18962
18963
18964 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18965 PyObject *resultobj = 0;
18966 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18967 SwigValueWrapper<wxVisualAttributes > result;
18968 int val1 ;
18969 int ecode1 = 0 ;
18970 PyObject * obj0 = 0 ;
18971 char * kwnames[] = {
18972 (char *) "variant", NULL
18973 };
18974
18975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18976 if (obj0) {
18977 ecode1 = SWIG_AsVal_int(obj0, &val1);
18978 if (!SWIG_IsOK(ecode1)) {
18979 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18980 }
18981 arg1 = static_cast< wxWindowVariant >(val1);
18982 }
18983 {
18984 if (!wxPyCheckForApp()) SWIG_fail;
18985 PyThreadState* __tstate = wxPyBeginAllowThreads();
18986 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18987 wxPyEndAllowThreads(__tstate);
18988 if (PyErr_Occurred()) SWIG_fail;
18989 }
18990 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18991 return resultobj;
18992 fail:
18993 return NULL;
18994 }
18995
18996
18997 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18998 PyObject *obj;
18999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19000 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19001 return SWIG_Py_Void();
19002 }
19003
19004 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19005 return SWIG_Python_InitShadowInstance(args);
19006 }
19007
19008 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19009 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19010 return 1;
19011 }
19012
19013
19014 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19015 PyObject *pyobj = 0;
19016
19017 {
19018 #if wxUSE_UNICODE
19019 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19020 #else
19021 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19022 #endif
19023 }
19024 return pyobj;
19025 }
19026
19027
19028 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19029 PyObject *resultobj = 0;
19030 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19031 size_t result;
19032 void *argp1 = 0 ;
19033 int res1 = 0 ;
19034 PyObject *swig_obj[1] ;
19035
19036 if (!args) SWIG_fail;
19037 swig_obj[0] = args;
19038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19039 if (!SWIG_IsOK(res1)) {
19040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19041 }
19042 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19046 wxPyEndAllowThreads(__tstate);
19047 if (PyErr_Occurred()) SWIG_fail;
19048 }
19049 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19050 return resultobj;
19051 fail:
19052 return NULL;
19053 }
19054
19055
19056 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj = 0;
19058 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19059 size_t arg2 ;
19060 wxWindow *result = 0 ;
19061 void *argp1 = 0 ;
19062 int res1 = 0 ;
19063 size_t val2 ;
19064 int ecode2 = 0 ;
19065 PyObject * obj0 = 0 ;
19066 PyObject * obj1 = 0 ;
19067 char * kwnames[] = {
19068 (char *) "self",(char *) "n", NULL
19069 };
19070
19071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19073 if (!SWIG_IsOK(res1)) {
19074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19075 }
19076 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19077 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19078 if (!SWIG_IsOK(ecode2)) {
19079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19080 }
19081 arg2 = static_cast< size_t >(val2);
19082 {
19083 PyThreadState* __tstate = wxPyBeginAllowThreads();
19084 result = (wxWindow *)(arg1)->GetPage(arg2);
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 {
19089 resultobj = wxPyMake_wxObject(result, 0);
19090 }
19091 return resultobj;
19092 fail:
19093 return NULL;
19094 }
19095
19096
19097 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19098 PyObject *resultobj = 0;
19099 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19100 wxWindow *result = 0 ;
19101 void *argp1 = 0 ;
19102 int res1 = 0 ;
19103 PyObject *swig_obj[1] ;
19104
19105 if (!args) SWIG_fail;
19106 swig_obj[0] = args;
19107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19110 }
19111 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19112 {
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 {
19119 resultobj = wxPyMake_wxObject(result, 0);
19120 }
19121 return resultobj;
19122 fail:
19123 return NULL;
19124 }
19125
19126
19127 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19128 PyObject *resultobj = 0;
19129 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19130 int result;
19131 void *argp1 = 0 ;
19132 int res1 = 0 ;
19133 PyObject *swig_obj[1] ;
19134
19135 if (!args) SWIG_fail;
19136 swig_obj[0] = args;
19137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19138 if (!SWIG_IsOK(res1)) {
19139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19140 }
19141 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19145 wxPyEndAllowThreads(__tstate);
19146 if (PyErr_Occurred()) SWIG_fail;
19147 }
19148 resultobj = SWIG_From_int(static_cast< int >(result));
19149 return resultobj;
19150 fail:
19151 return NULL;
19152 }
19153
19154
19155 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19156 PyObject *resultobj = 0;
19157 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19158 size_t arg2 ;
19159 wxString *arg3 = 0 ;
19160 bool result;
19161 void *argp1 = 0 ;
19162 int res1 = 0 ;
19163 size_t val2 ;
19164 int ecode2 = 0 ;
19165 bool temp3 = false ;
19166 PyObject * obj0 = 0 ;
19167 PyObject * obj1 = 0 ;
19168 PyObject * obj2 = 0 ;
19169 char * kwnames[] = {
19170 (char *) "self",(char *) "n",(char *) "strText", NULL
19171 };
19172
19173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19175 if (!SWIG_IsOK(res1)) {
19176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19177 }
19178 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19179 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19180 if (!SWIG_IsOK(ecode2)) {
19181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19182 }
19183 arg2 = static_cast< size_t >(val2);
19184 {
19185 arg3 = wxString_in_helper(obj2);
19186 if (arg3 == NULL) SWIG_fail;
19187 temp3 = true;
19188 }
19189 {
19190 PyThreadState* __tstate = wxPyBeginAllowThreads();
19191 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19192 wxPyEndAllowThreads(__tstate);
19193 if (PyErr_Occurred()) SWIG_fail;
19194 }
19195 {
19196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19197 }
19198 {
19199 if (temp3)
19200 delete arg3;
19201 }
19202 return resultobj;
19203 fail:
19204 {
19205 if (temp3)
19206 delete arg3;
19207 }
19208 return NULL;
19209 }
19210
19211
19212 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19213 PyObject *resultobj = 0;
19214 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19215 size_t arg2 ;
19216 wxString result;
19217 void *argp1 = 0 ;
19218 int res1 = 0 ;
19219 size_t val2 ;
19220 int ecode2 = 0 ;
19221 PyObject * obj0 = 0 ;
19222 PyObject * obj1 = 0 ;
19223 char * kwnames[] = {
19224 (char *) "self",(char *) "n", NULL
19225 };
19226
19227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19231 }
19232 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19233 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19234 if (!SWIG_IsOK(ecode2)) {
19235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19236 }
19237 arg2 = static_cast< size_t >(val2);
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 {
19245 #if wxUSE_UNICODE
19246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19247 #else
19248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19249 #endif
19250 }
19251 return resultobj;
19252 fail:
19253 return NULL;
19254 }
19255
19256
19257 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj = 0;
19259 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19260 wxImageList *arg2 = (wxImageList *) 0 ;
19261 void *argp1 = 0 ;
19262 int res1 = 0 ;
19263 void *argp2 = 0 ;
19264 int res2 = 0 ;
19265 PyObject * obj0 = 0 ;
19266 PyObject * obj1 = 0 ;
19267 char * kwnames[] = {
19268 (char *) "self",(char *) "imageList", NULL
19269 };
19270
19271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19273 if (!SWIG_IsOK(res1)) {
19274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19275 }
19276 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19277 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19278 if (!SWIG_IsOK(res2)) {
19279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19280 }
19281 arg2 = reinterpret_cast< wxImageList * >(argp2);
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 (arg1)->SetImageList(arg2);
19285 wxPyEndAllowThreads(__tstate);
19286 if (PyErr_Occurred()) SWIG_fail;
19287 }
19288 resultobj = SWIG_Py_Void();
19289 return resultobj;
19290 fail:
19291 return NULL;
19292 }
19293
19294
19295 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19296 PyObject *resultobj = 0;
19297 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19298 wxImageList *arg2 = (wxImageList *) 0 ;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 int res2 = 0 ;
19302 PyObject * obj0 = 0 ;
19303 PyObject * obj1 = 0 ;
19304 char * kwnames[] = {
19305 (char *) "self",(char *) "imageList", NULL
19306 };
19307
19308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19310 if (!SWIG_IsOK(res1)) {
19311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19312 }
19313 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19314 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19315 if (!SWIG_IsOK(res2)) {
19316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19317 }
19318 {
19319 PyThreadState* __tstate = wxPyBeginAllowThreads();
19320 (arg1)->AssignImageList(arg2);
19321 wxPyEndAllowThreads(__tstate);
19322 if (PyErr_Occurred()) SWIG_fail;
19323 }
19324 resultobj = SWIG_Py_Void();
19325 return resultobj;
19326 fail:
19327 return NULL;
19328 }
19329
19330
19331 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19332 PyObject *resultobj = 0;
19333 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19334 wxImageList *result = 0 ;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 PyObject *swig_obj[1] ;
19338
19339 if (!args) SWIG_fail;
19340 swig_obj[0] = args;
19341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19342 if (!SWIG_IsOK(res1)) {
19343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19344 }
19345 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19346 {
19347 PyThreadState* __tstate = wxPyBeginAllowThreads();
19348 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19349 wxPyEndAllowThreads(__tstate);
19350 if (PyErr_Occurred()) SWIG_fail;
19351 }
19352 {
19353 resultobj = wxPyMake_wxObject(result, (bool)0);
19354 }
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj = 0;
19363 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19364 size_t arg2 ;
19365 int result;
19366 void *argp1 = 0 ;
19367 int res1 = 0 ;
19368 size_t val2 ;
19369 int ecode2 = 0 ;
19370 PyObject * obj0 = 0 ;
19371 PyObject * obj1 = 0 ;
19372 char * kwnames[] = {
19373 (char *) "self",(char *) "n", NULL
19374 };
19375
19376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19378 if (!SWIG_IsOK(res1)) {
19379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19380 }
19381 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19382 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19383 if (!SWIG_IsOK(ecode2)) {
19384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19385 }
19386 arg2 = static_cast< size_t >(val2);
19387 {
19388 PyThreadState* __tstate = wxPyBeginAllowThreads();
19389 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 resultobj = SWIG_From_int(static_cast< int >(result));
19394 return resultobj;
19395 fail:
19396 return NULL;
19397 }
19398
19399
19400 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19401 PyObject *resultobj = 0;
19402 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19403 size_t arg2 ;
19404 int arg3 ;
19405 bool result;
19406 void *argp1 = 0 ;
19407 int res1 = 0 ;
19408 size_t val2 ;
19409 int ecode2 = 0 ;
19410 int val3 ;
19411 int ecode3 = 0 ;
19412 PyObject * obj0 = 0 ;
19413 PyObject * obj1 = 0 ;
19414 PyObject * obj2 = 0 ;
19415 char * kwnames[] = {
19416 (char *) "self",(char *) "n",(char *) "imageId", NULL
19417 };
19418
19419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19421 if (!SWIG_IsOK(res1)) {
19422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19423 }
19424 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19425 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19426 if (!SWIG_IsOK(ecode2)) {
19427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19428 }
19429 arg2 = static_cast< size_t >(val2);
19430 ecode3 = SWIG_AsVal_int(obj2, &val3);
19431 if (!SWIG_IsOK(ecode3)) {
19432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19433 }
19434 arg3 = static_cast< int >(val3);
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19438 wxPyEndAllowThreads(__tstate);
19439 if (PyErr_Occurred()) SWIG_fail;
19440 }
19441 {
19442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19443 }
19444 return resultobj;
19445 fail:
19446 return NULL;
19447 }
19448
19449
19450 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19451 PyObject *resultobj = 0;
19452 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19453 wxSize *arg2 = 0 ;
19454 void *argp1 = 0 ;
19455 int res1 = 0 ;
19456 wxSize temp2 ;
19457 PyObject * obj0 = 0 ;
19458 PyObject * obj1 = 0 ;
19459 char * kwnames[] = {
19460 (char *) "self",(char *) "size", NULL
19461 };
19462
19463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19465 if (!SWIG_IsOK(res1)) {
19466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19467 }
19468 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19469 {
19470 arg2 = &temp2;
19471 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19472 }
19473 {
19474 PyThreadState* __tstate = wxPyBeginAllowThreads();
19475 (arg1)->SetPageSize((wxSize const &)*arg2);
19476 wxPyEndAllowThreads(__tstate);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 resultobj = SWIG_Py_Void();
19480 return resultobj;
19481 fail:
19482 return NULL;
19483 }
19484
19485
19486 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19487 PyObject *resultobj = 0;
19488 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19489 wxSize *arg2 = 0 ;
19490 wxSize result;
19491 void *argp1 = 0 ;
19492 int res1 = 0 ;
19493 wxSize temp2 ;
19494 PyObject * obj0 = 0 ;
19495 PyObject * obj1 = 0 ;
19496 char * kwnames[] = {
19497 (char *) "self",(char *) "sizePage", NULL
19498 };
19499
19500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) 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_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19504 }
19505 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19506 {
19507 arg2 = &temp2;
19508 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19509 }
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19513 wxPyEndAllowThreads(__tstate);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 }
19516 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19517 return resultobj;
19518 fail:
19519 return NULL;
19520 }
19521
19522
19523 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19524 PyObject *resultobj = 0;
19525 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19526 unsigned int result;
19527 void *argp1 = 0 ;
19528 int res1 = 0 ;
19529 PyObject *swig_obj[1] ;
19530
19531 if (!args) SWIG_fail;
19532 swig_obj[0] = args;
19533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19534 if (!SWIG_IsOK(res1)) {
19535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19536 }
19537 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19541 wxPyEndAllowThreads(__tstate);
19542 if (PyErr_Occurred()) SWIG_fail;
19543 }
19544 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19545 return resultobj;
19546 fail:
19547 return NULL;
19548 }
19549
19550
19551 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19552 PyObject *resultobj = 0;
19553 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19554 unsigned int arg2 ;
19555 void *argp1 = 0 ;
19556 int res1 = 0 ;
19557 unsigned int val2 ;
19558 int ecode2 = 0 ;
19559 PyObject * obj0 = 0 ;
19560 PyObject * obj1 = 0 ;
19561 char * kwnames[] = {
19562 (char *) "self",(char *) "internalBorder", NULL
19563 };
19564
19565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19567 if (!SWIG_IsOK(res1)) {
19568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19569 }
19570 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19571 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19572 if (!SWIG_IsOK(ecode2)) {
19573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19574 }
19575 arg2 = static_cast< unsigned int >(val2);
19576 {
19577 PyThreadState* __tstate = wxPyBeginAllowThreads();
19578 (arg1)->SetInternalBorder(arg2);
19579 wxPyEndAllowThreads(__tstate);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 resultobj = SWIG_Py_Void();
19583 return resultobj;
19584 fail:
19585 return NULL;
19586 }
19587
19588
19589 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19590 PyObject *resultobj = 0;
19591 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19592 bool result;
19593 void *argp1 = 0 ;
19594 int res1 = 0 ;
19595 PyObject *swig_obj[1] ;
19596
19597 if (!args) SWIG_fail;
19598 swig_obj[0] = args;
19599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19600 if (!SWIG_IsOK(res1)) {
19601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19602 }
19603 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19604 {
19605 PyThreadState* __tstate = wxPyBeginAllowThreads();
19606 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 {
19611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19612 }
19613 return resultobj;
19614 fail:
19615 return NULL;
19616 }
19617
19618
19619 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19620 PyObject *resultobj = 0;
19621 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19622 int arg2 ;
19623 void *argp1 = 0 ;
19624 int res1 = 0 ;
19625 int val2 ;
19626 int ecode2 = 0 ;
19627 PyObject * obj0 = 0 ;
19628 PyObject * obj1 = 0 ;
19629 char * kwnames[] = {
19630 (char *) "self",(char *) "margin", NULL
19631 };
19632
19633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19635 if (!SWIG_IsOK(res1)) {
19636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19637 }
19638 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19639 ecode2 = SWIG_AsVal_int(obj1, &val2);
19640 if (!SWIG_IsOK(ecode2)) {
19641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19642 }
19643 arg2 = static_cast< int >(val2);
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 (arg1)->SetControlMargin(arg2);
19647 wxPyEndAllowThreads(__tstate);
19648 if (PyErr_Occurred()) SWIG_fail;
19649 }
19650 resultobj = SWIG_Py_Void();
19651 return resultobj;
19652 fail:
19653 return NULL;
19654 }
19655
19656
19657 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19658 PyObject *resultobj = 0;
19659 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19660 int result;
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 PyObject *swig_obj[1] ;
19664
19665 if (!args) SWIG_fail;
19666 swig_obj[0] = args;
19667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19668 if (!SWIG_IsOK(res1)) {
19669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19670 }
19671 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
19678 resultobj = SWIG_From_int(static_cast< int >(result));
19679 return resultobj;
19680 fail:
19681 return NULL;
19682 }
19683
19684
19685 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19686 PyObject *resultobj = 0;
19687 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19688 bool arg2 ;
19689 void *argp1 = 0 ;
19690 int res1 = 0 ;
19691 bool val2 ;
19692 int ecode2 = 0 ;
19693 PyObject * obj0 = 0 ;
19694 PyObject * obj1 = 0 ;
19695 char * kwnames[] = {
19696 (char *) "self",(char *) "fit", NULL
19697 };
19698
19699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19703 }
19704 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19705 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19706 if (!SWIG_IsOK(ecode2)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19708 }
19709 arg2 = static_cast< bool >(val2);
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 (arg1)->SetFitToCurrentPage(arg2);
19713 wxPyEndAllowThreads(__tstate);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 resultobj = SWIG_Py_Void();
19717 return resultobj;
19718 fail:
19719 return NULL;
19720 }
19721
19722
19723 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19724 PyObject *resultobj = 0;
19725 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19726 bool result;
19727 void *argp1 = 0 ;
19728 int res1 = 0 ;
19729 PyObject *swig_obj[1] ;
19730
19731 if (!args) SWIG_fail;
19732 swig_obj[0] = args;
19733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19734 if (!SWIG_IsOK(res1)) {
19735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19736 }
19737 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 {
19745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19746 }
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19754 PyObject *resultobj = 0;
19755 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19756 wxSizer *result = 0 ;
19757 void *argp1 = 0 ;
19758 int res1 = 0 ;
19759 PyObject *swig_obj[1] ;
19760
19761 if (!args) SWIG_fail;
19762 swig_obj[0] = args;
19763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19764 if (!SWIG_IsOK(res1)) {
19765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19766 }
19767 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19768 {
19769 PyThreadState* __tstate = wxPyBeginAllowThreads();
19770 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19771 wxPyEndAllowThreads(__tstate);
19772 if (PyErr_Occurred()) SWIG_fail;
19773 }
19774 {
19775 resultobj = wxPyMake_wxObject(result, (bool)0);
19776 }
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj = 0;
19785 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19786 size_t arg2 ;
19787 bool result;
19788 void *argp1 = 0 ;
19789 int res1 = 0 ;
19790 size_t val2 ;
19791 int ecode2 = 0 ;
19792 PyObject * obj0 = 0 ;
19793 PyObject * obj1 = 0 ;
19794 char * kwnames[] = {
19795 (char *) "self",(char *) "n", NULL
19796 };
19797
19798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19800 if (!SWIG_IsOK(res1)) {
19801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19802 }
19803 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19804 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19805 if (!SWIG_IsOK(ecode2)) {
19806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19807 }
19808 arg2 = static_cast< size_t >(val2);
19809 {
19810 PyThreadState* __tstate = wxPyBeginAllowThreads();
19811 result = (bool)(arg1)->DeletePage(arg2);
19812 wxPyEndAllowThreads(__tstate);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 }
19815 {
19816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19817 }
19818 return resultobj;
19819 fail:
19820 return NULL;
19821 }
19822
19823
19824 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19825 PyObject *resultobj = 0;
19826 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19827 size_t arg2 ;
19828 bool result;
19829 void *argp1 = 0 ;
19830 int res1 = 0 ;
19831 size_t val2 ;
19832 int ecode2 = 0 ;
19833 PyObject * obj0 = 0 ;
19834 PyObject * obj1 = 0 ;
19835 char * kwnames[] = {
19836 (char *) "self",(char *) "n", NULL
19837 };
19838
19839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19841 if (!SWIG_IsOK(res1)) {
19842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19843 }
19844 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19845 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19846 if (!SWIG_IsOK(ecode2)) {
19847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19848 }
19849 arg2 = static_cast< size_t >(val2);
19850 {
19851 PyThreadState* __tstate = wxPyBeginAllowThreads();
19852 result = (bool)(arg1)->RemovePage(arg2);
19853 wxPyEndAllowThreads(__tstate);
19854 if (PyErr_Occurred()) SWIG_fail;
19855 }
19856 {
19857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19858 }
19859 return resultobj;
19860 fail:
19861 return NULL;
19862 }
19863
19864
19865 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19866 PyObject *resultobj = 0;
19867 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19868 bool result;
19869 void *argp1 = 0 ;
19870 int res1 = 0 ;
19871 PyObject *swig_obj[1] ;
19872
19873 if (!args) SWIG_fail;
19874 swig_obj[0] = args;
19875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19876 if (!SWIG_IsOK(res1)) {
19877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19878 }
19879 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = (bool)(arg1)->DeleteAllPages();
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 {
19887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19888 }
19889 return resultobj;
19890 fail:
19891 return NULL;
19892 }
19893
19894
19895 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19896 PyObject *resultobj = 0;
19897 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19898 wxWindow *arg2 = (wxWindow *) 0 ;
19899 wxString *arg3 = 0 ;
19900 bool arg4 = (bool) false ;
19901 int arg5 = (int) -1 ;
19902 bool result;
19903 void *argp1 = 0 ;
19904 int res1 = 0 ;
19905 void *argp2 = 0 ;
19906 int res2 = 0 ;
19907 bool temp3 = false ;
19908 bool val4 ;
19909 int ecode4 = 0 ;
19910 int val5 ;
19911 int ecode5 = 0 ;
19912 PyObject * obj0 = 0 ;
19913 PyObject * obj1 = 0 ;
19914 PyObject * obj2 = 0 ;
19915 PyObject * obj3 = 0 ;
19916 PyObject * obj4 = 0 ;
19917 char * kwnames[] = {
19918 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19919 };
19920
19921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19923 if (!SWIG_IsOK(res1)) {
19924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19925 }
19926 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19928 if (!SWIG_IsOK(res2)) {
19929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19930 }
19931 arg2 = reinterpret_cast< wxWindow * >(argp2);
19932 {
19933 arg3 = wxString_in_helper(obj2);
19934 if (arg3 == NULL) SWIG_fail;
19935 temp3 = true;
19936 }
19937 if (obj3) {
19938 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19939 if (!SWIG_IsOK(ecode4)) {
19940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19941 }
19942 arg4 = static_cast< bool >(val4);
19943 }
19944 if (obj4) {
19945 ecode5 = SWIG_AsVal_int(obj4, &val5);
19946 if (!SWIG_IsOK(ecode5)) {
19947 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19948 }
19949 arg5 = static_cast< int >(val5);
19950 }
19951 {
19952 PyThreadState* __tstate = wxPyBeginAllowThreads();
19953 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19954 wxPyEndAllowThreads(__tstate);
19955 if (PyErr_Occurred()) SWIG_fail;
19956 }
19957 {
19958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19959 }
19960 {
19961 if (temp3)
19962 delete arg3;
19963 }
19964 return resultobj;
19965 fail:
19966 {
19967 if (temp3)
19968 delete arg3;
19969 }
19970 return NULL;
19971 }
19972
19973
19974 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19975 PyObject *resultobj = 0;
19976 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19977 size_t arg2 ;
19978 wxWindow *arg3 = (wxWindow *) 0 ;
19979 wxString *arg4 = 0 ;
19980 bool arg5 = (bool) false ;
19981 int arg6 = (int) -1 ;
19982 bool result;
19983 void *argp1 = 0 ;
19984 int res1 = 0 ;
19985 size_t val2 ;
19986 int ecode2 = 0 ;
19987 void *argp3 = 0 ;
19988 int res3 = 0 ;
19989 bool temp4 = false ;
19990 bool val5 ;
19991 int ecode5 = 0 ;
19992 int val6 ;
19993 int ecode6 = 0 ;
19994 PyObject * obj0 = 0 ;
19995 PyObject * obj1 = 0 ;
19996 PyObject * obj2 = 0 ;
19997 PyObject * obj3 = 0 ;
19998 PyObject * obj4 = 0 ;
19999 PyObject * obj5 = 0 ;
20000 char * kwnames[] = {
20001 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20002 };
20003
20004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20006 if (!SWIG_IsOK(res1)) {
20007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20008 }
20009 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20010 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20011 if (!SWIG_IsOK(ecode2)) {
20012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20013 }
20014 arg2 = static_cast< size_t >(val2);
20015 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20016 if (!SWIG_IsOK(res3)) {
20017 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20018 }
20019 arg3 = reinterpret_cast< wxWindow * >(argp3);
20020 {
20021 arg4 = wxString_in_helper(obj3);
20022 if (arg4 == NULL) SWIG_fail;
20023 temp4 = true;
20024 }
20025 if (obj4) {
20026 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20027 if (!SWIG_IsOK(ecode5)) {
20028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20029 }
20030 arg5 = static_cast< bool >(val5);
20031 }
20032 if (obj5) {
20033 ecode6 = SWIG_AsVal_int(obj5, &val6);
20034 if (!SWIG_IsOK(ecode6)) {
20035 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20036 }
20037 arg6 = static_cast< int >(val6);
20038 }
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20042 wxPyEndAllowThreads(__tstate);
20043 if (PyErr_Occurred()) SWIG_fail;
20044 }
20045 {
20046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20047 }
20048 {
20049 if (temp4)
20050 delete arg4;
20051 }
20052 return resultobj;
20053 fail:
20054 {
20055 if (temp4)
20056 delete arg4;
20057 }
20058 return NULL;
20059 }
20060
20061
20062 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20065 size_t arg2 ;
20066 int result;
20067 void *argp1 = 0 ;
20068 int res1 = 0 ;
20069 size_t val2 ;
20070 int ecode2 = 0 ;
20071 PyObject * obj0 = 0 ;
20072 PyObject * obj1 = 0 ;
20073 char * kwnames[] = {
20074 (char *) "self",(char *) "n", NULL
20075 };
20076
20077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20079 if (!SWIG_IsOK(res1)) {
20080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20081 }
20082 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20083 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20084 if (!SWIG_IsOK(ecode2)) {
20085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20086 }
20087 arg2 = static_cast< size_t >(val2);
20088 {
20089 PyThreadState* __tstate = wxPyBeginAllowThreads();
20090 result = (int)(arg1)->SetSelection(arg2);
20091 wxPyEndAllowThreads(__tstate);
20092 if (PyErr_Occurred()) SWIG_fail;
20093 }
20094 resultobj = SWIG_From_int(static_cast< int >(result));
20095 return resultobj;
20096 fail:
20097 return NULL;
20098 }
20099
20100
20101 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20102 PyObject *resultobj = 0;
20103 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20104 bool arg2 = (bool) true ;
20105 void *argp1 = 0 ;
20106 int res1 = 0 ;
20107 bool val2 ;
20108 int ecode2 = 0 ;
20109 PyObject * obj0 = 0 ;
20110 PyObject * obj1 = 0 ;
20111 char * kwnames[] = {
20112 (char *) "self",(char *) "forward", NULL
20113 };
20114
20115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20117 if (!SWIG_IsOK(res1)) {
20118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20119 }
20120 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20121 if (obj1) {
20122 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20123 if (!SWIG_IsOK(ecode2)) {
20124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20125 }
20126 arg2 = static_cast< bool >(val2);
20127 }
20128 {
20129 PyThreadState* __tstate = wxPyBeginAllowThreads();
20130 (arg1)->AdvanceSelection(arg2);
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 resultobj = SWIG_Py_Void();
20135 return resultobj;
20136 fail:
20137 return NULL;
20138 }
20139
20140
20141 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj = 0;
20143 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20144 wxPoint *arg2 = 0 ;
20145 long *arg3 = (long *) 0 ;
20146 int result;
20147 void *argp1 = 0 ;
20148 int res1 = 0 ;
20149 wxPoint temp2 ;
20150 long temp3 ;
20151 int res3 = SWIG_TMPOBJ ;
20152 PyObject * obj0 = 0 ;
20153 PyObject * obj1 = 0 ;
20154 char * kwnames[] = {
20155 (char *) "self",(char *) "pt", NULL
20156 };
20157
20158 arg3 = &temp3;
20159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20161 if (!SWIG_IsOK(res1)) {
20162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20163 }
20164 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20165 {
20166 arg2 = &temp2;
20167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20168 }
20169 {
20170 PyThreadState* __tstate = wxPyBeginAllowThreads();
20171 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20172 wxPyEndAllowThreads(__tstate);
20173 if (PyErr_Occurred()) SWIG_fail;
20174 }
20175 resultobj = SWIG_From_int(static_cast< int >(result));
20176 if (SWIG_IsTmpObj(res3)) {
20177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20178 } else {
20179 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20181 }
20182 return resultobj;
20183 fail:
20184 return NULL;
20185 }
20186
20187
20188 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20189 PyObject *resultobj = 0;
20190 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20191 SwigValueWrapper<wxVisualAttributes > result;
20192 int val1 ;
20193 int ecode1 = 0 ;
20194 PyObject * obj0 = 0 ;
20195 char * kwnames[] = {
20196 (char *) "variant", NULL
20197 };
20198
20199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20200 if (obj0) {
20201 ecode1 = SWIG_AsVal_int(obj0, &val1);
20202 if (!SWIG_IsOK(ecode1)) {
20203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20204 }
20205 arg1 = static_cast< wxWindowVariant >(val1);
20206 }
20207 {
20208 if (!wxPyCheckForApp()) SWIG_fail;
20209 PyThreadState* __tstate = wxPyBeginAllowThreads();
20210 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20211 wxPyEndAllowThreads(__tstate);
20212 if (PyErr_Occurred()) SWIG_fail;
20213 }
20214 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20215 return resultobj;
20216 fail:
20217 return NULL;
20218 }
20219
20220
20221 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20222 PyObject *obj;
20223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20224 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20225 return SWIG_Py_Void();
20226 }
20227
20228 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20229 PyObject *resultobj = 0;
20230 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20231 int arg2 = (int) 0 ;
20232 int arg3 = (int) -1 ;
20233 int arg4 = (int) -1 ;
20234 wxBookCtrlBaseEvent *result = 0 ;
20235 int val1 ;
20236 int ecode1 = 0 ;
20237 int val2 ;
20238 int ecode2 = 0 ;
20239 int val3 ;
20240 int ecode3 = 0 ;
20241 int val4 ;
20242 int ecode4 = 0 ;
20243 PyObject * obj0 = 0 ;
20244 PyObject * obj1 = 0 ;
20245 PyObject * obj2 = 0 ;
20246 PyObject * obj3 = 0 ;
20247 char * kwnames[] = {
20248 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20249 };
20250
20251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20252 if (obj0) {
20253 ecode1 = SWIG_AsVal_int(obj0, &val1);
20254 if (!SWIG_IsOK(ecode1)) {
20255 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20256 }
20257 arg1 = static_cast< wxEventType >(val1);
20258 }
20259 if (obj1) {
20260 ecode2 = SWIG_AsVal_int(obj1, &val2);
20261 if (!SWIG_IsOK(ecode2)) {
20262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20263 }
20264 arg2 = static_cast< int >(val2);
20265 }
20266 if (obj2) {
20267 ecode3 = SWIG_AsVal_int(obj2, &val3);
20268 if (!SWIG_IsOK(ecode3)) {
20269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20270 }
20271 arg3 = static_cast< int >(val3);
20272 }
20273 if (obj3) {
20274 ecode4 = SWIG_AsVal_int(obj3, &val4);
20275 if (!SWIG_IsOK(ecode4)) {
20276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20277 }
20278 arg4 = static_cast< int >(val4);
20279 }
20280 {
20281 PyThreadState* __tstate = wxPyBeginAllowThreads();
20282 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20287 return resultobj;
20288 fail:
20289 return NULL;
20290 }
20291
20292
20293 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20294 PyObject *resultobj = 0;
20295 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20296 int result;
20297 void *argp1 = 0 ;
20298 int res1 = 0 ;
20299 PyObject *swig_obj[1] ;
20300
20301 if (!args) SWIG_fail;
20302 swig_obj[0] = args;
20303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20304 if (!SWIG_IsOK(res1)) {
20305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20306 }
20307 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20308 {
20309 PyThreadState* __tstate = wxPyBeginAllowThreads();
20310 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20311 wxPyEndAllowThreads(__tstate);
20312 if (PyErr_Occurred()) SWIG_fail;
20313 }
20314 resultobj = SWIG_From_int(static_cast< int >(result));
20315 return resultobj;
20316 fail:
20317 return NULL;
20318 }
20319
20320
20321 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20324 int arg2 ;
20325 void *argp1 = 0 ;
20326 int res1 = 0 ;
20327 int val2 ;
20328 int ecode2 = 0 ;
20329 PyObject * obj0 = 0 ;
20330 PyObject * obj1 = 0 ;
20331 char * kwnames[] = {
20332 (char *) "self",(char *) "nSel", NULL
20333 };
20334
20335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20337 if (!SWIG_IsOK(res1)) {
20338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20339 }
20340 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20341 ecode2 = SWIG_AsVal_int(obj1, &val2);
20342 if (!SWIG_IsOK(ecode2)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20344 }
20345 arg2 = static_cast< int >(val2);
20346 {
20347 PyThreadState* __tstate = wxPyBeginAllowThreads();
20348 (arg1)->SetSelection(arg2);
20349 wxPyEndAllowThreads(__tstate);
20350 if (PyErr_Occurred()) SWIG_fail;
20351 }
20352 resultobj = SWIG_Py_Void();
20353 return resultobj;
20354 fail:
20355 return NULL;
20356 }
20357
20358
20359 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20360 PyObject *resultobj = 0;
20361 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20362 int result;
20363 void *argp1 = 0 ;
20364 int res1 = 0 ;
20365 PyObject *swig_obj[1] ;
20366
20367 if (!args) SWIG_fail;
20368 swig_obj[0] = args;
20369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20370 if (!SWIG_IsOK(res1)) {
20371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20372 }
20373 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20374 {
20375 PyThreadState* __tstate = wxPyBeginAllowThreads();
20376 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
20380 resultobj = SWIG_From_int(static_cast< int >(result));
20381 return resultobj;
20382 fail:
20383 return NULL;
20384 }
20385
20386
20387 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20388 PyObject *resultobj = 0;
20389 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20390 int arg2 ;
20391 void *argp1 = 0 ;
20392 int res1 = 0 ;
20393 int val2 ;
20394 int ecode2 = 0 ;
20395 PyObject * obj0 = 0 ;
20396 PyObject * obj1 = 0 ;
20397 char * kwnames[] = {
20398 (char *) "self",(char *) "nOldSel", NULL
20399 };
20400
20401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20403 if (!SWIG_IsOK(res1)) {
20404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20405 }
20406 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20407 ecode2 = SWIG_AsVal_int(obj1, &val2);
20408 if (!SWIG_IsOK(ecode2)) {
20409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20410 }
20411 arg2 = static_cast< int >(val2);
20412 {
20413 PyThreadState* __tstate = wxPyBeginAllowThreads();
20414 (arg1)->SetOldSelection(arg2);
20415 wxPyEndAllowThreads(__tstate);
20416 if (PyErr_Occurred()) SWIG_fail;
20417 }
20418 resultobj = SWIG_Py_Void();
20419 return resultobj;
20420 fail:
20421 return NULL;
20422 }
20423
20424
20425 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20426 PyObject *obj;
20427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20428 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20429 return SWIG_Py_Void();
20430 }
20431
20432 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20433 return SWIG_Python_InitShadowInstance(args);
20434 }
20435
20436 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20437 PyObject *resultobj = 0;
20438 wxWindow *arg1 = (wxWindow *) 0 ;
20439 int arg2 = (int) -1 ;
20440 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20441 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20442 wxSize const &arg4_defvalue = wxDefaultSize ;
20443 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20444 long arg5 = (long) 0 ;
20445 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20446 wxString *arg6 = (wxString *) &arg6_defvalue ;
20447 wxNotebook *result = 0 ;
20448 void *argp1 = 0 ;
20449 int res1 = 0 ;
20450 int val2 ;
20451 int ecode2 = 0 ;
20452 wxPoint temp3 ;
20453 wxSize temp4 ;
20454 long val5 ;
20455 int ecode5 = 0 ;
20456 bool temp6 = false ;
20457 PyObject * obj0 = 0 ;
20458 PyObject * obj1 = 0 ;
20459 PyObject * obj2 = 0 ;
20460 PyObject * obj3 = 0 ;
20461 PyObject * obj4 = 0 ;
20462 PyObject * obj5 = 0 ;
20463 char * kwnames[] = {
20464 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20465 };
20466
20467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20469 if (!SWIG_IsOK(res1)) {
20470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20471 }
20472 arg1 = reinterpret_cast< wxWindow * >(argp1);
20473 if (obj1) {
20474 ecode2 = SWIG_AsVal_int(obj1, &val2);
20475 if (!SWIG_IsOK(ecode2)) {
20476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20477 }
20478 arg2 = static_cast< int >(val2);
20479 }
20480 if (obj2) {
20481 {
20482 arg3 = &temp3;
20483 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20484 }
20485 }
20486 if (obj3) {
20487 {
20488 arg4 = &temp4;
20489 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20490 }
20491 }
20492 if (obj4) {
20493 ecode5 = SWIG_AsVal_long(obj4, &val5);
20494 if (!SWIG_IsOK(ecode5)) {
20495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20496 }
20497 arg5 = static_cast< long >(val5);
20498 }
20499 if (obj5) {
20500 {
20501 arg6 = wxString_in_helper(obj5);
20502 if (arg6 == NULL) SWIG_fail;
20503 temp6 = true;
20504 }
20505 }
20506 {
20507 if (!wxPyCheckForApp()) SWIG_fail;
20508 PyThreadState* __tstate = wxPyBeginAllowThreads();
20509 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20510 wxPyEndAllowThreads(__tstate);
20511 if (PyErr_Occurred()) SWIG_fail;
20512 }
20513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20514 {
20515 if (temp6)
20516 delete arg6;
20517 }
20518 return resultobj;
20519 fail:
20520 {
20521 if (temp6)
20522 delete arg6;
20523 }
20524 return NULL;
20525 }
20526
20527
20528 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20529 PyObject *resultobj = 0;
20530 wxNotebook *result = 0 ;
20531
20532 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20533 {
20534 if (!wxPyCheckForApp()) SWIG_fail;
20535 PyThreadState* __tstate = wxPyBeginAllowThreads();
20536 result = (wxNotebook *)new wxNotebook();
20537 wxPyEndAllowThreads(__tstate);
20538 if (PyErr_Occurred()) SWIG_fail;
20539 }
20540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20541 return resultobj;
20542 fail:
20543 return NULL;
20544 }
20545
20546
20547 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj = 0;
20549 wxNotebook *arg1 = (wxNotebook *) 0 ;
20550 wxWindow *arg2 = (wxWindow *) 0 ;
20551 int arg3 = (int) -1 ;
20552 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20553 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20554 wxSize const &arg5_defvalue = wxDefaultSize ;
20555 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20556 long arg6 = (long) 0 ;
20557 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20558 wxString *arg7 = (wxString *) &arg7_defvalue ;
20559 bool result;
20560 void *argp1 = 0 ;
20561 int res1 = 0 ;
20562 void *argp2 = 0 ;
20563 int res2 = 0 ;
20564 int val3 ;
20565 int ecode3 = 0 ;
20566 wxPoint temp4 ;
20567 wxSize temp5 ;
20568 long val6 ;
20569 int ecode6 = 0 ;
20570 bool temp7 = false ;
20571 PyObject * obj0 = 0 ;
20572 PyObject * obj1 = 0 ;
20573 PyObject * obj2 = 0 ;
20574 PyObject * obj3 = 0 ;
20575 PyObject * obj4 = 0 ;
20576 PyObject * obj5 = 0 ;
20577 PyObject * obj6 = 0 ;
20578 char * kwnames[] = {
20579 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20580 };
20581
20582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20584 if (!SWIG_IsOK(res1)) {
20585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20586 }
20587 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20589 if (!SWIG_IsOK(res2)) {
20590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20591 }
20592 arg2 = reinterpret_cast< wxWindow * >(argp2);
20593 if (obj2) {
20594 ecode3 = SWIG_AsVal_int(obj2, &val3);
20595 if (!SWIG_IsOK(ecode3)) {
20596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20597 }
20598 arg3 = static_cast< int >(val3);
20599 }
20600 if (obj3) {
20601 {
20602 arg4 = &temp4;
20603 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20604 }
20605 }
20606 if (obj4) {
20607 {
20608 arg5 = &temp5;
20609 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20610 }
20611 }
20612 if (obj5) {
20613 ecode6 = SWIG_AsVal_long(obj5, &val6);
20614 if (!SWIG_IsOK(ecode6)) {
20615 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20616 }
20617 arg6 = static_cast< long >(val6);
20618 }
20619 if (obj6) {
20620 {
20621 arg7 = wxString_in_helper(obj6);
20622 if (arg7 == NULL) SWIG_fail;
20623 temp7 = true;
20624 }
20625 }
20626 {
20627 PyThreadState* __tstate = wxPyBeginAllowThreads();
20628 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 {
20633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20634 }
20635 {
20636 if (temp7)
20637 delete arg7;
20638 }
20639 return resultobj;
20640 fail:
20641 {
20642 if (temp7)
20643 delete arg7;
20644 }
20645 return NULL;
20646 }
20647
20648
20649 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20650 PyObject *resultobj = 0;
20651 wxNotebook *arg1 = (wxNotebook *) 0 ;
20652 int result;
20653 void *argp1 = 0 ;
20654 int res1 = 0 ;
20655 PyObject *swig_obj[1] ;
20656
20657 if (!args) SWIG_fail;
20658 swig_obj[0] = args;
20659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20660 if (!SWIG_IsOK(res1)) {
20661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20662 }
20663 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20664 {
20665 PyThreadState* __tstate = wxPyBeginAllowThreads();
20666 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 resultobj = SWIG_From_int(static_cast< int >(result));
20671 return resultobj;
20672 fail:
20673 return NULL;
20674 }
20675
20676
20677 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj = 0;
20679 wxNotebook *arg1 = (wxNotebook *) 0 ;
20680 wxSize *arg2 = 0 ;
20681 void *argp1 = 0 ;
20682 int res1 = 0 ;
20683 wxSize temp2 ;
20684 PyObject * obj0 = 0 ;
20685 PyObject * obj1 = 0 ;
20686 char * kwnames[] = {
20687 (char *) "self",(char *) "padding", NULL
20688 };
20689
20690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20692 if (!SWIG_IsOK(res1)) {
20693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20694 }
20695 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20696 {
20697 arg2 = &temp2;
20698 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20699 }
20700 {
20701 PyThreadState* __tstate = wxPyBeginAllowThreads();
20702 (arg1)->SetPadding((wxSize const &)*arg2);
20703 wxPyEndAllowThreads(__tstate);
20704 if (PyErr_Occurred()) SWIG_fail;
20705 }
20706 resultobj = SWIG_Py_Void();
20707 return resultobj;
20708 fail:
20709 return NULL;
20710 }
20711
20712
20713 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20714 PyObject *resultobj = 0;
20715 wxNotebook *arg1 = (wxNotebook *) 0 ;
20716 wxSize *arg2 = 0 ;
20717 void *argp1 = 0 ;
20718 int res1 = 0 ;
20719 wxSize temp2 ;
20720 PyObject * obj0 = 0 ;
20721 PyObject * obj1 = 0 ;
20722 char * kwnames[] = {
20723 (char *) "self",(char *) "sz", NULL
20724 };
20725
20726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20728 if (!SWIG_IsOK(res1)) {
20729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20730 }
20731 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20732 {
20733 arg2 = &temp2;
20734 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20735 }
20736 {
20737 PyThreadState* __tstate = wxPyBeginAllowThreads();
20738 (arg1)->SetTabSize((wxSize const &)*arg2);
20739 wxPyEndAllowThreads(__tstate);
20740 if (PyErr_Occurred()) SWIG_fail;
20741 }
20742 resultobj = SWIG_Py_Void();
20743 return resultobj;
20744 fail:
20745 return NULL;
20746 }
20747
20748
20749 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20750 PyObject *resultobj = 0;
20751 wxNotebook *arg1 = (wxNotebook *) 0 ;
20752 wxColour result;
20753 void *argp1 = 0 ;
20754 int res1 = 0 ;
20755 PyObject *swig_obj[1] ;
20756
20757 if (!args) SWIG_fail;
20758 swig_obj[0] = args;
20759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20760 if (!SWIG_IsOK(res1)) {
20761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20762 }
20763 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20764 {
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20771 return resultobj;
20772 fail:
20773 return NULL;
20774 }
20775
20776
20777 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20778 PyObject *resultobj = 0;
20779 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20780 SwigValueWrapper<wxVisualAttributes > result;
20781 int val1 ;
20782 int ecode1 = 0 ;
20783 PyObject * obj0 = 0 ;
20784 char * kwnames[] = {
20785 (char *) "variant", NULL
20786 };
20787
20788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20789 if (obj0) {
20790 ecode1 = SWIG_AsVal_int(obj0, &val1);
20791 if (!SWIG_IsOK(ecode1)) {
20792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20793 }
20794 arg1 = static_cast< wxWindowVariant >(val1);
20795 }
20796 {
20797 if (!wxPyCheckForApp()) SWIG_fail;
20798 PyThreadState* __tstate = wxPyBeginAllowThreads();
20799 result = wxNotebook::GetClassDefaultAttributes(arg1);
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20804 return resultobj;
20805 fail:
20806 return NULL;
20807 }
20808
20809
20810 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20811 PyObject *obj;
20812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20813 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20814 return SWIG_Py_Void();
20815 }
20816
20817 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20818 return SWIG_Python_InitShadowInstance(args);
20819 }
20820
20821 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20822 PyObject *resultobj = 0;
20823 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20824 int arg2 = (int) 0 ;
20825 int arg3 = (int) -1 ;
20826 int arg4 = (int) -1 ;
20827 wxNotebookEvent *result = 0 ;
20828 int val1 ;
20829 int ecode1 = 0 ;
20830 int val2 ;
20831 int ecode2 = 0 ;
20832 int val3 ;
20833 int ecode3 = 0 ;
20834 int val4 ;
20835 int ecode4 = 0 ;
20836 PyObject * obj0 = 0 ;
20837 PyObject * obj1 = 0 ;
20838 PyObject * obj2 = 0 ;
20839 PyObject * obj3 = 0 ;
20840 char * kwnames[] = {
20841 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20842 };
20843
20844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20845 if (obj0) {
20846 ecode1 = SWIG_AsVal_int(obj0, &val1);
20847 if (!SWIG_IsOK(ecode1)) {
20848 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20849 }
20850 arg1 = static_cast< wxEventType >(val1);
20851 }
20852 if (obj1) {
20853 ecode2 = SWIG_AsVal_int(obj1, &val2);
20854 if (!SWIG_IsOK(ecode2)) {
20855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20856 }
20857 arg2 = static_cast< int >(val2);
20858 }
20859 if (obj2) {
20860 ecode3 = SWIG_AsVal_int(obj2, &val3);
20861 if (!SWIG_IsOK(ecode3)) {
20862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20863 }
20864 arg3 = static_cast< int >(val3);
20865 }
20866 if (obj3) {
20867 ecode4 = SWIG_AsVal_int(obj3, &val4);
20868 if (!SWIG_IsOK(ecode4)) {
20869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20870 }
20871 arg4 = static_cast< int >(val4);
20872 }
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20880 return resultobj;
20881 fail:
20882 return NULL;
20883 }
20884
20885
20886 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20887 PyObject *obj;
20888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20889 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20890 return SWIG_Py_Void();
20891 }
20892
20893 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20894 return SWIG_Python_InitShadowInstance(args);
20895 }
20896
20897 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20898 PyObject *resultobj = 0;
20899 wxWindow *arg1 = (wxWindow *) 0 ;
20900 int arg2 = (int) -1 ;
20901 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20902 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20903 wxSize const &arg4_defvalue = wxDefaultSize ;
20904 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20905 long arg5 = (long) 0 ;
20906 wxString const &arg6_defvalue = wxPyEmptyString ;
20907 wxString *arg6 = (wxString *) &arg6_defvalue ;
20908 wxListbook *result = 0 ;
20909 void *argp1 = 0 ;
20910 int res1 = 0 ;
20911 int val2 ;
20912 int ecode2 = 0 ;
20913 wxPoint temp3 ;
20914 wxSize temp4 ;
20915 long val5 ;
20916 int ecode5 = 0 ;
20917 bool temp6 = false ;
20918 PyObject * obj0 = 0 ;
20919 PyObject * obj1 = 0 ;
20920 PyObject * obj2 = 0 ;
20921 PyObject * obj3 = 0 ;
20922 PyObject * obj4 = 0 ;
20923 PyObject * obj5 = 0 ;
20924 char * kwnames[] = {
20925 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20926 };
20927
20928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20930 if (!SWIG_IsOK(res1)) {
20931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20932 }
20933 arg1 = reinterpret_cast< wxWindow * >(argp1);
20934 if (obj1) {
20935 ecode2 = SWIG_AsVal_int(obj1, &val2);
20936 if (!SWIG_IsOK(ecode2)) {
20937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20938 }
20939 arg2 = static_cast< int >(val2);
20940 }
20941 if (obj2) {
20942 {
20943 arg3 = &temp3;
20944 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20945 }
20946 }
20947 if (obj3) {
20948 {
20949 arg4 = &temp4;
20950 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20951 }
20952 }
20953 if (obj4) {
20954 ecode5 = SWIG_AsVal_long(obj4, &val5);
20955 if (!SWIG_IsOK(ecode5)) {
20956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20957 }
20958 arg5 = static_cast< long >(val5);
20959 }
20960 if (obj5) {
20961 {
20962 arg6 = wxString_in_helper(obj5);
20963 if (arg6 == NULL) SWIG_fail;
20964 temp6 = true;
20965 }
20966 }
20967 {
20968 if (!wxPyCheckForApp()) SWIG_fail;
20969 PyThreadState* __tstate = wxPyBeginAllowThreads();
20970 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20975 {
20976 if (temp6)
20977 delete arg6;
20978 }
20979 return resultobj;
20980 fail:
20981 {
20982 if (temp6)
20983 delete arg6;
20984 }
20985 return NULL;
20986 }
20987
20988
20989 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20990 PyObject *resultobj = 0;
20991 wxListbook *result = 0 ;
20992
20993 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20994 {
20995 if (!wxPyCheckForApp()) SWIG_fail;
20996 PyThreadState* __tstate = wxPyBeginAllowThreads();
20997 result = (wxListbook *)new wxListbook();
20998 wxPyEndAllowThreads(__tstate);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 }
21001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21002 return resultobj;
21003 fail:
21004 return NULL;
21005 }
21006
21007
21008 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21009 PyObject *resultobj = 0;
21010 wxListbook *arg1 = (wxListbook *) 0 ;
21011 wxWindow *arg2 = (wxWindow *) 0 ;
21012 int arg3 = (int) -1 ;
21013 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21014 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21015 wxSize const &arg5_defvalue = wxDefaultSize ;
21016 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21017 long arg6 = (long) 0 ;
21018 wxString const &arg7_defvalue = wxPyEmptyString ;
21019 wxString *arg7 = (wxString *) &arg7_defvalue ;
21020 bool result;
21021 void *argp1 = 0 ;
21022 int res1 = 0 ;
21023 void *argp2 = 0 ;
21024 int res2 = 0 ;
21025 int val3 ;
21026 int ecode3 = 0 ;
21027 wxPoint temp4 ;
21028 wxSize temp5 ;
21029 long val6 ;
21030 int ecode6 = 0 ;
21031 bool temp7 = false ;
21032 PyObject * obj0 = 0 ;
21033 PyObject * obj1 = 0 ;
21034 PyObject * obj2 = 0 ;
21035 PyObject * obj3 = 0 ;
21036 PyObject * obj4 = 0 ;
21037 PyObject * obj5 = 0 ;
21038 PyObject * obj6 = 0 ;
21039 char * kwnames[] = {
21040 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21041 };
21042
21043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21045 if (!SWIG_IsOK(res1)) {
21046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21047 }
21048 arg1 = reinterpret_cast< wxListbook * >(argp1);
21049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21050 if (!SWIG_IsOK(res2)) {
21051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21052 }
21053 arg2 = reinterpret_cast< wxWindow * >(argp2);
21054 if (obj2) {
21055 ecode3 = SWIG_AsVal_int(obj2, &val3);
21056 if (!SWIG_IsOK(ecode3)) {
21057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21058 }
21059 arg3 = static_cast< int >(val3);
21060 }
21061 if (obj3) {
21062 {
21063 arg4 = &temp4;
21064 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21065 }
21066 }
21067 if (obj4) {
21068 {
21069 arg5 = &temp5;
21070 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21071 }
21072 }
21073 if (obj5) {
21074 ecode6 = SWIG_AsVal_long(obj5, &val6);
21075 if (!SWIG_IsOK(ecode6)) {
21076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21077 }
21078 arg6 = static_cast< long >(val6);
21079 }
21080 if (obj6) {
21081 {
21082 arg7 = wxString_in_helper(obj6);
21083 if (arg7 == NULL) SWIG_fail;
21084 temp7 = true;
21085 }
21086 }
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 {
21094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21095 }
21096 {
21097 if (temp7)
21098 delete arg7;
21099 }
21100 return resultobj;
21101 fail:
21102 {
21103 if (temp7)
21104 delete arg7;
21105 }
21106 return NULL;
21107 }
21108
21109
21110 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21111 PyObject *resultobj = 0;
21112 wxListbook *arg1 = (wxListbook *) 0 ;
21113 wxListView *result = 0 ;
21114 void *argp1 = 0 ;
21115 int res1 = 0 ;
21116 PyObject *swig_obj[1] ;
21117
21118 if (!args) SWIG_fail;
21119 swig_obj[0] = args;
21120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21121 if (!SWIG_IsOK(res1)) {
21122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21123 }
21124 arg1 = reinterpret_cast< wxListbook * >(argp1);
21125 {
21126 PyThreadState* __tstate = wxPyBeginAllowThreads();
21127 result = (wxListView *)(arg1)->GetListView();
21128 wxPyEndAllowThreads(__tstate);
21129 if (PyErr_Occurred()) SWIG_fail;
21130 }
21131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21132 return resultobj;
21133 fail:
21134 return NULL;
21135 }
21136
21137
21138 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21139 PyObject *obj;
21140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21141 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21142 return SWIG_Py_Void();
21143 }
21144
21145 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21146 return SWIG_Python_InitShadowInstance(args);
21147 }
21148
21149 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21150 PyObject *resultobj = 0;
21151 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21152 int arg2 = (int) 0 ;
21153 int arg3 = (int) -1 ;
21154 int arg4 = (int) -1 ;
21155 wxListbookEvent *result = 0 ;
21156 int val1 ;
21157 int ecode1 = 0 ;
21158 int val2 ;
21159 int ecode2 = 0 ;
21160 int val3 ;
21161 int ecode3 = 0 ;
21162 int val4 ;
21163 int ecode4 = 0 ;
21164 PyObject * obj0 = 0 ;
21165 PyObject * obj1 = 0 ;
21166 PyObject * obj2 = 0 ;
21167 PyObject * obj3 = 0 ;
21168 char * kwnames[] = {
21169 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21170 };
21171
21172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21173 if (obj0) {
21174 ecode1 = SWIG_AsVal_int(obj0, &val1);
21175 if (!SWIG_IsOK(ecode1)) {
21176 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21177 }
21178 arg1 = static_cast< wxEventType >(val1);
21179 }
21180 if (obj1) {
21181 ecode2 = SWIG_AsVal_int(obj1, &val2);
21182 if (!SWIG_IsOK(ecode2)) {
21183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21184 }
21185 arg2 = static_cast< int >(val2);
21186 }
21187 if (obj2) {
21188 ecode3 = SWIG_AsVal_int(obj2, &val3);
21189 if (!SWIG_IsOK(ecode3)) {
21190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21191 }
21192 arg3 = static_cast< int >(val3);
21193 }
21194 if (obj3) {
21195 ecode4 = SWIG_AsVal_int(obj3, &val4);
21196 if (!SWIG_IsOK(ecode4)) {
21197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21198 }
21199 arg4 = static_cast< int >(val4);
21200 }
21201 {
21202 PyThreadState* __tstate = wxPyBeginAllowThreads();
21203 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21204 wxPyEndAllowThreads(__tstate);
21205 if (PyErr_Occurred()) SWIG_fail;
21206 }
21207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21208 return resultobj;
21209 fail:
21210 return NULL;
21211 }
21212
21213
21214 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21215 PyObject *obj;
21216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21217 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21218 return SWIG_Py_Void();
21219 }
21220
21221 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21222 return SWIG_Python_InitShadowInstance(args);
21223 }
21224
21225 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj = 0;
21227 wxWindow *arg1 = (wxWindow *) 0 ;
21228 int arg2 ;
21229 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21230 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21231 wxSize const &arg4_defvalue = wxDefaultSize ;
21232 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21233 long arg5 = (long) 0 ;
21234 wxString const &arg6_defvalue = wxPyEmptyString ;
21235 wxString *arg6 = (wxString *) &arg6_defvalue ;
21236 wxChoicebook *result = 0 ;
21237 void *argp1 = 0 ;
21238 int res1 = 0 ;
21239 int val2 ;
21240 int ecode2 = 0 ;
21241 wxPoint temp3 ;
21242 wxSize temp4 ;
21243 long val5 ;
21244 int ecode5 = 0 ;
21245 bool temp6 = false ;
21246 PyObject * obj0 = 0 ;
21247 PyObject * obj1 = 0 ;
21248 PyObject * obj2 = 0 ;
21249 PyObject * obj3 = 0 ;
21250 PyObject * obj4 = 0 ;
21251 PyObject * obj5 = 0 ;
21252 char * kwnames[] = {
21253 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21254 };
21255
21256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21258 if (!SWIG_IsOK(res1)) {
21259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21260 }
21261 arg1 = reinterpret_cast< wxWindow * >(argp1);
21262 ecode2 = SWIG_AsVal_int(obj1, &val2);
21263 if (!SWIG_IsOK(ecode2)) {
21264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21265 }
21266 arg2 = static_cast< int >(val2);
21267 if (obj2) {
21268 {
21269 arg3 = &temp3;
21270 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21271 }
21272 }
21273 if (obj3) {
21274 {
21275 arg4 = &temp4;
21276 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21277 }
21278 }
21279 if (obj4) {
21280 ecode5 = SWIG_AsVal_long(obj4, &val5);
21281 if (!SWIG_IsOK(ecode5)) {
21282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21283 }
21284 arg5 = static_cast< long >(val5);
21285 }
21286 if (obj5) {
21287 {
21288 arg6 = wxString_in_helper(obj5);
21289 if (arg6 == NULL) SWIG_fail;
21290 temp6 = true;
21291 }
21292 }
21293 {
21294 if (!wxPyCheckForApp()) SWIG_fail;
21295 PyThreadState* __tstate = wxPyBeginAllowThreads();
21296 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21297 wxPyEndAllowThreads(__tstate);
21298 if (PyErr_Occurred()) SWIG_fail;
21299 }
21300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21301 {
21302 if (temp6)
21303 delete arg6;
21304 }
21305 return resultobj;
21306 fail:
21307 {
21308 if (temp6)
21309 delete arg6;
21310 }
21311 return NULL;
21312 }
21313
21314
21315 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21316 PyObject *resultobj = 0;
21317 wxChoicebook *result = 0 ;
21318
21319 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21320 {
21321 if (!wxPyCheckForApp()) SWIG_fail;
21322 PyThreadState* __tstate = wxPyBeginAllowThreads();
21323 result = (wxChoicebook *)new wxChoicebook();
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21328 return resultobj;
21329 fail:
21330 return NULL;
21331 }
21332
21333
21334 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21335 PyObject *resultobj = 0;
21336 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21337 wxWindow *arg2 = (wxWindow *) 0 ;
21338 int arg3 ;
21339 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21340 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21341 wxSize const &arg5_defvalue = wxDefaultSize ;
21342 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21343 long arg6 = (long) 0 ;
21344 wxString const &arg7_defvalue = wxPyEmptyString ;
21345 wxString *arg7 = (wxString *) &arg7_defvalue ;
21346 bool result;
21347 void *argp1 = 0 ;
21348 int res1 = 0 ;
21349 void *argp2 = 0 ;
21350 int res2 = 0 ;
21351 int val3 ;
21352 int ecode3 = 0 ;
21353 wxPoint temp4 ;
21354 wxSize temp5 ;
21355 long val6 ;
21356 int ecode6 = 0 ;
21357 bool temp7 = false ;
21358 PyObject * obj0 = 0 ;
21359 PyObject * obj1 = 0 ;
21360 PyObject * obj2 = 0 ;
21361 PyObject * obj3 = 0 ;
21362 PyObject * obj4 = 0 ;
21363 PyObject * obj5 = 0 ;
21364 PyObject * obj6 = 0 ;
21365 char * kwnames[] = {
21366 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21367 };
21368
21369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21371 if (!SWIG_IsOK(res1)) {
21372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21373 }
21374 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21375 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21376 if (!SWIG_IsOK(res2)) {
21377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21378 }
21379 arg2 = reinterpret_cast< wxWindow * >(argp2);
21380 ecode3 = SWIG_AsVal_int(obj2, &val3);
21381 if (!SWIG_IsOK(ecode3)) {
21382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21383 }
21384 arg3 = static_cast< int >(val3);
21385 if (obj3) {
21386 {
21387 arg4 = &temp4;
21388 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21389 }
21390 }
21391 if (obj4) {
21392 {
21393 arg5 = &temp5;
21394 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21395 }
21396 }
21397 if (obj5) {
21398 ecode6 = SWIG_AsVal_long(obj5, &val6);
21399 if (!SWIG_IsOK(ecode6)) {
21400 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21401 }
21402 arg6 = static_cast< long >(val6);
21403 }
21404 if (obj6) {
21405 {
21406 arg7 = wxString_in_helper(obj6);
21407 if (arg7 == NULL) SWIG_fail;
21408 temp7 = true;
21409 }
21410 }
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 {
21418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21419 }
21420 {
21421 if (temp7)
21422 delete arg7;
21423 }
21424 return resultobj;
21425 fail:
21426 {
21427 if (temp7)
21428 delete arg7;
21429 }
21430 return NULL;
21431 }
21432
21433
21434 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21435 PyObject *resultobj = 0;
21436 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21437 wxChoice *result = 0 ;
21438 void *argp1 = 0 ;
21439 int res1 = 0 ;
21440 PyObject *swig_obj[1] ;
21441
21442 if (!args) SWIG_fail;
21443 swig_obj[0] = args;
21444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21445 if (!SWIG_IsOK(res1)) {
21446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21447 }
21448 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21449 {
21450 PyThreadState* __tstate = wxPyBeginAllowThreads();
21451 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21452 wxPyEndAllowThreads(__tstate);
21453 if (PyErr_Occurred()) SWIG_fail;
21454 }
21455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21456 return resultobj;
21457 fail:
21458 return NULL;
21459 }
21460
21461
21462 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21463 PyObject *obj;
21464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21465 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21466 return SWIG_Py_Void();
21467 }
21468
21469 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 return SWIG_Python_InitShadowInstance(args);
21471 }
21472
21473 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21474 PyObject *resultobj = 0;
21475 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21476 int arg2 = (int) 0 ;
21477 int arg3 = (int) -1 ;
21478 int arg4 = (int) -1 ;
21479 wxChoicebookEvent *result = 0 ;
21480 int val1 ;
21481 int ecode1 = 0 ;
21482 int val2 ;
21483 int ecode2 = 0 ;
21484 int val3 ;
21485 int ecode3 = 0 ;
21486 int val4 ;
21487 int ecode4 = 0 ;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 PyObject * obj2 = 0 ;
21491 PyObject * obj3 = 0 ;
21492 char * kwnames[] = {
21493 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21494 };
21495
21496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21497 if (obj0) {
21498 ecode1 = SWIG_AsVal_int(obj0, &val1);
21499 if (!SWIG_IsOK(ecode1)) {
21500 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21501 }
21502 arg1 = static_cast< wxEventType >(val1);
21503 }
21504 if (obj1) {
21505 ecode2 = SWIG_AsVal_int(obj1, &val2);
21506 if (!SWIG_IsOK(ecode2)) {
21507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21508 }
21509 arg2 = static_cast< int >(val2);
21510 }
21511 if (obj2) {
21512 ecode3 = SWIG_AsVal_int(obj2, &val3);
21513 if (!SWIG_IsOK(ecode3)) {
21514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21515 }
21516 arg3 = static_cast< int >(val3);
21517 }
21518 if (obj3) {
21519 ecode4 = SWIG_AsVal_int(obj3, &val4);
21520 if (!SWIG_IsOK(ecode4)) {
21521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21522 }
21523 arg4 = static_cast< int >(val4);
21524 }
21525 {
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
21527 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21532 return resultobj;
21533 fail:
21534 return NULL;
21535 }
21536
21537
21538 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21539 PyObject *obj;
21540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21541 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21542 return SWIG_Py_Void();
21543 }
21544
21545 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21546 return SWIG_Python_InitShadowInstance(args);
21547 }
21548
21549 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21550 PyObject *resultobj = 0;
21551 wxWindow *arg1 = (wxWindow *) 0 ;
21552 int arg2 ;
21553 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21554 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21555 wxSize const &arg4_defvalue = wxDefaultSize ;
21556 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21557 long arg5 = (long) wxBK_DEFAULT ;
21558 wxString const &arg6_defvalue = wxPyEmptyString ;
21559 wxString *arg6 = (wxString *) &arg6_defvalue ;
21560 wxTreebook *result = 0 ;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 int val2 ;
21564 int ecode2 = 0 ;
21565 wxPoint temp3 ;
21566 wxSize temp4 ;
21567 long val5 ;
21568 int ecode5 = 0 ;
21569 bool temp6 = false ;
21570 PyObject * obj0 = 0 ;
21571 PyObject * obj1 = 0 ;
21572 PyObject * obj2 = 0 ;
21573 PyObject * obj3 = 0 ;
21574 PyObject * obj4 = 0 ;
21575 PyObject * obj5 = 0 ;
21576 char * kwnames[] = {
21577 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21578 };
21579
21580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21582 if (!SWIG_IsOK(res1)) {
21583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21584 }
21585 arg1 = reinterpret_cast< wxWindow * >(argp1);
21586 ecode2 = SWIG_AsVal_int(obj1, &val2);
21587 if (!SWIG_IsOK(ecode2)) {
21588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21589 }
21590 arg2 = static_cast< int >(val2);
21591 if (obj2) {
21592 {
21593 arg3 = &temp3;
21594 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21595 }
21596 }
21597 if (obj3) {
21598 {
21599 arg4 = &temp4;
21600 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21601 }
21602 }
21603 if (obj4) {
21604 ecode5 = SWIG_AsVal_long(obj4, &val5);
21605 if (!SWIG_IsOK(ecode5)) {
21606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21607 }
21608 arg5 = static_cast< long >(val5);
21609 }
21610 if (obj5) {
21611 {
21612 arg6 = wxString_in_helper(obj5);
21613 if (arg6 == NULL) SWIG_fail;
21614 temp6 = true;
21615 }
21616 }
21617 {
21618 if (!wxPyCheckForApp()) SWIG_fail;
21619 PyThreadState* __tstate = wxPyBeginAllowThreads();
21620 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21621 wxPyEndAllowThreads(__tstate);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
21624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21625 {
21626 if (temp6)
21627 delete arg6;
21628 }
21629 return resultobj;
21630 fail:
21631 {
21632 if (temp6)
21633 delete arg6;
21634 }
21635 return NULL;
21636 }
21637
21638
21639 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21640 PyObject *resultobj = 0;
21641 wxTreebook *result = 0 ;
21642
21643 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21644 {
21645 if (!wxPyCheckForApp()) SWIG_fail;
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 result = (wxTreebook *)new wxTreebook();
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21652 return resultobj;
21653 fail:
21654 return NULL;
21655 }
21656
21657
21658 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj = 0;
21660 wxTreebook *arg1 = (wxTreebook *) 0 ;
21661 wxWindow *arg2 = (wxWindow *) 0 ;
21662 int arg3 ;
21663 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21664 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21665 wxSize const &arg5_defvalue = wxDefaultSize ;
21666 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21667 long arg6 = (long) wxBK_DEFAULT ;
21668 wxString const &arg7_defvalue = wxPyEmptyString ;
21669 wxString *arg7 = (wxString *) &arg7_defvalue ;
21670 bool result;
21671 void *argp1 = 0 ;
21672 int res1 = 0 ;
21673 void *argp2 = 0 ;
21674 int res2 = 0 ;
21675 int val3 ;
21676 int ecode3 = 0 ;
21677 wxPoint temp4 ;
21678 wxSize temp5 ;
21679 long val6 ;
21680 int ecode6 = 0 ;
21681 bool temp7 = false ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 PyObject * obj2 = 0 ;
21685 PyObject * obj3 = 0 ;
21686 PyObject * obj4 = 0 ;
21687 PyObject * obj5 = 0 ;
21688 PyObject * obj6 = 0 ;
21689 char * kwnames[] = {
21690 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21691 };
21692
21693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21695 if (!SWIG_IsOK(res1)) {
21696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21697 }
21698 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21700 if (!SWIG_IsOK(res2)) {
21701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21702 }
21703 arg2 = reinterpret_cast< wxWindow * >(argp2);
21704 ecode3 = SWIG_AsVal_int(obj2, &val3);
21705 if (!SWIG_IsOK(ecode3)) {
21706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21707 }
21708 arg3 = static_cast< int >(val3);
21709 if (obj3) {
21710 {
21711 arg4 = &temp4;
21712 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21713 }
21714 }
21715 if (obj4) {
21716 {
21717 arg5 = &temp5;
21718 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21719 }
21720 }
21721 if (obj5) {
21722 ecode6 = SWIG_AsVal_long(obj5, &val6);
21723 if (!SWIG_IsOK(ecode6)) {
21724 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21725 }
21726 arg6 = static_cast< long >(val6);
21727 }
21728 if (obj6) {
21729 {
21730 arg7 = wxString_in_helper(obj6);
21731 if (arg7 == NULL) SWIG_fail;
21732 temp7 = true;
21733 }
21734 }
21735 {
21736 PyThreadState* __tstate = wxPyBeginAllowThreads();
21737 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21738 wxPyEndAllowThreads(__tstate);
21739 if (PyErr_Occurred()) SWIG_fail;
21740 }
21741 {
21742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21743 }
21744 {
21745 if (temp7)
21746 delete arg7;
21747 }
21748 return resultobj;
21749 fail:
21750 {
21751 if (temp7)
21752 delete arg7;
21753 }
21754 return NULL;
21755 }
21756
21757
21758 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj = 0;
21760 wxTreebook *arg1 = (wxTreebook *) 0 ;
21761 size_t arg2 ;
21762 wxWindow *arg3 = (wxWindow *) 0 ;
21763 wxString *arg4 = 0 ;
21764 bool arg5 = (bool) false ;
21765 int arg6 = (int) wxNOT_FOUND ;
21766 bool result;
21767 void *argp1 = 0 ;
21768 int res1 = 0 ;
21769 size_t val2 ;
21770 int ecode2 = 0 ;
21771 void *argp3 = 0 ;
21772 int res3 = 0 ;
21773 bool temp4 = false ;
21774 bool val5 ;
21775 int ecode5 = 0 ;
21776 int val6 ;
21777 int ecode6 = 0 ;
21778 PyObject * obj0 = 0 ;
21779 PyObject * obj1 = 0 ;
21780 PyObject * obj2 = 0 ;
21781 PyObject * obj3 = 0 ;
21782 PyObject * obj4 = 0 ;
21783 PyObject * obj5 = 0 ;
21784 char * kwnames[] = {
21785 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21786 };
21787
21788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21790 if (!SWIG_IsOK(res1)) {
21791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21792 }
21793 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21794 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21795 if (!SWIG_IsOK(ecode2)) {
21796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21797 }
21798 arg2 = static_cast< size_t >(val2);
21799 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21800 if (!SWIG_IsOK(res3)) {
21801 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21802 }
21803 arg3 = reinterpret_cast< wxWindow * >(argp3);
21804 {
21805 arg4 = wxString_in_helper(obj3);
21806 if (arg4 == NULL) SWIG_fail;
21807 temp4 = true;
21808 }
21809 if (obj4) {
21810 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21811 if (!SWIG_IsOK(ecode5)) {
21812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21813 }
21814 arg5 = static_cast< bool >(val5);
21815 }
21816 if (obj5) {
21817 ecode6 = SWIG_AsVal_int(obj5, &val6);
21818 if (!SWIG_IsOK(ecode6)) {
21819 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21820 }
21821 arg6 = static_cast< int >(val6);
21822 }
21823 {
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 {
21830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21831 }
21832 {
21833 if (temp4)
21834 delete arg4;
21835 }
21836 return resultobj;
21837 fail:
21838 {
21839 if (temp4)
21840 delete arg4;
21841 }
21842 return NULL;
21843 }
21844
21845
21846 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21847 PyObject *resultobj = 0;
21848 wxTreebook *arg1 = (wxTreebook *) 0 ;
21849 wxWindow *arg2 = (wxWindow *) 0 ;
21850 wxString *arg3 = 0 ;
21851 bool arg4 = (bool) false ;
21852 int arg5 = (int) wxNOT_FOUND ;
21853 bool result;
21854 void *argp1 = 0 ;
21855 int res1 = 0 ;
21856 void *argp2 = 0 ;
21857 int res2 = 0 ;
21858 bool temp3 = false ;
21859 bool val4 ;
21860 int ecode4 = 0 ;
21861 int val5 ;
21862 int ecode5 = 0 ;
21863 PyObject * obj0 = 0 ;
21864 PyObject * obj1 = 0 ;
21865 PyObject * obj2 = 0 ;
21866 PyObject * obj3 = 0 ;
21867 PyObject * obj4 = 0 ;
21868 char * kwnames[] = {
21869 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21870 };
21871
21872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21874 if (!SWIG_IsOK(res1)) {
21875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21876 }
21877 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21879 if (!SWIG_IsOK(res2)) {
21880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21881 }
21882 arg2 = reinterpret_cast< wxWindow * >(argp2);
21883 {
21884 arg3 = wxString_in_helper(obj2);
21885 if (arg3 == NULL) SWIG_fail;
21886 temp3 = true;
21887 }
21888 if (obj3) {
21889 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21890 if (!SWIG_IsOK(ecode4)) {
21891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21892 }
21893 arg4 = static_cast< bool >(val4);
21894 }
21895 if (obj4) {
21896 ecode5 = SWIG_AsVal_int(obj4, &val5);
21897 if (!SWIG_IsOK(ecode5)) {
21898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21899 }
21900 arg5 = static_cast< int >(val5);
21901 }
21902 {
21903 PyThreadState* __tstate = wxPyBeginAllowThreads();
21904 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21905 wxPyEndAllowThreads(__tstate);
21906 if (PyErr_Occurred()) SWIG_fail;
21907 }
21908 {
21909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21910 }
21911 {
21912 if (temp3)
21913 delete arg3;
21914 }
21915 return resultobj;
21916 fail:
21917 {
21918 if (temp3)
21919 delete arg3;
21920 }
21921 return NULL;
21922 }
21923
21924
21925 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21926 PyObject *resultobj = 0;
21927 wxTreebook *arg1 = (wxTreebook *) 0 ;
21928 size_t arg2 ;
21929 bool result;
21930 void *argp1 = 0 ;
21931 int res1 = 0 ;
21932 size_t val2 ;
21933 int ecode2 = 0 ;
21934 PyObject * obj0 = 0 ;
21935 PyObject * obj1 = 0 ;
21936 char * kwnames[] = {
21937 (char *) "self",(char *) "pos", NULL
21938 };
21939
21940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21942 if (!SWIG_IsOK(res1)) {
21943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21944 }
21945 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21946 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21947 if (!SWIG_IsOK(ecode2)) {
21948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21949 }
21950 arg2 = static_cast< size_t >(val2);
21951 {
21952 PyThreadState* __tstate = wxPyBeginAllowThreads();
21953 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21954 wxPyEndAllowThreads(__tstate);
21955 if (PyErr_Occurred()) SWIG_fail;
21956 }
21957 {
21958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21959 }
21960 return resultobj;
21961 fail:
21962 return NULL;
21963 }
21964
21965
21966 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21967 PyObject *resultobj = 0;
21968 wxTreebook *arg1 = (wxTreebook *) 0 ;
21969 size_t arg2 ;
21970 bool arg3 = (bool) true ;
21971 bool result;
21972 void *argp1 = 0 ;
21973 int res1 = 0 ;
21974 size_t val2 ;
21975 int ecode2 = 0 ;
21976 bool val3 ;
21977 int ecode3 = 0 ;
21978 PyObject * obj0 = 0 ;
21979 PyObject * obj1 = 0 ;
21980 PyObject * obj2 = 0 ;
21981 char * kwnames[] = {
21982 (char *) "self",(char *) "pos",(char *) "expand", NULL
21983 };
21984
21985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21987 if (!SWIG_IsOK(res1)) {
21988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21989 }
21990 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21991 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21992 if (!SWIG_IsOK(ecode2)) {
21993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21994 }
21995 arg2 = static_cast< size_t >(val2);
21996 if (obj2) {
21997 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21998 if (!SWIG_IsOK(ecode3)) {
21999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22000 }
22001 arg3 = static_cast< bool >(val3);
22002 }
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 {
22010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22011 }
22012 return resultobj;
22013 fail:
22014 return NULL;
22015 }
22016
22017
22018 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22019 PyObject *resultobj = 0;
22020 wxTreebook *arg1 = (wxTreebook *) 0 ;
22021 size_t arg2 ;
22022 bool result;
22023 void *argp1 = 0 ;
22024 int res1 = 0 ;
22025 size_t val2 ;
22026 int ecode2 = 0 ;
22027 PyObject * obj0 = 0 ;
22028 PyObject * obj1 = 0 ;
22029 char * kwnames[] = {
22030 (char *) "self",(char *) "pos", NULL
22031 };
22032
22033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22035 if (!SWIG_IsOK(res1)) {
22036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22037 }
22038 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22039 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22040 if (!SWIG_IsOK(ecode2)) {
22041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22042 }
22043 arg2 = static_cast< size_t >(val2);
22044 {
22045 PyThreadState* __tstate = wxPyBeginAllowThreads();
22046 result = (bool)(arg1)->CollapseNode(arg2);
22047 wxPyEndAllowThreads(__tstate);
22048 if (PyErr_Occurred()) SWIG_fail;
22049 }
22050 {
22051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22052 }
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj = 0;
22061 wxTreebook *arg1 = (wxTreebook *) 0 ;
22062 size_t arg2 ;
22063 int result;
22064 void *argp1 = 0 ;
22065 int res1 = 0 ;
22066 size_t val2 ;
22067 int ecode2 = 0 ;
22068 PyObject * obj0 = 0 ;
22069 PyObject * obj1 = 0 ;
22070 char * kwnames[] = {
22071 (char *) "self",(char *) "pos", NULL
22072 };
22073
22074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22076 if (!SWIG_IsOK(res1)) {
22077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22078 }
22079 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22080 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22081 if (!SWIG_IsOK(ecode2)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22083 }
22084 arg2 = static_cast< size_t >(val2);
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22088 wxPyEndAllowThreads(__tstate);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 }
22091 resultobj = SWIG_From_int(static_cast< int >(result));
22092 return resultobj;
22093 fail:
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22099 PyObject *resultobj = 0;
22100 wxTreebook *arg1 = (wxTreebook *) 0 ;
22101 wxTreeCtrl *result = 0 ;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 PyObject *swig_obj[1] ;
22105
22106 if (!args) SWIG_fail;
22107 swig_obj[0] = args;
22108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22109 if (!SWIG_IsOK(res1)) {
22110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22111 }
22112 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22113 {
22114 PyThreadState* __tstate = wxPyBeginAllowThreads();
22115 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22116 wxPyEndAllowThreads(__tstate);
22117 if (PyErr_Occurred()) SWIG_fail;
22118 }
22119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22120 return resultobj;
22121 fail:
22122 return NULL;
22123 }
22124
22125
22126 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22127 PyObject *obj;
22128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22129 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22130 return SWIG_Py_Void();
22131 }
22132
22133 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22134 return SWIG_Python_InitShadowInstance(args);
22135 }
22136
22137 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22138 PyObject *resultobj = 0;
22139 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22140 int arg2 = (int) 0 ;
22141 int arg3 = (int) wxNOT_FOUND ;
22142 int arg4 = (int) wxNOT_FOUND ;
22143 wxTreebookEvent *result = 0 ;
22144 int val1 ;
22145 int ecode1 = 0 ;
22146 int val2 ;
22147 int ecode2 = 0 ;
22148 int val3 ;
22149 int ecode3 = 0 ;
22150 int val4 ;
22151 int ecode4 = 0 ;
22152 PyObject * obj0 = 0 ;
22153 PyObject * obj1 = 0 ;
22154 PyObject * obj2 = 0 ;
22155 PyObject * obj3 = 0 ;
22156 char * kwnames[] = {
22157 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22158 };
22159
22160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22161 if (obj0) {
22162 ecode1 = SWIG_AsVal_int(obj0, &val1);
22163 if (!SWIG_IsOK(ecode1)) {
22164 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22165 }
22166 arg1 = static_cast< wxEventType >(val1);
22167 }
22168 if (obj1) {
22169 ecode2 = SWIG_AsVal_int(obj1, &val2);
22170 if (!SWIG_IsOK(ecode2)) {
22171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22172 }
22173 arg2 = static_cast< int >(val2);
22174 }
22175 if (obj2) {
22176 ecode3 = SWIG_AsVal_int(obj2, &val3);
22177 if (!SWIG_IsOK(ecode3)) {
22178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22179 }
22180 arg3 = static_cast< int >(val3);
22181 }
22182 if (obj3) {
22183 ecode4 = SWIG_AsVal_int(obj3, &val4);
22184 if (!SWIG_IsOK(ecode4)) {
22185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22186 }
22187 arg4 = static_cast< int >(val4);
22188 }
22189 {
22190 PyThreadState* __tstate = wxPyBeginAllowThreads();
22191 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22196 return resultobj;
22197 fail:
22198 return NULL;
22199 }
22200
22201
22202 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22203 PyObject *obj;
22204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22205 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22206 return SWIG_Py_Void();
22207 }
22208
22209 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22210 return SWIG_Python_InitShadowInstance(args);
22211 }
22212
22213 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22214 PyObject *resultobj = 0;
22215 wxWindow *arg1 = (wxWindow *) 0 ;
22216 int arg2 ;
22217 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22218 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22219 wxSize const &arg4_defvalue = wxDefaultSize ;
22220 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22221 long arg5 = (long) wxBK_DEFAULT ;
22222 wxString const &arg6_defvalue = wxPyEmptyString ;
22223 wxString *arg6 = (wxString *) &arg6_defvalue ;
22224 wxToolbook *result = 0 ;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 int val2 ;
22228 int ecode2 = 0 ;
22229 wxPoint temp3 ;
22230 wxSize temp4 ;
22231 long val5 ;
22232 int ecode5 = 0 ;
22233 bool temp6 = false ;
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 *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22242 };
22243
22244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22246 if (!SWIG_IsOK(res1)) {
22247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22248 }
22249 arg1 = reinterpret_cast< wxWindow * >(argp1);
22250 ecode2 = SWIG_AsVal_int(obj1, &val2);
22251 if (!SWIG_IsOK(ecode2)) {
22252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22253 }
22254 arg2 = static_cast< int >(val2);
22255 if (obj2) {
22256 {
22257 arg3 = &temp3;
22258 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22259 }
22260 }
22261 if (obj3) {
22262 {
22263 arg4 = &temp4;
22264 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22265 }
22266 }
22267 if (obj4) {
22268 ecode5 = SWIG_AsVal_long(obj4, &val5);
22269 if (!SWIG_IsOK(ecode5)) {
22270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22271 }
22272 arg5 = static_cast< long >(val5);
22273 }
22274 if (obj5) {
22275 {
22276 arg6 = wxString_in_helper(obj5);
22277 if (arg6 == NULL) SWIG_fail;
22278 temp6 = true;
22279 }
22280 }
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22288 {
22289 if (temp6)
22290 delete arg6;
22291 }
22292 return resultobj;
22293 fail:
22294 {
22295 if (temp6)
22296 delete arg6;
22297 }
22298 return NULL;
22299 }
22300
22301
22302 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22303 PyObject *resultobj = 0;
22304 wxToolbook *result = 0 ;
22305
22306 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = (wxToolbook *)new wxToolbook();
22310 wxPyEndAllowThreads(__tstate);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
22313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22314 return resultobj;
22315 fail:
22316 return NULL;
22317 }
22318
22319
22320 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22321 PyObject *resultobj = 0;
22322 wxToolbook *arg1 = (wxToolbook *) 0 ;
22323 wxWindow *arg2 = (wxWindow *) 0 ;
22324 int arg3 ;
22325 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22326 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22327 wxSize const &arg5_defvalue = wxDefaultSize ;
22328 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22329 long arg6 = (long) 0 ;
22330 wxString const &arg7_defvalue = wxEmptyString ;
22331 wxString *arg7 = (wxString *) &arg7_defvalue ;
22332 bool result;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 void *argp2 = 0 ;
22336 int res2 = 0 ;
22337 int val3 ;
22338 int ecode3 = 0 ;
22339 wxPoint temp4 ;
22340 wxSize temp5 ;
22341 long val6 ;
22342 int ecode6 = 0 ;
22343 bool temp7 = false ;
22344 PyObject * obj0 = 0 ;
22345 PyObject * obj1 = 0 ;
22346 PyObject * obj2 = 0 ;
22347 PyObject * obj3 = 0 ;
22348 PyObject * obj4 = 0 ;
22349 PyObject * obj5 = 0 ;
22350 PyObject * obj6 = 0 ;
22351 char * kwnames[] = {
22352 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22353 };
22354
22355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22357 if (!SWIG_IsOK(res1)) {
22358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22359 }
22360 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22361 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22362 if (!SWIG_IsOK(res2)) {
22363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22364 }
22365 arg2 = reinterpret_cast< wxWindow * >(argp2);
22366 ecode3 = SWIG_AsVal_int(obj2, &val3);
22367 if (!SWIG_IsOK(ecode3)) {
22368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22369 }
22370 arg3 = static_cast< int >(val3);
22371 if (obj3) {
22372 {
22373 arg4 = &temp4;
22374 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22375 }
22376 }
22377 if (obj4) {
22378 {
22379 arg5 = &temp5;
22380 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22381 }
22382 }
22383 if (obj5) {
22384 ecode6 = SWIG_AsVal_long(obj5, &val6);
22385 if (!SWIG_IsOK(ecode6)) {
22386 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22387 }
22388 arg6 = static_cast< long >(val6);
22389 }
22390 if (obj6) {
22391 {
22392 arg7 = wxString_in_helper(obj6);
22393 if (arg7 == NULL) SWIG_fail;
22394 temp7 = true;
22395 }
22396 }
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 {
22404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22405 }
22406 {
22407 if (temp7)
22408 delete arg7;
22409 }
22410 return resultobj;
22411 fail:
22412 {
22413 if (temp7)
22414 delete arg7;
22415 }
22416 return NULL;
22417 }
22418
22419
22420 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22421 PyObject *resultobj = 0;
22422 wxToolbook *arg1 = (wxToolbook *) 0 ;
22423 wxToolBarBase *result = 0 ;
22424 void *argp1 = 0 ;
22425 int res1 = 0 ;
22426 PyObject *swig_obj[1] ;
22427
22428 if (!args) SWIG_fail;
22429 swig_obj[0] = args;
22430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22431 if (!SWIG_IsOK(res1)) {
22432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22433 }
22434 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22435 {
22436 PyThreadState* __tstate = wxPyBeginAllowThreads();
22437 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22438 wxPyEndAllowThreads(__tstate);
22439 if (PyErr_Occurred()) SWIG_fail;
22440 }
22441 {
22442 resultobj = wxPyMake_wxObject(result, (bool)0);
22443 }
22444 return resultobj;
22445 fail:
22446 return NULL;
22447 }
22448
22449
22450 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22451 PyObject *resultobj = 0;
22452 wxToolbook *arg1 = (wxToolbook *) 0 ;
22453 void *argp1 = 0 ;
22454 int res1 = 0 ;
22455 PyObject *swig_obj[1] ;
22456
22457 if (!args) SWIG_fail;
22458 swig_obj[0] = args;
22459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22460 if (!SWIG_IsOK(res1)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22462 }
22463 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 (arg1)->Realize();
22467 wxPyEndAllowThreads(__tstate);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 }
22470 resultobj = SWIG_Py_Void();
22471 return resultobj;
22472 fail:
22473 return NULL;
22474 }
22475
22476
22477 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *obj;
22479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22480 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22481 return SWIG_Py_Void();
22482 }
22483
22484 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22485 return SWIG_Python_InitShadowInstance(args);
22486 }
22487
22488 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22489 PyObject *resultobj = 0;
22490 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22491 int arg2 = (int) 0 ;
22492 int arg3 = (int) wxNOT_FOUND ;
22493 int arg4 = (int) wxNOT_FOUND ;
22494 wxToolbookEvent *result = 0 ;
22495 int val1 ;
22496 int ecode1 = 0 ;
22497 int val2 ;
22498 int ecode2 = 0 ;
22499 int val3 ;
22500 int ecode3 = 0 ;
22501 int val4 ;
22502 int ecode4 = 0 ;
22503 PyObject * obj0 = 0 ;
22504 PyObject * obj1 = 0 ;
22505 PyObject * obj2 = 0 ;
22506 PyObject * obj3 = 0 ;
22507 char * kwnames[] = {
22508 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22509 };
22510
22511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22512 if (obj0) {
22513 ecode1 = SWIG_AsVal_int(obj0, &val1);
22514 if (!SWIG_IsOK(ecode1)) {
22515 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22516 }
22517 arg1 = static_cast< wxEventType >(val1);
22518 }
22519 if (obj1) {
22520 ecode2 = SWIG_AsVal_int(obj1, &val2);
22521 if (!SWIG_IsOK(ecode2)) {
22522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22523 }
22524 arg2 = static_cast< int >(val2);
22525 }
22526 if (obj2) {
22527 ecode3 = SWIG_AsVal_int(obj2, &val3);
22528 if (!SWIG_IsOK(ecode3)) {
22529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22530 }
22531 arg3 = static_cast< int >(val3);
22532 }
22533 if (obj3) {
22534 ecode4 = SWIG_AsVal_int(obj3, &val4);
22535 if (!SWIG_IsOK(ecode4)) {
22536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22537 }
22538 arg4 = static_cast< int >(val4);
22539 }
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22547 return resultobj;
22548 fail:
22549 return NULL;
22550 }
22551
22552
22553 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22554 PyObject *obj;
22555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22556 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22557 return SWIG_Py_Void();
22558 }
22559
22560 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22561 return SWIG_Python_InitShadowInstance(args);
22562 }
22563
22564 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22565 PyObject *resultobj = 0;
22566 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22567 int result;
22568 void *argp1 = 0 ;
22569 int res1 = 0 ;
22570 PyObject *swig_obj[1] ;
22571
22572 if (!args) SWIG_fail;
22573 swig_obj[0] = args;
22574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22575 if (!SWIG_IsOK(res1)) {
22576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22577 }
22578 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22579 {
22580 PyThreadState* __tstate = wxPyBeginAllowThreads();
22581 result = (int)(arg1)->GetId();
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 resultobj = SWIG_From_int(static_cast< int >(result));
22586 return resultobj;
22587 fail:
22588 return NULL;
22589 }
22590
22591
22592 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22593 PyObject *resultobj = 0;
22594 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22595 wxControl *result = 0 ;
22596 void *argp1 = 0 ;
22597 int res1 = 0 ;
22598 PyObject *swig_obj[1] ;
22599
22600 if (!args) SWIG_fail;
22601 swig_obj[0] = args;
22602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22603 if (!SWIG_IsOK(res1)) {
22604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22605 }
22606 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22607 {
22608 PyThreadState* __tstate = wxPyBeginAllowThreads();
22609 result = (wxControl *)(arg1)->GetControl();
22610 wxPyEndAllowThreads(__tstate);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 }
22613 {
22614 resultobj = wxPyMake_wxObject(result, 0);
22615 }
22616 return resultobj;
22617 fail:
22618 return NULL;
22619 }
22620
22621
22622 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22623 PyObject *resultobj = 0;
22624 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22625 wxToolBarBase *result = 0 ;
22626 void *argp1 = 0 ;
22627 int res1 = 0 ;
22628 PyObject *swig_obj[1] ;
22629
22630 if (!args) SWIG_fail;
22631 swig_obj[0] = args;
22632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22633 if (!SWIG_IsOK(res1)) {
22634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22635 }
22636 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22637 {
22638 PyThreadState* __tstate = wxPyBeginAllowThreads();
22639 result = (wxToolBarBase *)(arg1)->GetToolBar();
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 {
22644 resultobj = wxPyMake_wxObject(result, (bool)0);
22645 }
22646 return resultobj;
22647 fail:
22648 return NULL;
22649 }
22650
22651
22652 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22653 PyObject *resultobj = 0;
22654 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22655 int result;
22656 void *argp1 = 0 ;
22657 int res1 = 0 ;
22658 PyObject *swig_obj[1] ;
22659
22660 if (!args) SWIG_fail;
22661 swig_obj[0] = args;
22662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22663 if (!SWIG_IsOK(res1)) {
22664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22665 }
22666 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22667 {
22668 PyThreadState* __tstate = wxPyBeginAllowThreads();
22669 result = (int)(arg1)->IsButton();
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 resultobj = SWIG_From_int(static_cast< int >(result));
22674 return resultobj;
22675 fail:
22676 return NULL;
22677 }
22678
22679
22680 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22681 PyObject *resultobj = 0;
22682 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22683 int result;
22684 void *argp1 = 0 ;
22685 int res1 = 0 ;
22686 PyObject *swig_obj[1] ;
22687
22688 if (!args) SWIG_fail;
22689 swig_obj[0] = args;
22690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22691 if (!SWIG_IsOK(res1)) {
22692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22693 }
22694 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 result = (int)(arg1)->IsControl();
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_From_int(static_cast< int >(result));
22702 return resultobj;
22703 fail:
22704 return NULL;
22705 }
22706
22707
22708 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22709 PyObject *resultobj = 0;
22710 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22711 int result;
22712 void *argp1 = 0 ;
22713 int res1 = 0 ;
22714 PyObject *swig_obj[1] ;
22715
22716 if (!args) SWIG_fail;
22717 swig_obj[0] = args;
22718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22719 if (!SWIG_IsOK(res1)) {
22720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22721 }
22722 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22723 {
22724 PyThreadState* __tstate = wxPyBeginAllowThreads();
22725 result = (int)(arg1)->IsSeparator();
22726 wxPyEndAllowThreads(__tstate);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 }
22729 resultobj = SWIG_From_int(static_cast< int >(result));
22730 return resultobj;
22731 fail:
22732 return NULL;
22733 }
22734
22735
22736 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22737 PyObject *resultobj = 0;
22738 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22739 int result;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 PyObject *swig_obj[1] ;
22743
22744 if (!args) SWIG_fail;
22745 swig_obj[0] = args;
22746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22747 if (!SWIG_IsOK(res1)) {
22748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22749 }
22750 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22751 {
22752 PyThreadState* __tstate = wxPyBeginAllowThreads();
22753 result = (int)(arg1)->GetStyle();
22754 wxPyEndAllowThreads(__tstate);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 }
22757 resultobj = SWIG_From_int(static_cast< int >(result));
22758 return resultobj;
22759 fail:
22760 return NULL;
22761 }
22762
22763
22764 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22765 PyObject *resultobj = 0;
22766 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22767 wxItemKind result;
22768 void *argp1 = 0 ;
22769 int res1 = 0 ;
22770 PyObject *swig_obj[1] ;
22771
22772 if (!args) SWIG_fail;
22773 swig_obj[0] = args;
22774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22775 if (!SWIG_IsOK(res1)) {
22776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22777 }
22778 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22779 {
22780 PyThreadState* __tstate = wxPyBeginAllowThreads();
22781 result = (wxItemKind)(arg1)->GetKind();
22782 wxPyEndAllowThreads(__tstate);
22783 if (PyErr_Occurred()) SWIG_fail;
22784 }
22785 resultobj = SWIG_From_int(static_cast< int >(result));
22786 return resultobj;
22787 fail:
22788 return NULL;
22789 }
22790
22791
22792 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22793 PyObject *resultobj = 0;
22794 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22795 bool result;
22796 void *argp1 = 0 ;
22797 int res1 = 0 ;
22798 PyObject *swig_obj[1] ;
22799
22800 if (!args) SWIG_fail;
22801 swig_obj[0] = args;
22802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22803 if (!SWIG_IsOK(res1)) {
22804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22805 }
22806 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22807 {
22808 PyThreadState* __tstate = wxPyBeginAllowThreads();
22809 result = (bool)(arg1)->IsEnabled();
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 {
22814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22815 }
22816 return resultobj;
22817 fail:
22818 return NULL;
22819 }
22820
22821
22822 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22823 PyObject *resultobj = 0;
22824 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22825 bool result;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 PyObject *swig_obj[1] ;
22829
22830 if (!args) SWIG_fail;
22831 swig_obj[0] = args;
22832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22833 if (!SWIG_IsOK(res1)) {
22834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22835 }
22836 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22837 {
22838 PyThreadState* __tstate = wxPyBeginAllowThreads();
22839 result = (bool)(arg1)->IsToggled();
22840 wxPyEndAllowThreads(__tstate);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 }
22843 {
22844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22845 }
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22853 PyObject *resultobj = 0;
22854 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22855 bool result;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 PyObject *swig_obj[1] ;
22859
22860 if (!args) SWIG_fail;
22861 swig_obj[0] = args;
22862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22863 if (!SWIG_IsOK(res1)) {
22864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22865 }
22866 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22867 {
22868 PyThreadState* __tstate = wxPyBeginAllowThreads();
22869 result = (bool)(arg1)->CanBeToggled();
22870 wxPyEndAllowThreads(__tstate);
22871 if (PyErr_Occurred()) SWIG_fail;
22872 }
22873 {
22874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22875 }
22876 return resultobj;
22877 fail:
22878 return NULL;
22879 }
22880
22881
22882 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22883 PyObject *resultobj = 0;
22884 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22885 wxBitmap *result = 0 ;
22886 void *argp1 = 0 ;
22887 int res1 = 0 ;
22888 PyObject *swig_obj[1] ;
22889
22890 if (!args) SWIG_fail;
22891 swig_obj[0] = args;
22892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22893 if (!SWIG_IsOK(res1)) {
22894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22895 }
22896 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22897 {
22898 PyThreadState* __tstate = wxPyBeginAllowThreads();
22899 {
22900 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22901 result = (wxBitmap *) &_result_ref;
22902 }
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 {
22907 wxBitmap* resultptr = new wxBitmap(*result);
22908 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22909 }
22910 return resultobj;
22911 fail:
22912 return NULL;
22913 }
22914
22915
22916 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22917 PyObject *resultobj = 0;
22918 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22919 wxBitmap *result = 0 ;
22920 void *argp1 = 0 ;
22921 int res1 = 0 ;
22922 PyObject *swig_obj[1] ;
22923
22924 if (!args) SWIG_fail;
22925 swig_obj[0] = args;
22926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22927 if (!SWIG_IsOK(res1)) {
22928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22929 }
22930 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22931 {
22932 PyThreadState* __tstate = wxPyBeginAllowThreads();
22933 {
22934 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22935 result = (wxBitmap *) &_result_ref;
22936 }
22937 wxPyEndAllowThreads(__tstate);
22938 if (PyErr_Occurred()) SWIG_fail;
22939 }
22940 {
22941 wxBitmap* resultptr = new wxBitmap(*result);
22942 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22943 }
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22951 PyObject *resultobj = 0;
22952 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22953 wxBitmap result;
22954 void *argp1 = 0 ;
22955 int res1 = 0 ;
22956 PyObject *swig_obj[1] ;
22957
22958 if (!args) SWIG_fail;
22959 swig_obj[0] = args;
22960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22961 if (!SWIG_IsOK(res1)) {
22962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22963 }
22964 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 result = (arg1)->GetBitmap();
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22972 return resultobj;
22973 fail:
22974 return NULL;
22975 }
22976
22977
22978 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22979 PyObject *resultobj = 0;
22980 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22981 wxString result;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject *swig_obj[1] ;
22985
22986 if (!args) SWIG_fail;
22987 swig_obj[0] = args;
22988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22989 if (!SWIG_IsOK(res1)) {
22990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22991 }
22992 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22993 {
22994 PyThreadState* __tstate = wxPyBeginAllowThreads();
22995 result = (arg1)->GetLabel();
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 {
23000 #if wxUSE_UNICODE
23001 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23002 #else
23003 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23004 #endif
23005 }
23006 return resultobj;
23007 fail:
23008 return NULL;
23009 }
23010
23011
23012 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23013 PyObject *resultobj = 0;
23014 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23015 wxString result;
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 PyObject *swig_obj[1] ;
23019
23020 if (!args) SWIG_fail;
23021 swig_obj[0] = args;
23022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23023 if (!SWIG_IsOK(res1)) {
23024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23025 }
23026 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 result = (arg1)->GetShortHelp();
23030 wxPyEndAllowThreads(__tstate);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 }
23033 {
23034 #if wxUSE_UNICODE
23035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23036 #else
23037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23038 #endif
23039 }
23040 return resultobj;
23041 fail:
23042 return NULL;
23043 }
23044
23045
23046 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23047 PyObject *resultobj = 0;
23048 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23049 wxString result;
23050 void *argp1 = 0 ;
23051 int res1 = 0 ;
23052 PyObject *swig_obj[1] ;
23053
23054 if (!args) SWIG_fail;
23055 swig_obj[0] = args;
23056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23057 if (!SWIG_IsOK(res1)) {
23058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23059 }
23060 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (arg1)->GetLongHelp();
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 {
23068 #if wxUSE_UNICODE
23069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23070 #else
23071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23072 #endif
23073 }
23074 return resultobj;
23075 fail:
23076 return NULL;
23077 }
23078
23079
23080 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23081 PyObject *resultobj = 0;
23082 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23083 bool arg2 ;
23084 bool result;
23085 void *argp1 = 0 ;
23086 int res1 = 0 ;
23087 bool val2 ;
23088 int ecode2 = 0 ;
23089 PyObject * obj0 = 0 ;
23090 PyObject * obj1 = 0 ;
23091 char * kwnames[] = {
23092 (char *) "self",(char *) "enable", NULL
23093 };
23094
23095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23097 if (!SWIG_IsOK(res1)) {
23098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23099 }
23100 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23101 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23102 if (!SWIG_IsOK(ecode2)) {
23103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23104 }
23105 arg2 = static_cast< bool >(val2);
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 result = (bool)(arg1)->Enable(arg2);
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 {
23113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23114 }
23115 return resultobj;
23116 fail:
23117 return NULL;
23118 }
23119
23120
23121 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23122 PyObject *resultobj = 0;
23123 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23124 void *argp1 = 0 ;
23125 int res1 = 0 ;
23126 PyObject *swig_obj[1] ;
23127
23128 if (!args) SWIG_fail;
23129 swig_obj[0] = args;
23130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23131 if (!SWIG_IsOK(res1)) {
23132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23133 }
23134 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23135 {
23136 PyThreadState* __tstate = wxPyBeginAllowThreads();
23137 (arg1)->Toggle();
23138 wxPyEndAllowThreads(__tstate);
23139 if (PyErr_Occurred()) SWIG_fail;
23140 }
23141 resultobj = SWIG_Py_Void();
23142 return resultobj;
23143 fail:
23144 return NULL;
23145 }
23146
23147
23148 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23149 PyObject *resultobj = 0;
23150 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23151 bool arg2 ;
23152 bool result;
23153 void *argp1 = 0 ;
23154 int res1 = 0 ;
23155 bool val2 ;
23156 int ecode2 = 0 ;
23157 PyObject * obj0 = 0 ;
23158 PyObject * obj1 = 0 ;
23159 char * kwnames[] = {
23160 (char *) "self",(char *) "toggle", NULL
23161 };
23162
23163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23165 if (!SWIG_IsOK(res1)) {
23166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23167 }
23168 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23169 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23170 if (!SWIG_IsOK(ecode2)) {
23171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23172 }
23173 arg2 = static_cast< bool >(val2);
23174 {
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = (bool)(arg1)->SetToggle(arg2);
23177 wxPyEndAllowThreads(__tstate);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 }
23180 {
23181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23182 }
23183 return resultobj;
23184 fail:
23185 return NULL;
23186 }
23187
23188
23189 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23190 PyObject *resultobj = 0;
23191 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23192 wxString *arg2 = 0 ;
23193 bool result;
23194 void *argp1 = 0 ;
23195 int res1 = 0 ;
23196 bool temp2 = false ;
23197 PyObject * obj0 = 0 ;
23198 PyObject * obj1 = 0 ;
23199 char * kwnames[] = {
23200 (char *) "self",(char *) "help", NULL
23201 };
23202
23203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23207 }
23208 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23209 {
23210 arg2 = wxString_in_helper(obj1);
23211 if (arg2 == NULL) SWIG_fail;
23212 temp2 = true;
23213 }
23214 {
23215 PyThreadState* __tstate = wxPyBeginAllowThreads();
23216 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 {
23221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23222 }
23223 {
23224 if (temp2)
23225 delete arg2;
23226 }
23227 return resultobj;
23228 fail:
23229 {
23230 if (temp2)
23231 delete arg2;
23232 }
23233 return NULL;
23234 }
23235
23236
23237 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23238 PyObject *resultobj = 0;
23239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23240 wxString *arg2 = 0 ;
23241 bool result;
23242 void *argp1 = 0 ;
23243 int res1 = 0 ;
23244 bool temp2 = false ;
23245 PyObject * obj0 = 0 ;
23246 PyObject * obj1 = 0 ;
23247 char * kwnames[] = {
23248 (char *) "self",(char *) "help", NULL
23249 };
23250
23251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23253 if (!SWIG_IsOK(res1)) {
23254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23255 }
23256 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23257 {
23258 arg2 = wxString_in_helper(obj1);
23259 if (arg2 == NULL) SWIG_fail;
23260 temp2 = true;
23261 }
23262 {
23263 PyThreadState* __tstate = wxPyBeginAllowThreads();
23264 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23265 wxPyEndAllowThreads(__tstate);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 }
23268 {
23269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23270 }
23271 {
23272 if (temp2)
23273 delete arg2;
23274 }
23275 return resultobj;
23276 fail:
23277 {
23278 if (temp2)
23279 delete arg2;
23280 }
23281 return NULL;
23282 }
23283
23284
23285 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23286 PyObject *resultobj = 0;
23287 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23288 wxBitmap *arg2 = 0 ;
23289 void *argp1 = 0 ;
23290 int res1 = 0 ;
23291 void *argp2 = 0 ;
23292 int res2 = 0 ;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 char * kwnames[] = {
23296 (char *) "self",(char *) "bmp", NULL
23297 };
23298
23299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23303 }
23304 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23305 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23306 if (!SWIG_IsOK(res2)) {
23307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23308 }
23309 if (!argp2) {
23310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23311 }
23312 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23313 {
23314 PyThreadState* __tstate = wxPyBeginAllowThreads();
23315 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23316 wxPyEndAllowThreads(__tstate);
23317 if (PyErr_Occurred()) SWIG_fail;
23318 }
23319 resultobj = SWIG_Py_Void();
23320 return resultobj;
23321 fail:
23322 return NULL;
23323 }
23324
23325
23326 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23327 PyObject *resultobj = 0;
23328 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23329 wxBitmap *arg2 = 0 ;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 void *argp2 = 0 ;
23333 int res2 = 0 ;
23334 PyObject * obj0 = 0 ;
23335 PyObject * obj1 = 0 ;
23336 char * kwnames[] = {
23337 (char *) "self",(char *) "bmp", NULL
23338 };
23339
23340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23342 if (!SWIG_IsOK(res1)) {
23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23344 }
23345 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23347 if (!SWIG_IsOK(res2)) {
23348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23349 }
23350 if (!argp2) {
23351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23352 }
23353 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23354 {
23355 PyThreadState* __tstate = wxPyBeginAllowThreads();
23356 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23357 wxPyEndAllowThreads(__tstate);
23358 if (PyErr_Occurred()) SWIG_fail;
23359 }
23360 resultobj = SWIG_Py_Void();
23361 return resultobj;
23362 fail:
23363 return NULL;
23364 }
23365
23366
23367 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23368 PyObject *resultobj = 0;
23369 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23370 wxString *arg2 = 0 ;
23371 void *argp1 = 0 ;
23372 int res1 = 0 ;
23373 bool temp2 = false ;
23374 PyObject * obj0 = 0 ;
23375 PyObject * obj1 = 0 ;
23376 char * kwnames[] = {
23377 (char *) "self",(char *) "label", NULL
23378 };
23379
23380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23382 if (!SWIG_IsOK(res1)) {
23383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23384 }
23385 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23386 {
23387 arg2 = wxString_in_helper(obj1);
23388 if (arg2 == NULL) SWIG_fail;
23389 temp2 = true;
23390 }
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 (arg1)->SetLabel((wxString const &)*arg2);
23394 wxPyEndAllowThreads(__tstate);
23395 if (PyErr_Occurred()) SWIG_fail;
23396 }
23397 resultobj = SWIG_Py_Void();
23398 {
23399 if (temp2)
23400 delete arg2;
23401 }
23402 return resultobj;
23403 fail:
23404 {
23405 if (temp2)
23406 delete arg2;
23407 }
23408 return NULL;
23409 }
23410
23411
23412 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23413 PyObject *resultobj = 0;
23414 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23415 void *argp1 = 0 ;
23416 int res1 = 0 ;
23417 PyObject *swig_obj[1] ;
23418
23419 if (!args) SWIG_fail;
23420 swig_obj[0] = args;
23421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23424 }
23425 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 (arg1)->Detach();
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = SWIG_Py_Void();
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23440 PyObject *resultobj = 0;
23441 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23442 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23443 void *argp1 = 0 ;
23444 int res1 = 0 ;
23445 void *argp2 = 0 ;
23446 int res2 = 0 ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 char * kwnames[] = {
23450 (char *) "self",(char *) "tbar", NULL
23451 };
23452
23453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23457 }
23458 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23460 if (!SWIG_IsOK(res2)) {
23461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23462 }
23463 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 (arg1)->Attach(arg2);
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_Py_Void();
23471 return resultobj;
23472 fail:
23473 return NULL;
23474 }
23475
23476
23477 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23478 PyObject *resultobj = 0;
23479 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23480 PyObject *result = 0 ;
23481 void *argp1 = 0 ;
23482 int res1 = 0 ;
23483 PyObject *swig_obj[1] ;
23484
23485 if (!args) SWIG_fail;
23486 swig_obj[0] = args;
23487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23488 if (!SWIG_IsOK(res1)) {
23489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23490 }
23491 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23495 wxPyEndAllowThreads(__tstate);
23496 if (PyErr_Occurred()) SWIG_fail;
23497 }
23498 resultobj = result;
23499 return resultobj;
23500 fail:
23501 return NULL;
23502 }
23503
23504
23505 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23506 PyObject *resultobj = 0;
23507 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23508 PyObject *arg2 = (PyObject *) 0 ;
23509 void *argp1 = 0 ;
23510 int res1 = 0 ;
23511 PyObject * obj0 = 0 ;
23512 PyObject * obj1 = 0 ;
23513 char * kwnames[] = {
23514 (char *) "self",(char *) "clientData", NULL
23515 };
23516
23517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23519 if (!SWIG_IsOK(res1)) {
23520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23521 }
23522 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23523 arg2 = obj1;
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 wxToolBarToolBase_SetClientData(arg1,arg2);
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 resultobj = SWIG_Py_Void();
23531 return resultobj;
23532 fail:
23533 return NULL;
23534 }
23535
23536
23537 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23538 PyObject *obj;
23539 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23540 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23541 return SWIG_Py_Void();
23542 }
23543
23544 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj = 0;
23546 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23547 int arg2 ;
23548 wxString *arg3 = 0 ;
23549 wxBitmap *arg4 = 0 ;
23550 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23551 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23552 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23553 wxString const &arg7_defvalue = wxPyEmptyString ;
23554 wxString *arg7 = (wxString *) &arg7_defvalue ;
23555 wxString const &arg8_defvalue = wxPyEmptyString ;
23556 wxString *arg8 = (wxString *) &arg8_defvalue ;
23557 PyObject *arg9 = (PyObject *) NULL ;
23558 wxToolBarToolBase *result = 0 ;
23559 void *argp1 = 0 ;
23560 int res1 = 0 ;
23561 int val2 ;
23562 int ecode2 = 0 ;
23563 bool temp3 = false ;
23564 void *argp4 = 0 ;
23565 int res4 = 0 ;
23566 void *argp5 = 0 ;
23567 int res5 = 0 ;
23568 int val6 ;
23569 int ecode6 = 0 ;
23570 bool temp7 = false ;
23571 bool temp8 = false ;
23572 PyObject * obj0 = 0 ;
23573 PyObject * obj1 = 0 ;
23574 PyObject * obj2 = 0 ;
23575 PyObject * obj3 = 0 ;
23576 PyObject * obj4 = 0 ;
23577 PyObject * obj5 = 0 ;
23578 PyObject * obj6 = 0 ;
23579 PyObject * obj7 = 0 ;
23580 PyObject * obj8 = 0 ;
23581 char * kwnames[] = {
23582 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23583 };
23584
23585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23589 }
23590 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23591 ecode2 = SWIG_AsVal_int(obj1, &val2);
23592 if (!SWIG_IsOK(ecode2)) {
23593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23594 }
23595 arg2 = static_cast< int >(val2);
23596 {
23597 arg3 = wxString_in_helper(obj2);
23598 if (arg3 == NULL) SWIG_fail;
23599 temp3 = true;
23600 }
23601 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23602 if (!SWIG_IsOK(res4)) {
23603 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23604 }
23605 if (!argp4) {
23606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23607 }
23608 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23609 if (obj4) {
23610 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23611 if (!SWIG_IsOK(res5)) {
23612 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23613 }
23614 if (!argp5) {
23615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23616 }
23617 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23618 }
23619 if (obj5) {
23620 ecode6 = SWIG_AsVal_int(obj5, &val6);
23621 if (!SWIG_IsOK(ecode6)) {
23622 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23623 }
23624 arg6 = static_cast< wxItemKind >(val6);
23625 }
23626 if (obj6) {
23627 {
23628 arg7 = wxString_in_helper(obj6);
23629 if (arg7 == NULL) SWIG_fail;
23630 temp7 = true;
23631 }
23632 }
23633 if (obj7) {
23634 {
23635 arg8 = wxString_in_helper(obj7);
23636 if (arg8 == NULL) SWIG_fail;
23637 temp8 = true;
23638 }
23639 }
23640 if (obj8) {
23641 arg9 = obj8;
23642 }
23643 {
23644 PyThreadState* __tstate = wxPyBeginAllowThreads();
23645 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23646 wxPyEndAllowThreads(__tstate);
23647 if (PyErr_Occurred()) SWIG_fail;
23648 }
23649 {
23650 resultobj = wxPyMake_wxObject(result, (bool)0);
23651 }
23652 {
23653 if (temp3)
23654 delete arg3;
23655 }
23656 {
23657 if (temp7)
23658 delete arg7;
23659 }
23660 {
23661 if (temp8)
23662 delete arg8;
23663 }
23664 return resultobj;
23665 fail:
23666 {
23667 if (temp3)
23668 delete arg3;
23669 }
23670 {
23671 if (temp7)
23672 delete arg7;
23673 }
23674 {
23675 if (temp8)
23676 delete arg8;
23677 }
23678 return NULL;
23679 }
23680
23681
23682 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23683 PyObject *resultobj = 0;
23684 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23685 size_t arg2 ;
23686 int arg3 ;
23687 wxString *arg4 = 0 ;
23688 wxBitmap *arg5 = 0 ;
23689 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23690 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23691 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23692 wxString const &arg8_defvalue = wxPyEmptyString ;
23693 wxString *arg8 = (wxString *) &arg8_defvalue ;
23694 wxString const &arg9_defvalue = wxPyEmptyString ;
23695 wxString *arg9 = (wxString *) &arg9_defvalue ;
23696 PyObject *arg10 = (PyObject *) NULL ;
23697 wxToolBarToolBase *result = 0 ;
23698 void *argp1 = 0 ;
23699 int res1 = 0 ;
23700 size_t val2 ;
23701 int ecode2 = 0 ;
23702 int val3 ;
23703 int ecode3 = 0 ;
23704 bool temp4 = false ;
23705 void *argp5 = 0 ;
23706 int res5 = 0 ;
23707 void *argp6 = 0 ;
23708 int res6 = 0 ;
23709 int val7 ;
23710 int ecode7 = 0 ;
23711 bool temp8 = false ;
23712 bool temp9 = false ;
23713 PyObject * obj0 = 0 ;
23714 PyObject * obj1 = 0 ;
23715 PyObject * obj2 = 0 ;
23716 PyObject * obj3 = 0 ;
23717 PyObject * obj4 = 0 ;
23718 PyObject * obj5 = 0 ;
23719 PyObject * obj6 = 0 ;
23720 PyObject * obj7 = 0 ;
23721 PyObject * obj8 = 0 ;
23722 PyObject * obj9 = 0 ;
23723 char * kwnames[] = {
23724 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23725 };
23726
23727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23729 if (!SWIG_IsOK(res1)) {
23730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23731 }
23732 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23733 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23734 if (!SWIG_IsOK(ecode2)) {
23735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23736 }
23737 arg2 = static_cast< size_t >(val2);
23738 ecode3 = SWIG_AsVal_int(obj2, &val3);
23739 if (!SWIG_IsOK(ecode3)) {
23740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23741 }
23742 arg3 = static_cast< int >(val3);
23743 {
23744 arg4 = wxString_in_helper(obj3);
23745 if (arg4 == NULL) SWIG_fail;
23746 temp4 = true;
23747 }
23748 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23749 if (!SWIG_IsOK(res5)) {
23750 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23751 }
23752 if (!argp5) {
23753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23754 }
23755 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23756 if (obj5) {
23757 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23758 if (!SWIG_IsOK(res6)) {
23759 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23760 }
23761 if (!argp6) {
23762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23763 }
23764 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23765 }
23766 if (obj6) {
23767 ecode7 = SWIG_AsVal_int(obj6, &val7);
23768 if (!SWIG_IsOK(ecode7)) {
23769 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23770 }
23771 arg7 = static_cast< wxItemKind >(val7);
23772 }
23773 if (obj7) {
23774 {
23775 arg8 = wxString_in_helper(obj7);
23776 if (arg8 == NULL) SWIG_fail;
23777 temp8 = true;
23778 }
23779 }
23780 if (obj8) {
23781 {
23782 arg9 = wxString_in_helper(obj8);
23783 if (arg9 == NULL) SWIG_fail;
23784 temp9 = true;
23785 }
23786 }
23787 if (obj9) {
23788 arg10 = obj9;
23789 }
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 {
23797 resultobj = wxPyMake_wxObject(result, (bool)0);
23798 }
23799 {
23800 if (temp4)
23801 delete arg4;
23802 }
23803 {
23804 if (temp8)
23805 delete arg8;
23806 }
23807 {
23808 if (temp9)
23809 delete arg9;
23810 }
23811 return resultobj;
23812 fail:
23813 {
23814 if (temp4)
23815 delete arg4;
23816 }
23817 {
23818 if (temp8)
23819 delete arg8;
23820 }
23821 {
23822 if (temp9)
23823 delete arg9;
23824 }
23825 return NULL;
23826 }
23827
23828
23829 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23830 PyObject *resultobj = 0;
23831 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23832 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23833 wxToolBarToolBase *result = 0 ;
23834 void *argp1 = 0 ;
23835 int res1 = 0 ;
23836 void *argp2 = 0 ;
23837 int res2 = 0 ;
23838 PyObject * obj0 = 0 ;
23839 PyObject * obj1 = 0 ;
23840 char * kwnames[] = {
23841 (char *) "self",(char *) "tool", NULL
23842 };
23843
23844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23846 if (!SWIG_IsOK(res1)) {
23847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23848 }
23849 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23851 if (!SWIG_IsOK(res2)) {
23852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23853 }
23854 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23855 {
23856 PyThreadState* __tstate = wxPyBeginAllowThreads();
23857 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23858 wxPyEndAllowThreads(__tstate);
23859 if (PyErr_Occurred()) SWIG_fail;
23860 }
23861 {
23862 resultobj = wxPyMake_wxObject(result, (bool)0);
23863 }
23864 return resultobj;
23865 fail:
23866 return NULL;
23867 }
23868
23869
23870 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23871 PyObject *resultobj = 0;
23872 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23873 size_t arg2 ;
23874 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23875 wxToolBarToolBase *result = 0 ;
23876 void *argp1 = 0 ;
23877 int res1 = 0 ;
23878 size_t val2 ;
23879 int ecode2 = 0 ;
23880 void *argp3 = 0 ;
23881 int res3 = 0 ;
23882 PyObject * obj0 = 0 ;
23883 PyObject * obj1 = 0 ;
23884 PyObject * obj2 = 0 ;
23885 char * kwnames[] = {
23886 (char *) "self",(char *) "pos",(char *) "tool", NULL
23887 };
23888
23889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23891 if (!SWIG_IsOK(res1)) {
23892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23893 }
23894 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23895 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23896 if (!SWIG_IsOK(ecode2)) {
23897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23898 }
23899 arg2 = static_cast< size_t >(val2);
23900 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23901 if (!SWIG_IsOK(res3)) {
23902 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23903 }
23904 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23905 {
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 {
23912 resultobj = wxPyMake_wxObject(result, (bool)0);
23913 }
23914 return resultobj;
23915 fail:
23916 return NULL;
23917 }
23918
23919
23920 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23921 PyObject *resultobj = 0;
23922 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23923 wxControl *arg2 = (wxControl *) 0 ;
23924 wxToolBarToolBase *result = 0 ;
23925 void *argp1 = 0 ;
23926 int res1 = 0 ;
23927 void *argp2 = 0 ;
23928 int res2 = 0 ;
23929 PyObject * obj0 = 0 ;
23930 PyObject * obj1 = 0 ;
23931 char * kwnames[] = {
23932 (char *) "self",(char *) "control", NULL
23933 };
23934
23935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23937 if (!SWIG_IsOK(res1)) {
23938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23939 }
23940 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23942 if (!SWIG_IsOK(res2)) {
23943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23944 }
23945 arg2 = reinterpret_cast< wxControl * >(argp2);
23946 {
23947 PyThreadState* __tstate = wxPyBeginAllowThreads();
23948 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23949 wxPyEndAllowThreads(__tstate);
23950 if (PyErr_Occurred()) SWIG_fail;
23951 }
23952 {
23953 resultobj = wxPyMake_wxObject(result, (bool)0);
23954 }
23955 return resultobj;
23956 fail:
23957 return NULL;
23958 }
23959
23960
23961 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23962 PyObject *resultobj = 0;
23963 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23964 size_t arg2 ;
23965 wxControl *arg3 = (wxControl *) 0 ;
23966 wxToolBarToolBase *result = 0 ;
23967 void *argp1 = 0 ;
23968 int res1 = 0 ;
23969 size_t val2 ;
23970 int ecode2 = 0 ;
23971 void *argp3 = 0 ;
23972 int res3 = 0 ;
23973 PyObject * obj0 = 0 ;
23974 PyObject * obj1 = 0 ;
23975 PyObject * obj2 = 0 ;
23976 char * kwnames[] = {
23977 (char *) "self",(char *) "pos",(char *) "control", NULL
23978 };
23979
23980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23982 if (!SWIG_IsOK(res1)) {
23983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23984 }
23985 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23986 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23987 if (!SWIG_IsOK(ecode2)) {
23988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23989 }
23990 arg2 = static_cast< size_t >(val2);
23991 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23992 if (!SWIG_IsOK(res3)) {
23993 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23994 }
23995 arg3 = reinterpret_cast< wxControl * >(argp3);
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 {
24003 resultobj = wxPyMake_wxObject(result, (bool)0);
24004 }
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj = 0;
24013 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24014 int arg2 ;
24015 wxControl *result = 0 ;
24016 void *argp1 = 0 ;
24017 int res1 = 0 ;
24018 int val2 ;
24019 int ecode2 = 0 ;
24020 PyObject * obj0 = 0 ;
24021 PyObject * obj1 = 0 ;
24022 char * kwnames[] = {
24023 (char *) "self",(char *) "id", NULL
24024 };
24025
24026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24030 }
24031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24032 ecode2 = SWIG_AsVal_int(obj1, &val2);
24033 if (!SWIG_IsOK(ecode2)) {
24034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24035 }
24036 arg2 = static_cast< int >(val2);
24037 {
24038 PyThreadState* __tstate = wxPyBeginAllowThreads();
24039 result = (wxControl *)(arg1)->FindControl(arg2);
24040 wxPyEndAllowThreads(__tstate);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 {
24044 resultobj = wxPyMake_wxObject(result, 0);
24045 }
24046 return resultobj;
24047 fail:
24048 return NULL;
24049 }
24050
24051
24052 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24053 PyObject *resultobj = 0;
24054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24055 wxToolBarToolBase *result = 0 ;
24056 void *argp1 = 0 ;
24057 int res1 = 0 ;
24058 PyObject *swig_obj[1] ;
24059
24060 if (!args) SWIG_fail;
24061 swig_obj[0] = args;
24062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24063 if (!SWIG_IsOK(res1)) {
24064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24065 }
24066 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24067 {
24068 PyThreadState* __tstate = wxPyBeginAllowThreads();
24069 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24070 wxPyEndAllowThreads(__tstate);
24071 if (PyErr_Occurred()) SWIG_fail;
24072 }
24073 {
24074 resultobj = wxPyMake_wxObject(result, (bool)0);
24075 }
24076 return resultobj;
24077 fail:
24078 return NULL;
24079 }
24080
24081
24082 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24083 PyObject *resultobj = 0;
24084 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24085 size_t arg2 ;
24086 wxToolBarToolBase *result = 0 ;
24087 void *argp1 = 0 ;
24088 int res1 = 0 ;
24089 size_t val2 ;
24090 int ecode2 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 PyObject * obj1 = 0 ;
24093 char * kwnames[] = {
24094 (char *) "self",(char *) "pos", NULL
24095 };
24096
24097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24099 if (!SWIG_IsOK(res1)) {
24100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24101 }
24102 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24103 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24104 if (!SWIG_IsOK(ecode2)) {
24105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24106 }
24107 arg2 = static_cast< size_t >(val2);
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 {
24115 resultobj = wxPyMake_wxObject(result, (bool)0);
24116 }
24117 return resultobj;
24118 fail:
24119 return NULL;
24120 }
24121
24122
24123 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24124 PyObject *resultobj = 0;
24125 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24126 int arg2 ;
24127 wxToolBarToolBase *result = 0 ;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 int val2 ;
24131 int ecode2 = 0 ;
24132 PyObject * obj0 = 0 ;
24133 PyObject * obj1 = 0 ;
24134 char * kwnames[] = {
24135 (char *) "self",(char *) "id", NULL
24136 };
24137
24138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24142 }
24143 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24144 ecode2 = SWIG_AsVal_int(obj1, &val2);
24145 if (!SWIG_IsOK(ecode2)) {
24146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24147 }
24148 arg2 = static_cast< int >(val2);
24149 {
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 {
24156 resultobj = wxPyMake_wxObject(result, (bool)0);
24157 }
24158 return resultobj;
24159 fail:
24160 return NULL;
24161 }
24162
24163
24164 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24165 PyObject *resultobj = 0;
24166 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24167 size_t arg2 ;
24168 bool result;
24169 void *argp1 = 0 ;
24170 int res1 = 0 ;
24171 size_t val2 ;
24172 int ecode2 = 0 ;
24173 PyObject * obj0 = 0 ;
24174 PyObject * obj1 = 0 ;
24175 char * kwnames[] = {
24176 (char *) "self",(char *) "pos", NULL
24177 };
24178
24179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24181 if (!SWIG_IsOK(res1)) {
24182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24183 }
24184 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24185 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24186 if (!SWIG_IsOK(ecode2)) {
24187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24188 }
24189 arg2 = static_cast< size_t >(val2);
24190 {
24191 PyThreadState* __tstate = wxPyBeginAllowThreads();
24192 result = (bool)(arg1)->DeleteToolByPos(arg2);
24193 wxPyEndAllowThreads(__tstate);
24194 if (PyErr_Occurred()) SWIG_fail;
24195 }
24196 {
24197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24198 }
24199 return resultobj;
24200 fail:
24201 return NULL;
24202 }
24203
24204
24205 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24206 PyObject *resultobj = 0;
24207 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24208 int arg2 ;
24209 bool result;
24210 void *argp1 = 0 ;
24211 int res1 = 0 ;
24212 int val2 ;
24213 int ecode2 = 0 ;
24214 PyObject * obj0 = 0 ;
24215 PyObject * obj1 = 0 ;
24216 char * kwnames[] = {
24217 (char *) "self",(char *) "id", NULL
24218 };
24219
24220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24222 if (!SWIG_IsOK(res1)) {
24223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24224 }
24225 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24226 ecode2 = SWIG_AsVal_int(obj1, &val2);
24227 if (!SWIG_IsOK(ecode2)) {
24228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24229 }
24230 arg2 = static_cast< int >(val2);
24231 {
24232 PyThreadState* __tstate = wxPyBeginAllowThreads();
24233 result = (bool)(arg1)->DeleteTool(arg2);
24234 wxPyEndAllowThreads(__tstate);
24235 if (PyErr_Occurred()) SWIG_fail;
24236 }
24237 {
24238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24239 }
24240 return resultobj;
24241 fail:
24242 return NULL;
24243 }
24244
24245
24246 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24247 PyObject *resultobj = 0;
24248 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24249 void *argp1 = 0 ;
24250 int res1 = 0 ;
24251 PyObject *swig_obj[1] ;
24252
24253 if (!args) SWIG_fail;
24254 swig_obj[0] = args;
24255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24256 if (!SWIG_IsOK(res1)) {
24257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24258 }
24259 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24260 {
24261 PyThreadState* __tstate = wxPyBeginAllowThreads();
24262 (arg1)->ClearTools();
24263 wxPyEndAllowThreads(__tstate);
24264 if (PyErr_Occurred()) SWIG_fail;
24265 }
24266 resultobj = SWIG_Py_Void();
24267 return resultobj;
24268 fail:
24269 return NULL;
24270 }
24271
24272
24273 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24274 PyObject *resultobj = 0;
24275 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24276 bool result;
24277 void *argp1 = 0 ;
24278 int res1 = 0 ;
24279 PyObject *swig_obj[1] ;
24280
24281 if (!args) SWIG_fail;
24282 swig_obj[0] = args;
24283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24286 }
24287 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24288 {
24289 PyThreadState* __tstate = wxPyBeginAllowThreads();
24290 result = (bool)(arg1)->Realize();
24291 wxPyEndAllowThreads(__tstate);
24292 if (PyErr_Occurred()) SWIG_fail;
24293 }
24294 {
24295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24296 }
24297 return resultobj;
24298 fail:
24299 return NULL;
24300 }
24301
24302
24303 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj = 0;
24305 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24306 int arg2 ;
24307 bool arg3 ;
24308 void *argp1 = 0 ;
24309 int res1 = 0 ;
24310 int val2 ;
24311 int ecode2 = 0 ;
24312 bool val3 ;
24313 int ecode3 = 0 ;
24314 PyObject * obj0 = 0 ;
24315 PyObject * obj1 = 0 ;
24316 PyObject * obj2 = 0 ;
24317 char * kwnames[] = {
24318 (char *) "self",(char *) "id",(char *) "enable", NULL
24319 };
24320
24321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24323 if (!SWIG_IsOK(res1)) {
24324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24325 }
24326 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24327 ecode2 = SWIG_AsVal_int(obj1, &val2);
24328 if (!SWIG_IsOK(ecode2)) {
24329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24330 }
24331 arg2 = static_cast< int >(val2);
24332 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24333 if (!SWIG_IsOK(ecode3)) {
24334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24335 }
24336 arg3 = static_cast< bool >(val3);
24337 {
24338 PyThreadState* __tstate = wxPyBeginAllowThreads();
24339 (arg1)->EnableTool(arg2,arg3);
24340 wxPyEndAllowThreads(__tstate);
24341 if (PyErr_Occurred()) SWIG_fail;
24342 }
24343 resultobj = SWIG_Py_Void();
24344 return resultobj;
24345 fail:
24346 return NULL;
24347 }
24348
24349
24350 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24351 PyObject *resultobj = 0;
24352 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24353 int arg2 ;
24354 bool arg3 ;
24355 void *argp1 = 0 ;
24356 int res1 = 0 ;
24357 int val2 ;
24358 int ecode2 = 0 ;
24359 bool val3 ;
24360 int ecode3 = 0 ;
24361 PyObject * obj0 = 0 ;
24362 PyObject * obj1 = 0 ;
24363 PyObject * obj2 = 0 ;
24364 char * kwnames[] = {
24365 (char *) "self",(char *) "id",(char *) "toggle", NULL
24366 };
24367
24368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24370 if (!SWIG_IsOK(res1)) {
24371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24372 }
24373 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24374 ecode2 = SWIG_AsVal_int(obj1, &val2);
24375 if (!SWIG_IsOK(ecode2)) {
24376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24377 }
24378 arg2 = static_cast< int >(val2);
24379 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24380 if (!SWIG_IsOK(ecode3)) {
24381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24382 }
24383 arg3 = static_cast< bool >(val3);
24384 {
24385 PyThreadState* __tstate = wxPyBeginAllowThreads();
24386 (arg1)->ToggleTool(arg2,arg3);
24387 wxPyEndAllowThreads(__tstate);
24388 if (PyErr_Occurred()) SWIG_fail;
24389 }
24390 resultobj = SWIG_Py_Void();
24391 return resultobj;
24392 fail:
24393 return NULL;
24394 }
24395
24396
24397 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24398 PyObject *resultobj = 0;
24399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24400 int arg2 ;
24401 bool arg3 ;
24402 void *argp1 = 0 ;
24403 int res1 = 0 ;
24404 int val2 ;
24405 int ecode2 = 0 ;
24406 bool val3 ;
24407 int ecode3 = 0 ;
24408 PyObject * obj0 = 0 ;
24409 PyObject * obj1 = 0 ;
24410 PyObject * obj2 = 0 ;
24411 char * kwnames[] = {
24412 (char *) "self",(char *) "id",(char *) "toggle", NULL
24413 };
24414
24415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24417 if (!SWIG_IsOK(res1)) {
24418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24419 }
24420 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24421 ecode2 = SWIG_AsVal_int(obj1, &val2);
24422 if (!SWIG_IsOK(ecode2)) {
24423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24424 }
24425 arg2 = static_cast< int >(val2);
24426 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24427 if (!SWIG_IsOK(ecode3)) {
24428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24429 }
24430 arg3 = static_cast< bool >(val3);
24431 {
24432 PyThreadState* __tstate = wxPyBeginAllowThreads();
24433 (arg1)->SetToggle(arg2,arg3);
24434 wxPyEndAllowThreads(__tstate);
24435 if (PyErr_Occurred()) SWIG_fail;
24436 }
24437 resultobj = SWIG_Py_Void();
24438 return resultobj;
24439 fail:
24440 return NULL;
24441 }
24442
24443
24444 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24445 PyObject *resultobj = 0;
24446 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24447 int arg2 ;
24448 PyObject *result = 0 ;
24449 void *argp1 = 0 ;
24450 int res1 = 0 ;
24451 int val2 ;
24452 int ecode2 = 0 ;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 char * kwnames[] = {
24456 (char *) "self",(char *) "id", NULL
24457 };
24458
24459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24461 if (!SWIG_IsOK(res1)) {
24462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24463 }
24464 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24465 ecode2 = SWIG_AsVal_int(obj1, &val2);
24466 if (!SWIG_IsOK(ecode2)) {
24467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24468 }
24469 arg2 = static_cast< int >(val2);
24470 {
24471 PyThreadState* __tstate = wxPyBeginAllowThreads();
24472 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = result;
24477 return resultobj;
24478 fail:
24479 return NULL;
24480 }
24481
24482
24483 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24486 int arg2 ;
24487 PyObject *arg3 = (PyObject *) 0 ;
24488 void *argp1 = 0 ;
24489 int res1 = 0 ;
24490 int val2 ;
24491 int ecode2 = 0 ;
24492 PyObject * obj0 = 0 ;
24493 PyObject * obj1 = 0 ;
24494 PyObject * obj2 = 0 ;
24495 char * kwnames[] = {
24496 (char *) "self",(char *) "id",(char *) "clientData", NULL
24497 };
24498
24499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24501 if (!SWIG_IsOK(res1)) {
24502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24503 }
24504 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24505 ecode2 = SWIG_AsVal_int(obj1, &val2);
24506 if (!SWIG_IsOK(ecode2)) {
24507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24508 }
24509 arg2 = static_cast< int >(val2);
24510 arg3 = obj2;
24511 {
24512 PyThreadState* __tstate = wxPyBeginAllowThreads();
24513 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24514 wxPyEndAllowThreads(__tstate);
24515 if (PyErr_Occurred()) SWIG_fail;
24516 }
24517 resultobj = SWIG_Py_Void();
24518 return resultobj;
24519 fail:
24520 return NULL;
24521 }
24522
24523
24524 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24525 PyObject *resultobj = 0;
24526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24527 int arg2 ;
24528 int result;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 int val2 ;
24532 int ecode2 = 0 ;
24533 PyObject * obj0 = 0 ;
24534 PyObject * obj1 = 0 ;
24535 char * kwnames[] = {
24536 (char *) "self",(char *) "id", NULL
24537 };
24538
24539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24541 if (!SWIG_IsOK(res1)) {
24542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24543 }
24544 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24545 ecode2 = SWIG_AsVal_int(obj1, &val2);
24546 if (!SWIG_IsOK(ecode2)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24548 }
24549 arg2 = static_cast< int >(val2);
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24553 wxPyEndAllowThreads(__tstate);
24554 if (PyErr_Occurred()) SWIG_fail;
24555 }
24556 resultobj = SWIG_From_int(static_cast< int >(result));
24557 return resultobj;
24558 fail:
24559 return NULL;
24560 }
24561
24562
24563 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24564 PyObject *resultobj = 0;
24565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24566 int arg2 ;
24567 bool result;
24568 void *argp1 = 0 ;
24569 int res1 = 0 ;
24570 int val2 ;
24571 int ecode2 = 0 ;
24572 PyObject * obj0 = 0 ;
24573 PyObject * obj1 = 0 ;
24574 char * kwnames[] = {
24575 (char *) "self",(char *) "id", NULL
24576 };
24577
24578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24580 if (!SWIG_IsOK(res1)) {
24581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24582 }
24583 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24584 ecode2 = SWIG_AsVal_int(obj1, &val2);
24585 if (!SWIG_IsOK(ecode2)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24587 }
24588 arg2 = static_cast< int >(val2);
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 result = (bool)(arg1)->GetToolState(arg2);
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 {
24596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24597 }
24598 return resultobj;
24599 fail:
24600 return NULL;
24601 }
24602
24603
24604 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24605 PyObject *resultobj = 0;
24606 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24607 int arg2 ;
24608 bool result;
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 int val2 ;
24612 int ecode2 = 0 ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 char * kwnames[] = {
24616 (char *) "self",(char *) "id", NULL
24617 };
24618
24619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24621 if (!SWIG_IsOK(res1)) {
24622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24623 }
24624 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24625 ecode2 = SWIG_AsVal_int(obj1, &val2);
24626 if (!SWIG_IsOK(ecode2)) {
24627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24628 }
24629 arg2 = static_cast< int >(val2);
24630 {
24631 PyThreadState* __tstate = wxPyBeginAllowThreads();
24632 result = (bool)(arg1)->GetToolEnabled(arg2);
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 {
24637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24638 }
24639 return resultobj;
24640 fail:
24641 return NULL;
24642 }
24643
24644
24645 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24646 PyObject *resultobj = 0;
24647 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24648 int arg2 ;
24649 wxString *arg3 = 0 ;
24650 void *argp1 = 0 ;
24651 int res1 = 0 ;
24652 int val2 ;
24653 int ecode2 = 0 ;
24654 bool temp3 = false ;
24655 PyObject * obj0 = 0 ;
24656 PyObject * obj1 = 0 ;
24657 PyObject * obj2 = 0 ;
24658 char * kwnames[] = {
24659 (char *) "self",(char *) "id",(char *) "helpString", NULL
24660 };
24661
24662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24664 if (!SWIG_IsOK(res1)) {
24665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24666 }
24667 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24668 ecode2 = SWIG_AsVal_int(obj1, &val2);
24669 if (!SWIG_IsOK(ecode2)) {
24670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24671 }
24672 arg2 = static_cast< int >(val2);
24673 {
24674 arg3 = wxString_in_helper(obj2);
24675 if (arg3 == NULL) SWIG_fail;
24676 temp3 = true;
24677 }
24678 {
24679 PyThreadState* __tstate = wxPyBeginAllowThreads();
24680 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24681 wxPyEndAllowThreads(__tstate);
24682 if (PyErr_Occurred()) SWIG_fail;
24683 }
24684 resultobj = SWIG_Py_Void();
24685 {
24686 if (temp3)
24687 delete arg3;
24688 }
24689 return resultobj;
24690 fail:
24691 {
24692 if (temp3)
24693 delete arg3;
24694 }
24695 return NULL;
24696 }
24697
24698
24699 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24700 PyObject *resultobj = 0;
24701 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24702 int arg2 ;
24703 wxString result;
24704 void *argp1 = 0 ;
24705 int res1 = 0 ;
24706 int val2 ;
24707 int ecode2 = 0 ;
24708 PyObject * obj0 = 0 ;
24709 PyObject * obj1 = 0 ;
24710 char * kwnames[] = {
24711 (char *) "self",(char *) "id", NULL
24712 };
24713
24714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24716 if (!SWIG_IsOK(res1)) {
24717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24718 }
24719 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24720 ecode2 = SWIG_AsVal_int(obj1, &val2);
24721 if (!SWIG_IsOK(ecode2)) {
24722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24723 }
24724 arg2 = static_cast< int >(val2);
24725 {
24726 PyThreadState* __tstate = wxPyBeginAllowThreads();
24727 result = (arg1)->GetToolShortHelp(arg2);
24728 wxPyEndAllowThreads(__tstate);
24729 if (PyErr_Occurred()) SWIG_fail;
24730 }
24731 {
24732 #if wxUSE_UNICODE
24733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24734 #else
24735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24736 #endif
24737 }
24738 return resultobj;
24739 fail:
24740 return NULL;
24741 }
24742
24743
24744 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24745 PyObject *resultobj = 0;
24746 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24747 int arg2 ;
24748 wxString *arg3 = 0 ;
24749 void *argp1 = 0 ;
24750 int res1 = 0 ;
24751 int val2 ;
24752 int ecode2 = 0 ;
24753 bool temp3 = false ;
24754 PyObject * obj0 = 0 ;
24755 PyObject * obj1 = 0 ;
24756 PyObject * obj2 = 0 ;
24757 char * kwnames[] = {
24758 (char *) "self",(char *) "id",(char *) "helpString", NULL
24759 };
24760
24761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24763 if (!SWIG_IsOK(res1)) {
24764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24765 }
24766 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24767 ecode2 = SWIG_AsVal_int(obj1, &val2);
24768 if (!SWIG_IsOK(ecode2)) {
24769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24770 }
24771 arg2 = static_cast< int >(val2);
24772 {
24773 arg3 = wxString_in_helper(obj2);
24774 if (arg3 == NULL) SWIG_fail;
24775 temp3 = true;
24776 }
24777 {
24778 PyThreadState* __tstate = wxPyBeginAllowThreads();
24779 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24780 wxPyEndAllowThreads(__tstate);
24781 if (PyErr_Occurred()) SWIG_fail;
24782 }
24783 resultobj = SWIG_Py_Void();
24784 {
24785 if (temp3)
24786 delete arg3;
24787 }
24788 return resultobj;
24789 fail:
24790 {
24791 if (temp3)
24792 delete arg3;
24793 }
24794 return NULL;
24795 }
24796
24797
24798 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24799 PyObject *resultobj = 0;
24800 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24801 int arg2 ;
24802 wxString result;
24803 void *argp1 = 0 ;
24804 int res1 = 0 ;
24805 int val2 ;
24806 int ecode2 = 0 ;
24807 PyObject * obj0 = 0 ;
24808 PyObject * obj1 = 0 ;
24809 char * kwnames[] = {
24810 (char *) "self",(char *) "id", NULL
24811 };
24812
24813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24815 if (!SWIG_IsOK(res1)) {
24816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24817 }
24818 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24819 ecode2 = SWIG_AsVal_int(obj1, &val2);
24820 if (!SWIG_IsOK(ecode2)) {
24821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24822 }
24823 arg2 = static_cast< int >(val2);
24824 {
24825 PyThreadState* __tstate = wxPyBeginAllowThreads();
24826 result = (arg1)->GetToolLongHelp(arg2);
24827 wxPyEndAllowThreads(__tstate);
24828 if (PyErr_Occurred()) SWIG_fail;
24829 }
24830 {
24831 #if wxUSE_UNICODE
24832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24833 #else
24834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24835 #endif
24836 }
24837 return resultobj;
24838 fail:
24839 return NULL;
24840 }
24841
24842
24843 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24844 PyObject *resultobj = 0;
24845 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24846 int arg2 ;
24847 int arg3 ;
24848 void *argp1 = 0 ;
24849 int res1 = 0 ;
24850 int val2 ;
24851 int ecode2 = 0 ;
24852 int val3 ;
24853 int ecode3 = 0 ;
24854 PyObject * obj0 = 0 ;
24855 PyObject * obj1 = 0 ;
24856 PyObject * obj2 = 0 ;
24857 char * kwnames[] = {
24858 (char *) "self",(char *) "x",(char *) "y", NULL
24859 };
24860
24861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24863 if (!SWIG_IsOK(res1)) {
24864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24865 }
24866 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24867 ecode2 = SWIG_AsVal_int(obj1, &val2);
24868 if (!SWIG_IsOK(ecode2)) {
24869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24870 }
24871 arg2 = static_cast< int >(val2);
24872 ecode3 = SWIG_AsVal_int(obj2, &val3);
24873 if (!SWIG_IsOK(ecode3)) {
24874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24875 }
24876 arg3 = static_cast< int >(val3);
24877 {
24878 PyThreadState* __tstate = wxPyBeginAllowThreads();
24879 (arg1)->SetMargins(arg2,arg3);
24880 wxPyEndAllowThreads(__tstate);
24881 if (PyErr_Occurred()) SWIG_fail;
24882 }
24883 resultobj = SWIG_Py_Void();
24884 return resultobj;
24885 fail:
24886 return NULL;
24887 }
24888
24889
24890 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24891 PyObject *resultobj = 0;
24892 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24893 wxSize *arg2 = 0 ;
24894 void *argp1 = 0 ;
24895 int res1 = 0 ;
24896 wxSize temp2 ;
24897 PyObject * obj0 = 0 ;
24898 PyObject * obj1 = 0 ;
24899 char * kwnames[] = {
24900 (char *) "self",(char *) "size", NULL
24901 };
24902
24903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24905 if (!SWIG_IsOK(res1)) {
24906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24907 }
24908 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24909 {
24910 arg2 = &temp2;
24911 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24912 }
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 (arg1)->SetMargins((wxSize const &)*arg2);
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 resultobj = SWIG_Py_Void();
24920 return resultobj;
24921 fail:
24922 return NULL;
24923 }
24924
24925
24926 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24927 PyObject *resultobj = 0;
24928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24929 int arg2 ;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 int val2 ;
24933 int ecode2 = 0 ;
24934 PyObject * obj0 = 0 ;
24935 PyObject * obj1 = 0 ;
24936 char * kwnames[] = {
24937 (char *) "self",(char *) "packing", NULL
24938 };
24939
24940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24942 if (!SWIG_IsOK(res1)) {
24943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24944 }
24945 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24946 ecode2 = SWIG_AsVal_int(obj1, &val2);
24947 if (!SWIG_IsOK(ecode2)) {
24948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24949 }
24950 arg2 = static_cast< int >(val2);
24951 {
24952 PyThreadState* __tstate = wxPyBeginAllowThreads();
24953 (arg1)->SetToolPacking(arg2);
24954 wxPyEndAllowThreads(__tstate);
24955 if (PyErr_Occurred()) SWIG_fail;
24956 }
24957 resultobj = SWIG_Py_Void();
24958 return resultobj;
24959 fail:
24960 return NULL;
24961 }
24962
24963
24964 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj = 0;
24966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24967 int arg2 ;
24968 void *argp1 = 0 ;
24969 int res1 = 0 ;
24970 int val2 ;
24971 int ecode2 = 0 ;
24972 PyObject * obj0 = 0 ;
24973 PyObject * obj1 = 0 ;
24974 char * kwnames[] = {
24975 (char *) "self",(char *) "separation", NULL
24976 };
24977
24978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24980 if (!SWIG_IsOK(res1)) {
24981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24982 }
24983 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24984 ecode2 = SWIG_AsVal_int(obj1, &val2);
24985 if (!SWIG_IsOK(ecode2)) {
24986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24987 }
24988 arg2 = static_cast< int >(val2);
24989 {
24990 PyThreadState* __tstate = wxPyBeginAllowThreads();
24991 (arg1)->SetToolSeparation(arg2);
24992 wxPyEndAllowThreads(__tstate);
24993 if (PyErr_Occurred()) SWIG_fail;
24994 }
24995 resultobj = SWIG_Py_Void();
24996 return resultobj;
24997 fail:
24998 return NULL;
24999 }
25000
25001
25002 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25003 PyObject *resultobj = 0;
25004 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25005 wxSize result;
25006 void *argp1 = 0 ;
25007 int res1 = 0 ;
25008 PyObject *swig_obj[1] ;
25009
25010 if (!args) SWIG_fail;
25011 swig_obj[0] = args;
25012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25013 if (!SWIG_IsOK(res1)) {
25014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25015 }
25016 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25017 {
25018 PyThreadState* __tstate = wxPyBeginAllowThreads();
25019 result = (arg1)->GetToolMargins();
25020 wxPyEndAllowThreads(__tstate);
25021 if (PyErr_Occurred()) SWIG_fail;
25022 }
25023 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25024 return resultobj;
25025 fail:
25026 return NULL;
25027 }
25028
25029
25030 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25031 PyObject *resultobj = 0;
25032 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25033 wxSize result;
25034 void *argp1 = 0 ;
25035 int res1 = 0 ;
25036 PyObject *swig_obj[1] ;
25037
25038 if (!args) SWIG_fail;
25039 swig_obj[0] = args;
25040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25041 if (!SWIG_IsOK(res1)) {
25042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25043 }
25044 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25045 {
25046 PyThreadState* __tstate = wxPyBeginAllowThreads();
25047 result = (arg1)->GetMargins();
25048 wxPyEndAllowThreads(__tstate);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25052 return resultobj;
25053 fail:
25054 return NULL;
25055 }
25056
25057
25058 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25059 PyObject *resultobj = 0;
25060 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25061 int result;
25062 void *argp1 = 0 ;
25063 int res1 = 0 ;
25064 PyObject *swig_obj[1] ;
25065
25066 if (!args) SWIG_fail;
25067 swig_obj[0] = args;
25068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25069 if (!SWIG_IsOK(res1)) {
25070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25071 }
25072 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 result = (int)(arg1)->GetToolPacking();
25076 wxPyEndAllowThreads(__tstate);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 resultobj = SWIG_From_int(static_cast< int >(result));
25080 return resultobj;
25081 fail:
25082 return NULL;
25083 }
25084
25085
25086 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25087 PyObject *resultobj = 0;
25088 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25089 int result;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 PyObject *swig_obj[1] ;
25093
25094 if (!args) SWIG_fail;
25095 swig_obj[0] = args;
25096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25097 if (!SWIG_IsOK(res1)) {
25098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25099 }
25100 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25101 {
25102 PyThreadState* __tstate = wxPyBeginAllowThreads();
25103 result = (int)(arg1)->GetToolSeparation();
25104 wxPyEndAllowThreads(__tstate);
25105 if (PyErr_Occurred()) SWIG_fail;
25106 }
25107 resultobj = SWIG_From_int(static_cast< int >(result));
25108 return resultobj;
25109 fail:
25110 return NULL;
25111 }
25112
25113
25114 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25115 PyObject *resultobj = 0;
25116 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25117 int arg2 ;
25118 void *argp1 = 0 ;
25119 int res1 = 0 ;
25120 int val2 ;
25121 int ecode2 = 0 ;
25122 PyObject * obj0 = 0 ;
25123 PyObject * obj1 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "self",(char *) "nRows", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25132 }
25133 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25134 ecode2 = SWIG_AsVal_int(obj1, &val2);
25135 if (!SWIG_IsOK(ecode2)) {
25136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25137 }
25138 arg2 = static_cast< int >(val2);
25139 {
25140 PyThreadState* __tstate = wxPyBeginAllowThreads();
25141 (arg1)->SetRows(arg2);
25142 wxPyEndAllowThreads(__tstate);
25143 if (PyErr_Occurred()) SWIG_fail;
25144 }
25145 resultobj = SWIG_Py_Void();
25146 return resultobj;
25147 fail:
25148 return NULL;
25149 }
25150
25151
25152 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25153 PyObject *resultobj = 0;
25154 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25155 int arg2 ;
25156 int arg3 ;
25157 void *argp1 = 0 ;
25158 int res1 = 0 ;
25159 int val2 ;
25160 int ecode2 = 0 ;
25161 int val3 ;
25162 int ecode3 = 0 ;
25163 PyObject * obj0 = 0 ;
25164 PyObject * obj1 = 0 ;
25165 PyObject * obj2 = 0 ;
25166 char * kwnames[] = {
25167 (char *) "self",(char *) "rows",(char *) "cols", NULL
25168 };
25169
25170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25172 if (!SWIG_IsOK(res1)) {
25173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25174 }
25175 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25176 ecode2 = SWIG_AsVal_int(obj1, &val2);
25177 if (!SWIG_IsOK(ecode2)) {
25178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25179 }
25180 arg2 = static_cast< int >(val2);
25181 ecode3 = SWIG_AsVal_int(obj2, &val3);
25182 if (!SWIG_IsOK(ecode3)) {
25183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25184 }
25185 arg3 = static_cast< int >(val3);
25186 {
25187 PyThreadState* __tstate = wxPyBeginAllowThreads();
25188 (arg1)->SetMaxRowsCols(arg2,arg3);
25189 wxPyEndAllowThreads(__tstate);
25190 if (PyErr_Occurred()) SWIG_fail;
25191 }
25192 resultobj = SWIG_Py_Void();
25193 return resultobj;
25194 fail:
25195 return NULL;
25196 }
25197
25198
25199 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25200 PyObject *resultobj = 0;
25201 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25202 int result;
25203 void *argp1 = 0 ;
25204 int res1 = 0 ;
25205 PyObject *swig_obj[1] ;
25206
25207 if (!args) SWIG_fail;
25208 swig_obj[0] = args;
25209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25210 if (!SWIG_IsOK(res1)) {
25211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25212 }
25213 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 result = (int)(arg1)->GetMaxRows();
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = SWIG_From_int(static_cast< int >(result));
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25228 PyObject *resultobj = 0;
25229 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25230 int result;
25231 void *argp1 = 0 ;
25232 int res1 = 0 ;
25233 PyObject *swig_obj[1] ;
25234
25235 if (!args) SWIG_fail;
25236 swig_obj[0] = args;
25237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25238 if (!SWIG_IsOK(res1)) {
25239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25240 }
25241 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25242 {
25243 PyThreadState* __tstate = wxPyBeginAllowThreads();
25244 result = (int)(arg1)->GetMaxCols();
25245 wxPyEndAllowThreads(__tstate);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 resultobj = SWIG_From_int(static_cast< int >(result));
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25256 PyObject *resultobj = 0;
25257 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25258 wxSize *arg2 = 0 ;
25259 void *argp1 = 0 ;
25260 int res1 = 0 ;
25261 wxSize temp2 ;
25262 PyObject * obj0 = 0 ;
25263 PyObject * obj1 = 0 ;
25264 char * kwnames[] = {
25265 (char *) "self",(char *) "size", NULL
25266 };
25267
25268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25270 if (!SWIG_IsOK(res1)) {
25271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25272 }
25273 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25274 {
25275 arg2 = &temp2;
25276 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25277 }
25278 {
25279 PyThreadState* __tstate = wxPyBeginAllowThreads();
25280 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25281 wxPyEndAllowThreads(__tstate);
25282 if (PyErr_Occurred()) SWIG_fail;
25283 }
25284 resultobj = SWIG_Py_Void();
25285 return resultobj;
25286 fail:
25287 return NULL;
25288 }
25289
25290
25291 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25292 PyObject *resultobj = 0;
25293 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25294 wxSize result;
25295 void *argp1 = 0 ;
25296 int res1 = 0 ;
25297 PyObject *swig_obj[1] ;
25298
25299 if (!args) SWIG_fail;
25300 swig_obj[0] = args;
25301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25302 if (!SWIG_IsOK(res1)) {
25303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25304 }
25305 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25306 {
25307 PyThreadState* __tstate = wxPyBeginAllowThreads();
25308 result = (arg1)->GetToolBitmapSize();
25309 wxPyEndAllowThreads(__tstate);
25310 if (PyErr_Occurred()) SWIG_fail;
25311 }
25312 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25313 return resultobj;
25314 fail:
25315 return NULL;
25316 }
25317
25318
25319 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25320 PyObject *resultobj = 0;
25321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25322 wxSize result;
25323 void *argp1 = 0 ;
25324 int res1 = 0 ;
25325 PyObject *swig_obj[1] ;
25326
25327 if (!args) SWIG_fail;
25328 swig_obj[0] = args;
25329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25330 if (!SWIG_IsOK(res1)) {
25331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25332 }
25333 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25334 {
25335 PyThreadState* __tstate = wxPyBeginAllowThreads();
25336 result = (arg1)->GetToolSize();
25337 wxPyEndAllowThreads(__tstate);
25338 if (PyErr_Occurred()) SWIG_fail;
25339 }
25340 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25341 return resultobj;
25342 fail:
25343 return NULL;
25344 }
25345
25346
25347 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj = 0;
25349 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25350 int arg2 ;
25351 int arg3 ;
25352 wxToolBarToolBase *result = 0 ;
25353 void *argp1 = 0 ;
25354 int res1 = 0 ;
25355 int val2 ;
25356 int ecode2 = 0 ;
25357 int val3 ;
25358 int ecode3 = 0 ;
25359 PyObject * obj0 = 0 ;
25360 PyObject * obj1 = 0 ;
25361 PyObject * obj2 = 0 ;
25362 char * kwnames[] = {
25363 (char *) "self",(char *) "x",(char *) "y", NULL
25364 };
25365
25366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25368 if (!SWIG_IsOK(res1)) {
25369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25370 }
25371 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25372 ecode2 = SWIG_AsVal_int(obj1, &val2);
25373 if (!SWIG_IsOK(ecode2)) {
25374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25375 }
25376 arg2 = static_cast< int >(val2);
25377 ecode3 = SWIG_AsVal_int(obj2, &val3);
25378 if (!SWIG_IsOK(ecode3)) {
25379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25380 }
25381 arg3 = static_cast< int >(val3);
25382 {
25383 PyThreadState* __tstate = wxPyBeginAllowThreads();
25384 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 {
25389 resultobj = wxPyMake_wxObject(result, (bool)0);
25390 }
25391 return resultobj;
25392 fail:
25393 return NULL;
25394 }
25395
25396
25397 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25398 PyObject *resultobj = 0;
25399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25400 int arg2 ;
25401 wxToolBarToolBase *result = 0 ;
25402 void *argp1 = 0 ;
25403 int res1 = 0 ;
25404 int val2 ;
25405 int ecode2 = 0 ;
25406 PyObject * obj0 = 0 ;
25407 PyObject * obj1 = 0 ;
25408 char * kwnames[] = {
25409 (char *) "self",(char *) "toolid", NULL
25410 };
25411
25412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25414 if (!SWIG_IsOK(res1)) {
25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25416 }
25417 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25418 ecode2 = SWIG_AsVal_int(obj1, &val2);
25419 if (!SWIG_IsOK(ecode2)) {
25420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25421 }
25422 arg2 = static_cast< int >(val2);
25423 {
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25426 wxPyEndAllowThreads(__tstate);
25427 if (PyErr_Occurred()) SWIG_fail;
25428 }
25429 {
25430 resultobj = wxPyMake_wxObject(result, (bool)0);
25431 }
25432 return resultobj;
25433 fail:
25434 return NULL;
25435 }
25436
25437
25438 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25439 PyObject *resultobj = 0;
25440 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25441 bool result;
25442 void *argp1 = 0 ;
25443 int res1 = 0 ;
25444 PyObject *swig_obj[1] ;
25445
25446 if (!args) SWIG_fail;
25447 swig_obj[0] = args;
25448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25449 if (!SWIG_IsOK(res1)) {
25450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25451 }
25452 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25453 {
25454 PyThreadState* __tstate = wxPyBeginAllowThreads();
25455 result = (bool)(arg1)->IsVertical();
25456 wxPyEndAllowThreads(__tstate);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 }
25459 {
25460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25461 }
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25469 PyObject *resultobj = 0;
25470 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25471 size_t result;
25472 void *argp1 = 0 ;
25473 int res1 = 0 ;
25474 PyObject *swig_obj[1] ;
25475
25476 if (!args) SWIG_fail;
25477 swig_obj[0] = args;
25478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25479 if (!SWIG_IsOK(res1)) {
25480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25481 }
25482 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25483 {
25484 PyThreadState* __tstate = wxPyBeginAllowThreads();
25485 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25486 wxPyEndAllowThreads(__tstate);
25487 if (PyErr_Occurred()) SWIG_fail;
25488 }
25489 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25490 return resultobj;
25491 fail:
25492 return NULL;
25493 }
25494
25495
25496 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25497 PyObject *obj;
25498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25499 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25500 return SWIG_Py_Void();
25501 }
25502
25503 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25504 PyObject *resultobj = 0;
25505 wxWindow *arg1 = (wxWindow *) 0 ;
25506 int arg2 = (int) -1 ;
25507 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25508 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25509 wxSize const &arg4_defvalue = wxDefaultSize ;
25510 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25511 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25512 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25513 wxString *arg6 = (wxString *) &arg6_defvalue ;
25514 wxToolBar *result = 0 ;
25515 void *argp1 = 0 ;
25516 int res1 = 0 ;
25517 int val2 ;
25518 int ecode2 = 0 ;
25519 wxPoint temp3 ;
25520 wxSize temp4 ;
25521 long val5 ;
25522 int ecode5 = 0 ;
25523 bool temp6 = false ;
25524 PyObject * obj0 = 0 ;
25525 PyObject * obj1 = 0 ;
25526 PyObject * obj2 = 0 ;
25527 PyObject * obj3 = 0 ;
25528 PyObject * obj4 = 0 ;
25529 PyObject * obj5 = 0 ;
25530 char * kwnames[] = {
25531 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25532 };
25533
25534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25536 if (!SWIG_IsOK(res1)) {
25537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25538 }
25539 arg1 = reinterpret_cast< wxWindow * >(argp1);
25540 if (obj1) {
25541 ecode2 = SWIG_AsVal_int(obj1, &val2);
25542 if (!SWIG_IsOK(ecode2)) {
25543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25544 }
25545 arg2 = static_cast< int >(val2);
25546 }
25547 if (obj2) {
25548 {
25549 arg3 = &temp3;
25550 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25551 }
25552 }
25553 if (obj3) {
25554 {
25555 arg4 = &temp4;
25556 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25557 }
25558 }
25559 if (obj4) {
25560 ecode5 = SWIG_AsVal_long(obj4, &val5);
25561 if (!SWIG_IsOK(ecode5)) {
25562 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25563 }
25564 arg5 = static_cast< long >(val5);
25565 }
25566 if (obj5) {
25567 {
25568 arg6 = wxString_in_helper(obj5);
25569 if (arg6 == NULL) SWIG_fail;
25570 temp6 = true;
25571 }
25572 }
25573 {
25574 if (!wxPyCheckForApp()) SWIG_fail;
25575 PyThreadState* __tstate = wxPyBeginAllowThreads();
25576 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25577 wxPyEndAllowThreads(__tstate);
25578 if (PyErr_Occurred()) SWIG_fail;
25579 }
25580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25581 {
25582 if (temp6)
25583 delete arg6;
25584 }
25585 return resultobj;
25586 fail:
25587 {
25588 if (temp6)
25589 delete arg6;
25590 }
25591 return NULL;
25592 }
25593
25594
25595 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25596 PyObject *resultobj = 0;
25597 wxToolBar *result = 0 ;
25598
25599 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25600 {
25601 if (!wxPyCheckForApp()) SWIG_fail;
25602 PyThreadState* __tstate = wxPyBeginAllowThreads();
25603 result = (wxToolBar *)new wxToolBar();
25604 wxPyEndAllowThreads(__tstate);
25605 if (PyErr_Occurred()) SWIG_fail;
25606 }
25607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25608 return resultobj;
25609 fail:
25610 return NULL;
25611 }
25612
25613
25614 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25615 PyObject *resultobj = 0;
25616 wxToolBar *arg1 = (wxToolBar *) 0 ;
25617 wxWindow *arg2 = (wxWindow *) 0 ;
25618 int arg3 = (int) -1 ;
25619 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25620 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25621 wxSize const &arg5_defvalue = wxDefaultSize ;
25622 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25623 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25624 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25625 wxString *arg7 = (wxString *) &arg7_defvalue ;
25626 bool result;
25627 void *argp1 = 0 ;
25628 int res1 = 0 ;
25629 void *argp2 = 0 ;
25630 int res2 = 0 ;
25631 int val3 ;
25632 int ecode3 = 0 ;
25633 wxPoint temp4 ;
25634 wxSize temp5 ;
25635 long val6 ;
25636 int ecode6 = 0 ;
25637 bool temp7 = false ;
25638 PyObject * obj0 = 0 ;
25639 PyObject * obj1 = 0 ;
25640 PyObject * obj2 = 0 ;
25641 PyObject * obj3 = 0 ;
25642 PyObject * obj4 = 0 ;
25643 PyObject * obj5 = 0 ;
25644 PyObject * obj6 = 0 ;
25645 char * kwnames[] = {
25646 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25647 };
25648
25649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25651 if (!SWIG_IsOK(res1)) {
25652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25653 }
25654 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25655 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25656 if (!SWIG_IsOK(res2)) {
25657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25658 }
25659 arg2 = reinterpret_cast< wxWindow * >(argp2);
25660 if (obj2) {
25661 ecode3 = SWIG_AsVal_int(obj2, &val3);
25662 if (!SWIG_IsOK(ecode3)) {
25663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25664 }
25665 arg3 = static_cast< int >(val3);
25666 }
25667 if (obj3) {
25668 {
25669 arg4 = &temp4;
25670 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25671 }
25672 }
25673 if (obj4) {
25674 {
25675 arg5 = &temp5;
25676 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25677 }
25678 }
25679 if (obj5) {
25680 ecode6 = SWIG_AsVal_long(obj5, &val6);
25681 if (!SWIG_IsOK(ecode6)) {
25682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25683 }
25684 arg6 = static_cast< long >(val6);
25685 }
25686 if (obj6) {
25687 {
25688 arg7 = wxString_in_helper(obj6);
25689 if (arg7 == NULL) SWIG_fail;
25690 temp7 = true;
25691 }
25692 }
25693 {
25694 PyThreadState* __tstate = wxPyBeginAllowThreads();
25695 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25696 wxPyEndAllowThreads(__tstate);
25697 if (PyErr_Occurred()) SWIG_fail;
25698 }
25699 {
25700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25701 }
25702 {
25703 if (temp7)
25704 delete arg7;
25705 }
25706 return resultobj;
25707 fail:
25708 {
25709 if (temp7)
25710 delete arg7;
25711 }
25712 return NULL;
25713 }
25714
25715
25716 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25717 PyObject *resultobj = 0;
25718 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25719 SwigValueWrapper<wxVisualAttributes > result;
25720 int val1 ;
25721 int ecode1 = 0 ;
25722 PyObject * obj0 = 0 ;
25723 char * kwnames[] = {
25724 (char *) "variant", NULL
25725 };
25726
25727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25728 if (obj0) {
25729 ecode1 = SWIG_AsVal_int(obj0, &val1);
25730 if (!SWIG_IsOK(ecode1)) {
25731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25732 }
25733 arg1 = static_cast< wxWindowVariant >(val1);
25734 }
25735 {
25736 if (!wxPyCheckForApp()) SWIG_fail;
25737 PyThreadState* __tstate = wxPyBeginAllowThreads();
25738 result = wxToolBar::GetClassDefaultAttributes(arg1);
25739 wxPyEndAllowThreads(__tstate);
25740 if (PyErr_Occurred()) SWIG_fail;
25741 }
25742 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25743 return resultobj;
25744 fail:
25745 return NULL;
25746 }
25747
25748
25749 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25750 PyObject *obj;
25751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25752 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25753 return SWIG_Py_Void();
25754 }
25755
25756 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25757 return SWIG_Python_InitShadowInstance(args);
25758 }
25759
25760 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25761 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25762 return 1;
25763 }
25764
25765
25766 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25767 PyObject *pyobj = 0;
25768
25769 {
25770 #if wxUSE_UNICODE
25771 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25772 #else
25773 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25774 #endif
25775 }
25776 return pyobj;
25777 }
25778
25779
25780 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25781 PyObject *resultobj = 0;
25782 wxColour const &arg1_defvalue = wxNullColour ;
25783 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25784 wxColour const &arg2_defvalue = wxNullColour ;
25785 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25786 wxFont const &arg3_defvalue = wxNullFont ;
25787 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25788 wxListItemAttr *result = 0 ;
25789 wxColour temp1 ;
25790 wxColour temp2 ;
25791 void *argp3 = 0 ;
25792 int res3 = 0 ;
25793 PyObject * obj0 = 0 ;
25794 PyObject * obj1 = 0 ;
25795 PyObject * obj2 = 0 ;
25796 char * kwnames[] = {
25797 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25798 };
25799
25800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25801 if (obj0) {
25802 {
25803 arg1 = &temp1;
25804 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25805 }
25806 }
25807 if (obj1) {
25808 {
25809 arg2 = &temp2;
25810 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25811 }
25812 }
25813 if (obj2) {
25814 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25815 if (!SWIG_IsOK(res3)) {
25816 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25817 }
25818 if (!argp3) {
25819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25820 }
25821 arg3 = reinterpret_cast< wxFont * >(argp3);
25822 }
25823 {
25824 PyThreadState* __tstate = wxPyBeginAllowThreads();
25825 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25826 wxPyEndAllowThreads(__tstate);
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25830 return resultobj;
25831 fail:
25832 return NULL;
25833 }
25834
25835
25836 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25837 PyObject *resultobj = 0;
25838 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25839 void *argp1 = 0 ;
25840 int res1 = 0 ;
25841 PyObject *swig_obj[1] ;
25842
25843 if (!args) SWIG_fail;
25844 swig_obj[0] = args;
25845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25846 if (!SWIG_IsOK(res1)) {
25847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25848 }
25849 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 delete arg1;
25853
25854 wxPyEndAllowThreads(__tstate);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 resultobj = SWIG_Py_Void();
25858 return resultobj;
25859 fail:
25860 return NULL;
25861 }
25862
25863
25864 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25865 PyObject *resultobj = 0;
25866 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25867 wxColour *arg2 = 0 ;
25868 void *argp1 = 0 ;
25869 int res1 = 0 ;
25870 wxColour temp2 ;
25871 PyObject * obj0 = 0 ;
25872 PyObject * obj1 = 0 ;
25873 char * kwnames[] = {
25874 (char *) "self",(char *) "colText", NULL
25875 };
25876
25877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25879 if (!SWIG_IsOK(res1)) {
25880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25881 }
25882 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25883 {
25884 arg2 = &temp2;
25885 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25886 }
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 (arg1)->SetTextColour((wxColour const &)*arg2);
25890 wxPyEndAllowThreads(__tstate);
25891 if (PyErr_Occurred()) SWIG_fail;
25892 }
25893 resultobj = SWIG_Py_Void();
25894 return resultobj;
25895 fail:
25896 return NULL;
25897 }
25898
25899
25900 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25901 PyObject *resultobj = 0;
25902 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25903 wxColour *arg2 = 0 ;
25904 void *argp1 = 0 ;
25905 int res1 = 0 ;
25906 wxColour temp2 ;
25907 PyObject * obj0 = 0 ;
25908 PyObject * obj1 = 0 ;
25909 char * kwnames[] = {
25910 (char *) "self",(char *) "colBack", NULL
25911 };
25912
25913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25915 if (!SWIG_IsOK(res1)) {
25916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25917 }
25918 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25919 {
25920 arg2 = &temp2;
25921 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25922 }
25923 {
25924 PyThreadState* __tstate = wxPyBeginAllowThreads();
25925 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25926 wxPyEndAllowThreads(__tstate);
25927 if (PyErr_Occurred()) SWIG_fail;
25928 }
25929 resultobj = SWIG_Py_Void();
25930 return resultobj;
25931 fail:
25932 return NULL;
25933 }
25934
25935
25936 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25937 PyObject *resultobj = 0;
25938 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25939 wxFont *arg2 = 0 ;
25940 void *argp1 = 0 ;
25941 int res1 = 0 ;
25942 void *argp2 = 0 ;
25943 int res2 = 0 ;
25944 PyObject * obj0 = 0 ;
25945 PyObject * obj1 = 0 ;
25946 char * kwnames[] = {
25947 (char *) "self",(char *) "font", NULL
25948 };
25949
25950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25952 if (!SWIG_IsOK(res1)) {
25953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25954 }
25955 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25957 if (!SWIG_IsOK(res2)) {
25958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25959 }
25960 if (!argp2) {
25961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25962 }
25963 arg2 = reinterpret_cast< wxFont * >(argp2);
25964 {
25965 PyThreadState* __tstate = wxPyBeginAllowThreads();
25966 (arg1)->SetFont((wxFont const &)*arg2);
25967 wxPyEndAllowThreads(__tstate);
25968 if (PyErr_Occurred()) SWIG_fail;
25969 }
25970 resultobj = SWIG_Py_Void();
25971 return resultobj;
25972 fail:
25973 return NULL;
25974 }
25975
25976
25977 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25978 PyObject *resultobj = 0;
25979 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25980 bool result;
25981 void *argp1 = 0 ;
25982 int res1 = 0 ;
25983 PyObject *swig_obj[1] ;
25984
25985 if (!args) SWIG_fail;
25986 swig_obj[0] = args;
25987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25988 if (!SWIG_IsOK(res1)) {
25989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25990 }
25991 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25992 {
25993 PyThreadState* __tstate = wxPyBeginAllowThreads();
25994 result = (bool)(arg1)->HasTextColour();
25995 wxPyEndAllowThreads(__tstate);
25996 if (PyErr_Occurred()) SWIG_fail;
25997 }
25998 {
25999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26000 }
26001 return resultobj;
26002 fail:
26003 return NULL;
26004 }
26005
26006
26007 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26008 PyObject *resultobj = 0;
26009 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26010 bool result;
26011 void *argp1 = 0 ;
26012 int res1 = 0 ;
26013 PyObject *swig_obj[1] ;
26014
26015 if (!args) SWIG_fail;
26016 swig_obj[0] = args;
26017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26018 if (!SWIG_IsOK(res1)) {
26019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26020 }
26021 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26022 {
26023 PyThreadState* __tstate = wxPyBeginAllowThreads();
26024 result = (bool)(arg1)->HasBackgroundColour();
26025 wxPyEndAllowThreads(__tstate);
26026 if (PyErr_Occurred()) SWIG_fail;
26027 }
26028 {
26029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26030 }
26031 return resultobj;
26032 fail:
26033 return NULL;
26034 }
26035
26036
26037 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26038 PyObject *resultobj = 0;
26039 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26040 bool result;
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
26043 PyObject *swig_obj[1] ;
26044
26045 if (!args) SWIG_fail;
26046 swig_obj[0] = args;
26047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26048 if (!SWIG_IsOK(res1)) {
26049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26050 }
26051 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 result = (bool)(arg1)->HasFont();
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 {
26059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26060 }
26061 return resultobj;
26062 fail:
26063 return NULL;
26064 }
26065
26066
26067 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26068 PyObject *resultobj = 0;
26069 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26070 wxColour result;
26071 void *argp1 = 0 ;
26072 int res1 = 0 ;
26073 PyObject *swig_obj[1] ;
26074
26075 if (!args) SWIG_fail;
26076 swig_obj[0] = args;
26077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26078 if (!SWIG_IsOK(res1)) {
26079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26080 }
26081 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26082 {
26083 PyThreadState* __tstate = wxPyBeginAllowThreads();
26084 result = (arg1)->GetTextColour();
26085 wxPyEndAllowThreads(__tstate);
26086 if (PyErr_Occurred()) SWIG_fail;
26087 }
26088 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26089 return resultobj;
26090 fail:
26091 return NULL;
26092 }
26093
26094
26095 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26096 PyObject *resultobj = 0;
26097 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26098 wxColour result;
26099 void *argp1 = 0 ;
26100 int res1 = 0 ;
26101 PyObject *swig_obj[1] ;
26102
26103 if (!args) SWIG_fail;
26104 swig_obj[0] = args;
26105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26106 if (!SWIG_IsOK(res1)) {
26107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26108 }
26109 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26110 {
26111 PyThreadState* __tstate = wxPyBeginAllowThreads();
26112 result = (arg1)->GetBackgroundColour();
26113 wxPyEndAllowThreads(__tstate);
26114 if (PyErr_Occurred()) SWIG_fail;
26115 }
26116 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26117 return resultobj;
26118 fail:
26119 return NULL;
26120 }
26121
26122
26123 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26124 PyObject *resultobj = 0;
26125 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26126 wxFont result;
26127 void *argp1 = 0 ;
26128 int res1 = 0 ;
26129 PyObject *swig_obj[1] ;
26130
26131 if (!args) SWIG_fail;
26132 swig_obj[0] = args;
26133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26134 if (!SWIG_IsOK(res1)) {
26135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26136 }
26137 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26138 {
26139 PyThreadState* __tstate = wxPyBeginAllowThreads();
26140 result = (arg1)->GetFont();
26141 wxPyEndAllowThreads(__tstate);
26142 if (PyErr_Occurred()) SWIG_fail;
26143 }
26144 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26145 return resultobj;
26146 fail:
26147 return NULL;
26148 }
26149
26150
26151 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26152 PyObject *resultobj = 0;
26153 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26154 wxListItemAttr *arg2 = 0 ;
26155 void *argp1 = 0 ;
26156 int res1 = 0 ;
26157 void *argp2 = 0 ;
26158 int res2 = 0 ;
26159 PyObject * obj0 = 0 ;
26160 PyObject * obj1 = 0 ;
26161 char * kwnames[] = {
26162 (char *) "self",(char *) "source", NULL
26163 };
26164
26165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26167 if (!SWIG_IsOK(res1)) {
26168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26169 }
26170 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26172 if (!SWIG_IsOK(res2)) {
26173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26174 }
26175 if (!argp2) {
26176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26177 }
26178 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26179 {
26180 PyThreadState* __tstate = wxPyBeginAllowThreads();
26181 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26182 wxPyEndAllowThreads(__tstate);
26183 if (PyErr_Occurred()) SWIG_fail;
26184 }
26185 resultobj = SWIG_Py_Void();
26186 return resultobj;
26187 fail:
26188 return NULL;
26189 }
26190
26191
26192 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26193 PyObject *resultobj = 0;
26194 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26195 void *argp1 = 0 ;
26196 int res1 = 0 ;
26197 PyObject *swig_obj[1] ;
26198
26199 if (!args) SWIG_fail;
26200 swig_obj[0] = args;
26201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26202 if (!SWIG_IsOK(res1)) {
26203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26204 }
26205 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26206 {
26207 PyThreadState* __tstate = wxPyBeginAllowThreads();
26208 wxListItemAttr_Destroy(arg1);
26209 wxPyEndAllowThreads(__tstate);
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 resultobj = SWIG_Py_Void();
26213 return resultobj;
26214 fail:
26215 return NULL;
26216 }
26217
26218
26219 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26220 PyObject *obj;
26221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26222 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26223 return SWIG_Py_Void();
26224 }
26225
26226 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26227 return SWIG_Python_InitShadowInstance(args);
26228 }
26229
26230 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26231 PyObject *resultobj = 0;
26232 wxListItem *result = 0 ;
26233
26234 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26235 {
26236 PyThreadState* __tstate = wxPyBeginAllowThreads();
26237 result = (wxListItem *)new wxListItem();
26238 wxPyEndAllowThreads(__tstate);
26239 if (PyErr_Occurred()) SWIG_fail;
26240 }
26241 {
26242 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26243 }
26244 return resultobj;
26245 fail:
26246 return NULL;
26247 }
26248
26249
26250 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26251 PyObject *resultobj = 0;
26252 wxListItem *arg1 = (wxListItem *) 0 ;
26253 void *argp1 = 0 ;
26254 int res1 = 0 ;
26255 PyObject *swig_obj[1] ;
26256
26257 if (!args) SWIG_fail;
26258 swig_obj[0] = args;
26259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26260 if (!SWIG_IsOK(res1)) {
26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26262 }
26263 arg1 = reinterpret_cast< wxListItem * >(argp1);
26264 {
26265 PyThreadState* __tstate = wxPyBeginAllowThreads();
26266 delete arg1;
26267
26268 wxPyEndAllowThreads(__tstate);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_Py_Void();
26272 return resultobj;
26273 fail:
26274 return NULL;
26275 }
26276
26277
26278 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26279 PyObject *resultobj = 0;
26280 wxListItem *arg1 = (wxListItem *) 0 ;
26281 void *argp1 = 0 ;
26282 int res1 = 0 ;
26283 PyObject *swig_obj[1] ;
26284
26285 if (!args) SWIG_fail;
26286 swig_obj[0] = args;
26287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26288 if (!SWIG_IsOK(res1)) {
26289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26290 }
26291 arg1 = reinterpret_cast< wxListItem * >(argp1);
26292 {
26293 PyThreadState* __tstate = wxPyBeginAllowThreads();
26294 (arg1)->Clear();
26295 wxPyEndAllowThreads(__tstate);
26296 if (PyErr_Occurred()) SWIG_fail;
26297 }
26298 resultobj = SWIG_Py_Void();
26299 return resultobj;
26300 fail:
26301 return NULL;
26302 }
26303
26304
26305 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26306 PyObject *resultobj = 0;
26307 wxListItem *arg1 = (wxListItem *) 0 ;
26308 void *argp1 = 0 ;
26309 int res1 = 0 ;
26310 PyObject *swig_obj[1] ;
26311
26312 if (!args) SWIG_fail;
26313 swig_obj[0] = args;
26314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26315 if (!SWIG_IsOK(res1)) {
26316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26317 }
26318 arg1 = reinterpret_cast< wxListItem * >(argp1);
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 (arg1)->ClearAttributes();
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 resultobj = SWIG_Py_Void();
26326 return resultobj;
26327 fail:
26328 return NULL;
26329 }
26330
26331
26332 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26333 PyObject *resultobj = 0;
26334 wxListItem *arg1 = (wxListItem *) 0 ;
26335 long arg2 ;
26336 void *argp1 = 0 ;
26337 int res1 = 0 ;
26338 long val2 ;
26339 int ecode2 = 0 ;
26340 PyObject * obj0 = 0 ;
26341 PyObject * obj1 = 0 ;
26342 char * kwnames[] = {
26343 (char *) "self",(char *) "mask", NULL
26344 };
26345
26346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26348 if (!SWIG_IsOK(res1)) {
26349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26350 }
26351 arg1 = reinterpret_cast< wxListItem * >(argp1);
26352 ecode2 = SWIG_AsVal_long(obj1, &val2);
26353 if (!SWIG_IsOK(ecode2)) {
26354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26355 }
26356 arg2 = static_cast< long >(val2);
26357 {
26358 PyThreadState* __tstate = wxPyBeginAllowThreads();
26359 (arg1)->SetMask(arg2);
26360 wxPyEndAllowThreads(__tstate);
26361 if (PyErr_Occurred()) SWIG_fail;
26362 }
26363 resultobj = SWIG_Py_Void();
26364 return resultobj;
26365 fail:
26366 return NULL;
26367 }
26368
26369
26370 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26371 PyObject *resultobj = 0;
26372 wxListItem *arg1 = (wxListItem *) 0 ;
26373 long arg2 ;
26374 void *argp1 = 0 ;
26375 int res1 = 0 ;
26376 long val2 ;
26377 int ecode2 = 0 ;
26378 PyObject * obj0 = 0 ;
26379 PyObject * obj1 = 0 ;
26380 char * kwnames[] = {
26381 (char *) "self",(char *) "id", NULL
26382 };
26383
26384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26386 if (!SWIG_IsOK(res1)) {
26387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26388 }
26389 arg1 = reinterpret_cast< wxListItem * >(argp1);
26390 ecode2 = SWIG_AsVal_long(obj1, &val2);
26391 if (!SWIG_IsOK(ecode2)) {
26392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26393 }
26394 arg2 = static_cast< long >(val2);
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 (arg1)->SetId(arg2);
26398 wxPyEndAllowThreads(__tstate);
26399 if (PyErr_Occurred()) SWIG_fail;
26400 }
26401 resultobj = SWIG_Py_Void();
26402 return resultobj;
26403 fail:
26404 return NULL;
26405 }
26406
26407
26408 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26409 PyObject *resultobj = 0;
26410 wxListItem *arg1 = (wxListItem *) 0 ;
26411 int arg2 ;
26412 void *argp1 = 0 ;
26413 int res1 = 0 ;
26414 int val2 ;
26415 int ecode2 = 0 ;
26416 PyObject * obj0 = 0 ;
26417 PyObject * obj1 = 0 ;
26418 char * kwnames[] = {
26419 (char *) "self",(char *) "col", NULL
26420 };
26421
26422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26424 if (!SWIG_IsOK(res1)) {
26425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26426 }
26427 arg1 = reinterpret_cast< wxListItem * >(argp1);
26428 ecode2 = SWIG_AsVal_int(obj1, &val2);
26429 if (!SWIG_IsOK(ecode2)) {
26430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26431 }
26432 arg2 = static_cast< int >(val2);
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 (arg1)->SetColumn(arg2);
26436 wxPyEndAllowThreads(__tstate);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_Py_Void();
26440 return resultobj;
26441 fail:
26442 return NULL;
26443 }
26444
26445
26446 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26447 PyObject *resultobj = 0;
26448 wxListItem *arg1 = (wxListItem *) 0 ;
26449 long arg2 ;
26450 void *argp1 = 0 ;
26451 int res1 = 0 ;
26452 long val2 ;
26453 int ecode2 = 0 ;
26454 PyObject * obj0 = 0 ;
26455 PyObject * obj1 = 0 ;
26456 char * kwnames[] = {
26457 (char *) "self",(char *) "state", NULL
26458 };
26459
26460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26464 }
26465 arg1 = reinterpret_cast< wxListItem * >(argp1);
26466 ecode2 = SWIG_AsVal_long(obj1, &val2);
26467 if (!SWIG_IsOK(ecode2)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26469 }
26470 arg2 = static_cast< long >(val2);
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 (arg1)->SetState(arg2);
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 resultobj = SWIG_Py_Void();
26478 return resultobj;
26479 fail:
26480 return NULL;
26481 }
26482
26483
26484 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26485 PyObject *resultobj = 0;
26486 wxListItem *arg1 = (wxListItem *) 0 ;
26487 long arg2 ;
26488 void *argp1 = 0 ;
26489 int res1 = 0 ;
26490 long val2 ;
26491 int ecode2 = 0 ;
26492 PyObject * obj0 = 0 ;
26493 PyObject * obj1 = 0 ;
26494 char * kwnames[] = {
26495 (char *) "self",(char *) "stateMask", NULL
26496 };
26497
26498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26500 if (!SWIG_IsOK(res1)) {
26501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26502 }
26503 arg1 = reinterpret_cast< wxListItem * >(argp1);
26504 ecode2 = SWIG_AsVal_long(obj1, &val2);
26505 if (!SWIG_IsOK(ecode2)) {
26506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26507 }
26508 arg2 = static_cast< long >(val2);
26509 {
26510 PyThreadState* __tstate = wxPyBeginAllowThreads();
26511 (arg1)->SetStateMask(arg2);
26512 wxPyEndAllowThreads(__tstate);
26513 if (PyErr_Occurred()) SWIG_fail;
26514 }
26515 resultobj = SWIG_Py_Void();
26516 return resultobj;
26517 fail:
26518 return NULL;
26519 }
26520
26521
26522 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26523 PyObject *resultobj = 0;
26524 wxListItem *arg1 = (wxListItem *) 0 ;
26525 wxString *arg2 = 0 ;
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
26528 bool temp2 = false ;
26529 PyObject * obj0 = 0 ;
26530 PyObject * obj1 = 0 ;
26531 char * kwnames[] = {
26532 (char *) "self",(char *) "text", NULL
26533 };
26534
26535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26537 if (!SWIG_IsOK(res1)) {
26538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26539 }
26540 arg1 = reinterpret_cast< wxListItem * >(argp1);
26541 {
26542 arg2 = wxString_in_helper(obj1);
26543 if (arg2 == NULL) SWIG_fail;
26544 temp2 = true;
26545 }
26546 {
26547 PyThreadState* __tstate = wxPyBeginAllowThreads();
26548 (arg1)->SetText((wxString const &)*arg2);
26549 wxPyEndAllowThreads(__tstate);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 }
26552 resultobj = SWIG_Py_Void();
26553 {
26554 if (temp2)
26555 delete arg2;
26556 }
26557 return resultobj;
26558 fail:
26559 {
26560 if (temp2)
26561 delete arg2;
26562 }
26563 return NULL;
26564 }
26565
26566
26567 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26568 PyObject *resultobj = 0;
26569 wxListItem *arg1 = (wxListItem *) 0 ;
26570 int arg2 ;
26571 void *argp1 = 0 ;
26572 int res1 = 0 ;
26573 int val2 ;
26574 int ecode2 = 0 ;
26575 PyObject * obj0 = 0 ;
26576 PyObject * obj1 = 0 ;
26577 char * kwnames[] = {
26578 (char *) "self",(char *) "image", NULL
26579 };
26580
26581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26583 if (!SWIG_IsOK(res1)) {
26584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26585 }
26586 arg1 = reinterpret_cast< wxListItem * >(argp1);
26587 ecode2 = SWIG_AsVal_int(obj1, &val2);
26588 if (!SWIG_IsOK(ecode2)) {
26589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26590 }
26591 arg2 = static_cast< int >(val2);
26592 {
26593 PyThreadState* __tstate = wxPyBeginAllowThreads();
26594 (arg1)->SetImage(arg2);
26595 wxPyEndAllowThreads(__tstate);
26596 if (PyErr_Occurred()) SWIG_fail;
26597 }
26598 resultobj = SWIG_Py_Void();
26599 return resultobj;
26600 fail:
26601 return NULL;
26602 }
26603
26604
26605 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26606 PyObject *resultobj = 0;
26607 wxListItem *arg1 = (wxListItem *) 0 ;
26608 long arg2 ;
26609 void *argp1 = 0 ;
26610 int res1 = 0 ;
26611 long val2 ;
26612 int ecode2 = 0 ;
26613 PyObject * obj0 = 0 ;
26614 PyObject * obj1 = 0 ;
26615 char * kwnames[] = {
26616 (char *) "self",(char *) "data", NULL
26617 };
26618
26619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26621 if (!SWIG_IsOK(res1)) {
26622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26623 }
26624 arg1 = reinterpret_cast< wxListItem * >(argp1);
26625 ecode2 = SWIG_AsVal_long(obj1, &val2);
26626 if (!SWIG_IsOK(ecode2)) {
26627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26628 }
26629 arg2 = static_cast< long >(val2);
26630 {
26631 PyThreadState* __tstate = wxPyBeginAllowThreads();
26632 (arg1)->SetData(arg2);
26633 wxPyEndAllowThreads(__tstate);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
26636 resultobj = SWIG_Py_Void();
26637 return resultobj;
26638 fail:
26639 return NULL;
26640 }
26641
26642
26643 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26644 PyObject *resultobj = 0;
26645 wxListItem *arg1 = (wxListItem *) 0 ;
26646 int arg2 ;
26647 void *argp1 = 0 ;
26648 int res1 = 0 ;
26649 int val2 ;
26650 int ecode2 = 0 ;
26651 PyObject * obj0 = 0 ;
26652 PyObject * obj1 = 0 ;
26653 char * kwnames[] = {
26654 (char *) "self",(char *) "width", NULL
26655 };
26656
26657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26659 if (!SWIG_IsOK(res1)) {
26660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26661 }
26662 arg1 = reinterpret_cast< wxListItem * >(argp1);
26663 ecode2 = SWIG_AsVal_int(obj1, &val2);
26664 if (!SWIG_IsOK(ecode2)) {
26665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26666 }
26667 arg2 = static_cast< int >(val2);
26668 {
26669 PyThreadState* __tstate = wxPyBeginAllowThreads();
26670 (arg1)->SetWidth(arg2);
26671 wxPyEndAllowThreads(__tstate);
26672 if (PyErr_Occurred()) SWIG_fail;
26673 }
26674 resultobj = SWIG_Py_Void();
26675 return resultobj;
26676 fail:
26677 return NULL;
26678 }
26679
26680
26681 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26682 PyObject *resultobj = 0;
26683 wxListItem *arg1 = (wxListItem *) 0 ;
26684 wxListColumnFormat arg2 ;
26685 void *argp1 = 0 ;
26686 int res1 = 0 ;
26687 int val2 ;
26688 int ecode2 = 0 ;
26689 PyObject * obj0 = 0 ;
26690 PyObject * obj1 = 0 ;
26691 char * kwnames[] = {
26692 (char *) "self",(char *) "align", NULL
26693 };
26694
26695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26697 if (!SWIG_IsOK(res1)) {
26698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26699 }
26700 arg1 = reinterpret_cast< wxListItem * >(argp1);
26701 ecode2 = SWIG_AsVal_int(obj1, &val2);
26702 if (!SWIG_IsOK(ecode2)) {
26703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26704 }
26705 arg2 = static_cast< wxListColumnFormat >(val2);
26706 {
26707 PyThreadState* __tstate = wxPyBeginAllowThreads();
26708 (arg1)->SetAlign(arg2);
26709 wxPyEndAllowThreads(__tstate);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 }
26712 resultobj = SWIG_Py_Void();
26713 return resultobj;
26714 fail:
26715 return NULL;
26716 }
26717
26718
26719 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26720 PyObject *resultobj = 0;
26721 wxListItem *arg1 = (wxListItem *) 0 ;
26722 wxColour *arg2 = 0 ;
26723 void *argp1 = 0 ;
26724 int res1 = 0 ;
26725 wxColour temp2 ;
26726 PyObject * obj0 = 0 ;
26727 PyObject * obj1 = 0 ;
26728 char * kwnames[] = {
26729 (char *) "self",(char *) "colText", NULL
26730 };
26731
26732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26734 if (!SWIG_IsOK(res1)) {
26735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26736 }
26737 arg1 = reinterpret_cast< wxListItem * >(argp1);
26738 {
26739 arg2 = &temp2;
26740 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26741 }
26742 {
26743 PyThreadState* __tstate = wxPyBeginAllowThreads();
26744 (arg1)->SetTextColour((wxColour const &)*arg2);
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 resultobj = SWIG_Py_Void();
26749 return resultobj;
26750 fail:
26751 return NULL;
26752 }
26753
26754
26755 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26756 PyObject *resultobj = 0;
26757 wxListItem *arg1 = (wxListItem *) 0 ;
26758 wxColour *arg2 = 0 ;
26759 void *argp1 = 0 ;
26760 int res1 = 0 ;
26761 wxColour temp2 ;
26762 PyObject * obj0 = 0 ;
26763 PyObject * obj1 = 0 ;
26764 char * kwnames[] = {
26765 (char *) "self",(char *) "colBack", NULL
26766 };
26767
26768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26770 if (!SWIG_IsOK(res1)) {
26771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26772 }
26773 arg1 = reinterpret_cast< wxListItem * >(argp1);
26774 {
26775 arg2 = &temp2;
26776 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26777 }
26778 {
26779 PyThreadState* __tstate = wxPyBeginAllowThreads();
26780 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 resultobj = SWIG_Py_Void();
26785 return resultobj;
26786 fail:
26787 return NULL;
26788 }
26789
26790
26791 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26792 PyObject *resultobj = 0;
26793 wxListItem *arg1 = (wxListItem *) 0 ;
26794 wxFont *arg2 = 0 ;
26795 void *argp1 = 0 ;
26796 int res1 = 0 ;
26797 void *argp2 = 0 ;
26798 int res2 = 0 ;
26799 PyObject * obj0 = 0 ;
26800 PyObject * obj1 = 0 ;
26801 char * kwnames[] = {
26802 (char *) "self",(char *) "font", NULL
26803 };
26804
26805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26809 }
26810 arg1 = reinterpret_cast< wxListItem * >(argp1);
26811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26812 if (!SWIG_IsOK(res2)) {
26813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26814 }
26815 if (!argp2) {
26816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26817 }
26818 arg2 = reinterpret_cast< wxFont * >(argp2);
26819 {
26820 PyThreadState* __tstate = wxPyBeginAllowThreads();
26821 (arg1)->SetFont((wxFont const &)*arg2);
26822 wxPyEndAllowThreads(__tstate);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 }
26825 resultobj = SWIG_Py_Void();
26826 return resultobj;
26827 fail:
26828 return NULL;
26829 }
26830
26831
26832 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26833 PyObject *resultobj = 0;
26834 wxListItem *arg1 = (wxListItem *) 0 ;
26835 long result;
26836 void *argp1 = 0 ;
26837 int res1 = 0 ;
26838 PyObject *swig_obj[1] ;
26839
26840 if (!args) SWIG_fail;
26841 swig_obj[0] = args;
26842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26843 if (!SWIG_IsOK(res1)) {
26844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26845 }
26846 arg1 = reinterpret_cast< wxListItem * >(argp1);
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 result = (long)(arg1)->GetMask();
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 resultobj = SWIG_From_long(static_cast< long >(result));
26854 return resultobj;
26855 fail:
26856 return NULL;
26857 }
26858
26859
26860 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26861 PyObject *resultobj = 0;
26862 wxListItem *arg1 = (wxListItem *) 0 ;
26863 long result;
26864 void *argp1 = 0 ;
26865 int res1 = 0 ;
26866 PyObject *swig_obj[1] ;
26867
26868 if (!args) SWIG_fail;
26869 swig_obj[0] = args;
26870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26871 if (!SWIG_IsOK(res1)) {
26872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26873 }
26874 arg1 = reinterpret_cast< wxListItem * >(argp1);
26875 {
26876 PyThreadState* __tstate = wxPyBeginAllowThreads();
26877 result = (long)(arg1)->GetId();
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 resultobj = SWIG_From_long(static_cast< long >(result));
26882 return resultobj;
26883 fail:
26884 return NULL;
26885 }
26886
26887
26888 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26889 PyObject *resultobj = 0;
26890 wxListItem *arg1 = (wxListItem *) 0 ;
26891 int result;
26892 void *argp1 = 0 ;
26893 int res1 = 0 ;
26894 PyObject *swig_obj[1] ;
26895
26896 if (!args) SWIG_fail;
26897 swig_obj[0] = args;
26898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26899 if (!SWIG_IsOK(res1)) {
26900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26901 }
26902 arg1 = reinterpret_cast< wxListItem * >(argp1);
26903 {
26904 PyThreadState* __tstate = wxPyBeginAllowThreads();
26905 result = (int)(arg1)->GetColumn();
26906 wxPyEndAllowThreads(__tstate);
26907 if (PyErr_Occurred()) SWIG_fail;
26908 }
26909 resultobj = SWIG_From_int(static_cast< int >(result));
26910 return resultobj;
26911 fail:
26912 return NULL;
26913 }
26914
26915
26916 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26917 PyObject *resultobj = 0;
26918 wxListItem *arg1 = (wxListItem *) 0 ;
26919 long result;
26920 void *argp1 = 0 ;
26921 int res1 = 0 ;
26922 PyObject *swig_obj[1] ;
26923
26924 if (!args) SWIG_fail;
26925 swig_obj[0] = args;
26926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26927 if (!SWIG_IsOK(res1)) {
26928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26929 }
26930 arg1 = reinterpret_cast< wxListItem * >(argp1);
26931 {
26932 PyThreadState* __tstate = wxPyBeginAllowThreads();
26933 result = (long)(arg1)->GetState();
26934 wxPyEndAllowThreads(__tstate);
26935 if (PyErr_Occurred()) SWIG_fail;
26936 }
26937 resultobj = SWIG_From_long(static_cast< long >(result));
26938 return resultobj;
26939 fail:
26940 return NULL;
26941 }
26942
26943
26944 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26945 PyObject *resultobj = 0;
26946 wxListItem *arg1 = (wxListItem *) 0 ;
26947 wxString *result = 0 ;
26948 void *argp1 = 0 ;
26949 int res1 = 0 ;
26950 PyObject *swig_obj[1] ;
26951
26952 if (!args) SWIG_fail;
26953 swig_obj[0] = args;
26954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26957 }
26958 arg1 = reinterpret_cast< wxListItem * >(argp1);
26959 {
26960 PyThreadState* __tstate = wxPyBeginAllowThreads();
26961 {
26962 wxString const &_result_ref = (arg1)->GetText();
26963 result = (wxString *) &_result_ref;
26964 }
26965 wxPyEndAllowThreads(__tstate);
26966 if (PyErr_Occurred()) SWIG_fail;
26967 }
26968 {
26969 #if wxUSE_UNICODE
26970 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26971 #else
26972 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26973 #endif
26974 }
26975 return resultobj;
26976 fail:
26977 return NULL;
26978 }
26979
26980
26981 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26982 PyObject *resultobj = 0;
26983 wxListItem *arg1 = (wxListItem *) 0 ;
26984 int result;
26985 void *argp1 = 0 ;
26986 int res1 = 0 ;
26987 PyObject *swig_obj[1] ;
26988
26989 if (!args) SWIG_fail;
26990 swig_obj[0] = args;
26991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26992 if (!SWIG_IsOK(res1)) {
26993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26994 }
26995 arg1 = reinterpret_cast< wxListItem * >(argp1);
26996 {
26997 PyThreadState* __tstate = wxPyBeginAllowThreads();
26998 result = (int)(arg1)->GetImage();
26999 wxPyEndAllowThreads(__tstate);
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_From_int(static_cast< int >(result));
27003 return resultobj;
27004 fail:
27005 return NULL;
27006 }
27007
27008
27009 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27010 PyObject *resultobj = 0;
27011 wxListItem *arg1 = (wxListItem *) 0 ;
27012 long result;
27013 void *argp1 = 0 ;
27014 int res1 = 0 ;
27015 PyObject *swig_obj[1] ;
27016
27017 if (!args) SWIG_fail;
27018 swig_obj[0] = args;
27019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27020 if (!SWIG_IsOK(res1)) {
27021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27022 }
27023 arg1 = reinterpret_cast< wxListItem * >(argp1);
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 result = (long)(arg1)->GetData();
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 resultobj = SWIG_From_long(static_cast< long >(result));
27031 return resultobj;
27032 fail:
27033 return NULL;
27034 }
27035
27036
27037 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27038 PyObject *resultobj = 0;
27039 wxListItem *arg1 = (wxListItem *) 0 ;
27040 int result;
27041 void *argp1 = 0 ;
27042 int res1 = 0 ;
27043 PyObject *swig_obj[1] ;
27044
27045 if (!args) SWIG_fail;
27046 swig_obj[0] = args;
27047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27048 if (!SWIG_IsOK(res1)) {
27049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27050 }
27051 arg1 = reinterpret_cast< wxListItem * >(argp1);
27052 {
27053 PyThreadState* __tstate = wxPyBeginAllowThreads();
27054 result = (int)(arg1)->GetWidth();
27055 wxPyEndAllowThreads(__tstate);
27056 if (PyErr_Occurred()) SWIG_fail;
27057 }
27058 resultobj = SWIG_From_int(static_cast< int >(result));
27059 return resultobj;
27060 fail:
27061 return NULL;
27062 }
27063
27064
27065 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27066 PyObject *resultobj = 0;
27067 wxListItem *arg1 = (wxListItem *) 0 ;
27068 wxListColumnFormat result;
27069 void *argp1 = 0 ;
27070 int res1 = 0 ;
27071 PyObject *swig_obj[1] ;
27072
27073 if (!args) SWIG_fail;
27074 swig_obj[0] = args;
27075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27076 if (!SWIG_IsOK(res1)) {
27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27078 }
27079 arg1 = reinterpret_cast< wxListItem * >(argp1);
27080 {
27081 PyThreadState* __tstate = wxPyBeginAllowThreads();
27082 result = (wxListColumnFormat)(arg1)->GetAlign();
27083 wxPyEndAllowThreads(__tstate);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 resultobj = SWIG_From_int(static_cast< int >(result));
27087 return resultobj;
27088 fail:
27089 return NULL;
27090 }
27091
27092
27093 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27094 PyObject *resultobj = 0;
27095 wxListItem *arg1 = (wxListItem *) 0 ;
27096 wxListItemAttr *result = 0 ;
27097 void *argp1 = 0 ;
27098 int res1 = 0 ;
27099 PyObject *swig_obj[1] ;
27100
27101 if (!args) SWIG_fail;
27102 swig_obj[0] = args;
27103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27104 if (!SWIG_IsOK(res1)) {
27105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27106 }
27107 arg1 = reinterpret_cast< wxListItem * >(argp1);
27108 {
27109 PyThreadState* __tstate = wxPyBeginAllowThreads();
27110 result = (wxListItemAttr *)(arg1)->GetAttributes();
27111 wxPyEndAllowThreads(__tstate);
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27115 return resultobj;
27116 fail:
27117 return NULL;
27118 }
27119
27120
27121 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27122 PyObject *resultobj = 0;
27123 wxListItem *arg1 = (wxListItem *) 0 ;
27124 bool result;
27125 void *argp1 = 0 ;
27126 int res1 = 0 ;
27127 PyObject *swig_obj[1] ;
27128
27129 if (!args) SWIG_fail;
27130 swig_obj[0] = args;
27131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27132 if (!SWIG_IsOK(res1)) {
27133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27134 }
27135 arg1 = reinterpret_cast< wxListItem * >(argp1);
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 result = (bool)(arg1)->HasAttributes();
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 {
27143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27144 }
27145 return resultobj;
27146 fail:
27147 return NULL;
27148 }
27149
27150
27151 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27152 PyObject *resultobj = 0;
27153 wxListItem *arg1 = (wxListItem *) 0 ;
27154 wxColour result;
27155 void *argp1 = 0 ;
27156 int res1 = 0 ;
27157 PyObject *swig_obj[1] ;
27158
27159 if (!args) SWIG_fail;
27160 swig_obj[0] = args;
27161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27162 if (!SWIG_IsOK(res1)) {
27163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27164 }
27165 arg1 = reinterpret_cast< wxListItem * >(argp1);
27166 {
27167 PyThreadState* __tstate = wxPyBeginAllowThreads();
27168 result = ((wxListItem const *)arg1)->GetTextColour();
27169 wxPyEndAllowThreads(__tstate);
27170 if (PyErr_Occurred()) SWIG_fail;
27171 }
27172 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27180 PyObject *resultobj = 0;
27181 wxListItem *arg1 = (wxListItem *) 0 ;
27182 wxColour result;
27183 void *argp1 = 0 ;
27184 int res1 = 0 ;
27185 PyObject *swig_obj[1] ;
27186
27187 if (!args) SWIG_fail;
27188 swig_obj[0] = args;
27189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27190 if (!SWIG_IsOK(res1)) {
27191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27192 }
27193 arg1 = reinterpret_cast< wxListItem * >(argp1);
27194 {
27195 PyThreadState* __tstate = wxPyBeginAllowThreads();
27196 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27197 wxPyEndAllowThreads(__tstate);
27198 if (PyErr_Occurred()) SWIG_fail;
27199 }
27200 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27201 return resultobj;
27202 fail:
27203 return NULL;
27204 }
27205
27206
27207 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27208 PyObject *resultobj = 0;
27209 wxListItem *arg1 = (wxListItem *) 0 ;
27210 wxFont result;
27211 void *argp1 = 0 ;
27212 int res1 = 0 ;
27213 PyObject *swig_obj[1] ;
27214
27215 if (!args) SWIG_fail;
27216 swig_obj[0] = args;
27217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27218 if (!SWIG_IsOK(res1)) {
27219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27220 }
27221 arg1 = reinterpret_cast< wxListItem * >(argp1);
27222 {
27223 PyThreadState* __tstate = wxPyBeginAllowThreads();
27224 result = ((wxListItem const *)arg1)->GetFont();
27225 wxPyEndAllowThreads(__tstate);
27226 if (PyErr_Occurred()) SWIG_fail;
27227 }
27228 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27229 return resultobj;
27230 fail:
27231 return NULL;
27232 }
27233
27234
27235 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27236 PyObject *resultobj = 0;
27237 wxListItem *arg1 = (wxListItem *) 0 ;
27238 long arg2 ;
27239 void *argp1 = 0 ;
27240 int res1 = 0 ;
27241 long val2 ;
27242 int ecode2 = 0 ;
27243 PyObject *swig_obj[2] ;
27244
27245 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27247 if (!SWIG_IsOK(res1)) {
27248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27249 }
27250 arg1 = reinterpret_cast< wxListItem * >(argp1);
27251 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27252 if (!SWIG_IsOK(ecode2)) {
27253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27254 }
27255 arg2 = static_cast< long >(val2);
27256 if (arg1) (arg1)->m_mask = arg2;
27257
27258 resultobj = SWIG_Py_Void();
27259 return resultobj;
27260 fail:
27261 return NULL;
27262 }
27263
27264
27265 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27266 PyObject *resultobj = 0;
27267 wxListItem *arg1 = (wxListItem *) 0 ;
27268 long result;
27269 void *argp1 = 0 ;
27270 int res1 = 0 ;
27271 PyObject *swig_obj[1] ;
27272
27273 if (!args) SWIG_fail;
27274 swig_obj[0] = args;
27275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27276 if (!SWIG_IsOK(res1)) {
27277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27278 }
27279 arg1 = reinterpret_cast< wxListItem * >(argp1);
27280 result = (long) ((arg1)->m_mask);
27281 resultobj = SWIG_From_long(static_cast< long >(result));
27282 return resultobj;
27283 fail:
27284 return NULL;
27285 }
27286
27287
27288 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27289 PyObject *resultobj = 0;
27290 wxListItem *arg1 = (wxListItem *) 0 ;
27291 long arg2 ;
27292 void *argp1 = 0 ;
27293 int res1 = 0 ;
27294 long val2 ;
27295 int ecode2 = 0 ;
27296 PyObject *swig_obj[2] ;
27297
27298 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27300 if (!SWIG_IsOK(res1)) {
27301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27302 }
27303 arg1 = reinterpret_cast< wxListItem * >(argp1);
27304 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27305 if (!SWIG_IsOK(ecode2)) {
27306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27307 }
27308 arg2 = static_cast< long >(val2);
27309 if (arg1) (arg1)->m_itemId = arg2;
27310
27311 resultobj = SWIG_Py_Void();
27312 return resultobj;
27313 fail:
27314 return NULL;
27315 }
27316
27317
27318 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27319 PyObject *resultobj = 0;
27320 wxListItem *arg1 = (wxListItem *) 0 ;
27321 long result;
27322 void *argp1 = 0 ;
27323 int res1 = 0 ;
27324 PyObject *swig_obj[1] ;
27325
27326 if (!args) SWIG_fail;
27327 swig_obj[0] = args;
27328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27329 if (!SWIG_IsOK(res1)) {
27330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27331 }
27332 arg1 = reinterpret_cast< wxListItem * >(argp1);
27333 result = (long) ((arg1)->m_itemId);
27334 resultobj = SWIG_From_long(static_cast< long >(result));
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27342 PyObject *resultobj = 0;
27343 wxListItem *arg1 = (wxListItem *) 0 ;
27344 int arg2 ;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 int val2 ;
27348 int ecode2 = 0 ;
27349 PyObject *swig_obj[2] ;
27350
27351 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27353 if (!SWIG_IsOK(res1)) {
27354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27355 }
27356 arg1 = reinterpret_cast< wxListItem * >(argp1);
27357 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27358 if (!SWIG_IsOK(ecode2)) {
27359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27360 }
27361 arg2 = static_cast< int >(val2);
27362 if (arg1) (arg1)->m_col = arg2;
27363
27364 resultobj = SWIG_Py_Void();
27365 return resultobj;
27366 fail:
27367 return NULL;
27368 }
27369
27370
27371 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27372 PyObject *resultobj = 0;
27373 wxListItem *arg1 = (wxListItem *) 0 ;
27374 int result;
27375 void *argp1 = 0 ;
27376 int res1 = 0 ;
27377 PyObject *swig_obj[1] ;
27378
27379 if (!args) SWIG_fail;
27380 swig_obj[0] = args;
27381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27382 if (!SWIG_IsOK(res1)) {
27383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27384 }
27385 arg1 = reinterpret_cast< wxListItem * >(argp1);
27386 result = (int) ((arg1)->m_col);
27387 resultobj = SWIG_From_int(static_cast< int >(result));
27388 return resultobj;
27389 fail:
27390 return NULL;
27391 }
27392
27393
27394 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27395 PyObject *resultobj = 0;
27396 wxListItem *arg1 = (wxListItem *) 0 ;
27397 long arg2 ;
27398 void *argp1 = 0 ;
27399 int res1 = 0 ;
27400 long val2 ;
27401 int ecode2 = 0 ;
27402 PyObject *swig_obj[2] ;
27403
27404 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27406 if (!SWIG_IsOK(res1)) {
27407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27408 }
27409 arg1 = reinterpret_cast< wxListItem * >(argp1);
27410 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27411 if (!SWIG_IsOK(ecode2)) {
27412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27413 }
27414 arg2 = static_cast< long >(val2);
27415 if (arg1) (arg1)->m_state = arg2;
27416
27417 resultobj = SWIG_Py_Void();
27418 return resultobj;
27419 fail:
27420 return NULL;
27421 }
27422
27423
27424 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27425 PyObject *resultobj = 0;
27426 wxListItem *arg1 = (wxListItem *) 0 ;
27427 long result;
27428 void *argp1 = 0 ;
27429 int res1 = 0 ;
27430 PyObject *swig_obj[1] ;
27431
27432 if (!args) SWIG_fail;
27433 swig_obj[0] = args;
27434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27435 if (!SWIG_IsOK(res1)) {
27436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27437 }
27438 arg1 = reinterpret_cast< wxListItem * >(argp1);
27439 result = (long) ((arg1)->m_state);
27440 resultobj = SWIG_From_long(static_cast< long >(result));
27441 return resultobj;
27442 fail:
27443 return NULL;
27444 }
27445
27446
27447 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27448 PyObject *resultobj = 0;
27449 wxListItem *arg1 = (wxListItem *) 0 ;
27450 long arg2 ;
27451 void *argp1 = 0 ;
27452 int res1 = 0 ;
27453 long val2 ;
27454 int ecode2 = 0 ;
27455 PyObject *swig_obj[2] ;
27456
27457 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27459 if (!SWIG_IsOK(res1)) {
27460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27461 }
27462 arg1 = reinterpret_cast< wxListItem * >(argp1);
27463 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27464 if (!SWIG_IsOK(ecode2)) {
27465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27466 }
27467 arg2 = static_cast< long >(val2);
27468 if (arg1) (arg1)->m_stateMask = arg2;
27469
27470 resultobj = SWIG_Py_Void();
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27478 PyObject *resultobj = 0;
27479 wxListItem *arg1 = (wxListItem *) 0 ;
27480 long result;
27481 void *argp1 = 0 ;
27482 int res1 = 0 ;
27483 PyObject *swig_obj[1] ;
27484
27485 if (!args) SWIG_fail;
27486 swig_obj[0] = args;
27487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27488 if (!SWIG_IsOK(res1)) {
27489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27490 }
27491 arg1 = reinterpret_cast< wxListItem * >(argp1);
27492 result = (long) ((arg1)->m_stateMask);
27493 resultobj = SWIG_From_long(static_cast< long >(result));
27494 return resultobj;
27495 fail:
27496 return NULL;
27497 }
27498
27499
27500 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27501 PyObject *resultobj = 0;
27502 wxListItem *arg1 = (wxListItem *) 0 ;
27503 wxString *arg2 = (wxString *) 0 ;
27504 void *argp1 = 0 ;
27505 int res1 = 0 ;
27506 bool temp2 = false ;
27507 PyObject *swig_obj[2] ;
27508
27509 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27511 if (!SWIG_IsOK(res1)) {
27512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27513 }
27514 arg1 = reinterpret_cast< wxListItem * >(argp1);
27515 {
27516 arg2 = wxString_in_helper(swig_obj[1]);
27517 if (arg2 == NULL) SWIG_fail;
27518 temp2 = true;
27519 }
27520 if (arg1) (arg1)->m_text = *arg2;
27521
27522 resultobj = SWIG_Py_Void();
27523 {
27524 if (temp2)
27525 delete arg2;
27526 }
27527 return resultobj;
27528 fail:
27529 {
27530 if (temp2)
27531 delete arg2;
27532 }
27533 return NULL;
27534 }
27535
27536
27537 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27538 PyObject *resultobj = 0;
27539 wxListItem *arg1 = (wxListItem *) 0 ;
27540 wxString *result = 0 ;
27541 void *argp1 = 0 ;
27542 int res1 = 0 ;
27543 PyObject *swig_obj[1] ;
27544
27545 if (!args) SWIG_fail;
27546 swig_obj[0] = args;
27547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27548 if (!SWIG_IsOK(res1)) {
27549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27550 }
27551 arg1 = reinterpret_cast< wxListItem * >(argp1);
27552 result = (wxString *)& ((arg1)->m_text);
27553 {
27554 #if wxUSE_UNICODE
27555 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27556 #else
27557 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27558 #endif
27559 }
27560 return resultobj;
27561 fail:
27562 return NULL;
27563 }
27564
27565
27566 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27567 PyObject *resultobj = 0;
27568 wxListItem *arg1 = (wxListItem *) 0 ;
27569 int arg2 ;
27570 void *argp1 = 0 ;
27571 int res1 = 0 ;
27572 int val2 ;
27573 int ecode2 = 0 ;
27574 PyObject *swig_obj[2] ;
27575
27576 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27578 if (!SWIG_IsOK(res1)) {
27579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27580 }
27581 arg1 = reinterpret_cast< wxListItem * >(argp1);
27582 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27583 if (!SWIG_IsOK(ecode2)) {
27584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27585 }
27586 arg2 = static_cast< int >(val2);
27587 if (arg1) (arg1)->m_image = arg2;
27588
27589 resultobj = SWIG_Py_Void();
27590 return resultobj;
27591 fail:
27592 return NULL;
27593 }
27594
27595
27596 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27597 PyObject *resultobj = 0;
27598 wxListItem *arg1 = (wxListItem *) 0 ;
27599 int result;
27600 void *argp1 = 0 ;
27601 int res1 = 0 ;
27602 PyObject *swig_obj[1] ;
27603
27604 if (!args) SWIG_fail;
27605 swig_obj[0] = args;
27606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27607 if (!SWIG_IsOK(res1)) {
27608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27609 }
27610 arg1 = reinterpret_cast< wxListItem * >(argp1);
27611 result = (int) ((arg1)->m_image);
27612 resultobj = SWIG_From_int(static_cast< int >(result));
27613 return resultobj;
27614 fail:
27615 return NULL;
27616 }
27617
27618
27619 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27620 PyObject *resultobj = 0;
27621 wxListItem *arg1 = (wxListItem *) 0 ;
27622 long arg2 ;
27623 void *argp1 = 0 ;
27624 int res1 = 0 ;
27625 long val2 ;
27626 int ecode2 = 0 ;
27627 PyObject *swig_obj[2] ;
27628
27629 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27631 if (!SWIG_IsOK(res1)) {
27632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27633 }
27634 arg1 = reinterpret_cast< wxListItem * >(argp1);
27635 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27636 if (!SWIG_IsOK(ecode2)) {
27637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27638 }
27639 arg2 = static_cast< long >(val2);
27640 if (arg1) (arg1)->m_data = arg2;
27641
27642 resultobj = SWIG_Py_Void();
27643 return resultobj;
27644 fail:
27645 return NULL;
27646 }
27647
27648
27649 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27650 PyObject *resultobj = 0;
27651 wxListItem *arg1 = (wxListItem *) 0 ;
27652 long result;
27653 void *argp1 = 0 ;
27654 int res1 = 0 ;
27655 PyObject *swig_obj[1] ;
27656
27657 if (!args) SWIG_fail;
27658 swig_obj[0] = args;
27659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27660 if (!SWIG_IsOK(res1)) {
27661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27662 }
27663 arg1 = reinterpret_cast< wxListItem * >(argp1);
27664 result = (long) ((arg1)->m_data);
27665 resultobj = SWIG_From_long(static_cast< long >(result));
27666 return resultobj;
27667 fail:
27668 return NULL;
27669 }
27670
27671
27672 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27673 PyObject *resultobj = 0;
27674 wxListItem *arg1 = (wxListItem *) 0 ;
27675 int arg2 ;
27676 void *argp1 = 0 ;
27677 int res1 = 0 ;
27678 int val2 ;
27679 int ecode2 = 0 ;
27680 PyObject *swig_obj[2] ;
27681
27682 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27684 if (!SWIG_IsOK(res1)) {
27685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27686 }
27687 arg1 = reinterpret_cast< wxListItem * >(argp1);
27688 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27689 if (!SWIG_IsOK(ecode2)) {
27690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27691 }
27692 arg2 = static_cast< int >(val2);
27693 if (arg1) (arg1)->m_format = arg2;
27694
27695 resultobj = SWIG_Py_Void();
27696 return resultobj;
27697 fail:
27698 return NULL;
27699 }
27700
27701
27702 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27703 PyObject *resultobj = 0;
27704 wxListItem *arg1 = (wxListItem *) 0 ;
27705 int result;
27706 void *argp1 = 0 ;
27707 int res1 = 0 ;
27708 PyObject *swig_obj[1] ;
27709
27710 if (!args) SWIG_fail;
27711 swig_obj[0] = args;
27712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27713 if (!SWIG_IsOK(res1)) {
27714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27715 }
27716 arg1 = reinterpret_cast< wxListItem * >(argp1);
27717 result = (int) ((arg1)->m_format);
27718 resultobj = SWIG_From_int(static_cast< int >(result));
27719 return resultobj;
27720 fail:
27721 return NULL;
27722 }
27723
27724
27725 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27726 PyObject *resultobj = 0;
27727 wxListItem *arg1 = (wxListItem *) 0 ;
27728 int arg2 ;
27729 void *argp1 = 0 ;
27730 int res1 = 0 ;
27731 int val2 ;
27732 int ecode2 = 0 ;
27733 PyObject *swig_obj[2] ;
27734
27735 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27737 if (!SWIG_IsOK(res1)) {
27738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27739 }
27740 arg1 = reinterpret_cast< wxListItem * >(argp1);
27741 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27742 if (!SWIG_IsOK(ecode2)) {
27743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27744 }
27745 arg2 = static_cast< int >(val2);
27746 if (arg1) (arg1)->m_width = arg2;
27747
27748 resultobj = SWIG_Py_Void();
27749 return resultobj;
27750 fail:
27751 return NULL;
27752 }
27753
27754
27755 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27756 PyObject *resultobj = 0;
27757 wxListItem *arg1 = (wxListItem *) 0 ;
27758 int result;
27759 void *argp1 = 0 ;
27760 int res1 = 0 ;
27761 PyObject *swig_obj[1] ;
27762
27763 if (!args) SWIG_fail;
27764 swig_obj[0] = args;
27765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27766 if (!SWIG_IsOK(res1)) {
27767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27768 }
27769 arg1 = reinterpret_cast< wxListItem * >(argp1);
27770 result = (int) ((arg1)->m_width);
27771 resultobj = SWIG_From_int(static_cast< int >(result));
27772 return resultobj;
27773 fail:
27774 return NULL;
27775 }
27776
27777
27778 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27779 PyObject *obj;
27780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27781 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27782 return SWIG_Py_Void();
27783 }
27784
27785 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27786 return SWIG_Python_InitShadowInstance(args);
27787 }
27788
27789 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27790 PyObject *resultobj = 0;
27791 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27792 int arg2 = (int) 0 ;
27793 wxListEvent *result = 0 ;
27794 int val1 ;
27795 int ecode1 = 0 ;
27796 int val2 ;
27797 int ecode2 = 0 ;
27798 PyObject * obj0 = 0 ;
27799 PyObject * obj1 = 0 ;
27800 char * kwnames[] = {
27801 (char *) "commandType",(char *) "id", NULL
27802 };
27803
27804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27805 if (obj0) {
27806 ecode1 = SWIG_AsVal_int(obj0, &val1);
27807 if (!SWIG_IsOK(ecode1)) {
27808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27809 }
27810 arg1 = static_cast< wxEventType >(val1);
27811 }
27812 if (obj1) {
27813 ecode2 = SWIG_AsVal_int(obj1, &val2);
27814 if (!SWIG_IsOK(ecode2)) {
27815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27816 }
27817 arg2 = static_cast< int >(val2);
27818 }
27819 {
27820 PyThreadState* __tstate = wxPyBeginAllowThreads();
27821 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27822 wxPyEndAllowThreads(__tstate);
27823 if (PyErr_Occurred()) SWIG_fail;
27824 }
27825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27826 return resultobj;
27827 fail:
27828 return NULL;
27829 }
27830
27831
27832 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27833 PyObject *resultobj = 0;
27834 wxListEvent *arg1 = (wxListEvent *) 0 ;
27835 int arg2 ;
27836 void *argp1 = 0 ;
27837 int res1 = 0 ;
27838 int val2 ;
27839 int ecode2 = 0 ;
27840 PyObject *swig_obj[2] ;
27841
27842 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27846 }
27847 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27848 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27849 if (!SWIG_IsOK(ecode2)) {
27850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27851 }
27852 arg2 = static_cast< int >(val2);
27853 if (arg1) (arg1)->m_code = arg2;
27854
27855 resultobj = SWIG_Py_Void();
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *resultobj = 0;
27864 wxListEvent *arg1 = (wxListEvent *) 0 ;
27865 int result;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 PyObject *swig_obj[1] ;
27869
27870 if (!args) SWIG_fail;
27871 swig_obj[0] = args;
27872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27873 if (!SWIG_IsOK(res1)) {
27874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27875 }
27876 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27877 result = (int) ((arg1)->m_code);
27878 resultobj = SWIG_From_int(static_cast< int >(result));
27879 return resultobj;
27880 fail:
27881 return NULL;
27882 }
27883
27884
27885 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27886 PyObject *resultobj = 0;
27887 wxListEvent *arg1 = (wxListEvent *) 0 ;
27888 long arg2 ;
27889 void *argp1 = 0 ;
27890 int res1 = 0 ;
27891 long val2 ;
27892 int ecode2 = 0 ;
27893 PyObject *swig_obj[2] ;
27894
27895 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27897 if (!SWIG_IsOK(res1)) {
27898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27899 }
27900 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27901 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27902 if (!SWIG_IsOK(ecode2)) {
27903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27904 }
27905 arg2 = static_cast< long >(val2);
27906 if (arg1) (arg1)->m_oldItemIndex = arg2;
27907
27908 resultobj = SWIG_Py_Void();
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *resultobj = 0;
27917 wxListEvent *arg1 = (wxListEvent *) 0 ;
27918 long result;
27919 void *argp1 = 0 ;
27920 int res1 = 0 ;
27921 PyObject *swig_obj[1] ;
27922
27923 if (!args) SWIG_fail;
27924 swig_obj[0] = args;
27925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27926 if (!SWIG_IsOK(res1)) {
27927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27928 }
27929 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27930 result = (long) ((arg1)->m_oldItemIndex);
27931 resultobj = SWIG_From_long(static_cast< long >(result));
27932 return resultobj;
27933 fail:
27934 return NULL;
27935 }
27936
27937
27938 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27939 PyObject *resultobj = 0;
27940 wxListEvent *arg1 = (wxListEvent *) 0 ;
27941 long arg2 ;
27942 void *argp1 = 0 ;
27943 int res1 = 0 ;
27944 long val2 ;
27945 int ecode2 = 0 ;
27946 PyObject *swig_obj[2] ;
27947
27948 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27950 if (!SWIG_IsOK(res1)) {
27951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27952 }
27953 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27954 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27955 if (!SWIG_IsOK(ecode2)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27957 }
27958 arg2 = static_cast< long >(val2);
27959 if (arg1) (arg1)->m_itemIndex = arg2;
27960
27961 resultobj = SWIG_Py_Void();
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *resultobj = 0;
27970 wxListEvent *arg1 = (wxListEvent *) 0 ;
27971 long result;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 PyObject *swig_obj[1] ;
27975
27976 if (!args) SWIG_fail;
27977 swig_obj[0] = args;
27978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27979 if (!SWIG_IsOK(res1)) {
27980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27981 }
27982 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27983 result = (long) ((arg1)->m_itemIndex);
27984 resultobj = SWIG_From_long(static_cast< long >(result));
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27992 PyObject *resultobj = 0;
27993 wxListEvent *arg1 = (wxListEvent *) 0 ;
27994 int arg2 ;
27995 void *argp1 = 0 ;
27996 int res1 = 0 ;
27997 int val2 ;
27998 int ecode2 = 0 ;
27999 PyObject *swig_obj[2] ;
28000
28001 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28003 if (!SWIG_IsOK(res1)) {
28004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28005 }
28006 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28007 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28008 if (!SWIG_IsOK(ecode2)) {
28009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28010 }
28011 arg2 = static_cast< int >(val2);
28012 if (arg1) (arg1)->m_col = arg2;
28013
28014 resultobj = SWIG_Py_Void();
28015 return resultobj;
28016 fail:
28017 return NULL;
28018 }
28019
28020
28021 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28022 PyObject *resultobj = 0;
28023 wxListEvent *arg1 = (wxListEvent *) 0 ;
28024 int result;
28025 void *argp1 = 0 ;
28026 int res1 = 0 ;
28027 PyObject *swig_obj[1] ;
28028
28029 if (!args) SWIG_fail;
28030 swig_obj[0] = args;
28031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28032 if (!SWIG_IsOK(res1)) {
28033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28034 }
28035 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28036 result = (int) ((arg1)->m_col);
28037 resultobj = SWIG_From_int(static_cast< int >(result));
28038 return resultobj;
28039 fail:
28040 return NULL;
28041 }
28042
28043
28044 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28045 PyObject *resultobj = 0;
28046 wxListEvent *arg1 = (wxListEvent *) 0 ;
28047 wxPoint *arg2 = (wxPoint *) 0 ;
28048 void *argp1 = 0 ;
28049 int res1 = 0 ;
28050 void *argp2 = 0 ;
28051 int res2 = 0 ;
28052 PyObject *swig_obj[2] ;
28053
28054 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28056 if (!SWIG_IsOK(res1)) {
28057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28058 }
28059 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28060 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28061 if (!SWIG_IsOK(res2)) {
28062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28063 }
28064 arg2 = reinterpret_cast< wxPoint * >(argp2);
28065 if (arg1) (arg1)->m_pointDrag = *arg2;
28066
28067 resultobj = SWIG_Py_Void();
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28075 PyObject *resultobj = 0;
28076 wxListEvent *arg1 = (wxListEvent *) 0 ;
28077 wxPoint *result = 0 ;
28078 void *argp1 = 0 ;
28079 int res1 = 0 ;
28080 PyObject *swig_obj[1] ;
28081
28082 if (!args) SWIG_fail;
28083 swig_obj[0] = args;
28084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28087 }
28088 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28089 result = (wxPoint *)& ((arg1)->m_pointDrag);
28090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28091 return resultobj;
28092 fail:
28093 return NULL;
28094 }
28095
28096
28097 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28098 PyObject *resultobj = 0;
28099 wxListEvent *arg1 = (wxListEvent *) 0 ;
28100 wxListItem *result = 0 ;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 PyObject *swig_obj[1] ;
28104
28105 if (!args) SWIG_fail;
28106 swig_obj[0] = args;
28107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28108 if (!SWIG_IsOK(res1)) {
28109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28110 }
28111 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28112 result = (wxListItem *)& ((arg1)->m_item);
28113 {
28114 resultobj = wxPyMake_wxObject(result, (bool)0);
28115 }
28116 return resultobj;
28117 fail:
28118 return NULL;
28119 }
28120
28121
28122 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28123 PyObject *resultobj = 0;
28124 wxListEvent *arg1 = (wxListEvent *) 0 ;
28125 int result;
28126 void *argp1 = 0 ;
28127 int res1 = 0 ;
28128 PyObject *swig_obj[1] ;
28129
28130 if (!args) SWIG_fail;
28131 swig_obj[0] = args;
28132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28133 if (!SWIG_IsOK(res1)) {
28134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28135 }
28136 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28137 {
28138 PyThreadState* __tstate = wxPyBeginAllowThreads();
28139 result = (int)(arg1)->GetKeyCode();
28140 wxPyEndAllowThreads(__tstate);
28141 if (PyErr_Occurred()) SWIG_fail;
28142 }
28143 resultobj = SWIG_From_int(static_cast< int >(result));
28144 return resultobj;
28145 fail:
28146 return NULL;
28147 }
28148
28149
28150 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28151 PyObject *resultobj = 0;
28152 wxListEvent *arg1 = (wxListEvent *) 0 ;
28153 long result;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 PyObject *swig_obj[1] ;
28157
28158 if (!args) SWIG_fail;
28159 swig_obj[0] = args;
28160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28161 if (!SWIG_IsOK(res1)) {
28162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28163 }
28164 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28165 {
28166 PyThreadState* __tstate = wxPyBeginAllowThreads();
28167 result = (long)(arg1)->GetIndex();
28168 wxPyEndAllowThreads(__tstate);
28169 if (PyErr_Occurred()) SWIG_fail;
28170 }
28171 resultobj = SWIG_From_long(static_cast< long >(result));
28172 return resultobj;
28173 fail:
28174 return NULL;
28175 }
28176
28177
28178 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28179 PyObject *resultobj = 0;
28180 wxListEvent *arg1 = (wxListEvent *) 0 ;
28181 int result;
28182 void *argp1 = 0 ;
28183 int res1 = 0 ;
28184 PyObject *swig_obj[1] ;
28185
28186 if (!args) SWIG_fail;
28187 swig_obj[0] = args;
28188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28189 if (!SWIG_IsOK(res1)) {
28190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28191 }
28192 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28193 {
28194 PyThreadState* __tstate = wxPyBeginAllowThreads();
28195 result = (int)(arg1)->GetColumn();
28196 wxPyEndAllowThreads(__tstate);
28197 if (PyErr_Occurred()) SWIG_fail;
28198 }
28199 resultobj = SWIG_From_int(static_cast< int >(result));
28200 return resultobj;
28201 fail:
28202 return NULL;
28203 }
28204
28205
28206 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28207 PyObject *resultobj = 0;
28208 wxListEvent *arg1 = (wxListEvent *) 0 ;
28209 wxPoint result;
28210 void *argp1 = 0 ;
28211 int res1 = 0 ;
28212 PyObject *swig_obj[1] ;
28213
28214 if (!args) SWIG_fail;
28215 swig_obj[0] = args;
28216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28217 if (!SWIG_IsOK(res1)) {
28218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28219 }
28220 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28221 {
28222 PyThreadState* __tstate = wxPyBeginAllowThreads();
28223 result = (arg1)->GetPoint();
28224 wxPyEndAllowThreads(__tstate);
28225 if (PyErr_Occurred()) SWIG_fail;
28226 }
28227 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28228 return resultobj;
28229 fail:
28230 return NULL;
28231 }
28232
28233
28234 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28235 PyObject *resultobj = 0;
28236 wxListEvent *arg1 = (wxListEvent *) 0 ;
28237 wxString *result = 0 ;
28238 void *argp1 = 0 ;
28239 int res1 = 0 ;
28240 PyObject *swig_obj[1] ;
28241
28242 if (!args) SWIG_fail;
28243 swig_obj[0] = args;
28244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28245 if (!SWIG_IsOK(res1)) {
28246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28247 }
28248 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28249 {
28250 PyThreadState* __tstate = wxPyBeginAllowThreads();
28251 {
28252 wxString const &_result_ref = (arg1)->GetLabel();
28253 result = (wxString *) &_result_ref;
28254 }
28255 wxPyEndAllowThreads(__tstate);
28256 if (PyErr_Occurred()) SWIG_fail;
28257 }
28258 {
28259 #if wxUSE_UNICODE
28260 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28261 #else
28262 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28263 #endif
28264 }
28265 return resultobj;
28266 fail:
28267 return NULL;
28268 }
28269
28270
28271 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28272 PyObject *resultobj = 0;
28273 wxListEvent *arg1 = (wxListEvent *) 0 ;
28274 wxString *result = 0 ;
28275 void *argp1 = 0 ;
28276 int res1 = 0 ;
28277 PyObject *swig_obj[1] ;
28278
28279 if (!args) SWIG_fail;
28280 swig_obj[0] = args;
28281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28282 if (!SWIG_IsOK(res1)) {
28283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28284 }
28285 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28286 {
28287 PyThreadState* __tstate = wxPyBeginAllowThreads();
28288 {
28289 wxString const &_result_ref = (arg1)->GetText();
28290 result = (wxString *) &_result_ref;
28291 }
28292 wxPyEndAllowThreads(__tstate);
28293 if (PyErr_Occurred()) SWIG_fail;
28294 }
28295 {
28296 #if wxUSE_UNICODE
28297 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28298 #else
28299 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28300 #endif
28301 }
28302 return resultobj;
28303 fail:
28304 return NULL;
28305 }
28306
28307
28308 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28309 PyObject *resultobj = 0;
28310 wxListEvent *arg1 = (wxListEvent *) 0 ;
28311 int result;
28312 void *argp1 = 0 ;
28313 int res1 = 0 ;
28314 PyObject *swig_obj[1] ;
28315
28316 if (!args) SWIG_fail;
28317 swig_obj[0] = args;
28318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28319 if (!SWIG_IsOK(res1)) {
28320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28321 }
28322 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28323 {
28324 PyThreadState* __tstate = wxPyBeginAllowThreads();
28325 result = (int)(arg1)->GetImage();
28326 wxPyEndAllowThreads(__tstate);
28327 if (PyErr_Occurred()) SWIG_fail;
28328 }
28329 resultobj = SWIG_From_int(static_cast< int >(result));
28330 return resultobj;
28331 fail:
28332 return NULL;
28333 }
28334
28335
28336 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28337 PyObject *resultobj = 0;
28338 wxListEvent *arg1 = (wxListEvent *) 0 ;
28339 long result;
28340 void *argp1 = 0 ;
28341 int res1 = 0 ;
28342 PyObject *swig_obj[1] ;
28343
28344 if (!args) SWIG_fail;
28345 swig_obj[0] = args;
28346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28347 if (!SWIG_IsOK(res1)) {
28348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28349 }
28350 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28351 {
28352 PyThreadState* __tstate = wxPyBeginAllowThreads();
28353 result = (long)(arg1)->GetData();
28354 wxPyEndAllowThreads(__tstate);
28355 if (PyErr_Occurred()) SWIG_fail;
28356 }
28357 resultobj = SWIG_From_long(static_cast< long >(result));
28358 return resultobj;
28359 fail:
28360 return NULL;
28361 }
28362
28363
28364 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28365 PyObject *resultobj = 0;
28366 wxListEvent *arg1 = (wxListEvent *) 0 ;
28367 long result;
28368 void *argp1 = 0 ;
28369 int res1 = 0 ;
28370 PyObject *swig_obj[1] ;
28371
28372 if (!args) SWIG_fail;
28373 swig_obj[0] = args;
28374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28375 if (!SWIG_IsOK(res1)) {
28376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28377 }
28378 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28379 {
28380 PyThreadState* __tstate = wxPyBeginAllowThreads();
28381 result = (long)(arg1)->GetMask();
28382 wxPyEndAllowThreads(__tstate);
28383 if (PyErr_Occurred()) SWIG_fail;
28384 }
28385 resultobj = SWIG_From_long(static_cast< long >(result));
28386 return resultobj;
28387 fail:
28388 return NULL;
28389 }
28390
28391
28392 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28393 PyObject *resultobj = 0;
28394 wxListEvent *arg1 = (wxListEvent *) 0 ;
28395 wxListItem *result = 0 ;
28396 void *argp1 = 0 ;
28397 int res1 = 0 ;
28398 PyObject *swig_obj[1] ;
28399
28400 if (!args) SWIG_fail;
28401 swig_obj[0] = args;
28402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28403 if (!SWIG_IsOK(res1)) {
28404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28405 }
28406 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28407 {
28408 PyThreadState* __tstate = wxPyBeginAllowThreads();
28409 {
28410 wxListItem const &_result_ref = (arg1)->GetItem();
28411 result = (wxListItem *) &_result_ref;
28412 }
28413 wxPyEndAllowThreads(__tstate);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28417 return resultobj;
28418 fail:
28419 return NULL;
28420 }
28421
28422
28423 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28424 PyObject *resultobj = 0;
28425 wxListEvent *arg1 = (wxListEvent *) 0 ;
28426 long result;
28427 void *argp1 = 0 ;
28428 int res1 = 0 ;
28429 PyObject *swig_obj[1] ;
28430
28431 if (!args) SWIG_fail;
28432 swig_obj[0] = args;
28433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28434 if (!SWIG_IsOK(res1)) {
28435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28436 }
28437 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28438 {
28439 PyThreadState* __tstate = wxPyBeginAllowThreads();
28440 result = (long)(arg1)->GetCacheFrom();
28441 wxPyEndAllowThreads(__tstate);
28442 if (PyErr_Occurred()) SWIG_fail;
28443 }
28444 resultobj = SWIG_From_long(static_cast< long >(result));
28445 return resultobj;
28446 fail:
28447 return NULL;
28448 }
28449
28450
28451 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28452 PyObject *resultobj = 0;
28453 wxListEvent *arg1 = (wxListEvent *) 0 ;
28454 long result;
28455 void *argp1 = 0 ;
28456 int res1 = 0 ;
28457 PyObject *swig_obj[1] ;
28458
28459 if (!args) SWIG_fail;
28460 swig_obj[0] = args;
28461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28462 if (!SWIG_IsOK(res1)) {
28463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28464 }
28465 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28466 {
28467 PyThreadState* __tstate = wxPyBeginAllowThreads();
28468 result = (long)(arg1)->GetCacheTo();
28469 wxPyEndAllowThreads(__tstate);
28470 if (PyErr_Occurred()) SWIG_fail;
28471 }
28472 resultobj = SWIG_From_long(static_cast< long >(result));
28473 return resultobj;
28474 fail:
28475 return NULL;
28476 }
28477
28478
28479 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28480 PyObject *resultobj = 0;
28481 wxListEvent *arg1 = (wxListEvent *) 0 ;
28482 bool result;
28483 void *argp1 = 0 ;
28484 int res1 = 0 ;
28485 PyObject *swig_obj[1] ;
28486
28487 if (!args) SWIG_fail;
28488 swig_obj[0] = args;
28489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28490 if (!SWIG_IsOK(res1)) {
28491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28492 }
28493 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28494 {
28495 PyThreadState* __tstate = wxPyBeginAllowThreads();
28496 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28497 wxPyEndAllowThreads(__tstate);
28498 if (PyErr_Occurred()) SWIG_fail;
28499 }
28500 {
28501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28502 }
28503 return resultobj;
28504 fail:
28505 return NULL;
28506 }
28507
28508
28509 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28510 PyObject *resultobj = 0;
28511 wxListEvent *arg1 = (wxListEvent *) 0 ;
28512 bool arg2 ;
28513 void *argp1 = 0 ;
28514 int res1 = 0 ;
28515 bool val2 ;
28516 int ecode2 = 0 ;
28517 PyObject * obj0 = 0 ;
28518 PyObject * obj1 = 0 ;
28519 char * kwnames[] = {
28520 (char *) "self",(char *) "editCancelled", NULL
28521 };
28522
28523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28525 if (!SWIG_IsOK(res1)) {
28526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28527 }
28528 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28529 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28530 if (!SWIG_IsOK(ecode2)) {
28531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28532 }
28533 arg2 = static_cast< bool >(val2);
28534 {
28535 PyThreadState* __tstate = wxPyBeginAllowThreads();
28536 (arg1)->SetEditCanceled(arg2);
28537 wxPyEndAllowThreads(__tstate);
28538 if (PyErr_Occurred()) SWIG_fail;
28539 }
28540 resultobj = SWIG_Py_Void();
28541 return resultobj;
28542 fail:
28543 return NULL;
28544 }
28545
28546
28547 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28548 PyObject *obj;
28549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28550 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28551 return SWIG_Py_Void();
28552 }
28553
28554 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28555 return SWIG_Python_InitShadowInstance(args);
28556 }
28557
28558 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28559 PyObject *resultobj = 0;
28560 wxWindow *arg1 = (wxWindow *) 0 ;
28561 int arg2 = (int) -1 ;
28562 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28563 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28564 wxSize const &arg4_defvalue = wxDefaultSize ;
28565 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28566 long arg5 = (long) wxLC_ICON ;
28567 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28568 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28569 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28570 wxString *arg7 = (wxString *) &arg7_defvalue ;
28571 wxPyListCtrl *result = 0 ;
28572 void *argp1 = 0 ;
28573 int res1 = 0 ;
28574 int val2 ;
28575 int ecode2 = 0 ;
28576 wxPoint temp3 ;
28577 wxSize temp4 ;
28578 long val5 ;
28579 int ecode5 = 0 ;
28580 void *argp6 = 0 ;
28581 int res6 = 0 ;
28582 bool temp7 = false ;
28583 PyObject * obj0 = 0 ;
28584 PyObject * obj1 = 0 ;
28585 PyObject * obj2 = 0 ;
28586 PyObject * obj3 = 0 ;
28587 PyObject * obj4 = 0 ;
28588 PyObject * obj5 = 0 ;
28589 PyObject * obj6 = 0 ;
28590 char * kwnames[] = {
28591 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28592 };
28593
28594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28596 if (!SWIG_IsOK(res1)) {
28597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28598 }
28599 arg1 = reinterpret_cast< wxWindow * >(argp1);
28600 if (obj1) {
28601 ecode2 = SWIG_AsVal_int(obj1, &val2);
28602 if (!SWIG_IsOK(ecode2)) {
28603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28604 }
28605 arg2 = static_cast< int >(val2);
28606 }
28607 if (obj2) {
28608 {
28609 arg3 = &temp3;
28610 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28611 }
28612 }
28613 if (obj3) {
28614 {
28615 arg4 = &temp4;
28616 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28617 }
28618 }
28619 if (obj4) {
28620 ecode5 = SWIG_AsVal_long(obj4, &val5);
28621 if (!SWIG_IsOK(ecode5)) {
28622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28623 }
28624 arg5 = static_cast< long >(val5);
28625 }
28626 if (obj5) {
28627 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28628 if (!SWIG_IsOK(res6)) {
28629 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28630 }
28631 if (!argp6) {
28632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28633 }
28634 arg6 = reinterpret_cast< wxValidator * >(argp6);
28635 }
28636 if (obj6) {
28637 {
28638 arg7 = wxString_in_helper(obj6);
28639 if (arg7 == NULL) SWIG_fail;
28640 temp7 = true;
28641 }
28642 }
28643 {
28644 if (!wxPyCheckForApp()) SWIG_fail;
28645 PyThreadState* __tstate = wxPyBeginAllowThreads();
28646 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28647 wxPyEndAllowThreads(__tstate);
28648 if (PyErr_Occurred()) SWIG_fail;
28649 }
28650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28651 {
28652 if (temp7)
28653 delete arg7;
28654 }
28655 return resultobj;
28656 fail:
28657 {
28658 if (temp7)
28659 delete arg7;
28660 }
28661 return NULL;
28662 }
28663
28664
28665 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28666 PyObject *resultobj = 0;
28667 wxPyListCtrl *result = 0 ;
28668
28669 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28670 {
28671 if (!wxPyCheckForApp()) SWIG_fail;
28672 PyThreadState* __tstate = wxPyBeginAllowThreads();
28673 result = (wxPyListCtrl *)new wxPyListCtrl();
28674 wxPyEndAllowThreads(__tstate);
28675 if (PyErr_Occurred()) SWIG_fail;
28676 }
28677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28678 return resultobj;
28679 fail:
28680 return NULL;
28681 }
28682
28683
28684 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28685 PyObject *resultobj = 0;
28686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28687 wxWindow *arg2 = (wxWindow *) 0 ;
28688 int arg3 = (int) -1 ;
28689 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28690 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28691 wxSize const &arg5_defvalue = wxDefaultSize ;
28692 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28693 long arg6 = (long) wxLC_ICON ;
28694 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28695 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28696 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28697 wxString *arg8 = (wxString *) &arg8_defvalue ;
28698 bool result;
28699 void *argp1 = 0 ;
28700 int res1 = 0 ;
28701 void *argp2 = 0 ;
28702 int res2 = 0 ;
28703 int val3 ;
28704 int ecode3 = 0 ;
28705 wxPoint temp4 ;
28706 wxSize temp5 ;
28707 long val6 ;
28708 int ecode6 = 0 ;
28709 void *argp7 = 0 ;
28710 int res7 = 0 ;
28711 bool temp8 = false ;
28712 PyObject * obj0 = 0 ;
28713 PyObject * obj1 = 0 ;
28714 PyObject * obj2 = 0 ;
28715 PyObject * obj3 = 0 ;
28716 PyObject * obj4 = 0 ;
28717 PyObject * obj5 = 0 ;
28718 PyObject * obj6 = 0 ;
28719 PyObject * obj7 = 0 ;
28720 char * kwnames[] = {
28721 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28722 };
28723
28724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28726 if (!SWIG_IsOK(res1)) {
28727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28728 }
28729 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28731 if (!SWIG_IsOK(res2)) {
28732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28733 }
28734 arg2 = reinterpret_cast< wxWindow * >(argp2);
28735 if (obj2) {
28736 ecode3 = SWIG_AsVal_int(obj2, &val3);
28737 if (!SWIG_IsOK(ecode3)) {
28738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28739 }
28740 arg3 = static_cast< int >(val3);
28741 }
28742 if (obj3) {
28743 {
28744 arg4 = &temp4;
28745 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28746 }
28747 }
28748 if (obj4) {
28749 {
28750 arg5 = &temp5;
28751 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28752 }
28753 }
28754 if (obj5) {
28755 ecode6 = SWIG_AsVal_long(obj5, &val6);
28756 if (!SWIG_IsOK(ecode6)) {
28757 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28758 }
28759 arg6 = static_cast< long >(val6);
28760 }
28761 if (obj6) {
28762 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28763 if (!SWIG_IsOK(res7)) {
28764 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28765 }
28766 if (!argp7) {
28767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28768 }
28769 arg7 = reinterpret_cast< wxValidator * >(argp7);
28770 }
28771 if (obj7) {
28772 {
28773 arg8 = wxString_in_helper(obj7);
28774 if (arg8 == NULL) SWIG_fail;
28775 temp8 = true;
28776 }
28777 }
28778 {
28779 PyThreadState* __tstate = wxPyBeginAllowThreads();
28780 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28781 wxPyEndAllowThreads(__tstate);
28782 if (PyErr_Occurred()) SWIG_fail;
28783 }
28784 {
28785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28786 }
28787 {
28788 if (temp8)
28789 delete arg8;
28790 }
28791 return resultobj;
28792 fail:
28793 {
28794 if (temp8)
28795 delete arg8;
28796 }
28797 return NULL;
28798 }
28799
28800
28801 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28802 PyObject *resultobj = 0;
28803 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28804 PyObject *arg2 = (PyObject *) 0 ;
28805 PyObject *arg3 = (PyObject *) 0 ;
28806 void *argp1 = 0 ;
28807 int res1 = 0 ;
28808 PyObject * obj0 = 0 ;
28809 PyObject * obj1 = 0 ;
28810 PyObject * obj2 = 0 ;
28811 char * kwnames[] = {
28812 (char *) "self",(char *) "self",(char *) "_class", NULL
28813 };
28814
28815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28817 if (!SWIG_IsOK(res1)) {
28818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28819 }
28820 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28821 arg2 = obj1;
28822 arg3 = obj2;
28823 {
28824 PyThreadState* __tstate = wxPyBeginAllowThreads();
28825 (arg1)->_setCallbackInfo(arg2,arg3);
28826 wxPyEndAllowThreads(__tstate);
28827 if (PyErr_Occurred()) SWIG_fail;
28828 }
28829 resultobj = SWIG_Py_Void();
28830 return resultobj;
28831 fail:
28832 return NULL;
28833 }
28834
28835
28836 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28837 PyObject *resultobj = 0;
28838 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28839 int arg2 ;
28840 wxListItem *result = 0 ;
28841 void *argp1 = 0 ;
28842 int res1 = 0 ;
28843 int val2 ;
28844 int ecode2 = 0 ;
28845 PyObject * obj0 = 0 ;
28846 PyObject * obj1 = 0 ;
28847 char * kwnames[] = {
28848 (char *) "self",(char *) "col", NULL
28849 };
28850
28851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28853 if (!SWIG_IsOK(res1)) {
28854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28855 }
28856 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28857 ecode2 = SWIG_AsVal_int(obj1, &val2);
28858 if (!SWIG_IsOK(ecode2)) {
28859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28860 }
28861 arg2 = static_cast< int >(val2);
28862 {
28863 PyThreadState* __tstate = wxPyBeginAllowThreads();
28864 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28865 wxPyEndAllowThreads(__tstate);
28866 if (PyErr_Occurred()) SWIG_fail;
28867 }
28868 {
28869 resultobj = wxPyMake_wxObject(result, (bool)0);
28870 }
28871 return resultobj;
28872 fail:
28873 return NULL;
28874 }
28875
28876
28877 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28878 PyObject *resultobj = 0;
28879 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28880 int arg2 ;
28881 wxListItem *arg3 = 0 ;
28882 bool result;
28883 void *argp1 = 0 ;
28884 int res1 = 0 ;
28885 int val2 ;
28886 int ecode2 = 0 ;
28887 void *argp3 = 0 ;
28888 int res3 = 0 ;
28889 PyObject * obj0 = 0 ;
28890 PyObject * obj1 = 0 ;
28891 PyObject * obj2 = 0 ;
28892 char * kwnames[] = {
28893 (char *) "self",(char *) "col",(char *) "item", NULL
28894 };
28895
28896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28898 if (!SWIG_IsOK(res1)) {
28899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28900 }
28901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28902 ecode2 = SWIG_AsVal_int(obj1, &val2);
28903 if (!SWIG_IsOK(ecode2)) {
28904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28905 }
28906 arg2 = static_cast< int >(val2);
28907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28908 if (!SWIG_IsOK(res3)) {
28909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28910 }
28911 if (!argp3) {
28912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28913 }
28914 arg3 = reinterpret_cast< wxListItem * >(argp3);
28915 {
28916 PyThreadState* __tstate = wxPyBeginAllowThreads();
28917 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28918 wxPyEndAllowThreads(__tstate);
28919 if (PyErr_Occurred()) SWIG_fail;
28920 }
28921 {
28922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28923 }
28924 return resultobj;
28925 fail:
28926 return NULL;
28927 }
28928
28929
28930 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28931 PyObject *resultobj = 0;
28932 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28933 int arg2 ;
28934 int result;
28935 void *argp1 = 0 ;
28936 int res1 = 0 ;
28937 int val2 ;
28938 int ecode2 = 0 ;
28939 PyObject * obj0 = 0 ;
28940 PyObject * obj1 = 0 ;
28941 char * kwnames[] = {
28942 (char *) "self",(char *) "col", NULL
28943 };
28944
28945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28949 }
28950 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28951 ecode2 = SWIG_AsVal_int(obj1, &val2);
28952 if (!SWIG_IsOK(ecode2)) {
28953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28954 }
28955 arg2 = static_cast< int >(val2);
28956 {
28957 PyThreadState* __tstate = wxPyBeginAllowThreads();
28958 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28959 wxPyEndAllowThreads(__tstate);
28960 if (PyErr_Occurred()) SWIG_fail;
28961 }
28962 resultobj = SWIG_From_int(static_cast< int >(result));
28963 return resultobj;
28964 fail:
28965 return NULL;
28966 }
28967
28968
28969 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28970 PyObject *resultobj = 0;
28971 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28972 int arg2 ;
28973 int arg3 ;
28974 bool result;
28975 void *argp1 = 0 ;
28976 int res1 = 0 ;
28977 int val2 ;
28978 int ecode2 = 0 ;
28979 int val3 ;
28980 int ecode3 = 0 ;
28981 PyObject * obj0 = 0 ;
28982 PyObject * obj1 = 0 ;
28983 PyObject * obj2 = 0 ;
28984 char * kwnames[] = {
28985 (char *) "self",(char *) "col",(char *) "width", NULL
28986 };
28987
28988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28990 if (!SWIG_IsOK(res1)) {
28991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28992 }
28993 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28994 ecode2 = SWIG_AsVal_int(obj1, &val2);
28995 if (!SWIG_IsOK(ecode2)) {
28996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28997 }
28998 arg2 = static_cast< int >(val2);
28999 ecode3 = SWIG_AsVal_int(obj2, &val3);
29000 if (!SWIG_IsOK(ecode3)) {
29001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29002 }
29003 arg3 = static_cast< int >(val3);
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29007 wxPyEndAllowThreads(__tstate);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 {
29011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29012 }
29013 return resultobj;
29014 fail:
29015 return NULL;
29016 }
29017
29018
29019 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29020 PyObject *resultobj = 0;
29021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29022 int result;
29023 void *argp1 = 0 ;
29024 int res1 = 0 ;
29025 PyObject *swig_obj[1] ;
29026
29027 if (!args) SWIG_fail;
29028 swig_obj[0] = args;
29029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29030 if (!SWIG_IsOK(res1)) {
29031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29032 }
29033 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29034 {
29035 PyThreadState* __tstate = wxPyBeginAllowThreads();
29036 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29037 wxPyEndAllowThreads(__tstate);
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 resultobj = SWIG_From_int(static_cast< int >(result));
29041 return resultobj;
29042 fail:
29043 return NULL;
29044 }
29045
29046
29047 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29048 PyObject *resultobj = 0;
29049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29050 wxRect result;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 PyObject *swig_obj[1] ;
29054
29055 if (!args) SWIG_fail;
29056 swig_obj[0] = args;
29057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29058 if (!SWIG_IsOK(res1)) {
29059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29060 }
29061 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29062 {
29063 PyThreadState* __tstate = wxPyBeginAllowThreads();
29064 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29065 wxPyEndAllowThreads(__tstate);
29066 if (PyErr_Occurred()) SWIG_fail;
29067 }
29068 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29069 return resultobj;
29070 fail:
29071 return NULL;
29072 }
29073
29074
29075 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29076 PyObject *resultobj = 0;
29077 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29078 wxTextCtrl *result = 0 ;
29079 void *argp1 = 0 ;
29080 int res1 = 0 ;
29081 PyObject *swig_obj[1] ;
29082
29083 if (!args) SWIG_fail;
29084 swig_obj[0] = args;
29085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29086 if (!SWIG_IsOK(res1)) {
29087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29088 }
29089 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29090 {
29091 PyThreadState* __tstate = wxPyBeginAllowThreads();
29092 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29093 wxPyEndAllowThreads(__tstate);
29094 if (PyErr_Occurred()) SWIG_fail;
29095 }
29096 {
29097 resultobj = wxPyMake_wxObject(result, 0);
29098 }
29099 return resultobj;
29100 fail:
29101 return NULL;
29102 }
29103
29104
29105 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29106 PyObject *resultobj = 0;
29107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29108 long arg2 ;
29109 int arg3 = (int) 0 ;
29110 wxListItem *result = 0 ;
29111 void *argp1 = 0 ;
29112 int res1 = 0 ;
29113 long val2 ;
29114 int ecode2 = 0 ;
29115 int val3 ;
29116 int ecode3 = 0 ;
29117 PyObject * obj0 = 0 ;
29118 PyObject * obj1 = 0 ;
29119 PyObject * obj2 = 0 ;
29120 char * kwnames[] = {
29121 (char *) "self",(char *) "itemId",(char *) "col", NULL
29122 };
29123
29124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29126 if (!SWIG_IsOK(res1)) {
29127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29128 }
29129 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29130 ecode2 = SWIG_AsVal_long(obj1, &val2);
29131 if (!SWIG_IsOK(ecode2)) {
29132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29133 }
29134 arg2 = static_cast< long >(val2);
29135 if (obj2) {
29136 ecode3 = SWIG_AsVal_int(obj2, &val3);
29137 if (!SWIG_IsOK(ecode3)) {
29138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29139 }
29140 arg3 = static_cast< int >(val3);
29141 }
29142 {
29143 PyThreadState* __tstate = wxPyBeginAllowThreads();
29144 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29145 wxPyEndAllowThreads(__tstate);
29146 if (PyErr_Occurred()) SWIG_fail;
29147 }
29148 {
29149 resultobj = wxPyMake_wxObject(result, (bool)0);
29150 }
29151 return resultobj;
29152 fail:
29153 return NULL;
29154 }
29155
29156
29157 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29158 PyObject *resultobj = 0;
29159 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29160 wxListItem *arg2 = 0 ;
29161 bool result;
29162 void *argp1 = 0 ;
29163 int res1 = 0 ;
29164 void *argp2 = 0 ;
29165 int res2 = 0 ;
29166 PyObject * obj0 = 0 ;
29167 PyObject * obj1 = 0 ;
29168 char * kwnames[] = {
29169 (char *) "self",(char *) "info", NULL
29170 };
29171
29172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29174 if (!SWIG_IsOK(res1)) {
29175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29176 }
29177 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29179 if (!SWIG_IsOK(res2)) {
29180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29181 }
29182 if (!argp2) {
29183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29184 }
29185 arg2 = reinterpret_cast< wxListItem * >(argp2);
29186 {
29187 PyThreadState* __tstate = wxPyBeginAllowThreads();
29188 result = (bool)(arg1)->SetItem(*arg2);
29189 wxPyEndAllowThreads(__tstate);
29190 if (PyErr_Occurred()) SWIG_fail;
29191 }
29192 {
29193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29194 }
29195 return resultobj;
29196 fail:
29197 return NULL;
29198 }
29199
29200
29201 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29202 PyObject *resultobj = 0;
29203 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29204 long arg2 ;
29205 int arg3 ;
29206 wxString *arg4 = 0 ;
29207 int arg5 = (int) -1 ;
29208 long result;
29209 void *argp1 = 0 ;
29210 int res1 = 0 ;
29211 long val2 ;
29212 int ecode2 = 0 ;
29213 int val3 ;
29214 int ecode3 = 0 ;
29215 bool temp4 = false ;
29216 int val5 ;
29217 int ecode5 = 0 ;
29218 PyObject * obj0 = 0 ;
29219 PyObject * obj1 = 0 ;
29220 PyObject * obj2 = 0 ;
29221 PyObject * obj3 = 0 ;
29222 PyObject * obj4 = 0 ;
29223 char * kwnames[] = {
29224 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29225 };
29226
29227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29229 if (!SWIG_IsOK(res1)) {
29230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29231 }
29232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29233 ecode2 = SWIG_AsVal_long(obj1, &val2);
29234 if (!SWIG_IsOK(ecode2)) {
29235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29236 }
29237 arg2 = static_cast< long >(val2);
29238 ecode3 = SWIG_AsVal_int(obj2, &val3);
29239 if (!SWIG_IsOK(ecode3)) {
29240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29241 }
29242 arg3 = static_cast< int >(val3);
29243 {
29244 arg4 = wxString_in_helper(obj3);
29245 if (arg4 == NULL) SWIG_fail;
29246 temp4 = true;
29247 }
29248 if (obj4) {
29249 ecode5 = SWIG_AsVal_int(obj4, &val5);
29250 if (!SWIG_IsOK(ecode5)) {
29251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29252 }
29253 arg5 = static_cast< int >(val5);
29254 }
29255 {
29256 PyThreadState* __tstate = wxPyBeginAllowThreads();
29257 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29258 wxPyEndAllowThreads(__tstate);
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 resultobj = SWIG_From_long(static_cast< long >(result));
29262 {
29263 if (temp4)
29264 delete arg4;
29265 }
29266 return resultobj;
29267 fail:
29268 {
29269 if (temp4)
29270 delete arg4;
29271 }
29272 return NULL;
29273 }
29274
29275
29276 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29277 PyObject *resultobj = 0;
29278 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29279 long arg2 ;
29280 long arg3 ;
29281 int result;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 long val2 ;
29285 int ecode2 = 0 ;
29286 long val3 ;
29287 int ecode3 = 0 ;
29288 PyObject * obj0 = 0 ;
29289 PyObject * obj1 = 0 ;
29290 PyObject * obj2 = 0 ;
29291 char * kwnames[] = {
29292 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29293 };
29294
29295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29297 if (!SWIG_IsOK(res1)) {
29298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29299 }
29300 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29301 ecode2 = SWIG_AsVal_long(obj1, &val2);
29302 if (!SWIG_IsOK(ecode2)) {
29303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29304 }
29305 arg2 = static_cast< long >(val2);
29306 ecode3 = SWIG_AsVal_long(obj2, &val3);
29307 if (!SWIG_IsOK(ecode3)) {
29308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29309 }
29310 arg3 = static_cast< long >(val3);
29311 {
29312 PyThreadState* __tstate = wxPyBeginAllowThreads();
29313 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29314 wxPyEndAllowThreads(__tstate);
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_From_int(static_cast< int >(result));
29318 return resultobj;
29319 fail:
29320 return NULL;
29321 }
29322
29323
29324 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29325 PyObject *resultobj = 0;
29326 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29327 long arg2 ;
29328 long arg3 ;
29329 long arg4 ;
29330 bool result;
29331 void *argp1 = 0 ;
29332 int res1 = 0 ;
29333 long val2 ;
29334 int ecode2 = 0 ;
29335 long val3 ;
29336 int ecode3 = 0 ;
29337 long val4 ;
29338 int ecode4 = 0 ;
29339 PyObject * obj0 = 0 ;
29340 PyObject * obj1 = 0 ;
29341 PyObject * obj2 = 0 ;
29342 PyObject * obj3 = 0 ;
29343 char * kwnames[] = {
29344 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29345 };
29346
29347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29351 }
29352 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29353 ecode2 = SWIG_AsVal_long(obj1, &val2);
29354 if (!SWIG_IsOK(ecode2)) {
29355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29356 }
29357 arg2 = static_cast< long >(val2);
29358 ecode3 = SWIG_AsVal_long(obj2, &val3);
29359 if (!SWIG_IsOK(ecode3)) {
29360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29361 }
29362 arg3 = static_cast< long >(val3);
29363 ecode4 = SWIG_AsVal_long(obj3, &val4);
29364 if (!SWIG_IsOK(ecode4)) {
29365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29366 }
29367 arg4 = static_cast< long >(val4);
29368 {
29369 PyThreadState* __tstate = wxPyBeginAllowThreads();
29370 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29371 wxPyEndAllowThreads(__tstate);
29372 if (PyErr_Occurred()) SWIG_fail;
29373 }
29374 {
29375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29376 }
29377 return resultobj;
29378 fail:
29379 return NULL;
29380 }
29381
29382
29383 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29384 PyObject *resultobj = 0;
29385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29386 long arg2 ;
29387 int arg3 ;
29388 int arg4 = (int) -1 ;
29389 bool result;
29390 void *argp1 = 0 ;
29391 int res1 = 0 ;
29392 long val2 ;
29393 int ecode2 = 0 ;
29394 int val3 ;
29395 int ecode3 = 0 ;
29396 int val4 ;
29397 int ecode4 = 0 ;
29398 PyObject * obj0 = 0 ;
29399 PyObject * obj1 = 0 ;
29400 PyObject * obj2 = 0 ;
29401 PyObject * obj3 = 0 ;
29402 char * kwnames[] = {
29403 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29404 };
29405
29406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29408 if (!SWIG_IsOK(res1)) {
29409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29410 }
29411 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29412 ecode2 = SWIG_AsVal_long(obj1, &val2);
29413 if (!SWIG_IsOK(ecode2)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29415 }
29416 arg2 = static_cast< long >(val2);
29417 ecode3 = SWIG_AsVal_int(obj2, &val3);
29418 if (!SWIG_IsOK(ecode3)) {
29419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29420 }
29421 arg3 = static_cast< int >(val3);
29422 if (obj3) {
29423 ecode4 = SWIG_AsVal_int(obj3, &val4);
29424 if (!SWIG_IsOK(ecode4)) {
29425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29426 }
29427 arg4 = static_cast< int >(val4);
29428 }
29429 {
29430 PyThreadState* __tstate = wxPyBeginAllowThreads();
29431 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29432 wxPyEndAllowThreads(__tstate);
29433 if (PyErr_Occurred()) SWIG_fail;
29434 }
29435 {
29436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29437 }
29438 return resultobj;
29439 fail:
29440 return NULL;
29441 }
29442
29443
29444 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29445 PyObject *resultobj = 0;
29446 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29447 long arg2 ;
29448 long arg3 ;
29449 int arg4 ;
29450 bool result;
29451 void *argp1 = 0 ;
29452 int res1 = 0 ;
29453 long val2 ;
29454 int ecode2 = 0 ;
29455 long val3 ;
29456 int ecode3 = 0 ;
29457 int val4 ;
29458 int ecode4 = 0 ;
29459 PyObject * obj0 = 0 ;
29460 PyObject * obj1 = 0 ;
29461 PyObject * obj2 = 0 ;
29462 PyObject * obj3 = 0 ;
29463 char * kwnames[] = {
29464 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29465 };
29466
29467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29469 if (!SWIG_IsOK(res1)) {
29470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29471 }
29472 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29473 ecode2 = SWIG_AsVal_long(obj1, &val2);
29474 if (!SWIG_IsOK(ecode2)) {
29475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29476 }
29477 arg2 = static_cast< long >(val2);
29478 ecode3 = SWIG_AsVal_long(obj2, &val3);
29479 if (!SWIG_IsOK(ecode3)) {
29480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29481 }
29482 arg3 = static_cast< long >(val3);
29483 ecode4 = SWIG_AsVal_int(obj3, &val4);
29484 if (!SWIG_IsOK(ecode4)) {
29485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29486 }
29487 arg4 = static_cast< int >(val4);
29488 {
29489 PyThreadState* __tstate = wxPyBeginAllowThreads();
29490 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29491 wxPyEndAllowThreads(__tstate);
29492 if (PyErr_Occurred()) SWIG_fail;
29493 }
29494 {
29495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29496 }
29497 return resultobj;
29498 fail:
29499 return NULL;
29500 }
29501
29502
29503 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj = 0;
29505 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29506 long arg2 ;
29507 wxString result;
29508 void *argp1 = 0 ;
29509 int res1 = 0 ;
29510 long val2 ;
29511 int ecode2 = 0 ;
29512 PyObject * obj0 = 0 ;
29513 PyObject * obj1 = 0 ;
29514 char * kwnames[] = {
29515 (char *) "self",(char *) "item", NULL
29516 };
29517
29518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29520 if (!SWIG_IsOK(res1)) {
29521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29522 }
29523 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29524 ecode2 = SWIG_AsVal_long(obj1, &val2);
29525 if (!SWIG_IsOK(ecode2)) {
29526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29527 }
29528 arg2 = static_cast< long >(val2);
29529 {
29530 PyThreadState* __tstate = wxPyBeginAllowThreads();
29531 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29532 wxPyEndAllowThreads(__tstate);
29533 if (PyErr_Occurred()) SWIG_fail;
29534 }
29535 {
29536 #if wxUSE_UNICODE
29537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29538 #else
29539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29540 #endif
29541 }
29542 return resultobj;
29543 fail:
29544 return NULL;
29545 }
29546
29547
29548 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29549 PyObject *resultobj = 0;
29550 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29551 long arg2 ;
29552 wxString *arg3 = 0 ;
29553 void *argp1 = 0 ;
29554 int res1 = 0 ;
29555 long val2 ;
29556 int ecode2 = 0 ;
29557 bool temp3 = false ;
29558 PyObject * obj0 = 0 ;
29559 PyObject * obj1 = 0 ;
29560 PyObject * obj2 = 0 ;
29561 char * kwnames[] = {
29562 (char *) "self",(char *) "item",(char *) "str", NULL
29563 };
29564
29565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29567 if (!SWIG_IsOK(res1)) {
29568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29569 }
29570 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29571 ecode2 = SWIG_AsVal_long(obj1, &val2);
29572 if (!SWIG_IsOK(ecode2)) {
29573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29574 }
29575 arg2 = static_cast< long >(val2);
29576 {
29577 arg3 = wxString_in_helper(obj2);
29578 if (arg3 == NULL) SWIG_fail;
29579 temp3 = true;
29580 }
29581 {
29582 PyThreadState* __tstate = wxPyBeginAllowThreads();
29583 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29584 wxPyEndAllowThreads(__tstate);
29585 if (PyErr_Occurred()) SWIG_fail;
29586 }
29587 resultobj = SWIG_Py_Void();
29588 {
29589 if (temp3)
29590 delete arg3;
29591 }
29592 return resultobj;
29593 fail:
29594 {
29595 if (temp3)
29596 delete arg3;
29597 }
29598 return NULL;
29599 }
29600
29601
29602 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29603 PyObject *resultobj = 0;
29604 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29605 long arg2 ;
29606 long result;
29607 void *argp1 = 0 ;
29608 int res1 = 0 ;
29609 long val2 ;
29610 int ecode2 = 0 ;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 char * kwnames[] = {
29614 (char *) "self",(char *) "item", NULL
29615 };
29616
29617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29619 if (!SWIG_IsOK(res1)) {
29620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29621 }
29622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29623 ecode2 = SWIG_AsVal_long(obj1, &val2);
29624 if (!SWIG_IsOK(ecode2)) {
29625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29626 }
29627 arg2 = static_cast< long >(val2);
29628 {
29629 PyThreadState* __tstate = wxPyBeginAllowThreads();
29630 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29631 wxPyEndAllowThreads(__tstate);
29632 if (PyErr_Occurred()) SWIG_fail;
29633 }
29634 resultobj = SWIG_From_long(static_cast< long >(result));
29635 return resultobj;
29636 fail:
29637 return NULL;
29638 }
29639
29640
29641 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29642 PyObject *resultobj = 0;
29643 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29644 long arg2 ;
29645 long arg3 ;
29646 bool result;
29647 void *argp1 = 0 ;
29648 int res1 = 0 ;
29649 long val2 ;
29650 int ecode2 = 0 ;
29651 long val3 ;
29652 int ecode3 = 0 ;
29653 PyObject * obj0 = 0 ;
29654 PyObject * obj1 = 0 ;
29655 PyObject * obj2 = 0 ;
29656 char * kwnames[] = {
29657 (char *) "self",(char *) "item",(char *) "data", NULL
29658 };
29659
29660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29662 if (!SWIG_IsOK(res1)) {
29663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29664 }
29665 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29666 ecode2 = SWIG_AsVal_long(obj1, &val2);
29667 if (!SWIG_IsOK(ecode2)) {
29668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29669 }
29670 arg2 = static_cast< long >(val2);
29671 ecode3 = SWIG_AsVal_long(obj2, &val3);
29672 if (!SWIG_IsOK(ecode3)) {
29673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29674 }
29675 arg3 = static_cast< long >(val3);
29676 {
29677 PyThreadState* __tstate = wxPyBeginAllowThreads();
29678 result = (bool)(arg1)->SetItemData(arg2,arg3);
29679 wxPyEndAllowThreads(__tstate);
29680 if (PyErr_Occurred()) SWIG_fail;
29681 }
29682 {
29683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29684 }
29685 return resultobj;
29686 fail:
29687 return NULL;
29688 }
29689
29690
29691 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj = 0;
29693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29694 long arg2 ;
29695 wxPoint result;
29696 void *argp1 = 0 ;
29697 int res1 = 0 ;
29698 long val2 ;
29699 int ecode2 = 0 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 char * kwnames[] = {
29703 (char *) "self",(char *) "item", NULL
29704 };
29705
29706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29708 if (!SWIG_IsOK(res1)) {
29709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29710 }
29711 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29712 ecode2 = SWIG_AsVal_long(obj1, &val2);
29713 if (!SWIG_IsOK(ecode2)) {
29714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29715 }
29716 arg2 = static_cast< long >(val2);
29717 {
29718 PyThreadState* __tstate = wxPyBeginAllowThreads();
29719 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29720 wxPyEndAllowThreads(__tstate);
29721 if (PyErr_Occurred()) SWIG_fail;
29722 }
29723 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29724 return resultobj;
29725 fail:
29726 return NULL;
29727 }
29728
29729
29730 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29731 PyObject *resultobj = 0;
29732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29733 long arg2 ;
29734 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29735 wxRect result;
29736 void *argp1 = 0 ;
29737 int res1 = 0 ;
29738 long val2 ;
29739 int ecode2 = 0 ;
29740 int val3 ;
29741 int ecode3 = 0 ;
29742 PyObject * obj0 = 0 ;
29743 PyObject * obj1 = 0 ;
29744 PyObject * obj2 = 0 ;
29745 char * kwnames[] = {
29746 (char *) "self",(char *) "item",(char *) "code", NULL
29747 };
29748
29749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29751 if (!SWIG_IsOK(res1)) {
29752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29753 }
29754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29755 ecode2 = SWIG_AsVal_long(obj1, &val2);
29756 if (!SWIG_IsOK(ecode2)) {
29757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29758 }
29759 arg2 = static_cast< long >(val2);
29760 if (obj2) {
29761 ecode3 = SWIG_AsVal_int(obj2, &val3);
29762 if (!SWIG_IsOK(ecode3)) {
29763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29764 }
29765 arg3 = static_cast< int >(val3);
29766 }
29767 {
29768 PyThreadState* __tstate = wxPyBeginAllowThreads();
29769 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29770 wxPyEndAllowThreads(__tstate);
29771 if (PyErr_Occurred()) SWIG_fail;
29772 }
29773 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29774 return resultobj;
29775 fail:
29776 return NULL;
29777 }
29778
29779
29780 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29781 PyObject *resultobj = 0;
29782 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29783 long arg2 ;
29784 wxPoint *arg3 = 0 ;
29785 bool result;
29786 void *argp1 = 0 ;
29787 int res1 = 0 ;
29788 long val2 ;
29789 int ecode2 = 0 ;
29790 wxPoint temp3 ;
29791 PyObject * obj0 = 0 ;
29792 PyObject * obj1 = 0 ;
29793 PyObject * obj2 = 0 ;
29794 char * kwnames[] = {
29795 (char *) "self",(char *) "item",(char *) "pos", NULL
29796 };
29797
29798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29800 if (!SWIG_IsOK(res1)) {
29801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29802 }
29803 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29804 ecode2 = SWIG_AsVal_long(obj1, &val2);
29805 if (!SWIG_IsOK(ecode2)) {
29806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29807 }
29808 arg2 = static_cast< long >(val2);
29809 {
29810 arg3 = &temp3;
29811 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29812 }
29813 {
29814 PyThreadState* __tstate = wxPyBeginAllowThreads();
29815 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29816 wxPyEndAllowThreads(__tstate);
29817 if (PyErr_Occurred()) SWIG_fail;
29818 }
29819 {
29820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29821 }
29822 return resultobj;
29823 fail:
29824 return NULL;
29825 }
29826
29827
29828 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29829 PyObject *resultobj = 0;
29830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29831 int result;
29832 void *argp1 = 0 ;
29833 int res1 = 0 ;
29834 PyObject *swig_obj[1] ;
29835
29836 if (!args) SWIG_fail;
29837 swig_obj[0] = args;
29838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29839 if (!SWIG_IsOK(res1)) {
29840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29841 }
29842 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29843 {
29844 PyThreadState* __tstate = wxPyBeginAllowThreads();
29845 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29846 wxPyEndAllowThreads(__tstate);
29847 if (PyErr_Occurred()) SWIG_fail;
29848 }
29849 resultobj = SWIG_From_int(static_cast< int >(result));
29850 return resultobj;
29851 fail:
29852 return NULL;
29853 }
29854
29855
29856 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29857 PyObject *resultobj = 0;
29858 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29859 int result;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 PyObject *swig_obj[1] ;
29863
29864 if (!args) SWIG_fail;
29865 swig_obj[0] = args;
29866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29867 if (!SWIG_IsOK(res1)) {
29868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29869 }
29870 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29871 {
29872 PyThreadState* __tstate = wxPyBeginAllowThreads();
29873 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29874 wxPyEndAllowThreads(__tstate);
29875 if (PyErr_Occurred()) SWIG_fail;
29876 }
29877 resultobj = SWIG_From_int(static_cast< int >(result));
29878 return resultobj;
29879 fail:
29880 return NULL;
29881 }
29882
29883
29884 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29885 PyObject *resultobj = 0;
29886 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29887 wxSize result;
29888 void *argp1 = 0 ;
29889 int res1 = 0 ;
29890 PyObject *swig_obj[1] ;
29891
29892 if (!args) SWIG_fail;
29893 swig_obj[0] = args;
29894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29895 if (!SWIG_IsOK(res1)) {
29896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29897 }
29898 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29899 {
29900 PyThreadState* __tstate = wxPyBeginAllowThreads();
29901 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29902 wxPyEndAllowThreads(__tstate);
29903 if (PyErr_Occurred()) SWIG_fail;
29904 }
29905 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29906 return resultobj;
29907 fail:
29908 return NULL;
29909 }
29910
29911
29912 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29913 PyObject *resultobj = 0;
29914 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29915 int arg2 ;
29916 bool arg3 = (bool) false ;
29917 void *argp1 = 0 ;
29918 int res1 = 0 ;
29919 int val2 ;
29920 int ecode2 = 0 ;
29921 bool val3 ;
29922 int ecode3 = 0 ;
29923 PyObject * obj0 = 0 ;
29924 PyObject * obj1 = 0 ;
29925 PyObject * obj2 = 0 ;
29926 char * kwnames[] = {
29927 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29928 };
29929
29930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29932 if (!SWIG_IsOK(res1)) {
29933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29934 }
29935 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29936 ecode2 = SWIG_AsVal_int(obj1, &val2);
29937 if (!SWIG_IsOK(ecode2)) {
29938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29939 }
29940 arg2 = static_cast< int >(val2);
29941 if (obj2) {
29942 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29943 if (!SWIG_IsOK(ecode3)) {
29944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29945 }
29946 arg3 = static_cast< bool >(val3);
29947 }
29948 {
29949 PyThreadState* __tstate = wxPyBeginAllowThreads();
29950 (arg1)->SetItemSpacing(arg2,arg3);
29951 wxPyEndAllowThreads(__tstate);
29952 if (PyErr_Occurred()) SWIG_fail;
29953 }
29954 resultobj = SWIG_Py_Void();
29955 return resultobj;
29956 fail:
29957 return NULL;
29958 }
29959
29960
29961 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29962 PyObject *resultobj = 0;
29963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29964 int result;
29965 void *argp1 = 0 ;
29966 int res1 = 0 ;
29967 PyObject *swig_obj[1] ;
29968
29969 if (!args) SWIG_fail;
29970 swig_obj[0] = args;
29971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29972 if (!SWIG_IsOK(res1)) {
29973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29974 }
29975 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29976 {
29977 PyThreadState* __tstate = wxPyBeginAllowThreads();
29978 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29979 wxPyEndAllowThreads(__tstate);
29980 if (PyErr_Occurred()) SWIG_fail;
29981 }
29982 resultobj = SWIG_From_int(static_cast< int >(result));
29983 return resultobj;
29984 fail:
29985 return NULL;
29986 }
29987
29988
29989 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29990 PyObject *resultobj = 0;
29991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29992 wxColour result;
29993 void *argp1 = 0 ;
29994 int res1 = 0 ;
29995 PyObject *swig_obj[1] ;
29996
29997 if (!args) SWIG_fail;
29998 swig_obj[0] = args;
29999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30000 if (!SWIG_IsOK(res1)) {
30001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30002 }
30003 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30004 {
30005 PyThreadState* __tstate = wxPyBeginAllowThreads();
30006 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30007 wxPyEndAllowThreads(__tstate);
30008 if (PyErr_Occurred()) SWIG_fail;
30009 }
30010 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30011 return resultobj;
30012 fail:
30013 return NULL;
30014 }
30015
30016
30017 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30018 PyObject *resultobj = 0;
30019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30020 wxColour *arg2 = 0 ;
30021 void *argp1 = 0 ;
30022 int res1 = 0 ;
30023 wxColour temp2 ;
30024 PyObject * obj0 = 0 ;
30025 PyObject * obj1 = 0 ;
30026 char * kwnames[] = {
30027 (char *) "self",(char *) "col", NULL
30028 };
30029
30030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30032 if (!SWIG_IsOK(res1)) {
30033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30034 }
30035 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30036 {
30037 arg2 = &temp2;
30038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30039 }
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 (arg1)->SetTextColour((wxColour const &)*arg2);
30043 wxPyEndAllowThreads(__tstate);
30044 if (PyErr_Occurred()) SWIG_fail;
30045 }
30046 resultobj = SWIG_Py_Void();
30047 return resultobj;
30048 fail:
30049 return NULL;
30050 }
30051
30052
30053 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30054 PyObject *resultobj = 0;
30055 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30056 long result;
30057 void *argp1 = 0 ;
30058 int res1 = 0 ;
30059 PyObject *swig_obj[1] ;
30060
30061 if (!args) SWIG_fail;
30062 swig_obj[0] = args;
30063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30064 if (!SWIG_IsOK(res1)) {
30065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30066 }
30067 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30068 {
30069 PyThreadState* __tstate = wxPyBeginAllowThreads();
30070 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30071 wxPyEndAllowThreads(__tstate);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 resultobj = SWIG_From_long(static_cast< long >(result));
30075 return resultobj;
30076 fail:
30077 return NULL;
30078 }
30079
30080
30081 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30082 PyObject *resultobj = 0;
30083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30084 long arg2 ;
30085 bool arg3 = (bool) true ;
30086 void *argp1 = 0 ;
30087 int res1 = 0 ;
30088 long val2 ;
30089 int ecode2 = 0 ;
30090 bool val3 ;
30091 int ecode3 = 0 ;
30092 PyObject * obj0 = 0 ;
30093 PyObject * obj1 = 0 ;
30094 PyObject * obj2 = 0 ;
30095 char * kwnames[] = {
30096 (char *) "self",(char *) "style",(char *) "add", NULL
30097 };
30098
30099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30101 if (!SWIG_IsOK(res1)) {
30102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30103 }
30104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30105 ecode2 = SWIG_AsVal_long(obj1, &val2);
30106 if (!SWIG_IsOK(ecode2)) {
30107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30108 }
30109 arg2 = static_cast< long >(val2);
30110 if (obj2) {
30111 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30112 if (!SWIG_IsOK(ecode3)) {
30113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30114 }
30115 arg3 = static_cast< bool >(val3);
30116 }
30117 {
30118 PyThreadState* __tstate = wxPyBeginAllowThreads();
30119 (arg1)->SetSingleStyle(arg2,arg3);
30120 wxPyEndAllowThreads(__tstate);
30121 if (PyErr_Occurred()) SWIG_fail;
30122 }
30123 resultobj = SWIG_Py_Void();
30124 return resultobj;
30125 fail:
30126 return NULL;
30127 }
30128
30129
30130 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30131 PyObject *resultobj = 0;
30132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30133 long arg2 ;
30134 int arg3 = (int) wxLIST_NEXT_ALL ;
30135 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30136 long result;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 long val2 ;
30140 int ecode2 = 0 ;
30141 int val3 ;
30142 int ecode3 = 0 ;
30143 int val4 ;
30144 int ecode4 = 0 ;
30145 PyObject * obj0 = 0 ;
30146 PyObject * obj1 = 0 ;
30147 PyObject * obj2 = 0 ;
30148 PyObject * obj3 = 0 ;
30149 char * kwnames[] = {
30150 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30151 };
30152
30153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30155 if (!SWIG_IsOK(res1)) {
30156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30157 }
30158 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30159 ecode2 = SWIG_AsVal_long(obj1, &val2);
30160 if (!SWIG_IsOK(ecode2)) {
30161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30162 }
30163 arg2 = static_cast< long >(val2);
30164 if (obj2) {
30165 ecode3 = SWIG_AsVal_int(obj2, &val3);
30166 if (!SWIG_IsOK(ecode3)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30168 }
30169 arg3 = static_cast< int >(val3);
30170 }
30171 if (obj3) {
30172 ecode4 = SWIG_AsVal_int(obj3, &val4);
30173 if (!SWIG_IsOK(ecode4)) {
30174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30175 }
30176 arg4 = static_cast< int >(val4);
30177 }
30178 {
30179 PyThreadState* __tstate = wxPyBeginAllowThreads();
30180 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 resultobj = SWIG_From_long(static_cast< long >(result));
30185 return resultobj;
30186 fail:
30187 return NULL;
30188 }
30189
30190
30191 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30192 PyObject *resultobj = 0;
30193 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30194 int arg2 ;
30195 wxImageList *result = 0 ;
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 int val2 ;
30199 int ecode2 = 0 ;
30200 PyObject * obj0 = 0 ;
30201 PyObject * obj1 = 0 ;
30202 char * kwnames[] = {
30203 (char *) "self",(char *) "which", NULL
30204 };
30205
30206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30208 if (!SWIG_IsOK(res1)) {
30209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30210 }
30211 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30212 ecode2 = SWIG_AsVal_int(obj1, &val2);
30213 if (!SWIG_IsOK(ecode2)) {
30214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30215 }
30216 arg2 = static_cast< int >(val2);
30217 {
30218 PyThreadState* __tstate = wxPyBeginAllowThreads();
30219 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30220 wxPyEndAllowThreads(__tstate);
30221 if (PyErr_Occurred()) SWIG_fail;
30222 }
30223 {
30224 resultobj = wxPyMake_wxObject(result, (bool)0);
30225 }
30226 return resultobj;
30227 fail:
30228 return NULL;
30229 }
30230
30231
30232 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30233 PyObject *resultobj = 0;
30234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30235 wxImageList *arg2 = (wxImageList *) 0 ;
30236 int arg3 ;
30237 void *argp1 = 0 ;
30238 int res1 = 0 ;
30239 void *argp2 = 0 ;
30240 int res2 = 0 ;
30241 int val3 ;
30242 int ecode3 = 0 ;
30243 PyObject * obj0 = 0 ;
30244 PyObject * obj1 = 0 ;
30245 PyObject * obj2 = 0 ;
30246 char * kwnames[] = {
30247 (char *) "self",(char *) "imageList",(char *) "which", NULL
30248 };
30249
30250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30252 if (!SWIG_IsOK(res1)) {
30253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30254 }
30255 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30257 if (!SWIG_IsOK(res2)) {
30258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30259 }
30260 arg2 = reinterpret_cast< wxImageList * >(argp2);
30261 ecode3 = SWIG_AsVal_int(obj2, &val3);
30262 if (!SWIG_IsOK(ecode3)) {
30263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30264 }
30265 arg3 = static_cast< int >(val3);
30266 {
30267 PyThreadState* __tstate = wxPyBeginAllowThreads();
30268 (arg1)->SetImageList(arg2,arg3);
30269 wxPyEndAllowThreads(__tstate);
30270 if (PyErr_Occurred()) SWIG_fail;
30271 }
30272 resultobj = SWIG_Py_Void();
30273 return resultobj;
30274 fail:
30275 return NULL;
30276 }
30277
30278
30279 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30280 PyObject *resultobj = 0;
30281 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30282 wxImageList *arg2 = (wxImageList *) 0 ;
30283 int arg3 ;
30284 void *argp1 = 0 ;
30285 int res1 = 0 ;
30286 int res2 = 0 ;
30287 int val3 ;
30288 int ecode3 = 0 ;
30289 PyObject * obj0 = 0 ;
30290 PyObject * obj1 = 0 ;
30291 PyObject * obj2 = 0 ;
30292 char * kwnames[] = {
30293 (char *) "self",(char *) "imageList",(char *) "which", NULL
30294 };
30295
30296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30300 }
30301 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30302 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30303 if (!SWIG_IsOK(res2)) {
30304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30305 }
30306 ecode3 = SWIG_AsVal_int(obj2, &val3);
30307 if (!SWIG_IsOK(ecode3)) {
30308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30309 }
30310 arg3 = static_cast< int >(val3);
30311 {
30312 PyThreadState* __tstate = wxPyBeginAllowThreads();
30313 (arg1)->AssignImageList(arg2,arg3);
30314 wxPyEndAllowThreads(__tstate);
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
30317 resultobj = SWIG_Py_Void();
30318 return resultobj;
30319 fail:
30320 return NULL;
30321 }
30322
30323
30324 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30325 PyObject *resultobj = 0;
30326 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30327 bool result;
30328 void *argp1 = 0 ;
30329 int res1 = 0 ;
30330 PyObject *swig_obj[1] ;
30331
30332 if (!args) SWIG_fail;
30333 swig_obj[0] = args;
30334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30335 if (!SWIG_IsOK(res1)) {
30336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30337 }
30338 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30339 {
30340 PyThreadState* __tstate = wxPyBeginAllowThreads();
30341 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30342 wxPyEndAllowThreads(__tstate);
30343 if (PyErr_Occurred()) SWIG_fail;
30344 }
30345 {
30346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30347 }
30348 return resultobj;
30349 fail:
30350 return NULL;
30351 }
30352
30353
30354 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30355 PyObject *resultobj = 0;
30356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30357 bool result;
30358 void *argp1 = 0 ;
30359 int res1 = 0 ;
30360 PyObject *swig_obj[1] ;
30361
30362 if (!args) SWIG_fail;
30363 swig_obj[0] = args;
30364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30365 if (!SWIG_IsOK(res1)) {
30366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30367 }
30368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30369 {
30370 PyThreadState* __tstate = wxPyBeginAllowThreads();
30371 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30372 wxPyEndAllowThreads(__tstate);
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 {
30376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30377 }
30378 return resultobj;
30379 fail:
30380 return NULL;
30381 }
30382
30383
30384 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30385 PyObject *resultobj = 0;
30386 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30387 long arg2 ;
30388 void *argp1 = 0 ;
30389 int res1 = 0 ;
30390 long val2 ;
30391 int ecode2 = 0 ;
30392 PyObject * obj0 = 0 ;
30393 PyObject * obj1 = 0 ;
30394 char * kwnames[] = {
30395 (char *) "self",(char *) "item", NULL
30396 };
30397
30398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30400 if (!SWIG_IsOK(res1)) {
30401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30402 }
30403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30404 ecode2 = SWIG_AsVal_long(obj1, &val2);
30405 if (!SWIG_IsOK(ecode2)) {
30406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30407 }
30408 arg2 = static_cast< long >(val2);
30409 {
30410 PyThreadState* __tstate = wxPyBeginAllowThreads();
30411 (arg1)->RefreshItem(arg2);
30412 wxPyEndAllowThreads(__tstate);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 resultobj = SWIG_Py_Void();
30416 return resultobj;
30417 fail:
30418 return NULL;
30419 }
30420
30421
30422 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30423 PyObject *resultobj = 0;
30424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30425 long arg2 ;
30426 long arg3 ;
30427 void *argp1 = 0 ;
30428 int res1 = 0 ;
30429 long val2 ;
30430 int ecode2 = 0 ;
30431 long val3 ;
30432 int ecode3 = 0 ;
30433 PyObject * obj0 = 0 ;
30434 PyObject * obj1 = 0 ;
30435 PyObject * obj2 = 0 ;
30436 char * kwnames[] = {
30437 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30438 };
30439
30440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30442 if (!SWIG_IsOK(res1)) {
30443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30444 }
30445 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30446 ecode2 = SWIG_AsVal_long(obj1, &val2);
30447 if (!SWIG_IsOK(ecode2)) {
30448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30449 }
30450 arg2 = static_cast< long >(val2);
30451 ecode3 = SWIG_AsVal_long(obj2, &val3);
30452 if (!SWIG_IsOK(ecode3)) {
30453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30454 }
30455 arg3 = static_cast< long >(val3);
30456 {
30457 PyThreadState* __tstate = wxPyBeginAllowThreads();
30458 (arg1)->RefreshItems(arg2,arg3);
30459 wxPyEndAllowThreads(__tstate);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 }
30462 resultobj = SWIG_Py_Void();
30463 return resultobj;
30464 fail:
30465 return NULL;
30466 }
30467
30468
30469 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30470 PyObject *resultobj = 0;
30471 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30472 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30473 bool result;
30474 void *argp1 = 0 ;
30475 int res1 = 0 ;
30476 int val2 ;
30477 int ecode2 = 0 ;
30478 PyObject * obj0 = 0 ;
30479 PyObject * obj1 = 0 ;
30480 char * kwnames[] = {
30481 (char *) "self",(char *) "flag", NULL
30482 };
30483
30484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30486 if (!SWIG_IsOK(res1)) {
30487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30488 }
30489 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30490 if (obj1) {
30491 ecode2 = SWIG_AsVal_int(obj1, &val2);
30492 if (!SWIG_IsOK(ecode2)) {
30493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30494 }
30495 arg2 = static_cast< int >(val2);
30496 }
30497 {
30498 PyThreadState* __tstate = wxPyBeginAllowThreads();
30499 result = (bool)(arg1)->Arrange(arg2);
30500 wxPyEndAllowThreads(__tstate);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 {
30504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30505 }
30506 return resultobj;
30507 fail:
30508 return NULL;
30509 }
30510
30511
30512 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30513 PyObject *resultobj = 0;
30514 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30515 long arg2 ;
30516 bool result;
30517 void *argp1 = 0 ;
30518 int res1 = 0 ;
30519 long val2 ;
30520 int ecode2 = 0 ;
30521 PyObject * obj0 = 0 ;
30522 PyObject * obj1 = 0 ;
30523 char * kwnames[] = {
30524 (char *) "self",(char *) "item", NULL
30525 };
30526
30527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30531 }
30532 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30533 ecode2 = SWIG_AsVal_long(obj1, &val2);
30534 if (!SWIG_IsOK(ecode2)) {
30535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30536 }
30537 arg2 = static_cast< long >(val2);
30538 {
30539 PyThreadState* __tstate = wxPyBeginAllowThreads();
30540 result = (bool)(arg1)->DeleteItem(arg2);
30541 wxPyEndAllowThreads(__tstate);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 }
30544 {
30545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30546 }
30547 return resultobj;
30548 fail:
30549 return NULL;
30550 }
30551
30552
30553 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30554 PyObject *resultobj = 0;
30555 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30556 bool result;
30557 void *argp1 = 0 ;
30558 int res1 = 0 ;
30559 PyObject *swig_obj[1] ;
30560
30561 if (!args) SWIG_fail;
30562 swig_obj[0] = args;
30563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30564 if (!SWIG_IsOK(res1)) {
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30566 }
30567 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30568 {
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
30570 result = (bool)(arg1)->DeleteAllItems();
30571 wxPyEndAllowThreads(__tstate);
30572 if (PyErr_Occurred()) SWIG_fail;
30573 }
30574 {
30575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30576 }
30577 return resultobj;
30578 fail:
30579 return NULL;
30580 }
30581
30582
30583 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30584 PyObject *resultobj = 0;
30585 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30586 int arg2 ;
30587 bool result;
30588 void *argp1 = 0 ;
30589 int res1 = 0 ;
30590 int val2 ;
30591 int ecode2 = 0 ;
30592 PyObject * obj0 = 0 ;
30593 PyObject * obj1 = 0 ;
30594 char * kwnames[] = {
30595 (char *) "self",(char *) "col", NULL
30596 };
30597
30598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30600 if (!SWIG_IsOK(res1)) {
30601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30602 }
30603 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30604 ecode2 = SWIG_AsVal_int(obj1, &val2);
30605 if (!SWIG_IsOK(ecode2)) {
30606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30607 }
30608 arg2 = static_cast< int >(val2);
30609 {
30610 PyThreadState* __tstate = wxPyBeginAllowThreads();
30611 result = (bool)(arg1)->DeleteColumn(arg2);
30612 wxPyEndAllowThreads(__tstate);
30613 if (PyErr_Occurred()) SWIG_fail;
30614 }
30615 {
30616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30617 }
30618 return resultobj;
30619 fail:
30620 return NULL;
30621 }
30622
30623
30624 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30625 PyObject *resultobj = 0;
30626 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30627 bool result;
30628 void *argp1 = 0 ;
30629 int res1 = 0 ;
30630 PyObject *swig_obj[1] ;
30631
30632 if (!args) SWIG_fail;
30633 swig_obj[0] = args;
30634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30635 if (!SWIG_IsOK(res1)) {
30636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30637 }
30638 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 result = (bool)(arg1)->DeleteAllColumns();
30642 wxPyEndAllowThreads(__tstate);
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 {
30646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30647 }
30648 return resultobj;
30649 fail:
30650 return NULL;
30651 }
30652
30653
30654 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30655 PyObject *resultobj = 0;
30656 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30657 void *argp1 = 0 ;
30658 int res1 = 0 ;
30659 PyObject *swig_obj[1] ;
30660
30661 if (!args) SWIG_fail;
30662 swig_obj[0] = args;
30663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30664 if (!SWIG_IsOK(res1)) {
30665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30666 }
30667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 (arg1)->ClearAll();
30671 wxPyEndAllowThreads(__tstate);
30672 if (PyErr_Occurred()) SWIG_fail;
30673 }
30674 resultobj = SWIG_Py_Void();
30675 return resultobj;
30676 fail:
30677 return NULL;
30678 }
30679
30680
30681 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30682 PyObject *resultobj = 0;
30683 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30684 long arg2 ;
30685 void *argp1 = 0 ;
30686 int res1 = 0 ;
30687 long val2 ;
30688 int ecode2 = 0 ;
30689 PyObject * obj0 = 0 ;
30690 PyObject * obj1 = 0 ;
30691 char * kwnames[] = {
30692 (char *) "self",(char *) "item", NULL
30693 };
30694
30695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30697 if (!SWIG_IsOK(res1)) {
30698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30699 }
30700 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30701 ecode2 = SWIG_AsVal_long(obj1, &val2);
30702 if (!SWIG_IsOK(ecode2)) {
30703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30704 }
30705 arg2 = static_cast< long >(val2);
30706 {
30707 PyThreadState* __tstate = wxPyBeginAllowThreads();
30708 (arg1)->EditLabel(arg2);
30709 wxPyEndAllowThreads(__tstate);
30710 if (PyErr_Occurred()) SWIG_fail;
30711 }
30712 resultobj = SWIG_Py_Void();
30713 return resultobj;
30714 fail:
30715 return NULL;
30716 }
30717
30718
30719 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30720 PyObject *resultobj = 0;
30721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30722 long arg2 ;
30723 bool result;
30724 void *argp1 = 0 ;
30725 int res1 = 0 ;
30726 long val2 ;
30727 int ecode2 = 0 ;
30728 PyObject * obj0 = 0 ;
30729 PyObject * obj1 = 0 ;
30730 char * kwnames[] = {
30731 (char *) "self",(char *) "item", NULL
30732 };
30733
30734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30736 if (!SWIG_IsOK(res1)) {
30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30738 }
30739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30740 ecode2 = SWIG_AsVal_long(obj1, &val2);
30741 if (!SWIG_IsOK(ecode2)) {
30742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30743 }
30744 arg2 = static_cast< long >(val2);
30745 {
30746 PyThreadState* __tstate = wxPyBeginAllowThreads();
30747 result = (bool)(arg1)->EnsureVisible(arg2);
30748 wxPyEndAllowThreads(__tstate);
30749 if (PyErr_Occurred()) SWIG_fail;
30750 }
30751 {
30752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30753 }
30754 return resultobj;
30755 fail:
30756 return NULL;
30757 }
30758
30759
30760 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30761 PyObject *resultobj = 0;
30762 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30763 long arg2 ;
30764 wxString *arg3 = 0 ;
30765 bool arg4 = (bool) false ;
30766 long result;
30767 void *argp1 = 0 ;
30768 int res1 = 0 ;
30769 long val2 ;
30770 int ecode2 = 0 ;
30771 bool temp3 = false ;
30772 bool val4 ;
30773 int ecode4 = 0 ;
30774 PyObject * obj0 = 0 ;
30775 PyObject * obj1 = 0 ;
30776 PyObject * obj2 = 0 ;
30777 PyObject * obj3 = 0 ;
30778 char * kwnames[] = {
30779 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30780 };
30781
30782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30784 if (!SWIG_IsOK(res1)) {
30785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30786 }
30787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30788 ecode2 = SWIG_AsVal_long(obj1, &val2);
30789 if (!SWIG_IsOK(ecode2)) {
30790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30791 }
30792 arg2 = static_cast< long >(val2);
30793 {
30794 arg3 = wxString_in_helper(obj2);
30795 if (arg3 == NULL) SWIG_fail;
30796 temp3 = true;
30797 }
30798 if (obj3) {
30799 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30800 if (!SWIG_IsOK(ecode4)) {
30801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30802 }
30803 arg4 = static_cast< bool >(val4);
30804 }
30805 {
30806 PyThreadState* __tstate = wxPyBeginAllowThreads();
30807 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30808 wxPyEndAllowThreads(__tstate);
30809 if (PyErr_Occurred()) SWIG_fail;
30810 }
30811 resultobj = SWIG_From_long(static_cast< long >(result));
30812 {
30813 if (temp3)
30814 delete arg3;
30815 }
30816 return resultobj;
30817 fail:
30818 {
30819 if (temp3)
30820 delete arg3;
30821 }
30822 return NULL;
30823 }
30824
30825
30826 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30827 PyObject *resultobj = 0;
30828 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30829 long arg2 ;
30830 long arg3 ;
30831 long result;
30832 void *argp1 = 0 ;
30833 int res1 = 0 ;
30834 long val2 ;
30835 int ecode2 = 0 ;
30836 long val3 ;
30837 int ecode3 = 0 ;
30838 PyObject * obj0 = 0 ;
30839 PyObject * obj1 = 0 ;
30840 PyObject * obj2 = 0 ;
30841 char * kwnames[] = {
30842 (char *) "self",(char *) "start",(char *) "data", NULL
30843 };
30844
30845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30847 if (!SWIG_IsOK(res1)) {
30848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30849 }
30850 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30851 ecode2 = SWIG_AsVal_long(obj1, &val2);
30852 if (!SWIG_IsOK(ecode2)) {
30853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30854 }
30855 arg2 = static_cast< long >(val2);
30856 ecode3 = SWIG_AsVal_long(obj2, &val3);
30857 if (!SWIG_IsOK(ecode3)) {
30858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30859 }
30860 arg3 = static_cast< long >(val3);
30861 {
30862 PyThreadState* __tstate = wxPyBeginAllowThreads();
30863 result = (long)(arg1)->FindItem(arg2,arg3);
30864 wxPyEndAllowThreads(__tstate);
30865 if (PyErr_Occurred()) SWIG_fail;
30866 }
30867 resultobj = SWIG_From_long(static_cast< long >(result));
30868 return resultobj;
30869 fail:
30870 return NULL;
30871 }
30872
30873
30874 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30875 PyObject *resultobj = 0;
30876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30877 long arg2 ;
30878 wxPoint *arg3 = 0 ;
30879 int arg4 ;
30880 long result;
30881 void *argp1 = 0 ;
30882 int res1 = 0 ;
30883 long val2 ;
30884 int ecode2 = 0 ;
30885 wxPoint temp3 ;
30886 int val4 ;
30887 int ecode4 = 0 ;
30888 PyObject * obj0 = 0 ;
30889 PyObject * obj1 = 0 ;
30890 PyObject * obj2 = 0 ;
30891 PyObject * obj3 = 0 ;
30892 char * kwnames[] = {
30893 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30894 };
30895
30896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30898 if (!SWIG_IsOK(res1)) {
30899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30900 }
30901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30902 ecode2 = SWIG_AsVal_long(obj1, &val2);
30903 if (!SWIG_IsOK(ecode2)) {
30904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30905 }
30906 arg2 = static_cast< long >(val2);
30907 {
30908 arg3 = &temp3;
30909 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30910 }
30911 ecode4 = SWIG_AsVal_int(obj3, &val4);
30912 if (!SWIG_IsOK(ecode4)) {
30913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30914 }
30915 arg4 = static_cast< int >(val4);
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30919 wxPyEndAllowThreads(__tstate);
30920 if (PyErr_Occurred()) SWIG_fail;
30921 }
30922 resultobj = SWIG_From_long(static_cast< long >(result));
30923 return resultobj;
30924 fail:
30925 return NULL;
30926 }
30927
30928
30929 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30930 PyObject *resultobj = 0;
30931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30932 wxPoint *arg2 = 0 ;
30933 int *arg3 = 0 ;
30934 long result;
30935 void *argp1 = 0 ;
30936 int res1 = 0 ;
30937 wxPoint temp2 ;
30938 int temp3 ;
30939 int res3 = SWIG_TMPOBJ ;
30940 PyObject * obj0 = 0 ;
30941 PyObject * obj1 = 0 ;
30942 char * kwnames[] = {
30943 (char *) "self",(char *) "point", NULL
30944 };
30945
30946 arg3 = &temp3;
30947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30949 if (!SWIG_IsOK(res1)) {
30950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30951 }
30952 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30953 {
30954 arg2 = &temp2;
30955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30956 }
30957 {
30958 PyThreadState* __tstate = wxPyBeginAllowThreads();
30959 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30960 wxPyEndAllowThreads(__tstate);
30961 if (PyErr_Occurred()) SWIG_fail;
30962 }
30963 resultobj = SWIG_From_long(static_cast< long >(result));
30964 if (SWIG_IsTmpObj(res3)) {
30965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30966 } else {
30967 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30969 }
30970 return resultobj;
30971 fail:
30972 return NULL;
30973 }
30974
30975
30976 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30977 PyObject *resultobj = 0;
30978 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30979 wxPoint *arg2 = 0 ;
30980 int *arg3 = 0 ;
30981 long *arg4 = (long *) 0 ;
30982 long result;
30983 void *argp1 = 0 ;
30984 int res1 = 0 ;
30985 wxPoint temp2 ;
30986 int temp3 ;
30987 int res3 = SWIG_TMPOBJ ;
30988 long temp4 ;
30989 int res4 = SWIG_TMPOBJ ;
30990 PyObject * obj0 = 0 ;
30991 PyObject * obj1 = 0 ;
30992 char * kwnames[] = {
30993 (char *) "self",(char *) "point", NULL
30994 };
30995
30996 arg3 = &temp3;
30997 arg4 = &temp4;
30998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31000 if (!SWIG_IsOK(res1)) {
31001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31002 }
31003 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31004 {
31005 arg2 = &temp2;
31006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31007 }
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 resultobj = SWIG_From_long(static_cast< long >(result));
31015 if (SWIG_IsTmpObj(res3)) {
31016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31017 } else {
31018 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31020 }
31021 if (SWIG_IsTmpObj(res4)) {
31022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31023 } else {
31024 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31026 }
31027 return resultobj;
31028 fail:
31029 return NULL;
31030 }
31031
31032
31033 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31036 wxListItem *arg2 = 0 ;
31037 long result;
31038 void *argp1 = 0 ;
31039 int res1 = 0 ;
31040 void *argp2 = 0 ;
31041 int res2 = 0 ;
31042 PyObject * obj0 = 0 ;
31043 PyObject * obj1 = 0 ;
31044 char * kwnames[] = {
31045 (char *) "self",(char *) "info", NULL
31046 };
31047
31048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31050 if (!SWIG_IsOK(res1)) {
31051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31052 }
31053 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31055 if (!SWIG_IsOK(res2)) {
31056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31057 }
31058 if (!argp2) {
31059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31060 }
31061 arg2 = reinterpret_cast< wxListItem * >(argp2);
31062 {
31063 PyThreadState* __tstate = wxPyBeginAllowThreads();
31064 result = (long)(arg1)->InsertItem(*arg2);
31065 wxPyEndAllowThreads(__tstate);
31066 if (PyErr_Occurred()) SWIG_fail;
31067 }
31068 resultobj = SWIG_From_long(static_cast< long >(result));
31069 return resultobj;
31070 fail:
31071 return NULL;
31072 }
31073
31074
31075 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31076 PyObject *resultobj = 0;
31077 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31078 long arg2 ;
31079 wxString *arg3 = 0 ;
31080 int arg4 = (int) -1 ;
31081 long result;
31082 void *argp1 = 0 ;
31083 int res1 = 0 ;
31084 long val2 ;
31085 int ecode2 = 0 ;
31086 bool temp3 = false ;
31087 int val4 ;
31088 int ecode4 = 0 ;
31089 PyObject * obj0 = 0 ;
31090 PyObject * obj1 = 0 ;
31091 PyObject * obj2 = 0 ;
31092 PyObject * obj3 = 0 ;
31093 char * kwnames[] = {
31094 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31095 };
31096
31097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31099 if (!SWIG_IsOK(res1)) {
31100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31101 }
31102 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31103 ecode2 = SWIG_AsVal_long(obj1, &val2);
31104 if (!SWIG_IsOK(ecode2)) {
31105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31106 }
31107 arg2 = static_cast< long >(val2);
31108 {
31109 arg3 = wxString_in_helper(obj2);
31110 if (arg3 == NULL) SWIG_fail;
31111 temp3 = true;
31112 }
31113 if (obj3) {
31114 ecode4 = SWIG_AsVal_int(obj3, &val4);
31115 if (!SWIG_IsOK(ecode4)) {
31116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31117 }
31118 arg4 = static_cast< int >(val4);
31119 }
31120 {
31121 PyThreadState* __tstate = wxPyBeginAllowThreads();
31122 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31123 wxPyEndAllowThreads(__tstate);
31124 if (PyErr_Occurred()) SWIG_fail;
31125 }
31126 resultobj = SWIG_From_long(static_cast< long >(result));
31127 {
31128 if (temp3)
31129 delete arg3;
31130 }
31131 return resultobj;
31132 fail:
31133 {
31134 if (temp3)
31135 delete arg3;
31136 }
31137 return NULL;
31138 }
31139
31140
31141 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31142 PyObject *resultobj = 0;
31143 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31144 long arg2 ;
31145 int arg3 ;
31146 long result;
31147 void *argp1 = 0 ;
31148 int res1 = 0 ;
31149 long val2 ;
31150 int ecode2 = 0 ;
31151 int val3 ;
31152 int ecode3 = 0 ;
31153 PyObject * obj0 = 0 ;
31154 PyObject * obj1 = 0 ;
31155 PyObject * obj2 = 0 ;
31156 char * kwnames[] = {
31157 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31158 };
31159
31160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31162 if (!SWIG_IsOK(res1)) {
31163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31164 }
31165 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31166 ecode2 = SWIG_AsVal_long(obj1, &val2);
31167 if (!SWIG_IsOK(ecode2)) {
31168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31169 }
31170 arg2 = static_cast< long >(val2);
31171 ecode3 = SWIG_AsVal_int(obj2, &val3);
31172 if (!SWIG_IsOK(ecode3)) {
31173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31174 }
31175 arg3 = static_cast< int >(val3);
31176 {
31177 PyThreadState* __tstate = wxPyBeginAllowThreads();
31178 result = (long)(arg1)->InsertItem(arg2,arg3);
31179 wxPyEndAllowThreads(__tstate);
31180 if (PyErr_Occurred()) SWIG_fail;
31181 }
31182 resultobj = SWIG_From_long(static_cast< long >(result));
31183 return resultobj;
31184 fail:
31185 return NULL;
31186 }
31187
31188
31189 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31190 PyObject *resultobj = 0;
31191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31192 long arg2 ;
31193 wxString *arg3 = 0 ;
31194 int arg4 ;
31195 long result;
31196 void *argp1 = 0 ;
31197 int res1 = 0 ;
31198 long val2 ;
31199 int ecode2 = 0 ;
31200 bool temp3 = false ;
31201 int val4 ;
31202 int ecode4 = 0 ;
31203 PyObject * obj0 = 0 ;
31204 PyObject * obj1 = 0 ;
31205 PyObject * obj2 = 0 ;
31206 PyObject * obj3 = 0 ;
31207 char * kwnames[] = {
31208 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31209 };
31210
31211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31213 if (!SWIG_IsOK(res1)) {
31214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31215 }
31216 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31217 ecode2 = SWIG_AsVal_long(obj1, &val2);
31218 if (!SWIG_IsOK(ecode2)) {
31219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31220 }
31221 arg2 = static_cast< long >(val2);
31222 {
31223 arg3 = wxString_in_helper(obj2);
31224 if (arg3 == NULL) SWIG_fail;
31225 temp3 = true;
31226 }
31227 ecode4 = SWIG_AsVal_int(obj3, &val4);
31228 if (!SWIG_IsOK(ecode4)) {
31229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31230 }
31231 arg4 = static_cast< int >(val4);
31232 {
31233 PyThreadState* __tstate = wxPyBeginAllowThreads();
31234 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31235 wxPyEndAllowThreads(__tstate);
31236 if (PyErr_Occurred()) SWIG_fail;
31237 }
31238 resultobj = SWIG_From_long(static_cast< long >(result));
31239 {
31240 if (temp3)
31241 delete arg3;
31242 }
31243 return resultobj;
31244 fail:
31245 {
31246 if (temp3)
31247 delete arg3;
31248 }
31249 return NULL;
31250 }
31251
31252
31253 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31254 PyObject *resultobj = 0;
31255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31256 long arg2 ;
31257 wxListItem *arg3 = 0 ;
31258 long result;
31259 void *argp1 = 0 ;
31260 int res1 = 0 ;
31261 long val2 ;
31262 int ecode2 = 0 ;
31263 void *argp3 = 0 ;
31264 int res3 = 0 ;
31265 PyObject * obj0 = 0 ;
31266 PyObject * obj1 = 0 ;
31267 PyObject * obj2 = 0 ;
31268 char * kwnames[] = {
31269 (char *) "self",(char *) "col",(char *) "info", NULL
31270 };
31271
31272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31274 if (!SWIG_IsOK(res1)) {
31275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31276 }
31277 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31278 ecode2 = SWIG_AsVal_long(obj1, &val2);
31279 if (!SWIG_IsOK(ecode2)) {
31280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31281 }
31282 arg2 = static_cast< long >(val2);
31283 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31284 if (!SWIG_IsOK(res3)) {
31285 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31286 }
31287 if (!argp3) {
31288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31289 }
31290 arg3 = reinterpret_cast< wxListItem * >(argp3);
31291 {
31292 PyThreadState* __tstate = wxPyBeginAllowThreads();
31293 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31294 wxPyEndAllowThreads(__tstate);
31295 if (PyErr_Occurred()) SWIG_fail;
31296 }
31297 resultobj = SWIG_From_long(static_cast< long >(result));
31298 return resultobj;
31299 fail:
31300 return NULL;
31301 }
31302
31303
31304 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31305 PyObject *resultobj = 0;
31306 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31307 long arg2 ;
31308 wxString *arg3 = 0 ;
31309 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31310 int arg5 = (int) -1 ;
31311 long result;
31312 void *argp1 = 0 ;
31313 int res1 = 0 ;
31314 long val2 ;
31315 int ecode2 = 0 ;
31316 bool temp3 = false ;
31317 int val4 ;
31318 int ecode4 = 0 ;
31319 int val5 ;
31320 int ecode5 = 0 ;
31321 PyObject * obj0 = 0 ;
31322 PyObject * obj1 = 0 ;
31323 PyObject * obj2 = 0 ;
31324 PyObject * obj3 = 0 ;
31325 PyObject * obj4 = 0 ;
31326 char * kwnames[] = {
31327 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31328 };
31329
31330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31332 if (!SWIG_IsOK(res1)) {
31333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31334 }
31335 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31336 ecode2 = SWIG_AsVal_long(obj1, &val2);
31337 if (!SWIG_IsOK(ecode2)) {
31338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31339 }
31340 arg2 = static_cast< long >(val2);
31341 {
31342 arg3 = wxString_in_helper(obj2);
31343 if (arg3 == NULL) SWIG_fail;
31344 temp3 = true;
31345 }
31346 if (obj3) {
31347 ecode4 = SWIG_AsVal_int(obj3, &val4);
31348 if (!SWIG_IsOK(ecode4)) {
31349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31350 }
31351 arg4 = static_cast< int >(val4);
31352 }
31353 if (obj4) {
31354 ecode5 = SWIG_AsVal_int(obj4, &val5);
31355 if (!SWIG_IsOK(ecode5)) {
31356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31357 }
31358 arg5 = static_cast< int >(val5);
31359 }
31360 {
31361 PyThreadState* __tstate = wxPyBeginAllowThreads();
31362 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31363 wxPyEndAllowThreads(__tstate);
31364 if (PyErr_Occurred()) SWIG_fail;
31365 }
31366 resultobj = SWIG_From_long(static_cast< long >(result));
31367 {
31368 if (temp3)
31369 delete arg3;
31370 }
31371 return resultobj;
31372 fail:
31373 {
31374 if (temp3)
31375 delete arg3;
31376 }
31377 return NULL;
31378 }
31379
31380
31381 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31382 PyObject *resultobj = 0;
31383 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31384 long arg2 ;
31385 void *argp1 = 0 ;
31386 int res1 = 0 ;
31387 long val2 ;
31388 int ecode2 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 char * kwnames[] = {
31392 (char *) "self",(char *) "count", NULL
31393 };
31394
31395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31397 if (!SWIG_IsOK(res1)) {
31398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31399 }
31400 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31401 ecode2 = SWIG_AsVal_long(obj1, &val2);
31402 if (!SWIG_IsOK(ecode2)) {
31403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31404 }
31405 arg2 = static_cast< long >(val2);
31406 {
31407 PyThreadState* __tstate = wxPyBeginAllowThreads();
31408 (arg1)->SetItemCount(arg2);
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 resultobj = SWIG_Py_Void();
31413 return resultobj;
31414 fail:
31415 return NULL;
31416 }
31417
31418
31419 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj = 0;
31421 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31422 int arg2 ;
31423 int arg3 ;
31424 bool result;
31425 void *argp1 = 0 ;
31426 int res1 = 0 ;
31427 int val2 ;
31428 int ecode2 = 0 ;
31429 int val3 ;
31430 int ecode3 = 0 ;
31431 PyObject * obj0 = 0 ;
31432 PyObject * obj1 = 0 ;
31433 PyObject * obj2 = 0 ;
31434 char * kwnames[] = {
31435 (char *) "self",(char *) "dx",(char *) "dy", NULL
31436 };
31437
31438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31440 if (!SWIG_IsOK(res1)) {
31441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31442 }
31443 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31444 ecode2 = SWIG_AsVal_int(obj1, &val2);
31445 if (!SWIG_IsOK(ecode2)) {
31446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31447 }
31448 arg2 = static_cast< int >(val2);
31449 ecode3 = SWIG_AsVal_int(obj2, &val3);
31450 if (!SWIG_IsOK(ecode3)) {
31451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31452 }
31453 arg3 = static_cast< int >(val3);
31454 {
31455 PyThreadState* __tstate = wxPyBeginAllowThreads();
31456 result = (bool)(arg1)->ScrollList(arg2,arg3);
31457 wxPyEndAllowThreads(__tstate);
31458 if (PyErr_Occurred()) SWIG_fail;
31459 }
31460 {
31461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31462 }
31463 return resultobj;
31464 fail:
31465 return NULL;
31466 }
31467
31468
31469 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31470 PyObject *resultobj = 0;
31471 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31472 long arg2 ;
31473 wxColour *arg3 = 0 ;
31474 void *argp1 = 0 ;
31475 int res1 = 0 ;
31476 long val2 ;
31477 int ecode2 = 0 ;
31478 wxColour temp3 ;
31479 PyObject * obj0 = 0 ;
31480 PyObject * obj1 = 0 ;
31481 PyObject * obj2 = 0 ;
31482 char * kwnames[] = {
31483 (char *) "self",(char *) "item",(char *) "col", NULL
31484 };
31485
31486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31488 if (!SWIG_IsOK(res1)) {
31489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31490 }
31491 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31492 ecode2 = SWIG_AsVal_long(obj1, &val2);
31493 if (!SWIG_IsOK(ecode2)) {
31494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31495 }
31496 arg2 = static_cast< long >(val2);
31497 {
31498 arg3 = &temp3;
31499 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31500 }
31501 {
31502 PyThreadState* __tstate = wxPyBeginAllowThreads();
31503 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31504 wxPyEndAllowThreads(__tstate);
31505 if (PyErr_Occurred()) SWIG_fail;
31506 }
31507 resultobj = SWIG_Py_Void();
31508 return resultobj;
31509 fail:
31510 return NULL;
31511 }
31512
31513
31514 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31515 PyObject *resultobj = 0;
31516 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31517 long arg2 ;
31518 wxColour result;
31519 void *argp1 = 0 ;
31520 int res1 = 0 ;
31521 long val2 ;
31522 int ecode2 = 0 ;
31523 PyObject * obj0 = 0 ;
31524 PyObject * obj1 = 0 ;
31525 char * kwnames[] = {
31526 (char *) "self",(char *) "item", NULL
31527 };
31528
31529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31531 if (!SWIG_IsOK(res1)) {
31532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31533 }
31534 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31535 ecode2 = SWIG_AsVal_long(obj1, &val2);
31536 if (!SWIG_IsOK(ecode2)) {
31537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31538 }
31539 arg2 = static_cast< long >(val2);
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31543 wxPyEndAllowThreads(__tstate);
31544 if (PyErr_Occurred()) SWIG_fail;
31545 }
31546 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31547 return resultobj;
31548 fail:
31549 return NULL;
31550 }
31551
31552
31553 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31554 PyObject *resultobj = 0;
31555 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31556 long arg2 ;
31557 wxColour *arg3 = 0 ;
31558 void *argp1 = 0 ;
31559 int res1 = 0 ;
31560 long val2 ;
31561 int ecode2 = 0 ;
31562 wxColour temp3 ;
31563 PyObject * obj0 = 0 ;
31564 PyObject * obj1 = 0 ;
31565 PyObject * obj2 = 0 ;
31566 char * kwnames[] = {
31567 (char *) "self",(char *) "item",(char *) "col", NULL
31568 };
31569
31570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31572 if (!SWIG_IsOK(res1)) {
31573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31574 }
31575 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31576 ecode2 = SWIG_AsVal_long(obj1, &val2);
31577 if (!SWIG_IsOK(ecode2)) {
31578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31579 }
31580 arg2 = static_cast< long >(val2);
31581 {
31582 arg3 = &temp3;
31583 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31584 }
31585 {
31586 PyThreadState* __tstate = wxPyBeginAllowThreads();
31587 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31588 wxPyEndAllowThreads(__tstate);
31589 if (PyErr_Occurred()) SWIG_fail;
31590 }
31591 resultobj = SWIG_Py_Void();
31592 return resultobj;
31593 fail:
31594 return NULL;
31595 }
31596
31597
31598 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31599 PyObject *resultobj = 0;
31600 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31601 long arg2 ;
31602 wxColour result;
31603 void *argp1 = 0 ;
31604 int res1 = 0 ;
31605 long val2 ;
31606 int ecode2 = 0 ;
31607 PyObject * obj0 = 0 ;
31608 PyObject * obj1 = 0 ;
31609 char * kwnames[] = {
31610 (char *) "self",(char *) "item", NULL
31611 };
31612
31613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31615 if (!SWIG_IsOK(res1)) {
31616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31617 }
31618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31619 ecode2 = SWIG_AsVal_long(obj1, &val2);
31620 if (!SWIG_IsOK(ecode2)) {
31621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31622 }
31623 arg2 = static_cast< long >(val2);
31624 {
31625 PyThreadState* __tstate = wxPyBeginAllowThreads();
31626 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31627 wxPyEndAllowThreads(__tstate);
31628 if (PyErr_Occurred()) SWIG_fail;
31629 }
31630 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31631 return resultobj;
31632 fail:
31633 return NULL;
31634 }
31635
31636
31637 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31638 PyObject *resultobj = 0;
31639 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31640 long arg2 ;
31641 wxFont *arg3 = 0 ;
31642 void *argp1 = 0 ;
31643 int res1 = 0 ;
31644 long val2 ;
31645 int ecode2 = 0 ;
31646 void *argp3 = 0 ;
31647 int res3 = 0 ;
31648 PyObject * obj0 = 0 ;
31649 PyObject * obj1 = 0 ;
31650 PyObject * obj2 = 0 ;
31651 char * kwnames[] = {
31652 (char *) "self",(char *) "item",(char *) "f", NULL
31653 };
31654
31655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31657 if (!SWIG_IsOK(res1)) {
31658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31659 }
31660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31661 ecode2 = SWIG_AsVal_long(obj1, &val2);
31662 if (!SWIG_IsOK(ecode2)) {
31663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31664 }
31665 arg2 = static_cast< long >(val2);
31666 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31667 if (!SWIG_IsOK(res3)) {
31668 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31669 }
31670 if (!argp3) {
31671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31672 }
31673 arg3 = reinterpret_cast< wxFont * >(argp3);
31674 {
31675 PyThreadState* __tstate = wxPyBeginAllowThreads();
31676 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31677 wxPyEndAllowThreads(__tstate);
31678 if (PyErr_Occurred()) SWIG_fail;
31679 }
31680 resultobj = SWIG_Py_Void();
31681 return resultobj;
31682 fail:
31683 return NULL;
31684 }
31685
31686
31687 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31688 PyObject *resultobj = 0;
31689 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31690 long arg2 ;
31691 wxFont result;
31692 void *argp1 = 0 ;
31693 int res1 = 0 ;
31694 long val2 ;
31695 int ecode2 = 0 ;
31696 PyObject * obj0 = 0 ;
31697 PyObject * obj1 = 0 ;
31698 char * kwnames[] = {
31699 (char *) "self",(char *) "item", NULL
31700 };
31701
31702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31704 if (!SWIG_IsOK(res1)) {
31705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31706 }
31707 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31708 ecode2 = SWIG_AsVal_long(obj1, &val2);
31709 if (!SWIG_IsOK(ecode2)) {
31710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31711 }
31712 arg2 = static_cast< long >(val2);
31713 {
31714 PyThreadState* __tstate = wxPyBeginAllowThreads();
31715 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31716 wxPyEndAllowThreads(__tstate);
31717 if (PyErr_Occurred()) SWIG_fail;
31718 }
31719 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31720 return resultobj;
31721 fail:
31722 return NULL;
31723 }
31724
31725
31726 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31727 PyObject *resultobj = 0;
31728 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31729 PyObject *arg2 = (PyObject *) 0 ;
31730 bool result;
31731 void *argp1 = 0 ;
31732 int res1 = 0 ;
31733 PyObject * obj0 = 0 ;
31734 PyObject * obj1 = 0 ;
31735 char * kwnames[] = {
31736 (char *) "self",(char *) "func", NULL
31737 };
31738
31739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31741 if (!SWIG_IsOK(res1)) {
31742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31743 }
31744 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31745 arg2 = obj1;
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31749 wxPyEndAllowThreads(__tstate);
31750 if (PyErr_Occurred()) SWIG_fail;
31751 }
31752 {
31753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31754 }
31755 return resultobj;
31756 fail:
31757 return NULL;
31758 }
31759
31760
31761 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31762 PyObject *resultobj = 0;
31763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31764 wxWindow *result = 0 ;
31765 void *argp1 = 0 ;
31766 int res1 = 0 ;
31767 PyObject *swig_obj[1] ;
31768
31769 if (!args) SWIG_fail;
31770 swig_obj[0] = args;
31771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31772 if (!SWIG_IsOK(res1)) {
31773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31774 }
31775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31776 {
31777 PyThreadState* __tstate = wxPyBeginAllowThreads();
31778 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31779 wxPyEndAllowThreads(__tstate);
31780 if (PyErr_Occurred()) SWIG_fail;
31781 }
31782 {
31783 resultobj = wxPyMake_wxObject(result, 0);
31784 }
31785 return resultobj;
31786 fail:
31787 return NULL;
31788 }
31789
31790
31791 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31792 PyObject *resultobj = 0;
31793 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31794 SwigValueWrapper<wxVisualAttributes > result;
31795 int val1 ;
31796 int ecode1 = 0 ;
31797 PyObject * obj0 = 0 ;
31798 char * kwnames[] = {
31799 (char *) "variant", NULL
31800 };
31801
31802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31803 if (obj0) {
31804 ecode1 = SWIG_AsVal_int(obj0, &val1);
31805 if (!SWIG_IsOK(ecode1)) {
31806 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31807 }
31808 arg1 = static_cast< wxWindowVariant >(val1);
31809 }
31810 {
31811 if (!wxPyCheckForApp()) SWIG_fail;
31812 PyThreadState* __tstate = wxPyBeginAllowThreads();
31813 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31814 wxPyEndAllowThreads(__tstate);
31815 if (PyErr_Occurred()) SWIG_fail;
31816 }
31817 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31818 return resultobj;
31819 fail:
31820 return NULL;
31821 }
31822
31823
31824 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31825 PyObject *obj;
31826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31827 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31828 return SWIG_Py_Void();
31829 }
31830
31831 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31832 return SWIG_Python_InitShadowInstance(args);
31833 }
31834
31835 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31836 PyObject *resultobj = 0;
31837 wxWindow *arg1 = (wxWindow *) 0 ;
31838 int arg2 = (int) -1 ;
31839 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31840 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31841 wxSize const &arg4_defvalue = wxDefaultSize ;
31842 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31843 long arg5 = (long) wxLC_REPORT ;
31844 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31845 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31846 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31847 wxString *arg7 = (wxString *) &arg7_defvalue ;
31848 wxListView *result = 0 ;
31849 void *argp1 = 0 ;
31850 int res1 = 0 ;
31851 int val2 ;
31852 int ecode2 = 0 ;
31853 wxPoint temp3 ;
31854 wxSize temp4 ;
31855 long val5 ;
31856 int ecode5 = 0 ;
31857 void *argp6 = 0 ;
31858 int res6 = 0 ;
31859 bool temp7 = false ;
31860 PyObject * obj0 = 0 ;
31861 PyObject * obj1 = 0 ;
31862 PyObject * obj2 = 0 ;
31863 PyObject * obj3 = 0 ;
31864 PyObject * obj4 = 0 ;
31865 PyObject * obj5 = 0 ;
31866 PyObject * obj6 = 0 ;
31867 char * kwnames[] = {
31868 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31869 };
31870
31871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31873 if (!SWIG_IsOK(res1)) {
31874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31875 }
31876 arg1 = reinterpret_cast< wxWindow * >(argp1);
31877 if (obj1) {
31878 ecode2 = SWIG_AsVal_int(obj1, &val2);
31879 if (!SWIG_IsOK(ecode2)) {
31880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31881 }
31882 arg2 = static_cast< int >(val2);
31883 }
31884 if (obj2) {
31885 {
31886 arg3 = &temp3;
31887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31888 }
31889 }
31890 if (obj3) {
31891 {
31892 arg4 = &temp4;
31893 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31894 }
31895 }
31896 if (obj4) {
31897 ecode5 = SWIG_AsVal_long(obj4, &val5);
31898 if (!SWIG_IsOK(ecode5)) {
31899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31900 }
31901 arg5 = static_cast< long >(val5);
31902 }
31903 if (obj5) {
31904 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31905 if (!SWIG_IsOK(res6)) {
31906 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31907 }
31908 if (!argp6) {
31909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31910 }
31911 arg6 = reinterpret_cast< wxValidator * >(argp6);
31912 }
31913 if (obj6) {
31914 {
31915 arg7 = wxString_in_helper(obj6);
31916 if (arg7 == NULL) SWIG_fail;
31917 temp7 = true;
31918 }
31919 }
31920 {
31921 if (!wxPyCheckForApp()) SWIG_fail;
31922 PyThreadState* __tstate = wxPyBeginAllowThreads();
31923 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
31927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31928 {
31929 if (temp7)
31930 delete arg7;
31931 }
31932 return resultobj;
31933 fail:
31934 {
31935 if (temp7)
31936 delete arg7;
31937 }
31938 return NULL;
31939 }
31940
31941
31942 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31943 PyObject *resultobj = 0;
31944 wxListView *result = 0 ;
31945
31946 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31947 {
31948 if (!wxPyCheckForApp()) SWIG_fail;
31949 PyThreadState* __tstate = wxPyBeginAllowThreads();
31950 result = (wxListView *)new wxListView();
31951 wxPyEndAllowThreads(__tstate);
31952 if (PyErr_Occurred()) SWIG_fail;
31953 }
31954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31955 return resultobj;
31956 fail:
31957 return NULL;
31958 }
31959
31960
31961 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31962 PyObject *resultobj = 0;
31963 wxListView *arg1 = (wxListView *) 0 ;
31964 wxWindow *arg2 = (wxWindow *) 0 ;
31965 int arg3 = (int) -1 ;
31966 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31967 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31968 wxSize const &arg5_defvalue = wxDefaultSize ;
31969 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31970 long arg6 = (long) wxLC_REPORT ;
31971 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31972 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31973 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31974 wxString *arg8 = (wxString *) &arg8_defvalue ;
31975 bool result;
31976 void *argp1 = 0 ;
31977 int res1 = 0 ;
31978 void *argp2 = 0 ;
31979 int res2 = 0 ;
31980 int val3 ;
31981 int ecode3 = 0 ;
31982 wxPoint temp4 ;
31983 wxSize temp5 ;
31984 long val6 ;
31985 int ecode6 = 0 ;
31986 void *argp7 = 0 ;
31987 int res7 = 0 ;
31988 bool temp8 = false ;
31989 PyObject * obj0 = 0 ;
31990 PyObject * obj1 = 0 ;
31991 PyObject * obj2 = 0 ;
31992 PyObject * obj3 = 0 ;
31993 PyObject * obj4 = 0 ;
31994 PyObject * obj5 = 0 ;
31995 PyObject * obj6 = 0 ;
31996 PyObject * obj7 = 0 ;
31997 char * kwnames[] = {
31998 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31999 };
32000
32001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32003 if (!SWIG_IsOK(res1)) {
32004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32005 }
32006 arg1 = reinterpret_cast< wxListView * >(argp1);
32007 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32008 if (!SWIG_IsOK(res2)) {
32009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32010 }
32011 arg2 = reinterpret_cast< wxWindow * >(argp2);
32012 if (obj2) {
32013 ecode3 = SWIG_AsVal_int(obj2, &val3);
32014 if (!SWIG_IsOK(ecode3)) {
32015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32016 }
32017 arg3 = static_cast< int >(val3);
32018 }
32019 if (obj3) {
32020 {
32021 arg4 = &temp4;
32022 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32023 }
32024 }
32025 if (obj4) {
32026 {
32027 arg5 = &temp5;
32028 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32029 }
32030 }
32031 if (obj5) {
32032 ecode6 = SWIG_AsVal_long(obj5, &val6);
32033 if (!SWIG_IsOK(ecode6)) {
32034 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32035 }
32036 arg6 = static_cast< long >(val6);
32037 }
32038 if (obj6) {
32039 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32040 if (!SWIG_IsOK(res7)) {
32041 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32042 }
32043 if (!argp7) {
32044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32045 }
32046 arg7 = reinterpret_cast< wxValidator * >(argp7);
32047 }
32048 if (obj7) {
32049 {
32050 arg8 = wxString_in_helper(obj7);
32051 if (arg8 == NULL) SWIG_fail;
32052 temp8 = true;
32053 }
32054 }
32055 {
32056 PyThreadState* __tstate = wxPyBeginAllowThreads();
32057 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32058 wxPyEndAllowThreads(__tstate);
32059 if (PyErr_Occurred()) SWIG_fail;
32060 }
32061 {
32062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32063 }
32064 {
32065 if (temp8)
32066 delete arg8;
32067 }
32068 return resultobj;
32069 fail:
32070 {
32071 if (temp8)
32072 delete arg8;
32073 }
32074 return NULL;
32075 }
32076
32077
32078 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32079 PyObject *resultobj = 0;
32080 wxListView *arg1 = (wxListView *) 0 ;
32081 long arg2 ;
32082 bool arg3 = (bool) true ;
32083 void *argp1 = 0 ;
32084 int res1 = 0 ;
32085 long val2 ;
32086 int ecode2 = 0 ;
32087 bool val3 ;
32088 int ecode3 = 0 ;
32089 PyObject * obj0 = 0 ;
32090 PyObject * obj1 = 0 ;
32091 PyObject * obj2 = 0 ;
32092 char * kwnames[] = {
32093 (char *) "self",(char *) "n",(char *) "on", NULL
32094 };
32095
32096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32098 if (!SWIG_IsOK(res1)) {
32099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32100 }
32101 arg1 = reinterpret_cast< wxListView * >(argp1);
32102 ecode2 = SWIG_AsVal_long(obj1, &val2);
32103 if (!SWIG_IsOK(ecode2)) {
32104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32105 }
32106 arg2 = static_cast< long >(val2);
32107 if (obj2) {
32108 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32109 if (!SWIG_IsOK(ecode3)) {
32110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32111 }
32112 arg3 = static_cast< bool >(val3);
32113 }
32114 {
32115 PyThreadState* __tstate = wxPyBeginAllowThreads();
32116 (arg1)->Select(arg2,arg3);
32117 wxPyEndAllowThreads(__tstate);
32118 if (PyErr_Occurred()) SWIG_fail;
32119 }
32120 resultobj = SWIG_Py_Void();
32121 return resultobj;
32122 fail:
32123 return NULL;
32124 }
32125
32126
32127 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32128 PyObject *resultobj = 0;
32129 wxListView *arg1 = (wxListView *) 0 ;
32130 long arg2 ;
32131 void *argp1 = 0 ;
32132 int res1 = 0 ;
32133 long val2 ;
32134 int ecode2 = 0 ;
32135 PyObject * obj0 = 0 ;
32136 PyObject * obj1 = 0 ;
32137 char * kwnames[] = {
32138 (char *) "self",(char *) "index", NULL
32139 };
32140
32141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32143 if (!SWIG_IsOK(res1)) {
32144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32145 }
32146 arg1 = reinterpret_cast< wxListView * >(argp1);
32147 ecode2 = SWIG_AsVal_long(obj1, &val2);
32148 if (!SWIG_IsOK(ecode2)) {
32149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32150 }
32151 arg2 = static_cast< long >(val2);
32152 {
32153 PyThreadState* __tstate = wxPyBeginAllowThreads();
32154 (arg1)->Focus(arg2);
32155 wxPyEndAllowThreads(__tstate);
32156 if (PyErr_Occurred()) SWIG_fail;
32157 }
32158 resultobj = SWIG_Py_Void();
32159 return resultobj;
32160 fail:
32161 return NULL;
32162 }
32163
32164
32165 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32166 PyObject *resultobj = 0;
32167 wxListView *arg1 = (wxListView *) 0 ;
32168 long result;
32169 void *argp1 = 0 ;
32170 int res1 = 0 ;
32171 PyObject *swig_obj[1] ;
32172
32173 if (!args) SWIG_fail;
32174 swig_obj[0] = args;
32175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32176 if (!SWIG_IsOK(res1)) {
32177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32178 }
32179 arg1 = reinterpret_cast< wxListView * >(argp1);
32180 {
32181 PyThreadState* __tstate = wxPyBeginAllowThreads();
32182 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32183 wxPyEndAllowThreads(__tstate);
32184 if (PyErr_Occurred()) SWIG_fail;
32185 }
32186 resultobj = SWIG_From_long(static_cast< long >(result));
32187 return resultobj;
32188 fail:
32189 return NULL;
32190 }
32191
32192
32193 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32194 PyObject *resultobj = 0;
32195 wxListView *arg1 = (wxListView *) 0 ;
32196 long arg2 ;
32197 long result;
32198 void *argp1 = 0 ;
32199 int res1 = 0 ;
32200 long val2 ;
32201 int ecode2 = 0 ;
32202 PyObject * obj0 = 0 ;
32203 PyObject * obj1 = 0 ;
32204 char * kwnames[] = {
32205 (char *) "self",(char *) "item", NULL
32206 };
32207
32208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32210 if (!SWIG_IsOK(res1)) {
32211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32212 }
32213 arg1 = reinterpret_cast< wxListView * >(argp1);
32214 ecode2 = SWIG_AsVal_long(obj1, &val2);
32215 if (!SWIG_IsOK(ecode2)) {
32216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32217 }
32218 arg2 = static_cast< long >(val2);
32219 {
32220 PyThreadState* __tstate = wxPyBeginAllowThreads();
32221 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32222 wxPyEndAllowThreads(__tstate);
32223 if (PyErr_Occurred()) SWIG_fail;
32224 }
32225 resultobj = SWIG_From_long(static_cast< long >(result));
32226 return resultobj;
32227 fail:
32228 return NULL;
32229 }
32230
32231
32232 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32233 PyObject *resultobj = 0;
32234 wxListView *arg1 = (wxListView *) 0 ;
32235 long result;
32236 void *argp1 = 0 ;
32237 int res1 = 0 ;
32238 PyObject *swig_obj[1] ;
32239
32240 if (!args) SWIG_fail;
32241 swig_obj[0] = args;
32242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32243 if (!SWIG_IsOK(res1)) {
32244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32245 }
32246 arg1 = reinterpret_cast< wxListView * >(argp1);
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
32249 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32250 wxPyEndAllowThreads(__tstate);
32251 if (PyErr_Occurred()) SWIG_fail;
32252 }
32253 resultobj = SWIG_From_long(static_cast< long >(result));
32254 return resultobj;
32255 fail:
32256 return NULL;
32257 }
32258
32259
32260 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32261 PyObject *resultobj = 0;
32262 wxListView *arg1 = (wxListView *) 0 ;
32263 long arg2 ;
32264 bool result;
32265 void *argp1 = 0 ;
32266 int res1 = 0 ;
32267 long val2 ;
32268 int ecode2 = 0 ;
32269 PyObject * obj0 = 0 ;
32270 PyObject * obj1 = 0 ;
32271 char * kwnames[] = {
32272 (char *) "self",(char *) "index", NULL
32273 };
32274
32275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32277 if (!SWIG_IsOK(res1)) {
32278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32279 }
32280 arg1 = reinterpret_cast< wxListView * >(argp1);
32281 ecode2 = SWIG_AsVal_long(obj1, &val2);
32282 if (!SWIG_IsOK(ecode2)) {
32283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32284 }
32285 arg2 = static_cast< long >(val2);
32286 {
32287 PyThreadState* __tstate = wxPyBeginAllowThreads();
32288 result = (bool)(arg1)->IsSelected(arg2);
32289 wxPyEndAllowThreads(__tstate);
32290 if (PyErr_Occurred()) SWIG_fail;
32291 }
32292 {
32293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32294 }
32295 return resultobj;
32296 fail:
32297 return NULL;
32298 }
32299
32300
32301 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32302 PyObject *resultobj = 0;
32303 wxListView *arg1 = (wxListView *) 0 ;
32304 int arg2 ;
32305 int arg3 ;
32306 void *argp1 = 0 ;
32307 int res1 = 0 ;
32308 int val2 ;
32309 int ecode2 = 0 ;
32310 int val3 ;
32311 int ecode3 = 0 ;
32312 PyObject * obj0 = 0 ;
32313 PyObject * obj1 = 0 ;
32314 PyObject * obj2 = 0 ;
32315 char * kwnames[] = {
32316 (char *) "self",(char *) "col",(char *) "image", NULL
32317 };
32318
32319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32321 if (!SWIG_IsOK(res1)) {
32322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32323 }
32324 arg1 = reinterpret_cast< wxListView * >(argp1);
32325 ecode2 = SWIG_AsVal_int(obj1, &val2);
32326 if (!SWIG_IsOK(ecode2)) {
32327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32328 }
32329 arg2 = static_cast< int >(val2);
32330 ecode3 = SWIG_AsVal_int(obj2, &val3);
32331 if (!SWIG_IsOK(ecode3)) {
32332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32333 }
32334 arg3 = static_cast< int >(val3);
32335 {
32336 PyThreadState* __tstate = wxPyBeginAllowThreads();
32337 (arg1)->SetColumnImage(arg2,arg3);
32338 wxPyEndAllowThreads(__tstate);
32339 if (PyErr_Occurred()) SWIG_fail;
32340 }
32341 resultobj = SWIG_Py_Void();
32342 return resultobj;
32343 fail:
32344 return NULL;
32345 }
32346
32347
32348 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32349 PyObject *resultobj = 0;
32350 wxListView *arg1 = (wxListView *) 0 ;
32351 int arg2 ;
32352 void *argp1 = 0 ;
32353 int res1 = 0 ;
32354 int val2 ;
32355 int ecode2 = 0 ;
32356 PyObject * obj0 = 0 ;
32357 PyObject * obj1 = 0 ;
32358 char * kwnames[] = {
32359 (char *) "self",(char *) "col", NULL
32360 };
32361
32362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32364 if (!SWIG_IsOK(res1)) {
32365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32366 }
32367 arg1 = reinterpret_cast< wxListView * >(argp1);
32368 ecode2 = SWIG_AsVal_int(obj1, &val2);
32369 if (!SWIG_IsOK(ecode2)) {
32370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32371 }
32372 arg2 = static_cast< int >(val2);
32373 {
32374 PyThreadState* __tstate = wxPyBeginAllowThreads();
32375 (arg1)->ClearColumnImage(arg2);
32376 wxPyEndAllowThreads(__tstate);
32377 if (PyErr_Occurred()) SWIG_fail;
32378 }
32379 resultobj = SWIG_Py_Void();
32380 return resultobj;
32381 fail:
32382 return NULL;
32383 }
32384
32385
32386 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32387 PyObject *obj;
32388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32389 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32390 return SWIG_Py_Void();
32391 }
32392
32393 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32394 return SWIG_Python_InitShadowInstance(args);
32395 }
32396
32397 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32398 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32399 return 1;
32400 }
32401
32402
32403 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32404 PyObject *pyobj = 0;
32405
32406 {
32407 #if wxUSE_UNICODE
32408 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32409 #else
32410 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32411 #endif
32412 }
32413 return pyobj;
32414 }
32415
32416
32417 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32418 PyObject *resultobj = 0;
32419 wxTreeItemId *result = 0 ;
32420
32421 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 result = (wxTreeItemId *)new wxTreeItemId();
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32429 return resultobj;
32430 fail:
32431 return NULL;
32432 }
32433
32434
32435 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32436 PyObject *resultobj = 0;
32437 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32438 void *argp1 = 0 ;
32439 int res1 = 0 ;
32440 PyObject *swig_obj[1] ;
32441
32442 if (!args) SWIG_fail;
32443 swig_obj[0] = args;
32444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32445 if (!SWIG_IsOK(res1)) {
32446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32447 }
32448 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32449 {
32450 PyThreadState* __tstate = wxPyBeginAllowThreads();
32451 delete arg1;
32452
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 resultobj = SWIG_Py_Void();
32457 return resultobj;
32458 fail:
32459 return NULL;
32460 }
32461
32462
32463 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32464 PyObject *resultobj = 0;
32465 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32466 bool result;
32467 void *argp1 = 0 ;
32468 int res1 = 0 ;
32469 PyObject *swig_obj[1] ;
32470
32471 if (!args) SWIG_fail;
32472 swig_obj[0] = args;
32473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32474 if (!SWIG_IsOK(res1)) {
32475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32476 }
32477 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32478 {
32479 PyThreadState* __tstate = wxPyBeginAllowThreads();
32480 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 {
32485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32486 }
32487 return resultobj;
32488 fail:
32489 return NULL;
32490 }
32491
32492
32493 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32494 PyObject *resultobj = 0;
32495 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32496 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32497 bool result;
32498 void *argp1 = 0 ;
32499 int res1 = 0 ;
32500 void *argp2 = 0 ;
32501 int res2 = 0 ;
32502 PyObject * obj0 = 0 ;
32503 PyObject * obj1 = 0 ;
32504 char * kwnames[] = {
32505 (char *) "self",(char *) "other", NULL
32506 };
32507
32508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32510 if (!SWIG_IsOK(res1)) {
32511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32512 }
32513 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32514 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32515 if (!SWIG_IsOK(res2)) {
32516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32517 }
32518 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32519 {
32520 PyThreadState* __tstate = wxPyBeginAllowThreads();
32521 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32522 wxPyEndAllowThreads(__tstate);
32523 if (PyErr_Occurred()) SWIG_fail;
32524 }
32525 {
32526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32527 }
32528 return resultobj;
32529 fail:
32530 return NULL;
32531 }
32532
32533
32534 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32535 PyObject *resultobj = 0;
32536 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32537 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32538 bool result;
32539 void *argp1 = 0 ;
32540 int res1 = 0 ;
32541 void *argp2 = 0 ;
32542 int res2 = 0 ;
32543 PyObject * obj0 = 0 ;
32544 PyObject * obj1 = 0 ;
32545 char * kwnames[] = {
32546 (char *) "self",(char *) "other", NULL
32547 };
32548
32549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32551 if (!SWIG_IsOK(res1)) {
32552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32553 }
32554 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32556 if (!SWIG_IsOK(res2)) {
32557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32558 }
32559 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32560 {
32561 PyThreadState* __tstate = wxPyBeginAllowThreads();
32562 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32563 wxPyEndAllowThreads(__tstate);
32564 if (PyErr_Occurred()) SWIG_fail;
32565 }
32566 {
32567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32568 }
32569 return resultobj;
32570 fail:
32571 return NULL;
32572 }
32573
32574
32575 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32576 PyObject *resultobj = 0;
32577 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32578 void *arg2 = (void *) 0 ;
32579 void *argp1 = 0 ;
32580 int res1 = 0 ;
32581 int res2 ;
32582 PyObject *swig_obj[2] ;
32583
32584 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32586 if (!SWIG_IsOK(res1)) {
32587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32588 }
32589 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32590 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32591 if (!SWIG_IsOK(res2)) {
32592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32593 }
32594 if (arg1) (arg1)->m_pItem = arg2;
32595
32596 resultobj = SWIG_Py_Void();
32597 return resultobj;
32598 fail:
32599 return NULL;
32600 }
32601
32602
32603 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32604 PyObject *resultobj = 0;
32605 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32606 void *result = 0 ;
32607 void *argp1 = 0 ;
32608 int res1 = 0 ;
32609 PyObject *swig_obj[1] ;
32610
32611 if (!args) SWIG_fail;
32612 swig_obj[0] = args;
32613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32614 if (!SWIG_IsOK(res1)) {
32615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32616 }
32617 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32618 result = (void *) ((arg1)->m_pItem);
32619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32620 return resultobj;
32621 fail:
32622 return NULL;
32623 }
32624
32625
32626 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32627 PyObject *obj;
32628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32629 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32630 return SWIG_Py_Void();
32631 }
32632
32633 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32634 return SWIG_Python_InitShadowInstance(args);
32635 }
32636
32637 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32638 PyObject *resultobj = 0;
32639 PyObject *arg1 = (PyObject *) NULL ;
32640 wxPyTreeItemData *result = 0 ;
32641 PyObject * obj0 = 0 ;
32642 char * kwnames[] = {
32643 (char *) "obj", NULL
32644 };
32645
32646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32647 if (obj0) {
32648 arg1 = obj0;
32649 }
32650 {
32651 PyThreadState* __tstate = wxPyBeginAllowThreads();
32652 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32653 wxPyEndAllowThreads(__tstate);
32654 if (PyErr_Occurred()) SWIG_fail;
32655 }
32656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32657 return resultobj;
32658 fail:
32659 return NULL;
32660 }
32661
32662
32663 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32664 PyObject *resultobj = 0;
32665 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32666 void *argp1 = 0 ;
32667 int res1 = 0 ;
32668 PyObject *swig_obj[1] ;
32669
32670 if (!args) SWIG_fail;
32671 swig_obj[0] = args;
32672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32673 if (!SWIG_IsOK(res1)) {
32674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32675 }
32676 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32677 {
32678 PyThreadState* __tstate = wxPyBeginAllowThreads();
32679 delete arg1;
32680
32681 wxPyEndAllowThreads(__tstate);
32682 if (PyErr_Occurred()) SWIG_fail;
32683 }
32684 resultobj = SWIG_Py_Void();
32685 return resultobj;
32686 fail:
32687 return NULL;
32688 }
32689
32690
32691 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32692 PyObject *resultobj = 0;
32693 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32694 PyObject *result = 0 ;
32695 void *argp1 = 0 ;
32696 int res1 = 0 ;
32697 PyObject *swig_obj[1] ;
32698
32699 if (!args) SWIG_fail;
32700 swig_obj[0] = args;
32701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32702 if (!SWIG_IsOK(res1)) {
32703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32704 }
32705 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32706 {
32707 PyThreadState* __tstate = wxPyBeginAllowThreads();
32708 result = (PyObject *)(arg1)->GetData();
32709 wxPyEndAllowThreads(__tstate);
32710 if (PyErr_Occurred()) SWIG_fail;
32711 }
32712 resultobj = result;
32713 return resultobj;
32714 fail:
32715 return NULL;
32716 }
32717
32718
32719 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32720 PyObject *resultobj = 0;
32721 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32722 PyObject *arg2 = (PyObject *) 0 ;
32723 void *argp1 = 0 ;
32724 int res1 = 0 ;
32725 PyObject * obj0 = 0 ;
32726 PyObject * obj1 = 0 ;
32727 char * kwnames[] = {
32728 (char *) "self",(char *) "obj", NULL
32729 };
32730
32731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32733 if (!SWIG_IsOK(res1)) {
32734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32735 }
32736 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32737 arg2 = obj1;
32738 {
32739 PyThreadState* __tstate = wxPyBeginAllowThreads();
32740 (arg1)->SetData(arg2);
32741 wxPyEndAllowThreads(__tstate);
32742 if (PyErr_Occurred()) SWIG_fail;
32743 }
32744 resultobj = SWIG_Py_Void();
32745 return resultobj;
32746 fail:
32747 return NULL;
32748 }
32749
32750
32751 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32752 PyObject *resultobj = 0;
32753 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32754 wxTreeItemId *result = 0 ;
32755 void *argp1 = 0 ;
32756 int res1 = 0 ;
32757 PyObject *swig_obj[1] ;
32758
32759 if (!args) SWIG_fail;
32760 swig_obj[0] = args;
32761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32762 if (!SWIG_IsOK(res1)) {
32763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32764 }
32765 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32766 {
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 {
32769 wxTreeItemId const &_result_ref = (arg1)->GetId();
32770 result = (wxTreeItemId *) &_result_ref;
32771 }
32772 wxPyEndAllowThreads(__tstate);
32773 if (PyErr_Occurred()) SWIG_fail;
32774 }
32775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32776 return resultobj;
32777 fail:
32778 return NULL;
32779 }
32780
32781
32782 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32783 PyObject *resultobj = 0;
32784 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32785 wxTreeItemId *arg2 = 0 ;
32786 void *argp1 = 0 ;
32787 int res1 = 0 ;
32788 void *argp2 = 0 ;
32789 int res2 = 0 ;
32790 PyObject * obj0 = 0 ;
32791 PyObject * obj1 = 0 ;
32792 char * kwnames[] = {
32793 (char *) "self",(char *) "id", NULL
32794 };
32795
32796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32798 if (!SWIG_IsOK(res1)) {
32799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32800 }
32801 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32803 if (!SWIG_IsOK(res2)) {
32804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32805 }
32806 if (!argp2) {
32807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32808 }
32809 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32810 {
32811 PyThreadState* __tstate = wxPyBeginAllowThreads();
32812 (arg1)->SetId((wxTreeItemId const &)*arg2);
32813 wxPyEndAllowThreads(__tstate);
32814 if (PyErr_Occurred()) SWIG_fail;
32815 }
32816 resultobj = SWIG_Py_Void();
32817 return resultobj;
32818 fail:
32819 return NULL;
32820 }
32821
32822
32823 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32824 PyObject *resultobj = 0;
32825 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32826 void *argp1 = 0 ;
32827 int res1 = 0 ;
32828 PyObject *swig_obj[1] ;
32829
32830 if (!args) SWIG_fail;
32831 swig_obj[0] = args;
32832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32833 if (!SWIG_IsOK(res1)) {
32834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32835 }
32836 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32837 {
32838 PyThreadState* __tstate = wxPyBeginAllowThreads();
32839 wxPyTreeItemData_Destroy(arg1);
32840 wxPyEndAllowThreads(__tstate);
32841 if (PyErr_Occurred()) SWIG_fail;
32842 }
32843 resultobj = SWIG_Py_Void();
32844 return resultobj;
32845 fail:
32846 return NULL;
32847 }
32848
32849
32850 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32851 PyObject *obj;
32852 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32853 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32854 return SWIG_Py_Void();
32855 }
32856
32857 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32858 return SWIG_Python_InitShadowInstance(args);
32859 }
32860
32861 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32862 {
32863 void *argp = 0;
32864 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32865 if (!SWIG_IsOK(res)) {
32866 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32867 }
32868 if (!argp) {
32869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32870 } else {
32871 wxTreeItemId * temp;
32872 temp = reinterpret_cast< wxTreeItemId * >(argp);
32873 wxNullTreeItemId = *temp;
32874 if (SWIG_IsNewObj(res)) delete temp;
32875 }
32876 }
32877 return 0;
32878 fail:
32879 return 1;
32880 }
32881
32882
32883 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32884 PyObject *pyobj = 0;
32885
32886 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32887 return pyobj;
32888 }
32889
32890
32891 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32892 PyObject *resultobj = 0;
32893 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32894 int arg2 = (int) 0 ;
32895 wxTreeEvent *result = 0 ;
32896 int val1 ;
32897 int ecode1 = 0 ;
32898 int val2 ;
32899 int ecode2 = 0 ;
32900
32901 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32902 if (swig_obj[0]) {
32903 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32904 if (!SWIG_IsOK(ecode1)) {
32905 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32906 }
32907 arg1 = static_cast< wxEventType >(val1);
32908 }
32909 if (swig_obj[1]) {
32910 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32911 if (!SWIG_IsOK(ecode2)) {
32912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32913 }
32914 arg2 = static_cast< int >(val2);
32915 }
32916 {
32917 PyThreadState* __tstate = wxPyBeginAllowThreads();
32918 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32919 wxPyEndAllowThreads(__tstate);
32920 if (PyErr_Occurred()) SWIG_fail;
32921 }
32922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32923 return resultobj;
32924 fail:
32925 return NULL;
32926 }
32927
32928
32929 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32930 PyObject *resultobj = 0;
32931 wxEventType arg1 ;
32932 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32933 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32934 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32935 wxTreeEvent *result = 0 ;
32936 int val1 ;
32937 int ecode1 = 0 ;
32938 void *argp2 = 0 ;
32939 int res2 = 0 ;
32940 void *argp3 = 0 ;
32941 int res3 = 0 ;
32942
32943 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32944 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32945 if (!SWIG_IsOK(ecode1)) {
32946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32947 }
32948 arg1 = static_cast< wxEventType >(val1);
32949 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32950 if (!SWIG_IsOK(res2)) {
32951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32952 }
32953 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32954 if (swig_obj[2]) {
32955 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32956 if (!SWIG_IsOK(res3)) {
32957 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32958 }
32959 if (!argp3) {
32960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32961 }
32962 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32963 }
32964 {
32965 PyThreadState* __tstate = wxPyBeginAllowThreads();
32966 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32967 wxPyEndAllowThreads(__tstate);
32968 if (PyErr_Occurred()) SWIG_fail;
32969 }
32970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32971 return resultobj;
32972 fail:
32973 return NULL;
32974 }
32975
32976
32977 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32978 int argc;
32979 PyObject *argv[4];
32980
32981 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32982 --argc;
32983 if ((argc >= 0) && (argc <= 2)) {
32984 int _v = 0;
32985 if (argc > 1) {
32986 {
32987 {
32988 int res = SWIG_AsVal_int(argv[1], NULL);
32989 _v = SWIG_CheckState(res);
32990 }
32991 }
32992 if (!_v) goto check_1;
32993 }
32994 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32995 }
32996 check_1:
32997
32998 if ((argc >= 2) && (argc <= 3)) {
32999 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33000 }
33001
33002 fail:
33003 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33004 return NULL;
33005 }
33006
33007
33008 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33009 PyObject *resultobj = 0;
33010 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33011 wxTreeItemId result;
33012 void *argp1 = 0 ;
33013 int res1 = 0 ;
33014 PyObject *swig_obj[1] ;
33015
33016 if (!args) SWIG_fail;
33017 swig_obj[0] = args;
33018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33019 if (!SWIG_IsOK(res1)) {
33020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33021 }
33022 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33023 {
33024 PyThreadState* __tstate = wxPyBeginAllowThreads();
33025 result = ((wxTreeEvent const *)arg1)->GetItem();
33026 wxPyEndAllowThreads(__tstate);
33027 if (PyErr_Occurred()) SWIG_fail;
33028 }
33029 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33030 return resultobj;
33031 fail:
33032 return NULL;
33033 }
33034
33035
33036 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33037 PyObject *resultobj = 0;
33038 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33039 wxTreeItemId *arg2 = 0 ;
33040 void *argp1 = 0 ;
33041 int res1 = 0 ;
33042 void *argp2 = 0 ;
33043 int res2 = 0 ;
33044 PyObject * obj0 = 0 ;
33045 PyObject * obj1 = 0 ;
33046 char * kwnames[] = {
33047 (char *) "self",(char *) "item", NULL
33048 };
33049
33050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33052 if (!SWIG_IsOK(res1)) {
33053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33054 }
33055 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33057 if (!SWIG_IsOK(res2)) {
33058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33059 }
33060 if (!argp2) {
33061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33062 }
33063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33064 {
33065 PyThreadState* __tstate = wxPyBeginAllowThreads();
33066 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33067 wxPyEndAllowThreads(__tstate);
33068 if (PyErr_Occurred()) SWIG_fail;
33069 }
33070 resultobj = SWIG_Py_Void();
33071 return resultobj;
33072 fail:
33073 return NULL;
33074 }
33075
33076
33077 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33078 PyObject *resultobj = 0;
33079 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33080 wxTreeItemId result;
33081 void *argp1 = 0 ;
33082 int res1 = 0 ;
33083 PyObject *swig_obj[1] ;
33084
33085 if (!args) SWIG_fail;
33086 swig_obj[0] = args;
33087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33088 if (!SWIG_IsOK(res1)) {
33089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33090 }
33091 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33092 {
33093 PyThreadState* __tstate = wxPyBeginAllowThreads();
33094 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33095 wxPyEndAllowThreads(__tstate);
33096 if (PyErr_Occurred()) SWIG_fail;
33097 }
33098 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33099 return resultobj;
33100 fail:
33101 return NULL;
33102 }
33103
33104
33105 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33106 PyObject *resultobj = 0;
33107 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33108 wxTreeItemId *arg2 = 0 ;
33109 void *argp1 = 0 ;
33110 int res1 = 0 ;
33111 void *argp2 = 0 ;
33112 int res2 = 0 ;
33113 PyObject * obj0 = 0 ;
33114 PyObject * obj1 = 0 ;
33115 char * kwnames[] = {
33116 (char *) "self",(char *) "item", NULL
33117 };
33118
33119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33121 if (!SWIG_IsOK(res1)) {
33122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33123 }
33124 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33126 if (!SWIG_IsOK(res2)) {
33127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33128 }
33129 if (!argp2) {
33130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33131 }
33132 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33133 {
33134 PyThreadState* __tstate = wxPyBeginAllowThreads();
33135 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33136 wxPyEndAllowThreads(__tstate);
33137 if (PyErr_Occurred()) SWIG_fail;
33138 }
33139 resultobj = SWIG_Py_Void();
33140 return resultobj;
33141 fail:
33142 return NULL;
33143 }
33144
33145
33146 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33147 PyObject *resultobj = 0;
33148 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33149 wxPoint result;
33150 void *argp1 = 0 ;
33151 int res1 = 0 ;
33152 PyObject *swig_obj[1] ;
33153
33154 if (!args) SWIG_fail;
33155 swig_obj[0] = args;
33156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33157 if (!SWIG_IsOK(res1)) {
33158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33159 }
33160 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33161 {
33162 PyThreadState* __tstate = wxPyBeginAllowThreads();
33163 result = ((wxTreeEvent const *)arg1)->GetPoint();
33164 wxPyEndAllowThreads(__tstate);
33165 if (PyErr_Occurred()) SWIG_fail;
33166 }
33167 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33168 return resultobj;
33169 fail:
33170 return NULL;
33171 }
33172
33173
33174 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33175 PyObject *resultobj = 0;
33176 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33177 wxPoint *arg2 = 0 ;
33178 void *argp1 = 0 ;
33179 int res1 = 0 ;
33180 wxPoint temp2 ;
33181 PyObject * obj0 = 0 ;
33182 PyObject * obj1 = 0 ;
33183 char * kwnames[] = {
33184 (char *) "self",(char *) "pt", NULL
33185 };
33186
33187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33189 if (!SWIG_IsOK(res1)) {
33190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33191 }
33192 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33193 {
33194 arg2 = &temp2;
33195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33196 }
33197 {
33198 PyThreadState* __tstate = wxPyBeginAllowThreads();
33199 (arg1)->SetPoint((wxPoint const &)*arg2);
33200 wxPyEndAllowThreads(__tstate);
33201 if (PyErr_Occurred()) SWIG_fail;
33202 }
33203 resultobj = SWIG_Py_Void();
33204 return resultobj;
33205 fail:
33206 return NULL;
33207 }
33208
33209
33210 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33211 PyObject *resultobj = 0;
33212 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33213 wxKeyEvent *result = 0 ;
33214 void *argp1 = 0 ;
33215 int res1 = 0 ;
33216 PyObject *swig_obj[1] ;
33217
33218 if (!args) SWIG_fail;
33219 swig_obj[0] = args;
33220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33221 if (!SWIG_IsOK(res1)) {
33222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33223 }
33224 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33225 {
33226 PyThreadState* __tstate = wxPyBeginAllowThreads();
33227 {
33228 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33229 result = (wxKeyEvent *) &_result_ref;
33230 }
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33235 return resultobj;
33236 fail:
33237 return NULL;
33238 }
33239
33240
33241 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33242 PyObject *resultobj = 0;
33243 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33244 int result;
33245 void *argp1 = 0 ;
33246 int res1 = 0 ;
33247 PyObject *swig_obj[1] ;
33248
33249 if (!args) SWIG_fail;
33250 swig_obj[0] = args;
33251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33252 if (!SWIG_IsOK(res1)) {
33253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33254 }
33255 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33256 {
33257 PyThreadState* __tstate = wxPyBeginAllowThreads();
33258 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33259 wxPyEndAllowThreads(__tstate);
33260 if (PyErr_Occurred()) SWIG_fail;
33261 }
33262 resultobj = SWIG_From_int(static_cast< int >(result));
33263 return resultobj;
33264 fail:
33265 return NULL;
33266 }
33267
33268
33269 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33270 PyObject *resultobj = 0;
33271 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33272 wxKeyEvent *arg2 = 0 ;
33273 void *argp1 = 0 ;
33274 int res1 = 0 ;
33275 void *argp2 = 0 ;
33276 int res2 = 0 ;
33277 PyObject * obj0 = 0 ;
33278 PyObject * obj1 = 0 ;
33279 char * kwnames[] = {
33280 (char *) "self",(char *) "evt", NULL
33281 };
33282
33283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33285 if (!SWIG_IsOK(res1)) {
33286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33287 }
33288 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33290 if (!SWIG_IsOK(res2)) {
33291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33292 }
33293 if (!argp2) {
33294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33295 }
33296 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33297 {
33298 PyThreadState* __tstate = wxPyBeginAllowThreads();
33299 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33300 wxPyEndAllowThreads(__tstate);
33301 if (PyErr_Occurred()) SWIG_fail;
33302 }
33303 resultobj = SWIG_Py_Void();
33304 return resultobj;
33305 fail:
33306 return NULL;
33307 }
33308
33309
33310 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33311 PyObject *resultobj = 0;
33312 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33313 wxString *result = 0 ;
33314 void *argp1 = 0 ;
33315 int res1 = 0 ;
33316 PyObject *swig_obj[1] ;
33317
33318 if (!args) SWIG_fail;
33319 swig_obj[0] = args;
33320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33321 if (!SWIG_IsOK(res1)) {
33322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33323 }
33324 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33325 {
33326 PyThreadState* __tstate = wxPyBeginAllowThreads();
33327 {
33328 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33329 result = (wxString *) &_result_ref;
33330 }
33331 wxPyEndAllowThreads(__tstate);
33332 if (PyErr_Occurred()) SWIG_fail;
33333 }
33334 {
33335 #if wxUSE_UNICODE
33336 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33337 #else
33338 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33339 #endif
33340 }
33341 return resultobj;
33342 fail:
33343 return NULL;
33344 }
33345
33346
33347 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33348 PyObject *resultobj = 0;
33349 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33350 wxString *arg2 = 0 ;
33351 void *argp1 = 0 ;
33352 int res1 = 0 ;
33353 bool temp2 = false ;
33354 PyObject * obj0 = 0 ;
33355 PyObject * obj1 = 0 ;
33356 char * kwnames[] = {
33357 (char *) "self",(char *) "label", NULL
33358 };
33359
33360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33362 if (!SWIG_IsOK(res1)) {
33363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33364 }
33365 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33366 {
33367 arg2 = wxString_in_helper(obj1);
33368 if (arg2 == NULL) SWIG_fail;
33369 temp2 = true;
33370 }
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
33373 (arg1)->SetLabel((wxString const &)*arg2);
33374 wxPyEndAllowThreads(__tstate);
33375 if (PyErr_Occurred()) SWIG_fail;
33376 }
33377 resultobj = SWIG_Py_Void();
33378 {
33379 if (temp2)
33380 delete arg2;
33381 }
33382 return resultobj;
33383 fail:
33384 {
33385 if (temp2)
33386 delete arg2;
33387 }
33388 return NULL;
33389 }
33390
33391
33392 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33393 PyObject *resultobj = 0;
33394 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33395 bool result;
33396 void *argp1 = 0 ;
33397 int res1 = 0 ;
33398 PyObject *swig_obj[1] ;
33399
33400 if (!args) SWIG_fail;
33401 swig_obj[0] = args;
33402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33403 if (!SWIG_IsOK(res1)) {
33404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33405 }
33406 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33407 {
33408 PyThreadState* __tstate = wxPyBeginAllowThreads();
33409 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33410 wxPyEndAllowThreads(__tstate);
33411 if (PyErr_Occurred()) SWIG_fail;
33412 }
33413 {
33414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33415 }
33416 return resultobj;
33417 fail:
33418 return NULL;
33419 }
33420
33421
33422 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33423 PyObject *resultobj = 0;
33424 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33425 bool arg2 ;
33426 void *argp1 = 0 ;
33427 int res1 = 0 ;
33428 bool val2 ;
33429 int ecode2 = 0 ;
33430 PyObject * obj0 = 0 ;
33431 PyObject * obj1 = 0 ;
33432 char * kwnames[] = {
33433 (char *) "self",(char *) "editCancelled", NULL
33434 };
33435
33436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33438 if (!SWIG_IsOK(res1)) {
33439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33440 }
33441 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33442 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33443 if (!SWIG_IsOK(ecode2)) {
33444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33445 }
33446 arg2 = static_cast< bool >(val2);
33447 {
33448 PyThreadState* __tstate = wxPyBeginAllowThreads();
33449 (arg1)->SetEditCanceled(arg2);
33450 wxPyEndAllowThreads(__tstate);
33451 if (PyErr_Occurred()) SWIG_fail;
33452 }
33453 resultobj = SWIG_Py_Void();
33454 return resultobj;
33455 fail:
33456 return NULL;
33457 }
33458
33459
33460 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33461 PyObject *resultobj = 0;
33462 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33463 wxString *arg2 = 0 ;
33464 void *argp1 = 0 ;
33465 int res1 = 0 ;
33466 bool temp2 = false ;
33467 PyObject * obj0 = 0 ;
33468 PyObject * obj1 = 0 ;
33469 char * kwnames[] = {
33470 (char *) "self",(char *) "toolTip", NULL
33471 };
33472
33473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33475 if (!SWIG_IsOK(res1)) {
33476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33477 }
33478 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33479 {
33480 arg2 = wxString_in_helper(obj1);
33481 if (arg2 == NULL) SWIG_fail;
33482 temp2 = true;
33483 }
33484 {
33485 PyThreadState* __tstate = wxPyBeginAllowThreads();
33486 (arg1)->SetToolTip((wxString const &)*arg2);
33487 wxPyEndAllowThreads(__tstate);
33488 if (PyErr_Occurred()) SWIG_fail;
33489 }
33490 resultobj = SWIG_Py_Void();
33491 {
33492 if (temp2)
33493 delete arg2;
33494 }
33495 return resultobj;
33496 fail:
33497 {
33498 if (temp2)
33499 delete arg2;
33500 }
33501 return NULL;
33502 }
33503
33504
33505 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33506 PyObject *resultobj = 0;
33507 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33508 wxString result;
33509 void *argp1 = 0 ;
33510 int res1 = 0 ;
33511 PyObject *swig_obj[1] ;
33512
33513 if (!args) SWIG_fail;
33514 swig_obj[0] = args;
33515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33516 if (!SWIG_IsOK(res1)) {
33517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33518 }
33519 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33520 {
33521 PyThreadState* __tstate = wxPyBeginAllowThreads();
33522 result = (arg1)->GetToolTip();
33523 wxPyEndAllowThreads(__tstate);
33524 if (PyErr_Occurred()) SWIG_fail;
33525 }
33526 {
33527 #if wxUSE_UNICODE
33528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33529 #else
33530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33531 #endif
33532 }
33533 return resultobj;
33534 fail:
33535 return NULL;
33536 }
33537
33538
33539 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33540 PyObject *obj;
33541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33542 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33543 return SWIG_Py_Void();
33544 }
33545
33546 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33547 return SWIG_Python_InitShadowInstance(args);
33548 }
33549
33550 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33551 PyObject *resultobj = 0;
33552 wxWindow *arg1 = (wxWindow *) 0 ;
33553 int arg2 = (int) -1 ;
33554 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33555 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33556 wxSize const &arg4_defvalue = wxDefaultSize ;
33557 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33558 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33559 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33560 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33561 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33562 wxString *arg7 = (wxString *) &arg7_defvalue ;
33563 wxPyTreeCtrl *result = 0 ;
33564 void *argp1 = 0 ;
33565 int res1 = 0 ;
33566 int val2 ;
33567 int ecode2 = 0 ;
33568 wxPoint temp3 ;
33569 wxSize temp4 ;
33570 long val5 ;
33571 int ecode5 = 0 ;
33572 void *argp6 = 0 ;
33573 int res6 = 0 ;
33574 bool temp7 = false ;
33575 PyObject * obj0 = 0 ;
33576 PyObject * obj1 = 0 ;
33577 PyObject * obj2 = 0 ;
33578 PyObject * obj3 = 0 ;
33579 PyObject * obj4 = 0 ;
33580 PyObject * obj5 = 0 ;
33581 PyObject * obj6 = 0 ;
33582 char * kwnames[] = {
33583 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33584 };
33585
33586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33588 if (!SWIG_IsOK(res1)) {
33589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33590 }
33591 arg1 = reinterpret_cast< wxWindow * >(argp1);
33592 if (obj1) {
33593 ecode2 = SWIG_AsVal_int(obj1, &val2);
33594 if (!SWIG_IsOK(ecode2)) {
33595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33596 }
33597 arg2 = static_cast< int >(val2);
33598 }
33599 if (obj2) {
33600 {
33601 arg3 = &temp3;
33602 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33603 }
33604 }
33605 if (obj3) {
33606 {
33607 arg4 = &temp4;
33608 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33609 }
33610 }
33611 if (obj4) {
33612 ecode5 = SWIG_AsVal_long(obj4, &val5);
33613 if (!SWIG_IsOK(ecode5)) {
33614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33615 }
33616 arg5 = static_cast< long >(val5);
33617 }
33618 if (obj5) {
33619 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33620 if (!SWIG_IsOK(res6)) {
33621 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33622 }
33623 if (!argp6) {
33624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33625 }
33626 arg6 = reinterpret_cast< wxValidator * >(argp6);
33627 }
33628 if (obj6) {
33629 {
33630 arg7 = wxString_in_helper(obj6);
33631 if (arg7 == NULL) SWIG_fail;
33632 temp7 = true;
33633 }
33634 }
33635 {
33636 if (!wxPyCheckForApp()) SWIG_fail;
33637 PyThreadState* __tstate = wxPyBeginAllowThreads();
33638 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33639 wxPyEndAllowThreads(__tstate);
33640 if (PyErr_Occurred()) SWIG_fail;
33641 }
33642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33643 {
33644 if (temp7)
33645 delete arg7;
33646 }
33647 return resultobj;
33648 fail:
33649 {
33650 if (temp7)
33651 delete arg7;
33652 }
33653 return NULL;
33654 }
33655
33656
33657 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33658 PyObject *resultobj = 0;
33659 wxPyTreeCtrl *result = 0 ;
33660
33661 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33662 {
33663 if (!wxPyCheckForApp()) SWIG_fail;
33664 PyThreadState* __tstate = wxPyBeginAllowThreads();
33665 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33666 wxPyEndAllowThreads(__tstate);
33667 if (PyErr_Occurred()) SWIG_fail;
33668 }
33669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33670 return resultobj;
33671 fail:
33672 return NULL;
33673 }
33674
33675
33676 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33677 PyObject *resultobj = 0;
33678 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33679 wxWindow *arg2 = (wxWindow *) 0 ;
33680 int arg3 = (int) -1 ;
33681 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33682 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33683 wxSize const &arg5_defvalue = wxDefaultSize ;
33684 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33685 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33686 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33687 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33688 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33689 wxString *arg8 = (wxString *) &arg8_defvalue ;
33690 bool result;
33691 void *argp1 = 0 ;
33692 int res1 = 0 ;
33693 void *argp2 = 0 ;
33694 int res2 = 0 ;
33695 int val3 ;
33696 int ecode3 = 0 ;
33697 wxPoint temp4 ;
33698 wxSize temp5 ;
33699 long val6 ;
33700 int ecode6 = 0 ;
33701 void *argp7 = 0 ;
33702 int res7 = 0 ;
33703 bool temp8 = false ;
33704 PyObject * obj0 = 0 ;
33705 PyObject * obj1 = 0 ;
33706 PyObject * obj2 = 0 ;
33707 PyObject * obj3 = 0 ;
33708 PyObject * obj4 = 0 ;
33709 PyObject * obj5 = 0 ;
33710 PyObject * obj6 = 0 ;
33711 PyObject * obj7 = 0 ;
33712 char * kwnames[] = {
33713 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33714 };
33715
33716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33718 if (!SWIG_IsOK(res1)) {
33719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33720 }
33721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33723 if (!SWIG_IsOK(res2)) {
33724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33725 }
33726 arg2 = reinterpret_cast< wxWindow * >(argp2);
33727 if (obj2) {
33728 ecode3 = SWIG_AsVal_int(obj2, &val3);
33729 if (!SWIG_IsOK(ecode3)) {
33730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33731 }
33732 arg3 = static_cast< int >(val3);
33733 }
33734 if (obj3) {
33735 {
33736 arg4 = &temp4;
33737 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33738 }
33739 }
33740 if (obj4) {
33741 {
33742 arg5 = &temp5;
33743 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33744 }
33745 }
33746 if (obj5) {
33747 ecode6 = SWIG_AsVal_long(obj5, &val6);
33748 if (!SWIG_IsOK(ecode6)) {
33749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33750 }
33751 arg6 = static_cast< long >(val6);
33752 }
33753 if (obj6) {
33754 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33755 if (!SWIG_IsOK(res7)) {
33756 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33757 }
33758 if (!argp7) {
33759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33760 }
33761 arg7 = reinterpret_cast< wxValidator * >(argp7);
33762 }
33763 if (obj7) {
33764 {
33765 arg8 = wxString_in_helper(obj7);
33766 if (arg8 == NULL) SWIG_fail;
33767 temp8 = true;
33768 }
33769 }
33770 {
33771 PyThreadState* __tstate = wxPyBeginAllowThreads();
33772 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33773 wxPyEndAllowThreads(__tstate);
33774 if (PyErr_Occurred()) SWIG_fail;
33775 }
33776 {
33777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33778 }
33779 {
33780 if (temp8)
33781 delete arg8;
33782 }
33783 return resultobj;
33784 fail:
33785 {
33786 if (temp8)
33787 delete arg8;
33788 }
33789 return NULL;
33790 }
33791
33792
33793 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33794 PyObject *resultobj = 0;
33795 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33796 PyObject *arg2 = (PyObject *) 0 ;
33797 PyObject *arg3 = (PyObject *) 0 ;
33798 void *argp1 = 0 ;
33799 int res1 = 0 ;
33800 PyObject * obj0 = 0 ;
33801 PyObject * obj1 = 0 ;
33802 PyObject * obj2 = 0 ;
33803 char * kwnames[] = {
33804 (char *) "self",(char *) "self",(char *) "_class", NULL
33805 };
33806
33807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33809 if (!SWIG_IsOK(res1)) {
33810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33811 }
33812 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33813 arg2 = obj1;
33814 arg3 = obj2;
33815 {
33816 PyThreadState* __tstate = wxPyBeginAllowThreads();
33817 (arg1)->_setCallbackInfo(arg2,arg3);
33818 wxPyEndAllowThreads(__tstate);
33819 if (PyErr_Occurred()) SWIG_fail;
33820 }
33821 resultobj = SWIG_Py_Void();
33822 return resultobj;
33823 fail:
33824 return NULL;
33825 }
33826
33827
33828 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33829 PyObject *resultobj = 0;
33830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33831 unsigned int result;
33832 void *argp1 = 0 ;
33833 int res1 = 0 ;
33834 PyObject *swig_obj[1] ;
33835
33836 if (!args) SWIG_fail;
33837 swig_obj[0] = args;
33838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33839 if (!SWIG_IsOK(res1)) {
33840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33841 }
33842 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33843 {
33844 PyThreadState* __tstate = wxPyBeginAllowThreads();
33845 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33846 wxPyEndAllowThreads(__tstate);
33847 if (PyErr_Occurred()) SWIG_fail;
33848 }
33849 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33850 return resultobj;
33851 fail:
33852 return NULL;
33853 }
33854
33855
33856 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33857 PyObject *resultobj = 0;
33858 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33859 unsigned int result;
33860 void *argp1 = 0 ;
33861 int res1 = 0 ;
33862 PyObject *swig_obj[1] ;
33863
33864 if (!args) SWIG_fail;
33865 swig_obj[0] = args;
33866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33867 if (!SWIG_IsOK(res1)) {
33868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33869 }
33870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33871 {
33872 PyThreadState* __tstate = wxPyBeginAllowThreads();
33873 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33874 wxPyEndAllowThreads(__tstate);
33875 if (PyErr_Occurred()) SWIG_fail;
33876 }
33877 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33878 return resultobj;
33879 fail:
33880 return NULL;
33881 }
33882
33883
33884 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33885 PyObject *resultobj = 0;
33886 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33887 unsigned int arg2 ;
33888 void *argp1 = 0 ;
33889 int res1 = 0 ;
33890 unsigned int val2 ;
33891 int ecode2 = 0 ;
33892 PyObject * obj0 = 0 ;
33893 PyObject * obj1 = 0 ;
33894 char * kwnames[] = {
33895 (char *) "self",(char *) "indent", NULL
33896 };
33897
33898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33900 if (!SWIG_IsOK(res1)) {
33901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33902 }
33903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33904 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33905 if (!SWIG_IsOK(ecode2)) {
33906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33907 }
33908 arg2 = static_cast< unsigned int >(val2);
33909 {
33910 PyThreadState* __tstate = wxPyBeginAllowThreads();
33911 (arg1)->SetIndent(arg2);
33912 wxPyEndAllowThreads(__tstate);
33913 if (PyErr_Occurred()) SWIG_fail;
33914 }
33915 resultobj = SWIG_Py_Void();
33916 return resultobj;
33917 fail:
33918 return NULL;
33919 }
33920
33921
33922 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33923 PyObject *resultobj = 0;
33924 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33925 unsigned int result;
33926 void *argp1 = 0 ;
33927 int res1 = 0 ;
33928 PyObject *swig_obj[1] ;
33929
33930 if (!args) SWIG_fail;
33931 swig_obj[0] = args;
33932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33933 if (!SWIG_IsOK(res1)) {
33934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33935 }
33936 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33937 {
33938 PyThreadState* __tstate = wxPyBeginAllowThreads();
33939 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33940 wxPyEndAllowThreads(__tstate);
33941 if (PyErr_Occurred()) SWIG_fail;
33942 }
33943 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33944 return resultobj;
33945 fail:
33946 return NULL;
33947 }
33948
33949
33950 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33951 PyObject *resultobj = 0;
33952 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33953 unsigned int arg2 ;
33954 void *argp1 = 0 ;
33955 int res1 = 0 ;
33956 unsigned int val2 ;
33957 int ecode2 = 0 ;
33958 PyObject * obj0 = 0 ;
33959 PyObject * obj1 = 0 ;
33960 char * kwnames[] = {
33961 (char *) "self",(char *) "spacing", NULL
33962 };
33963
33964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33966 if (!SWIG_IsOK(res1)) {
33967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33968 }
33969 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33970 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33971 if (!SWIG_IsOK(ecode2)) {
33972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33973 }
33974 arg2 = static_cast< unsigned int >(val2);
33975 {
33976 PyThreadState* __tstate = wxPyBeginAllowThreads();
33977 (arg1)->SetSpacing(arg2);
33978 wxPyEndAllowThreads(__tstate);
33979 if (PyErr_Occurred()) SWIG_fail;
33980 }
33981 resultobj = SWIG_Py_Void();
33982 return resultobj;
33983 fail:
33984 return NULL;
33985 }
33986
33987
33988 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33989 PyObject *resultobj = 0;
33990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33991 wxImageList *result = 0 ;
33992 void *argp1 = 0 ;
33993 int res1 = 0 ;
33994 PyObject *swig_obj[1] ;
33995
33996 if (!args) SWIG_fail;
33997 swig_obj[0] = args;
33998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33999 if (!SWIG_IsOK(res1)) {
34000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34001 }
34002 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34003 {
34004 PyThreadState* __tstate = wxPyBeginAllowThreads();
34005 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34006 wxPyEndAllowThreads(__tstate);
34007 if (PyErr_Occurred()) SWIG_fail;
34008 }
34009 {
34010 resultobj = wxPyMake_wxObject(result, (bool)0);
34011 }
34012 return resultobj;
34013 fail:
34014 return NULL;
34015 }
34016
34017
34018 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34019 PyObject *resultobj = 0;
34020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34021 wxImageList *result = 0 ;
34022 void *argp1 = 0 ;
34023 int res1 = 0 ;
34024 PyObject *swig_obj[1] ;
34025
34026 if (!args) SWIG_fail;
34027 swig_obj[0] = args;
34028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34029 if (!SWIG_IsOK(res1)) {
34030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34031 }
34032 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34033 {
34034 PyThreadState* __tstate = wxPyBeginAllowThreads();
34035 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34036 wxPyEndAllowThreads(__tstate);
34037 if (PyErr_Occurred()) SWIG_fail;
34038 }
34039 {
34040 resultobj = wxPyMake_wxObject(result, (bool)0);
34041 }
34042 return resultobj;
34043 fail:
34044 return NULL;
34045 }
34046
34047
34048 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34049 PyObject *resultobj = 0;
34050 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34051 wxImageList *arg2 = (wxImageList *) 0 ;
34052 void *argp1 = 0 ;
34053 int res1 = 0 ;
34054 void *argp2 = 0 ;
34055 int res2 = 0 ;
34056 PyObject * obj0 = 0 ;
34057 PyObject * obj1 = 0 ;
34058 char * kwnames[] = {
34059 (char *) "self",(char *) "imageList", NULL
34060 };
34061
34062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34064 if (!SWIG_IsOK(res1)) {
34065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34066 }
34067 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34068 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34069 if (!SWIG_IsOK(res2)) {
34070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34071 }
34072 arg2 = reinterpret_cast< wxImageList * >(argp2);
34073 {
34074 PyThreadState* __tstate = wxPyBeginAllowThreads();
34075 (arg1)->SetImageList(arg2);
34076 wxPyEndAllowThreads(__tstate);
34077 if (PyErr_Occurred()) SWIG_fail;
34078 }
34079 resultobj = SWIG_Py_Void();
34080 return resultobj;
34081 fail:
34082 return NULL;
34083 }
34084
34085
34086 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34087 PyObject *resultobj = 0;
34088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34089 wxImageList *arg2 = (wxImageList *) 0 ;
34090 void *argp1 = 0 ;
34091 int res1 = 0 ;
34092 void *argp2 = 0 ;
34093 int res2 = 0 ;
34094 PyObject * obj0 = 0 ;
34095 PyObject * obj1 = 0 ;
34096 char * kwnames[] = {
34097 (char *) "self",(char *) "imageList", NULL
34098 };
34099
34100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34102 if (!SWIG_IsOK(res1)) {
34103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34104 }
34105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34106 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34107 if (!SWIG_IsOK(res2)) {
34108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34109 }
34110 arg2 = reinterpret_cast< wxImageList * >(argp2);
34111 {
34112 PyThreadState* __tstate = wxPyBeginAllowThreads();
34113 (arg1)->SetStateImageList(arg2);
34114 wxPyEndAllowThreads(__tstate);
34115 if (PyErr_Occurred()) SWIG_fail;
34116 }
34117 resultobj = SWIG_Py_Void();
34118 return resultobj;
34119 fail:
34120 return NULL;
34121 }
34122
34123
34124 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34125 PyObject *resultobj = 0;
34126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34127 wxImageList *arg2 = (wxImageList *) 0 ;
34128 void *argp1 = 0 ;
34129 int res1 = 0 ;
34130 int res2 = 0 ;
34131 PyObject * obj0 = 0 ;
34132 PyObject * obj1 = 0 ;
34133 char * kwnames[] = {
34134 (char *) "self",(char *) "imageList", NULL
34135 };
34136
34137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34139 if (!SWIG_IsOK(res1)) {
34140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34141 }
34142 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34143 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34144 if (!SWIG_IsOK(res2)) {
34145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34146 }
34147 {
34148 PyThreadState* __tstate = wxPyBeginAllowThreads();
34149 (arg1)->AssignImageList(arg2);
34150 wxPyEndAllowThreads(__tstate);
34151 if (PyErr_Occurred()) SWIG_fail;
34152 }
34153 resultobj = SWIG_Py_Void();
34154 return resultobj;
34155 fail:
34156 return NULL;
34157 }
34158
34159
34160 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34161 PyObject *resultobj = 0;
34162 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34163 wxImageList *arg2 = (wxImageList *) 0 ;
34164 void *argp1 = 0 ;
34165 int res1 = 0 ;
34166 int res2 = 0 ;
34167 PyObject * obj0 = 0 ;
34168 PyObject * obj1 = 0 ;
34169 char * kwnames[] = {
34170 (char *) "self",(char *) "imageList", NULL
34171 };
34172
34173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34175 if (!SWIG_IsOK(res1)) {
34176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34177 }
34178 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34179 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34180 if (!SWIG_IsOK(res2)) {
34181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34182 }
34183 {
34184 PyThreadState* __tstate = wxPyBeginAllowThreads();
34185 (arg1)->AssignStateImageList(arg2);
34186 wxPyEndAllowThreads(__tstate);
34187 if (PyErr_Occurred()) SWIG_fail;
34188 }
34189 resultobj = SWIG_Py_Void();
34190 return resultobj;
34191 fail:
34192 return NULL;
34193 }
34194
34195
34196 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34197 PyObject *resultobj = 0;
34198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34199 wxTreeItemId *arg2 = 0 ;
34200 wxString result;
34201 void *argp1 = 0 ;
34202 int res1 = 0 ;
34203 void *argp2 = 0 ;
34204 int res2 = 0 ;
34205 PyObject * obj0 = 0 ;
34206 PyObject * obj1 = 0 ;
34207 char * kwnames[] = {
34208 (char *) "self",(char *) "item", NULL
34209 };
34210
34211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34213 if (!SWIG_IsOK(res1)) {
34214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34215 }
34216 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34218 if (!SWIG_IsOK(res2)) {
34219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34220 }
34221 if (!argp2) {
34222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34223 }
34224 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34225 {
34226 PyThreadState* __tstate = wxPyBeginAllowThreads();
34227 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34228 wxPyEndAllowThreads(__tstate);
34229 if (PyErr_Occurred()) SWIG_fail;
34230 }
34231 {
34232 #if wxUSE_UNICODE
34233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34234 #else
34235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34236 #endif
34237 }
34238 return resultobj;
34239 fail:
34240 return NULL;
34241 }
34242
34243
34244 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34245 PyObject *resultobj = 0;
34246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34247 wxTreeItemId *arg2 = 0 ;
34248 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34249 int result;
34250 void *argp1 = 0 ;
34251 int res1 = 0 ;
34252 void *argp2 = 0 ;
34253 int res2 = 0 ;
34254 int val3 ;
34255 int ecode3 = 0 ;
34256 PyObject * obj0 = 0 ;
34257 PyObject * obj1 = 0 ;
34258 PyObject * obj2 = 0 ;
34259 char * kwnames[] = {
34260 (char *) "self",(char *) "item",(char *) "which", NULL
34261 };
34262
34263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34265 if (!SWIG_IsOK(res1)) {
34266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34267 }
34268 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34270 if (!SWIG_IsOK(res2)) {
34271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34272 }
34273 if (!argp2) {
34274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34275 }
34276 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34277 if (obj2) {
34278 ecode3 = SWIG_AsVal_int(obj2, &val3);
34279 if (!SWIG_IsOK(ecode3)) {
34280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34281 }
34282 arg3 = static_cast< wxTreeItemIcon >(val3);
34283 }
34284 {
34285 PyThreadState* __tstate = wxPyBeginAllowThreads();
34286 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34287 wxPyEndAllowThreads(__tstate);
34288 if (PyErr_Occurred()) SWIG_fail;
34289 }
34290 resultobj = SWIG_From_int(static_cast< int >(result));
34291 return resultobj;
34292 fail:
34293 return NULL;
34294 }
34295
34296
34297 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34298 PyObject *resultobj = 0;
34299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34300 wxTreeItemId *arg2 = 0 ;
34301 wxPyTreeItemData *result = 0 ;
34302 void *argp1 = 0 ;
34303 int res1 = 0 ;
34304 void *argp2 = 0 ;
34305 int res2 = 0 ;
34306 PyObject * obj0 = 0 ;
34307 PyObject * obj1 = 0 ;
34308 char * kwnames[] = {
34309 (char *) "self",(char *) "item", NULL
34310 };
34311
34312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34316 }
34317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34319 if (!SWIG_IsOK(res2)) {
34320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34321 }
34322 if (!argp2) {
34323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34324 }
34325 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34326 {
34327 PyThreadState* __tstate = wxPyBeginAllowThreads();
34328 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34329 wxPyEndAllowThreads(__tstate);
34330 if (PyErr_Occurred()) SWIG_fail;
34331 }
34332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34333 return resultobj;
34334 fail:
34335 return NULL;
34336 }
34337
34338
34339 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34340 PyObject *resultobj = 0;
34341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34342 wxTreeItemId *arg2 = 0 ;
34343 PyObject *result = 0 ;
34344 void *argp1 = 0 ;
34345 int res1 = 0 ;
34346 void *argp2 = 0 ;
34347 int res2 = 0 ;
34348 PyObject * obj0 = 0 ;
34349 PyObject * obj1 = 0 ;
34350 char * kwnames[] = {
34351 (char *) "self",(char *) "item", NULL
34352 };
34353
34354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34356 if (!SWIG_IsOK(res1)) {
34357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34358 }
34359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34361 if (!SWIG_IsOK(res2)) {
34362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34363 }
34364 if (!argp2) {
34365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34366 }
34367 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34371 wxPyEndAllowThreads(__tstate);
34372 if (PyErr_Occurred()) SWIG_fail;
34373 }
34374 resultobj = result;
34375 return resultobj;
34376 fail:
34377 return NULL;
34378 }
34379
34380
34381 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34382 PyObject *resultobj = 0;
34383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34384 wxTreeItemId *arg2 = 0 ;
34385 wxColour result;
34386 void *argp1 = 0 ;
34387 int res1 = 0 ;
34388 void *argp2 = 0 ;
34389 int res2 = 0 ;
34390 PyObject * obj0 = 0 ;
34391 PyObject * obj1 = 0 ;
34392 char * kwnames[] = {
34393 (char *) "self",(char *) "item", NULL
34394 };
34395
34396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34398 if (!SWIG_IsOK(res1)) {
34399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34400 }
34401 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34403 if (!SWIG_IsOK(res2)) {
34404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34405 }
34406 if (!argp2) {
34407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34408 }
34409 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34417 return resultobj;
34418 fail:
34419 return NULL;
34420 }
34421
34422
34423 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34424 PyObject *resultobj = 0;
34425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34426 wxTreeItemId *arg2 = 0 ;
34427 wxColour result;
34428 void *argp1 = 0 ;
34429 int res1 = 0 ;
34430 void *argp2 = 0 ;
34431 int res2 = 0 ;
34432 PyObject * obj0 = 0 ;
34433 PyObject * obj1 = 0 ;
34434 char * kwnames[] = {
34435 (char *) "self",(char *) "item", NULL
34436 };
34437
34438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34440 if (!SWIG_IsOK(res1)) {
34441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34442 }
34443 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34445 if (!SWIG_IsOK(res2)) {
34446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34447 }
34448 if (!argp2) {
34449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34450 }
34451 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34452 {
34453 PyThreadState* __tstate = wxPyBeginAllowThreads();
34454 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34455 wxPyEndAllowThreads(__tstate);
34456 if (PyErr_Occurred()) SWIG_fail;
34457 }
34458 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34459 return resultobj;
34460 fail:
34461 return NULL;
34462 }
34463
34464
34465 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34466 PyObject *resultobj = 0;
34467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34468 wxTreeItemId *arg2 = 0 ;
34469 wxFont result;
34470 void *argp1 = 0 ;
34471 int res1 = 0 ;
34472 void *argp2 = 0 ;
34473 int res2 = 0 ;
34474 PyObject * obj0 = 0 ;
34475 PyObject * obj1 = 0 ;
34476 char * kwnames[] = {
34477 (char *) "self",(char *) "item", NULL
34478 };
34479
34480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34482 if (!SWIG_IsOK(res1)) {
34483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34484 }
34485 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34486 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34487 if (!SWIG_IsOK(res2)) {
34488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34489 }
34490 if (!argp2) {
34491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34492 }
34493 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34494 {
34495 PyThreadState* __tstate = wxPyBeginAllowThreads();
34496 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34497 wxPyEndAllowThreads(__tstate);
34498 if (PyErr_Occurred()) SWIG_fail;
34499 }
34500 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34501 return resultobj;
34502 fail:
34503 return NULL;
34504 }
34505
34506
34507 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34508 PyObject *resultobj = 0;
34509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34510 wxTreeItemId *arg2 = 0 ;
34511 wxString *arg3 = 0 ;
34512 void *argp1 = 0 ;
34513 int res1 = 0 ;
34514 void *argp2 = 0 ;
34515 int res2 = 0 ;
34516 bool temp3 = false ;
34517 PyObject * obj0 = 0 ;
34518 PyObject * obj1 = 0 ;
34519 PyObject * obj2 = 0 ;
34520 char * kwnames[] = {
34521 (char *) "self",(char *) "item",(char *) "text", NULL
34522 };
34523
34524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34526 if (!SWIG_IsOK(res1)) {
34527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34528 }
34529 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34531 if (!SWIG_IsOK(res2)) {
34532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34533 }
34534 if (!argp2) {
34535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34536 }
34537 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34538 {
34539 arg3 = wxString_in_helper(obj2);
34540 if (arg3 == NULL) SWIG_fail;
34541 temp3 = true;
34542 }
34543 {
34544 PyThreadState* __tstate = wxPyBeginAllowThreads();
34545 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34546 wxPyEndAllowThreads(__tstate);
34547 if (PyErr_Occurred()) SWIG_fail;
34548 }
34549 resultobj = SWIG_Py_Void();
34550 {
34551 if (temp3)
34552 delete arg3;
34553 }
34554 return resultobj;
34555 fail:
34556 {
34557 if (temp3)
34558 delete arg3;
34559 }
34560 return NULL;
34561 }
34562
34563
34564 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34565 PyObject *resultobj = 0;
34566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34567 wxTreeItemId *arg2 = 0 ;
34568 int arg3 ;
34569 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34570 void *argp1 = 0 ;
34571 int res1 = 0 ;
34572 void *argp2 = 0 ;
34573 int res2 = 0 ;
34574 int val3 ;
34575 int ecode3 = 0 ;
34576 int val4 ;
34577 int ecode4 = 0 ;
34578 PyObject * obj0 = 0 ;
34579 PyObject * obj1 = 0 ;
34580 PyObject * obj2 = 0 ;
34581 PyObject * obj3 = 0 ;
34582 char * kwnames[] = {
34583 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34584 };
34585
34586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34588 if (!SWIG_IsOK(res1)) {
34589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34590 }
34591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34593 if (!SWIG_IsOK(res2)) {
34594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34595 }
34596 if (!argp2) {
34597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34598 }
34599 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34600 ecode3 = SWIG_AsVal_int(obj2, &val3);
34601 if (!SWIG_IsOK(ecode3)) {
34602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34603 }
34604 arg3 = static_cast< int >(val3);
34605 if (obj3) {
34606 ecode4 = SWIG_AsVal_int(obj3, &val4);
34607 if (!SWIG_IsOK(ecode4)) {
34608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34609 }
34610 arg4 = static_cast< wxTreeItemIcon >(val4);
34611 }
34612 {
34613 PyThreadState* __tstate = wxPyBeginAllowThreads();
34614 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34615 wxPyEndAllowThreads(__tstate);
34616 if (PyErr_Occurred()) SWIG_fail;
34617 }
34618 resultobj = SWIG_Py_Void();
34619 return resultobj;
34620 fail:
34621 return NULL;
34622 }
34623
34624
34625 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34626 PyObject *resultobj = 0;
34627 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34628 wxTreeItemId *arg2 = 0 ;
34629 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34630 void *argp1 = 0 ;
34631 int res1 = 0 ;
34632 void *argp2 = 0 ;
34633 int res2 = 0 ;
34634 int res3 = 0 ;
34635 PyObject * obj0 = 0 ;
34636 PyObject * obj1 = 0 ;
34637 PyObject * obj2 = 0 ;
34638 char * kwnames[] = {
34639 (char *) "self",(char *) "item",(char *) "data", NULL
34640 };
34641
34642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34644 if (!SWIG_IsOK(res1)) {
34645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34646 }
34647 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34649 if (!SWIG_IsOK(res2)) {
34650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34651 }
34652 if (!argp2) {
34653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34654 }
34655 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34656 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34657 if (!SWIG_IsOK(res3)) {
34658 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34659 }
34660 {
34661 PyThreadState* __tstate = wxPyBeginAllowThreads();
34662 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34663 wxPyEndAllowThreads(__tstate);
34664 if (PyErr_Occurred()) SWIG_fail;
34665 }
34666 resultobj = SWIG_Py_Void();
34667 return resultobj;
34668 fail:
34669 return NULL;
34670 }
34671
34672
34673 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34674 PyObject *resultobj = 0;
34675 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34676 wxTreeItemId *arg2 = 0 ;
34677 PyObject *arg3 = (PyObject *) 0 ;
34678 void *argp1 = 0 ;
34679 int res1 = 0 ;
34680 void *argp2 = 0 ;
34681 int res2 = 0 ;
34682 PyObject * obj0 = 0 ;
34683 PyObject * obj1 = 0 ;
34684 PyObject * obj2 = 0 ;
34685 char * kwnames[] = {
34686 (char *) "self",(char *) "item",(char *) "obj", NULL
34687 };
34688
34689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34691 if (!SWIG_IsOK(res1)) {
34692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34693 }
34694 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34695 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34696 if (!SWIG_IsOK(res2)) {
34697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34698 }
34699 if (!argp2) {
34700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34701 }
34702 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34703 arg3 = obj2;
34704 {
34705 PyThreadState* __tstate = wxPyBeginAllowThreads();
34706 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34707 wxPyEndAllowThreads(__tstate);
34708 if (PyErr_Occurred()) SWIG_fail;
34709 }
34710 resultobj = SWIG_Py_Void();
34711 return resultobj;
34712 fail:
34713 return NULL;
34714 }
34715
34716
34717 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj = 0;
34719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34720 wxTreeItemId *arg2 = 0 ;
34721 bool arg3 = (bool) true ;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 void *argp2 = 0 ;
34725 int res2 = 0 ;
34726 bool val3 ;
34727 int ecode3 = 0 ;
34728 PyObject * obj0 = 0 ;
34729 PyObject * obj1 = 0 ;
34730 PyObject * obj2 = 0 ;
34731 char * kwnames[] = {
34732 (char *) "self",(char *) "item",(char *) "has", NULL
34733 };
34734
34735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34737 if (!SWIG_IsOK(res1)) {
34738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34739 }
34740 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34742 if (!SWIG_IsOK(res2)) {
34743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34744 }
34745 if (!argp2) {
34746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34747 }
34748 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34749 if (obj2) {
34750 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34751 if (!SWIG_IsOK(ecode3)) {
34752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34753 }
34754 arg3 = static_cast< bool >(val3);
34755 }
34756 {
34757 PyThreadState* __tstate = wxPyBeginAllowThreads();
34758 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34759 wxPyEndAllowThreads(__tstate);
34760 if (PyErr_Occurred()) SWIG_fail;
34761 }
34762 resultobj = SWIG_Py_Void();
34763 return resultobj;
34764 fail:
34765 return NULL;
34766 }
34767
34768
34769 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34770 PyObject *resultobj = 0;
34771 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34772 wxTreeItemId *arg2 = 0 ;
34773 bool arg3 = (bool) true ;
34774 void *argp1 = 0 ;
34775 int res1 = 0 ;
34776 void *argp2 = 0 ;
34777 int res2 = 0 ;
34778 bool val3 ;
34779 int ecode3 = 0 ;
34780 PyObject * obj0 = 0 ;
34781 PyObject * obj1 = 0 ;
34782 PyObject * obj2 = 0 ;
34783 char * kwnames[] = {
34784 (char *) "self",(char *) "item",(char *) "bold", NULL
34785 };
34786
34787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34789 if (!SWIG_IsOK(res1)) {
34790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34791 }
34792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34794 if (!SWIG_IsOK(res2)) {
34795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34796 }
34797 if (!argp2) {
34798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34799 }
34800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34801 if (obj2) {
34802 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34803 if (!SWIG_IsOK(ecode3)) {
34804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34805 }
34806 arg3 = static_cast< bool >(val3);
34807 }
34808 {
34809 PyThreadState* __tstate = wxPyBeginAllowThreads();
34810 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34811 wxPyEndAllowThreads(__tstate);
34812 if (PyErr_Occurred()) SWIG_fail;
34813 }
34814 resultobj = SWIG_Py_Void();
34815 return resultobj;
34816 fail:
34817 return NULL;
34818 }
34819
34820
34821 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34822 PyObject *resultobj = 0;
34823 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34824 wxTreeItemId *arg2 = 0 ;
34825 bool arg3 = (bool) true ;
34826 void *argp1 = 0 ;
34827 int res1 = 0 ;
34828 void *argp2 = 0 ;
34829 int res2 = 0 ;
34830 bool val3 ;
34831 int ecode3 = 0 ;
34832 PyObject * obj0 = 0 ;
34833 PyObject * obj1 = 0 ;
34834 PyObject * obj2 = 0 ;
34835 char * kwnames[] = {
34836 (char *) "self",(char *) "item",(char *) "highlight", NULL
34837 };
34838
34839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34841 if (!SWIG_IsOK(res1)) {
34842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34843 }
34844 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34846 if (!SWIG_IsOK(res2)) {
34847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34848 }
34849 if (!argp2) {
34850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34851 }
34852 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34853 if (obj2) {
34854 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34855 if (!SWIG_IsOK(ecode3)) {
34856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34857 }
34858 arg3 = static_cast< bool >(val3);
34859 }
34860 {
34861 PyThreadState* __tstate = wxPyBeginAllowThreads();
34862 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34863 wxPyEndAllowThreads(__tstate);
34864 if (PyErr_Occurred()) SWIG_fail;
34865 }
34866 resultobj = SWIG_Py_Void();
34867 return resultobj;
34868 fail:
34869 return NULL;
34870 }
34871
34872
34873 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34874 PyObject *resultobj = 0;
34875 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34876 wxTreeItemId *arg2 = 0 ;
34877 wxColour *arg3 = 0 ;
34878 void *argp1 = 0 ;
34879 int res1 = 0 ;
34880 void *argp2 = 0 ;
34881 int res2 = 0 ;
34882 wxColour temp3 ;
34883 PyObject * obj0 = 0 ;
34884 PyObject * obj1 = 0 ;
34885 PyObject * obj2 = 0 ;
34886 char * kwnames[] = {
34887 (char *) "self",(char *) "item",(char *) "col", NULL
34888 };
34889
34890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34892 if (!SWIG_IsOK(res1)) {
34893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34894 }
34895 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34897 if (!SWIG_IsOK(res2)) {
34898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34899 }
34900 if (!argp2) {
34901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34902 }
34903 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34904 {
34905 arg3 = &temp3;
34906 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34907 }
34908 {
34909 PyThreadState* __tstate = wxPyBeginAllowThreads();
34910 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34911 wxPyEndAllowThreads(__tstate);
34912 if (PyErr_Occurred()) SWIG_fail;
34913 }
34914 resultobj = SWIG_Py_Void();
34915 return resultobj;
34916 fail:
34917 return NULL;
34918 }
34919
34920
34921 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34922 PyObject *resultobj = 0;
34923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34924 wxTreeItemId *arg2 = 0 ;
34925 wxColour *arg3 = 0 ;
34926 void *argp1 = 0 ;
34927 int res1 = 0 ;
34928 void *argp2 = 0 ;
34929 int res2 = 0 ;
34930 wxColour temp3 ;
34931 PyObject * obj0 = 0 ;
34932 PyObject * obj1 = 0 ;
34933 PyObject * obj2 = 0 ;
34934 char * kwnames[] = {
34935 (char *) "self",(char *) "item",(char *) "col", NULL
34936 };
34937
34938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34940 if (!SWIG_IsOK(res1)) {
34941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34942 }
34943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34945 if (!SWIG_IsOK(res2)) {
34946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34947 }
34948 if (!argp2) {
34949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34950 }
34951 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34952 {
34953 arg3 = &temp3;
34954 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34955 }
34956 {
34957 PyThreadState* __tstate = wxPyBeginAllowThreads();
34958 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34959 wxPyEndAllowThreads(__tstate);
34960 if (PyErr_Occurred()) SWIG_fail;
34961 }
34962 resultobj = SWIG_Py_Void();
34963 return resultobj;
34964 fail:
34965 return NULL;
34966 }
34967
34968
34969 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34970 PyObject *resultobj = 0;
34971 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34972 wxTreeItemId *arg2 = 0 ;
34973 wxFont *arg3 = 0 ;
34974 void *argp1 = 0 ;
34975 int res1 = 0 ;
34976 void *argp2 = 0 ;
34977 int res2 = 0 ;
34978 void *argp3 = 0 ;
34979 int res3 = 0 ;
34980 PyObject * obj0 = 0 ;
34981 PyObject * obj1 = 0 ;
34982 PyObject * obj2 = 0 ;
34983 char * kwnames[] = {
34984 (char *) "self",(char *) "item",(char *) "font", NULL
34985 };
34986
34987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34989 if (!SWIG_IsOK(res1)) {
34990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34991 }
34992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34994 if (!SWIG_IsOK(res2)) {
34995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34996 }
34997 if (!argp2) {
34998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34999 }
35000 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35001 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35002 if (!SWIG_IsOK(res3)) {
35003 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35004 }
35005 if (!argp3) {
35006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35007 }
35008 arg3 = reinterpret_cast< wxFont * >(argp3);
35009 {
35010 PyThreadState* __tstate = wxPyBeginAllowThreads();
35011 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35012 wxPyEndAllowThreads(__tstate);
35013 if (PyErr_Occurred()) SWIG_fail;
35014 }
35015 resultobj = SWIG_Py_Void();
35016 return resultobj;
35017 fail:
35018 return NULL;
35019 }
35020
35021
35022 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35023 PyObject *resultobj = 0;
35024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35025 wxTreeItemId *arg2 = 0 ;
35026 bool result;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 void *argp2 = 0 ;
35030 int res2 = 0 ;
35031 PyObject * obj0 = 0 ;
35032 PyObject * obj1 = 0 ;
35033 char * kwnames[] = {
35034 (char *) "self",(char *) "item", NULL
35035 };
35036
35037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35039 if (!SWIG_IsOK(res1)) {
35040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35041 }
35042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35044 if (!SWIG_IsOK(res2)) {
35045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35046 }
35047 if (!argp2) {
35048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35049 }
35050 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35051 {
35052 PyThreadState* __tstate = wxPyBeginAllowThreads();
35053 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35054 wxPyEndAllowThreads(__tstate);
35055 if (PyErr_Occurred()) SWIG_fail;
35056 }
35057 {
35058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35059 }
35060 return resultobj;
35061 fail:
35062 return NULL;
35063 }
35064
35065
35066 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35067 PyObject *resultobj = 0;
35068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35069 wxTreeItemId *arg2 = 0 ;
35070 bool result;
35071 void *argp1 = 0 ;
35072 int res1 = 0 ;
35073 void *argp2 = 0 ;
35074 int res2 = 0 ;
35075 PyObject * obj0 = 0 ;
35076 PyObject * obj1 = 0 ;
35077 char * kwnames[] = {
35078 (char *) "self",(char *) "item", NULL
35079 };
35080
35081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35083 if (!SWIG_IsOK(res1)) {
35084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35085 }
35086 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35088 if (!SWIG_IsOK(res2)) {
35089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35090 }
35091 if (!argp2) {
35092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35093 }
35094 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35095 {
35096 PyThreadState* __tstate = wxPyBeginAllowThreads();
35097 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35098 wxPyEndAllowThreads(__tstate);
35099 if (PyErr_Occurred()) SWIG_fail;
35100 }
35101 {
35102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35103 }
35104 return resultobj;
35105 fail:
35106 return NULL;
35107 }
35108
35109
35110 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35111 PyObject *resultobj = 0;
35112 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35113 wxTreeItemId *arg2 = 0 ;
35114 bool result;
35115 void *argp1 = 0 ;
35116 int res1 = 0 ;
35117 void *argp2 = 0 ;
35118 int res2 = 0 ;
35119 PyObject * obj0 = 0 ;
35120 PyObject * obj1 = 0 ;
35121 char * kwnames[] = {
35122 (char *) "self",(char *) "item", NULL
35123 };
35124
35125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35127 if (!SWIG_IsOK(res1)) {
35128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35129 }
35130 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35132 if (!SWIG_IsOK(res2)) {
35133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35134 }
35135 if (!argp2) {
35136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35137 }
35138 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35139 {
35140 PyThreadState* __tstate = wxPyBeginAllowThreads();
35141 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35142 wxPyEndAllowThreads(__tstate);
35143 if (PyErr_Occurred()) SWIG_fail;
35144 }
35145 {
35146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35147 }
35148 return resultobj;
35149 fail:
35150 return NULL;
35151 }
35152
35153
35154 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35155 PyObject *resultobj = 0;
35156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35157 wxTreeItemId *arg2 = 0 ;
35158 bool result;
35159 void *argp1 = 0 ;
35160 int res1 = 0 ;
35161 void *argp2 = 0 ;
35162 int res2 = 0 ;
35163 PyObject * obj0 = 0 ;
35164 PyObject * obj1 = 0 ;
35165 char * kwnames[] = {
35166 (char *) "self",(char *) "item", NULL
35167 };
35168
35169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35171 if (!SWIG_IsOK(res1)) {
35172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35173 }
35174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35176 if (!SWIG_IsOK(res2)) {
35177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35178 }
35179 if (!argp2) {
35180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35181 }
35182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35183 {
35184 PyThreadState* __tstate = wxPyBeginAllowThreads();
35185 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35186 wxPyEndAllowThreads(__tstate);
35187 if (PyErr_Occurred()) SWIG_fail;
35188 }
35189 {
35190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35191 }
35192 return resultobj;
35193 fail:
35194 return NULL;
35195 }
35196
35197
35198 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35199 PyObject *resultobj = 0;
35200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35201 wxTreeItemId *arg2 = 0 ;
35202 bool result;
35203 void *argp1 = 0 ;
35204 int res1 = 0 ;
35205 void *argp2 = 0 ;
35206 int res2 = 0 ;
35207 PyObject * obj0 = 0 ;
35208 PyObject * obj1 = 0 ;
35209 char * kwnames[] = {
35210 (char *) "self",(char *) "item", NULL
35211 };
35212
35213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35215 if (!SWIG_IsOK(res1)) {
35216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35217 }
35218 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35220 if (!SWIG_IsOK(res2)) {
35221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35222 }
35223 if (!argp2) {
35224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35225 }
35226 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35227 {
35228 PyThreadState* __tstate = wxPyBeginAllowThreads();
35229 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35230 wxPyEndAllowThreads(__tstate);
35231 if (PyErr_Occurred()) SWIG_fail;
35232 }
35233 {
35234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35235 }
35236 return resultobj;
35237 fail:
35238 return NULL;
35239 }
35240
35241
35242 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35243 PyObject *resultobj = 0;
35244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35245 wxTreeItemId *arg2 = 0 ;
35246 bool arg3 = (bool) true ;
35247 size_t result;
35248 void *argp1 = 0 ;
35249 int res1 = 0 ;
35250 void *argp2 = 0 ;
35251 int res2 = 0 ;
35252 bool val3 ;
35253 int ecode3 = 0 ;
35254 PyObject * obj0 = 0 ;
35255 PyObject * obj1 = 0 ;
35256 PyObject * obj2 = 0 ;
35257 char * kwnames[] = {
35258 (char *) "self",(char *) "item",(char *) "recursively", NULL
35259 };
35260
35261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35263 if (!SWIG_IsOK(res1)) {
35264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35265 }
35266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35268 if (!SWIG_IsOK(res2)) {
35269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35270 }
35271 if (!argp2) {
35272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35273 }
35274 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35275 if (obj2) {
35276 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35277 if (!SWIG_IsOK(ecode3)) {
35278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35279 }
35280 arg3 = static_cast< bool >(val3);
35281 }
35282 {
35283 PyThreadState* __tstate = wxPyBeginAllowThreads();
35284 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35285 wxPyEndAllowThreads(__tstate);
35286 if (PyErr_Occurred()) SWIG_fail;
35287 }
35288 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35289 return resultobj;
35290 fail:
35291 return NULL;
35292 }
35293
35294
35295 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35296 PyObject *resultobj = 0;
35297 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35298 wxTreeItemId result;
35299 void *argp1 = 0 ;
35300 int res1 = 0 ;
35301 PyObject *swig_obj[1] ;
35302
35303 if (!args) SWIG_fail;
35304 swig_obj[0] = args;
35305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35306 if (!SWIG_IsOK(res1)) {
35307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35308 }
35309 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35310 {
35311 PyThreadState* __tstate = wxPyBeginAllowThreads();
35312 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35313 wxPyEndAllowThreads(__tstate);
35314 if (PyErr_Occurred()) SWIG_fail;
35315 }
35316 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35317 return resultobj;
35318 fail:
35319 return NULL;
35320 }
35321
35322
35323 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35324 PyObject *resultobj = 0;
35325 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35326 wxTreeItemId result;
35327 void *argp1 = 0 ;
35328 int res1 = 0 ;
35329 PyObject *swig_obj[1] ;
35330
35331 if (!args) SWIG_fail;
35332 swig_obj[0] = args;
35333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35334 if (!SWIG_IsOK(res1)) {
35335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35336 }
35337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35338 {
35339 PyThreadState* __tstate = wxPyBeginAllowThreads();
35340 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35341 wxPyEndAllowThreads(__tstate);
35342 if (PyErr_Occurred()) SWIG_fail;
35343 }
35344 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35345 return resultobj;
35346 fail:
35347 return NULL;
35348 }
35349
35350
35351 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35352 PyObject *resultobj = 0;
35353 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35354 PyObject *result = 0 ;
35355 void *argp1 = 0 ;
35356 int res1 = 0 ;
35357 PyObject *swig_obj[1] ;
35358
35359 if (!args) SWIG_fail;
35360 swig_obj[0] = args;
35361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35362 if (!SWIG_IsOK(res1)) {
35363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35364 }
35365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35366 {
35367 PyThreadState* __tstate = wxPyBeginAllowThreads();
35368 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35369 wxPyEndAllowThreads(__tstate);
35370 if (PyErr_Occurred()) SWIG_fail;
35371 }
35372 resultobj = result;
35373 return resultobj;
35374 fail:
35375 return NULL;
35376 }
35377
35378
35379 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35380 PyObject *resultobj = 0;
35381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35382 wxTreeItemId *arg2 = 0 ;
35383 wxTreeItemId result;
35384 void *argp1 = 0 ;
35385 int res1 = 0 ;
35386 void *argp2 = 0 ;
35387 int res2 = 0 ;
35388 PyObject * obj0 = 0 ;
35389 PyObject * obj1 = 0 ;
35390 char * kwnames[] = {
35391 (char *) "self",(char *) "item", NULL
35392 };
35393
35394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35398 }
35399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35401 if (!SWIG_IsOK(res2)) {
35402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35403 }
35404 if (!argp2) {
35405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35406 }
35407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35408 {
35409 PyThreadState* __tstate = wxPyBeginAllowThreads();
35410 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35411 wxPyEndAllowThreads(__tstate);
35412 if (PyErr_Occurred()) SWIG_fail;
35413 }
35414 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35415 return resultobj;
35416 fail:
35417 return NULL;
35418 }
35419
35420
35421 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35422 PyObject *resultobj = 0;
35423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35424 wxTreeItemId *arg2 = 0 ;
35425 PyObject *result = 0 ;
35426 void *argp1 = 0 ;
35427 int res1 = 0 ;
35428 void *argp2 = 0 ;
35429 int res2 = 0 ;
35430 PyObject * obj0 = 0 ;
35431 PyObject * obj1 = 0 ;
35432 char * kwnames[] = {
35433 (char *) "self",(char *) "item", NULL
35434 };
35435
35436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35438 if (!SWIG_IsOK(res1)) {
35439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35440 }
35441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35443 if (!SWIG_IsOK(res2)) {
35444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35445 }
35446 if (!argp2) {
35447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35448 }
35449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35450 {
35451 PyThreadState* __tstate = wxPyBeginAllowThreads();
35452 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35453 wxPyEndAllowThreads(__tstate);
35454 if (PyErr_Occurred()) SWIG_fail;
35455 }
35456 resultobj = result;
35457 return resultobj;
35458 fail:
35459 return NULL;
35460 }
35461
35462
35463 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35464 PyObject *resultobj = 0;
35465 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35466 wxTreeItemId *arg2 = 0 ;
35467 void *arg3 = (void *) 0 ;
35468 PyObject *result = 0 ;
35469 void *argp1 = 0 ;
35470 int res1 = 0 ;
35471 void *argp2 = 0 ;
35472 int res2 = 0 ;
35473 int res3 ;
35474 PyObject * obj0 = 0 ;
35475 PyObject * obj1 = 0 ;
35476 PyObject * obj2 = 0 ;
35477 char * kwnames[] = {
35478 (char *) "self",(char *) "item",(char *) "cookie", NULL
35479 };
35480
35481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35483 if (!SWIG_IsOK(res1)) {
35484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35485 }
35486 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35488 if (!SWIG_IsOK(res2)) {
35489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35490 }
35491 if (!argp2) {
35492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35493 }
35494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35495 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35496 if (!SWIG_IsOK(res3)) {
35497 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35498 }
35499 {
35500 PyThreadState* __tstate = wxPyBeginAllowThreads();
35501 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35502 wxPyEndAllowThreads(__tstate);
35503 if (PyErr_Occurred()) SWIG_fail;
35504 }
35505 resultobj = result;
35506 return resultobj;
35507 fail:
35508 return NULL;
35509 }
35510
35511
35512 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35513 PyObject *resultobj = 0;
35514 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35515 wxTreeItemId *arg2 = 0 ;
35516 wxTreeItemId result;
35517 void *argp1 = 0 ;
35518 int res1 = 0 ;
35519 void *argp2 = 0 ;
35520 int res2 = 0 ;
35521 PyObject * obj0 = 0 ;
35522 PyObject * obj1 = 0 ;
35523 char * kwnames[] = {
35524 (char *) "self",(char *) "item", NULL
35525 };
35526
35527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35529 if (!SWIG_IsOK(res1)) {
35530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35531 }
35532 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35534 if (!SWIG_IsOK(res2)) {
35535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35536 }
35537 if (!argp2) {
35538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35539 }
35540 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35548 return resultobj;
35549 fail:
35550 return NULL;
35551 }
35552
35553
35554 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35555 PyObject *resultobj = 0;
35556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35557 wxTreeItemId *arg2 = 0 ;
35558 wxTreeItemId result;
35559 void *argp1 = 0 ;
35560 int res1 = 0 ;
35561 void *argp2 = 0 ;
35562 int res2 = 0 ;
35563 PyObject * obj0 = 0 ;
35564 PyObject * obj1 = 0 ;
35565 char * kwnames[] = {
35566 (char *) "self",(char *) "item", NULL
35567 };
35568
35569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35571 if (!SWIG_IsOK(res1)) {
35572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35573 }
35574 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35576 if (!SWIG_IsOK(res2)) {
35577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35578 }
35579 if (!argp2) {
35580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35581 }
35582 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35583 {
35584 PyThreadState* __tstate = wxPyBeginAllowThreads();
35585 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35586 wxPyEndAllowThreads(__tstate);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35590 return resultobj;
35591 fail:
35592 return NULL;
35593 }
35594
35595
35596 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35597 PyObject *resultobj = 0;
35598 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35599 wxTreeItemId *arg2 = 0 ;
35600 wxTreeItemId result;
35601 void *argp1 = 0 ;
35602 int res1 = 0 ;
35603 void *argp2 = 0 ;
35604 int res2 = 0 ;
35605 PyObject * obj0 = 0 ;
35606 PyObject * obj1 = 0 ;
35607 char * kwnames[] = {
35608 (char *) "self",(char *) "item", NULL
35609 };
35610
35611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35613 if (!SWIG_IsOK(res1)) {
35614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35615 }
35616 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35618 if (!SWIG_IsOK(res2)) {
35619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35620 }
35621 if (!argp2) {
35622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35623 }
35624 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35625 {
35626 PyThreadState* __tstate = wxPyBeginAllowThreads();
35627 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35628 wxPyEndAllowThreads(__tstate);
35629 if (PyErr_Occurred()) SWIG_fail;
35630 }
35631 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35632 return resultobj;
35633 fail:
35634 return NULL;
35635 }
35636
35637
35638 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35639 PyObject *resultobj = 0;
35640 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35641 wxTreeItemId result;
35642 void *argp1 = 0 ;
35643 int res1 = 0 ;
35644 PyObject *swig_obj[1] ;
35645
35646 if (!args) SWIG_fail;
35647 swig_obj[0] = args;
35648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35649 if (!SWIG_IsOK(res1)) {
35650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35651 }
35652 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35653 {
35654 PyThreadState* __tstate = wxPyBeginAllowThreads();
35655 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35656 wxPyEndAllowThreads(__tstate);
35657 if (PyErr_Occurred()) SWIG_fail;
35658 }
35659 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35660 return resultobj;
35661 fail:
35662 return NULL;
35663 }
35664
35665
35666 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35667 PyObject *resultobj = 0;
35668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35669 wxTreeItemId *arg2 = 0 ;
35670 wxTreeItemId result;
35671 void *argp1 = 0 ;
35672 int res1 = 0 ;
35673 void *argp2 = 0 ;
35674 int res2 = 0 ;
35675 PyObject * obj0 = 0 ;
35676 PyObject * obj1 = 0 ;
35677 char * kwnames[] = {
35678 (char *) "self",(char *) "item", NULL
35679 };
35680
35681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35683 if (!SWIG_IsOK(res1)) {
35684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35685 }
35686 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35688 if (!SWIG_IsOK(res2)) {
35689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35690 }
35691 if (!argp2) {
35692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35693 }
35694 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35695 {
35696 PyThreadState* __tstate = wxPyBeginAllowThreads();
35697 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35698 wxPyEndAllowThreads(__tstate);
35699 if (PyErr_Occurred()) SWIG_fail;
35700 }
35701 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35702 return resultobj;
35703 fail:
35704 return NULL;
35705 }
35706
35707
35708 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35709 PyObject *resultobj = 0;
35710 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35711 wxTreeItemId *arg2 = 0 ;
35712 wxTreeItemId result;
35713 void *argp1 = 0 ;
35714 int res1 = 0 ;
35715 void *argp2 = 0 ;
35716 int res2 = 0 ;
35717 PyObject * obj0 = 0 ;
35718 PyObject * obj1 = 0 ;
35719 char * kwnames[] = {
35720 (char *) "self",(char *) "item", NULL
35721 };
35722
35723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35725 if (!SWIG_IsOK(res1)) {
35726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35727 }
35728 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35729 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35730 if (!SWIG_IsOK(res2)) {
35731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35732 }
35733 if (!argp2) {
35734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35735 }
35736 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35737 {
35738 PyThreadState* __tstate = wxPyBeginAllowThreads();
35739 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35740 wxPyEndAllowThreads(__tstate);
35741 if (PyErr_Occurred()) SWIG_fail;
35742 }
35743 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35744 return resultobj;
35745 fail:
35746 return NULL;
35747 }
35748
35749
35750 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35751 PyObject *resultobj = 0;
35752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35753 wxString *arg2 = 0 ;
35754 int arg3 = (int) -1 ;
35755 int arg4 = (int) -1 ;
35756 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35757 wxTreeItemId result;
35758 void *argp1 = 0 ;
35759 int res1 = 0 ;
35760 bool temp2 = false ;
35761 int val3 ;
35762 int ecode3 = 0 ;
35763 int val4 ;
35764 int ecode4 = 0 ;
35765 int res5 = 0 ;
35766 PyObject * obj0 = 0 ;
35767 PyObject * obj1 = 0 ;
35768 PyObject * obj2 = 0 ;
35769 PyObject * obj3 = 0 ;
35770 PyObject * obj4 = 0 ;
35771 char * kwnames[] = {
35772 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35773 };
35774
35775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35777 if (!SWIG_IsOK(res1)) {
35778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35779 }
35780 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35781 {
35782 arg2 = wxString_in_helper(obj1);
35783 if (arg2 == NULL) SWIG_fail;
35784 temp2 = true;
35785 }
35786 if (obj2) {
35787 ecode3 = SWIG_AsVal_int(obj2, &val3);
35788 if (!SWIG_IsOK(ecode3)) {
35789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35790 }
35791 arg3 = static_cast< int >(val3);
35792 }
35793 if (obj3) {
35794 ecode4 = SWIG_AsVal_int(obj3, &val4);
35795 if (!SWIG_IsOK(ecode4)) {
35796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35797 }
35798 arg4 = static_cast< int >(val4);
35799 }
35800 if (obj4) {
35801 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35802 if (!SWIG_IsOK(res5)) {
35803 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35804 }
35805 }
35806 {
35807 PyThreadState* __tstate = wxPyBeginAllowThreads();
35808 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35809 wxPyEndAllowThreads(__tstate);
35810 if (PyErr_Occurred()) SWIG_fail;
35811 }
35812 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35813 {
35814 if (temp2)
35815 delete arg2;
35816 }
35817 return resultobj;
35818 fail:
35819 {
35820 if (temp2)
35821 delete arg2;
35822 }
35823 return NULL;
35824 }
35825
35826
35827 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35828 PyObject *resultobj = 0;
35829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35830 wxTreeItemId *arg2 = 0 ;
35831 wxString *arg3 = 0 ;
35832 int arg4 = (int) -1 ;
35833 int arg5 = (int) -1 ;
35834 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35835 wxTreeItemId result;
35836 void *argp1 = 0 ;
35837 int res1 = 0 ;
35838 void *argp2 = 0 ;
35839 int res2 = 0 ;
35840 bool temp3 = false ;
35841 int val4 ;
35842 int ecode4 = 0 ;
35843 int val5 ;
35844 int ecode5 = 0 ;
35845 int res6 = 0 ;
35846 PyObject * obj0 = 0 ;
35847 PyObject * obj1 = 0 ;
35848 PyObject * obj2 = 0 ;
35849 PyObject * obj3 = 0 ;
35850 PyObject * obj4 = 0 ;
35851 PyObject * obj5 = 0 ;
35852 char * kwnames[] = {
35853 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35854 };
35855
35856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35858 if (!SWIG_IsOK(res1)) {
35859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35860 }
35861 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35863 if (!SWIG_IsOK(res2)) {
35864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35865 }
35866 if (!argp2) {
35867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35868 }
35869 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35870 {
35871 arg3 = wxString_in_helper(obj2);
35872 if (arg3 == NULL) SWIG_fail;
35873 temp3 = true;
35874 }
35875 if (obj3) {
35876 ecode4 = SWIG_AsVal_int(obj3, &val4);
35877 if (!SWIG_IsOK(ecode4)) {
35878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35879 }
35880 arg4 = static_cast< int >(val4);
35881 }
35882 if (obj4) {
35883 ecode5 = SWIG_AsVal_int(obj4, &val5);
35884 if (!SWIG_IsOK(ecode5)) {
35885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35886 }
35887 arg5 = static_cast< int >(val5);
35888 }
35889 if (obj5) {
35890 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35891 if (!SWIG_IsOK(res6)) {
35892 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35893 }
35894 }
35895 {
35896 PyThreadState* __tstate = wxPyBeginAllowThreads();
35897 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35898 wxPyEndAllowThreads(__tstate);
35899 if (PyErr_Occurred()) SWIG_fail;
35900 }
35901 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35902 {
35903 if (temp3)
35904 delete arg3;
35905 }
35906 return resultobj;
35907 fail:
35908 {
35909 if (temp3)
35910 delete arg3;
35911 }
35912 return NULL;
35913 }
35914
35915
35916 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35917 PyObject *resultobj = 0;
35918 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35919 wxTreeItemId *arg2 = 0 ;
35920 wxTreeItemId *arg3 = 0 ;
35921 wxString *arg4 = 0 ;
35922 int arg5 = (int) -1 ;
35923 int arg6 = (int) -1 ;
35924 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35925 wxTreeItemId result;
35926 void *argp1 = 0 ;
35927 int res1 = 0 ;
35928 void *argp2 = 0 ;
35929 int res2 = 0 ;
35930 void *argp3 = 0 ;
35931 int res3 = 0 ;
35932 bool temp4 = false ;
35933 int val5 ;
35934 int ecode5 = 0 ;
35935 int val6 ;
35936 int ecode6 = 0 ;
35937 int res7 = 0 ;
35938 PyObject * obj0 = 0 ;
35939 PyObject * obj1 = 0 ;
35940 PyObject * obj2 = 0 ;
35941 PyObject * obj3 = 0 ;
35942 PyObject * obj4 = 0 ;
35943 PyObject * obj5 = 0 ;
35944 PyObject * obj6 = 0 ;
35945 char * kwnames[] = {
35946 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35947 };
35948
35949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35951 if (!SWIG_IsOK(res1)) {
35952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35953 }
35954 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35955 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35956 if (!SWIG_IsOK(res2)) {
35957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35958 }
35959 if (!argp2) {
35960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35961 }
35962 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35963 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35964 if (!SWIG_IsOK(res3)) {
35965 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35966 }
35967 if (!argp3) {
35968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35969 }
35970 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35971 {
35972 arg4 = wxString_in_helper(obj3);
35973 if (arg4 == NULL) SWIG_fail;
35974 temp4 = true;
35975 }
35976 if (obj4) {
35977 ecode5 = SWIG_AsVal_int(obj4, &val5);
35978 if (!SWIG_IsOK(ecode5)) {
35979 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35980 }
35981 arg5 = static_cast< int >(val5);
35982 }
35983 if (obj5) {
35984 ecode6 = SWIG_AsVal_int(obj5, &val6);
35985 if (!SWIG_IsOK(ecode6)) {
35986 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35987 }
35988 arg6 = static_cast< int >(val6);
35989 }
35990 if (obj6) {
35991 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35992 if (!SWIG_IsOK(res7)) {
35993 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35994 }
35995 }
35996 {
35997 PyThreadState* __tstate = wxPyBeginAllowThreads();
35998 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35999 wxPyEndAllowThreads(__tstate);
36000 if (PyErr_Occurred()) SWIG_fail;
36001 }
36002 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36003 {
36004 if (temp4)
36005 delete arg4;
36006 }
36007 return resultobj;
36008 fail:
36009 {
36010 if (temp4)
36011 delete arg4;
36012 }
36013 return NULL;
36014 }
36015
36016
36017 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36020 wxTreeItemId *arg2 = 0 ;
36021 size_t arg3 ;
36022 wxString *arg4 = 0 ;
36023 int arg5 = (int) -1 ;
36024 int arg6 = (int) -1 ;
36025 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36026 wxTreeItemId result;
36027 void *argp1 = 0 ;
36028 int res1 = 0 ;
36029 void *argp2 = 0 ;
36030 int res2 = 0 ;
36031 size_t val3 ;
36032 int ecode3 = 0 ;
36033 bool temp4 = false ;
36034 int val5 ;
36035 int ecode5 = 0 ;
36036 int val6 ;
36037 int ecode6 = 0 ;
36038 int res7 = 0 ;
36039 PyObject * obj0 = 0 ;
36040 PyObject * obj1 = 0 ;
36041 PyObject * obj2 = 0 ;
36042 PyObject * obj3 = 0 ;
36043 PyObject * obj4 = 0 ;
36044 PyObject * obj5 = 0 ;
36045 PyObject * obj6 = 0 ;
36046 char * kwnames[] = {
36047 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36048 };
36049
36050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36052 if (!SWIG_IsOK(res1)) {
36053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36054 }
36055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36057 if (!SWIG_IsOK(res2)) {
36058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36059 }
36060 if (!argp2) {
36061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36062 }
36063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36064 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36065 if (!SWIG_IsOK(ecode3)) {
36066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36067 }
36068 arg3 = static_cast< size_t >(val3);
36069 {
36070 arg4 = wxString_in_helper(obj3);
36071 if (arg4 == NULL) SWIG_fail;
36072 temp4 = true;
36073 }
36074 if (obj4) {
36075 ecode5 = SWIG_AsVal_int(obj4, &val5);
36076 if (!SWIG_IsOK(ecode5)) {
36077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36078 }
36079 arg5 = static_cast< int >(val5);
36080 }
36081 if (obj5) {
36082 ecode6 = SWIG_AsVal_int(obj5, &val6);
36083 if (!SWIG_IsOK(ecode6)) {
36084 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36085 }
36086 arg6 = static_cast< int >(val6);
36087 }
36088 if (obj6) {
36089 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36090 if (!SWIG_IsOK(res7)) {
36091 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36092 }
36093 }
36094 {
36095 PyThreadState* __tstate = wxPyBeginAllowThreads();
36096 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36097 wxPyEndAllowThreads(__tstate);
36098 if (PyErr_Occurred()) SWIG_fail;
36099 }
36100 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36101 {
36102 if (temp4)
36103 delete arg4;
36104 }
36105 return resultobj;
36106 fail:
36107 {
36108 if (temp4)
36109 delete arg4;
36110 }
36111 return NULL;
36112 }
36113
36114
36115 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36116 PyObject *resultobj = 0;
36117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36118 wxTreeItemId *arg2 = 0 ;
36119 wxString *arg3 = 0 ;
36120 int arg4 = (int) -1 ;
36121 int arg5 = (int) -1 ;
36122 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36123 wxTreeItemId result;
36124 void *argp1 = 0 ;
36125 int res1 = 0 ;
36126 void *argp2 = 0 ;
36127 int res2 = 0 ;
36128 bool temp3 = false ;
36129 int val4 ;
36130 int ecode4 = 0 ;
36131 int val5 ;
36132 int ecode5 = 0 ;
36133 int res6 = 0 ;
36134 PyObject * obj0 = 0 ;
36135 PyObject * obj1 = 0 ;
36136 PyObject * obj2 = 0 ;
36137 PyObject * obj3 = 0 ;
36138 PyObject * obj4 = 0 ;
36139 PyObject * obj5 = 0 ;
36140 char * kwnames[] = {
36141 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36142 };
36143
36144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36146 if (!SWIG_IsOK(res1)) {
36147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36148 }
36149 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36151 if (!SWIG_IsOK(res2)) {
36152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36153 }
36154 if (!argp2) {
36155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36156 }
36157 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36158 {
36159 arg3 = wxString_in_helper(obj2);
36160 if (arg3 == NULL) SWIG_fail;
36161 temp3 = true;
36162 }
36163 if (obj3) {
36164 ecode4 = SWIG_AsVal_int(obj3, &val4);
36165 if (!SWIG_IsOK(ecode4)) {
36166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36167 }
36168 arg4 = static_cast< int >(val4);
36169 }
36170 if (obj4) {
36171 ecode5 = SWIG_AsVal_int(obj4, &val5);
36172 if (!SWIG_IsOK(ecode5)) {
36173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36174 }
36175 arg5 = static_cast< int >(val5);
36176 }
36177 if (obj5) {
36178 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36179 if (!SWIG_IsOK(res6)) {
36180 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36181 }
36182 }
36183 {
36184 PyThreadState* __tstate = wxPyBeginAllowThreads();
36185 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36186 wxPyEndAllowThreads(__tstate);
36187 if (PyErr_Occurred()) SWIG_fail;
36188 }
36189 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36190 {
36191 if (temp3)
36192 delete arg3;
36193 }
36194 return resultobj;
36195 fail:
36196 {
36197 if (temp3)
36198 delete arg3;
36199 }
36200 return NULL;
36201 }
36202
36203
36204 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36205 PyObject *resultobj = 0;
36206 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36207 wxTreeItemId *arg2 = 0 ;
36208 void *argp1 = 0 ;
36209 int res1 = 0 ;
36210 void *argp2 = 0 ;
36211 int res2 = 0 ;
36212 PyObject * obj0 = 0 ;
36213 PyObject * obj1 = 0 ;
36214 char * kwnames[] = {
36215 (char *) "self",(char *) "item", NULL
36216 };
36217
36218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36222 }
36223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36225 if (!SWIG_IsOK(res2)) {
36226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36227 }
36228 if (!argp2) {
36229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36230 }
36231 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36232 {
36233 PyThreadState* __tstate = wxPyBeginAllowThreads();
36234 (arg1)->Delete((wxTreeItemId const &)*arg2);
36235 wxPyEndAllowThreads(__tstate);
36236 if (PyErr_Occurred()) SWIG_fail;
36237 }
36238 resultobj = SWIG_Py_Void();
36239 return resultobj;
36240 fail:
36241 return NULL;
36242 }
36243
36244
36245 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36246 PyObject *resultobj = 0;
36247 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36248 wxTreeItemId *arg2 = 0 ;
36249 void *argp1 = 0 ;
36250 int res1 = 0 ;
36251 void *argp2 = 0 ;
36252 int res2 = 0 ;
36253 PyObject * obj0 = 0 ;
36254 PyObject * obj1 = 0 ;
36255 char * kwnames[] = {
36256 (char *) "self",(char *) "item", NULL
36257 };
36258
36259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36261 if (!SWIG_IsOK(res1)) {
36262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36263 }
36264 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36266 if (!SWIG_IsOK(res2)) {
36267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36268 }
36269 if (!argp2) {
36270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36271 }
36272 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36273 {
36274 PyThreadState* __tstate = wxPyBeginAllowThreads();
36275 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36276 wxPyEndAllowThreads(__tstate);
36277 if (PyErr_Occurred()) SWIG_fail;
36278 }
36279 resultobj = SWIG_Py_Void();
36280 return resultobj;
36281 fail:
36282 return NULL;
36283 }
36284
36285
36286 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36287 PyObject *resultobj = 0;
36288 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36289 void *argp1 = 0 ;
36290 int res1 = 0 ;
36291 PyObject *swig_obj[1] ;
36292
36293 if (!args) SWIG_fail;
36294 swig_obj[0] = args;
36295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36296 if (!SWIG_IsOK(res1)) {
36297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36298 }
36299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36300 {
36301 PyThreadState* __tstate = wxPyBeginAllowThreads();
36302 (arg1)->DeleteAllItems();
36303 wxPyEndAllowThreads(__tstate);
36304 if (PyErr_Occurred()) SWIG_fail;
36305 }
36306 resultobj = SWIG_Py_Void();
36307 return resultobj;
36308 fail:
36309 return NULL;
36310 }
36311
36312
36313 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36314 PyObject *resultobj = 0;
36315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36316 wxTreeItemId *arg2 = 0 ;
36317 void *argp1 = 0 ;
36318 int res1 = 0 ;
36319 void *argp2 = 0 ;
36320 int res2 = 0 ;
36321 PyObject * obj0 = 0 ;
36322 PyObject * obj1 = 0 ;
36323 char * kwnames[] = {
36324 (char *) "self",(char *) "item", NULL
36325 };
36326
36327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36329 if (!SWIG_IsOK(res1)) {
36330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36331 }
36332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36334 if (!SWIG_IsOK(res2)) {
36335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36336 }
36337 if (!argp2) {
36338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36339 }
36340 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36341 {
36342 PyThreadState* __tstate = wxPyBeginAllowThreads();
36343 (arg1)->Expand((wxTreeItemId const &)*arg2);
36344 wxPyEndAllowThreads(__tstate);
36345 if (PyErr_Occurred()) SWIG_fail;
36346 }
36347 resultobj = SWIG_Py_Void();
36348 return resultobj;
36349 fail:
36350 return NULL;
36351 }
36352
36353
36354 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36355 PyObject *resultobj = 0;
36356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36357 wxTreeItemId *arg2 = 0 ;
36358 void *argp1 = 0 ;
36359 int res1 = 0 ;
36360 void *argp2 = 0 ;
36361 int res2 = 0 ;
36362 PyObject * obj0 = 0 ;
36363 PyObject * obj1 = 0 ;
36364 char * kwnames[] = {
36365 (char *) "self",(char *) "item", NULL
36366 };
36367
36368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36370 if (!SWIG_IsOK(res1)) {
36371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36372 }
36373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36375 if (!SWIG_IsOK(res2)) {
36376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36377 }
36378 if (!argp2) {
36379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36380 }
36381 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36382 {
36383 PyThreadState* __tstate = wxPyBeginAllowThreads();
36384 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36385 wxPyEndAllowThreads(__tstate);
36386 if (PyErr_Occurred()) SWIG_fail;
36387 }
36388 resultobj = SWIG_Py_Void();
36389 return resultobj;
36390 fail:
36391 return NULL;
36392 }
36393
36394
36395 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36396 PyObject *resultobj = 0;
36397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36398 wxTreeItemId *arg2 = 0 ;
36399 void *argp1 = 0 ;
36400 int res1 = 0 ;
36401 void *argp2 = 0 ;
36402 int res2 = 0 ;
36403 PyObject * obj0 = 0 ;
36404 PyObject * obj1 = 0 ;
36405 char * kwnames[] = {
36406 (char *) "self",(char *) "item", NULL
36407 };
36408
36409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36411 if (!SWIG_IsOK(res1)) {
36412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36413 }
36414 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36416 if (!SWIG_IsOK(res2)) {
36417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36418 }
36419 if (!argp2) {
36420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36421 }
36422 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36423 {
36424 PyThreadState* __tstate = wxPyBeginAllowThreads();
36425 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36426 wxPyEndAllowThreads(__tstate);
36427 if (PyErr_Occurred()) SWIG_fail;
36428 }
36429 resultobj = SWIG_Py_Void();
36430 return resultobj;
36431 fail:
36432 return NULL;
36433 }
36434
36435
36436 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36437 PyObject *resultobj = 0;
36438 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36439 wxTreeItemId *arg2 = 0 ;
36440 void *argp1 = 0 ;
36441 int res1 = 0 ;
36442 void *argp2 = 0 ;
36443 int res2 = 0 ;
36444 PyObject * obj0 = 0 ;
36445 PyObject * obj1 = 0 ;
36446 char * kwnames[] = {
36447 (char *) "self",(char *) "item", NULL
36448 };
36449
36450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36452 if (!SWIG_IsOK(res1)) {
36453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36454 }
36455 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36457 if (!SWIG_IsOK(res2)) {
36458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36459 }
36460 if (!argp2) {
36461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36462 }
36463 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36467 wxPyEndAllowThreads(__tstate);
36468 if (PyErr_Occurred()) SWIG_fail;
36469 }
36470 resultobj = SWIG_Py_Void();
36471 return resultobj;
36472 fail:
36473 return NULL;
36474 }
36475
36476
36477 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36478 PyObject *resultobj = 0;
36479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36480 void *argp1 = 0 ;
36481 int res1 = 0 ;
36482 PyObject *swig_obj[1] ;
36483
36484 if (!args) SWIG_fail;
36485 swig_obj[0] = args;
36486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36487 if (!SWIG_IsOK(res1)) {
36488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36489 }
36490 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36491 {
36492 PyThreadState* __tstate = wxPyBeginAllowThreads();
36493 (arg1)->Unselect();
36494 wxPyEndAllowThreads(__tstate);
36495 if (PyErr_Occurred()) SWIG_fail;
36496 }
36497 resultobj = SWIG_Py_Void();
36498 return resultobj;
36499 fail:
36500 return NULL;
36501 }
36502
36503
36504 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36505 PyObject *resultobj = 0;
36506 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36507 wxTreeItemId *arg2 = 0 ;
36508 void *argp1 = 0 ;
36509 int res1 = 0 ;
36510 void *argp2 = 0 ;
36511 int res2 = 0 ;
36512 PyObject * obj0 = 0 ;
36513 PyObject * obj1 = 0 ;
36514 char * kwnames[] = {
36515 (char *) "self",(char *) "item", NULL
36516 };
36517
36518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36520 if (!SWIG_IsOK(res1)) {
36521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36522 }
36523 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36525 if (!SWIG_IsOK(res2)) {
36526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36527 }
36528 if (!argp2) {
36529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36530 }
36531 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36532 {
36533 PyThreadState* __tstate = wxPyBeginAllowThreads();
36534 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36535 wxPyEndAllowThreads(__tstate);
36536 if (PyErr_Occurred()) SWIG_fail;
36537 }
36538 resultobj = SWIG_Py_Void();
36539 return resultobj;
36540 fail:
36541 return NULL;
36542 }
36543
36544
36545 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36546 PyObject *resultobj = 0;
36547 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36548 void *argp1 = 0 ;
36549 int res1 = 0 ;
36550 PyObject *swig_obj[1] ;
36551
36552 if (!args) SWIG_fail;
36553 swig_obj[0] = args;
36554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36555 if (!SWIG_IsOK(res1)) {
36556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36557 }
36558 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36559 {
36560 PyThreadState* __tstate = wxPyBeginAllowThreads();
36561 (arg1)->UnselectAll();
36562 wxPyEndAllowThreads(__tstate);
36563 if (PyErr_Occurred()) SWIG_fail;
36564 }
36565 resultobj = SWIG_Py_Void();
36566 return resultobj;
36567 fail:
36568 return NULL;
36569 }
36570
36571
36572 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36573 PyObject *resultobj = 0;
36574 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36575 wxTreeItemId *arg2 = 0 ;
36576 bool arg3 = (bool) true ;
36577 void *argp1 = 0 ;
36578 int res1 = 0 ;
36579 void *argp2 = 0 ;
36580 int res2 = 0 ;
36581 bool val3 ;
36582 int ecode3 = 0 ;
36583 PyObject * obj0 = 0 ;
36584 PyObject * obj1 = 0 ;
36585 PyObject * obj2 = 0 ;
36586 char * kwnames[] = {
36587 (char *) "self",(char *) "item",(char *) "select", NULL
36588 };
36589
36590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36594 }
36595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36597 if (!SWIG_IsOK(res2)) {
36598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36599 }
36600 if (!argp2) {
36601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36602 }
36603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36604 if (obj2) {
36605 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36606 if (!SWIG_IsOK(ecode3)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36608 }
36609 arg3 = static_cast< bool >(val3);
36610 }
36611 {
36612 PyThreadState* __tstate = wxPyBeginAllowThreads();
36613 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36614 wxPyEndAllowThreads(__tstate);
36615 if (PyErr_Occurred()) SWIG_fail;
36616 }
36617 resultobj = SWIG_Py_Void();
36618 return resultobj;
36619 fail:
36620 return NULL;
36621 }
36622
36623
36624 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36625 PyObject *resultobj = 0;
36626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36627 wxTreeItemId *arg2 = 0 ;
36628 void *argp1 = 0 ;
36629 int res1 = 0 ;
36630 void *argp2 = 0 ;
36631 int res2 = 0 ;
36632 PyObject * obj0 = 0 ;
36633 PyObject * obj1 = 0 ;
36634 char * kwnames[] = {
36635 (char *) "self",(char *) "item", NULL
36636 };
36637
36638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36640 if (!SWIG_IsOK(res1)) {
36641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36642 }
36643 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36645 if (!SWIG_IsOK(res2)) {
36646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36647 }
36648 if (!argp2) {
36649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36650 }
36651 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36652 {
36653 PyThreadState* __tstate = wxPyBeginAllowThreads();
36654 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36655 wxPyEndAllowThreads(__tstate);
36656 if (PyErr_Occurred()) SWIG_fail;
36657 }
36658 resultobj = SWIG_Py_Void();
36659 return resultobj;
36660 fail:
36661 return NULL;
36662 }
36663
36664
36665 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36666 PyObject *resultobj = 0;
36667 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36668 wxTreeItemId *arg2 = 0 ;
36669 void *argp1 = 0 ;
36670 int res1 = 0 ;
36671 void *argp2 = 0 ;
36672 int res2 = 0 ;
36673 PyObject * obj0 = 0 ;
36674 PyObject * obj1 = 0 ;
36675 char * kwnames[] = {
36676 (char *) "self",(char *) "item", NULL
36677 };
36678
36679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36681 if (!SWIG_IsOK(res1)) {
36682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36683 }
36684 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36686 if (!SWIG_IsOK(res2)) {
36687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36688 }
36689 if (!argp2) {
36690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36691 }
36692 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36693 {
36694 PyThreadState* __tstate = wxPyBeginAllowThreads();
36695 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36696 wxPyEndAllowThreads(__tstate);
36697 if (PyErr_Occurred()) SWIG_fail;
36698 }
36699 resultobj = SWIG_Py_Void();
36700 return resultobj;
36701 fail:
36702 return NULL;
36703 }
36704
36705
36706 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36707 PyObject *resultobj = 0;
36708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36709 wxTreeItemId *arg2 = 0 ;
36710 void *argp1 = 0 ;
36711 int res1 = 0 ;
36712 void *argp2 = 0 ;
36713 int res2 = 0 ;
36714 PyObject * obj0 = 0 ;
36715 PyObject * obj1 = 0 ;
36716 char * kwnames[] = {
36717 (char *) "self",(char *) "item", NULL
36718 };
36719
36720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36722 if (!SWIG_IsOK(res1)) {
36723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36724 }
36725 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36727 if (!SWIG_IsOK(res2)) {
36728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36729 }
36730 if (!argp2) {
36731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36732 }
36733 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36734 {
36735 PyThreadState* __tstate = wxPyBeginAllowThreads();
36736 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_Py_Void();
36741 return resultobj;
36742 fail:
36743 return NULL;
36744 }
36745
36746
36747 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36748 PyObject *resultobj = 0;
36749 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36750 wxTreeItemId *arg2 = 0 ;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 void *argp2 = 0 ;
36754 int res2 = 0 ;
36755 PyObject * obj0 = 0 ;
36756 PyObject * obj1 = 0 ;
36757 char * kwnames[] = {
36758 (char *) "self",(char *) "item", NULL
36759 };
36760
36761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36763 if (!SWIG_IsOK(res1)) {
36764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36765 }
36766 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36768 if (!SWIG_IsOK(res2)) {
36769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36770 }
36771 if (!argp2) {
36772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36773 }
36774 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36775 {
36776 PyThreadState* __tstate = wxPyBeginAllowThreads();
36777 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36778 wxPyEndAllowThreads(__tstate);
36779 if (PyErr_Occurred()) SWIG_fail;
36780 }
36781 resultobj = SWIG_Py_Void();
36782 return resultobj;
36783 fail:
36784 return NULL;
36785 }
36786
36787
36788 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36789 PyObject *resultobj = 0;
36790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36791 wxTextCtrl *result = 0 ;
36792 void *argp1 = 0 ;
36793 int res1 = 0 ;
36794 PyObject *swig_obj[1] ;
36795
36796 if (!args) SWIG_fail;
36797 swig_obj[0] = args;
36798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36799 if (!SWIG_IsOK(res1)) {
36800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36801 }
36802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36803 {
36804 PyThreadState* __tstate = wxPyBeginAllowThreads();
36805 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36806 wxPyEndAllowThreads(__tstate);
36807 if (PyErr_Occurred()) SWIG_fail;
36808 }
36809 {
36810 resultobj = wxPyMake_wxObject(result, 0);
36811 }
36812 return resultobj;
36813 fail:
36814 return NULL;
36815 }
36816
36817
36818 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36819 PyObject *resultobj = 0;
36820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36821 wxTreeItemId *arg2 = 0 ;
36822 void *argp1 = 0 ;
36823 int res1 = 0 ;
36824 void *argp2 = 0 ;
36825 int res2 = 0 ;
36826 PyObject * obj0 = 0 ;
36827 PyObject * obj1 = 0 ;
36828 char * kwnames[] = {
36829 (char *) "self",(char *) "item", NULL
36830 };
36831
36832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36834 if (!SWIG_IsOK(res1)) {
36835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36836 }
36837 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36839 if (!SWIG_IsOK(res2)) {
36840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36841 }
36842 if (!argp2) {
36843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36844 }
36845 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36846 {
36847 PyThreadState* __tstate = wxPyBeginAllowThreads();
36848 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36849 wxPyEndAllowThreads(__tstate);
36850 if (PyErr_Occurred()) SWIG_fail;
36851 }
36852 resultobj = SWIG_Py_Void();
36853 return resultobj;
36854 fail:
36855 return NULL;
36856 }
36857
36858
36859 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36860 PyObject *resultobj = 0;
36861 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36862 wxPoint *arg2 = 0 ;
36863 int *arg3 = 0 ;
36864 wxTreeItemId result;
36865 void *argp1 = 0 ;
36866 int res1 = 0 ;
36867 wxPoint temp2 ;
36868 int temp3 ;
36869 int res3 = SWIG_TMPOBJ ;
36870 PyObject * obj0 = 0 ;
36871 PyObject * obj1 = 0 ;
36872 char * kwnames[] = {
36873 (char *) "self",(char *) "point", NULL
36874 };
36875
36876 arg3 = &temp3;
36877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36879 if (!SWIG_IsOK(res1)) {
36880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36881 }
36882 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36883 {
36884 arg2 = &temp2;
36885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36886 }
36887 {
36888 PyThreadState* __tstate = wxPyBeginAllowThreads();
36889 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36890 wxPyEndAllowThreads(__tstate);
36891 if (PyErr_Occurred()) SWIG_fail;
36892 }
36893 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36894 if (SWIG_IsTmpObj(res3)) {
36895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36896 } else {
36897 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36899 }
36900 return resultobj;
36901 fail:
36902 return NULL;
36903 }
36904
36905
36906 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36907 PyObject *resultobj = 0;
36908 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36909 wxTreeItemId *arg2 = 0 ;
36910 bool arg3 = (bool) false ;
36911 PyObject *result = 0 ;
36912 void *argp1 = 0 ;
36913 int res1 = 0 ;
36914 void *argp2 = 0 ;
36915 int res2 = 0 ;
36916 bool val3 ;
36917 int ecode3 = 0 ;
36918 PyObject * obj0 = 0 ;
36919 PyObject * obj1 = 0 ;
36920 PyObject * obj2 = 0 ;
36921 char * kwnames[] = {
36922 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36923 };
36924
36925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36927 if (!SWIG_IsOK(res1)) {
36928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36929 }
36930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36932 if (!SWIG_IsOK(res2)) {
36933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36934 }
36935 if (!argp2) {
36936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36937 }
36938 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36939 if (obj2) {
36940 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36941 if (!SWIG_IsOK(ecode3)) {
36942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36943 }
36944 arg3 = static_cast< bool >(val3);
36945 }
36946 {
36947 PyThreadState* __tstate = wxPyBeginAllowThreads();
36948 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36949 wxPyEndAllowThreads(__tstate);
36950 if (PyErr_Occurred()) SWIG_fail;
36951 }
36952 resultobj = result;
36953 return resultobj;
36954 fail:
36955 return NULL;
36956 }
36957
36958
36959 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36960 PyObject *resultobj = 0;
36961 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36962 SwigValueWrapper<wxVisualAttributes > result;
36963 int val1 ;
36964 int ecode1 = 0 ;
36965 PyObject * obj0 = 0 ;
36966 char * kwnames[] = {
36967 (char *) "variant", NULL
36968 };
36969
36970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36971 if (obj0) {
36972 ecode1 = SWIG_AsVal_int(obj0, &val1);
36973 if (!SWIG_IsOK(ecode1)) {
36974 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36975 }
36976 arg1 = static_cast< wxWindowVariant >(val1);
36977 }
36978 {
36979 if (!wxPyCheckForApp()) SWIG_fail;
36980 PyThreadState* __tstate = wxPyBeginAllowThreads();
36981 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36982 wxPyEndAllowThreads(__tstate);
36983 if (PyErr_Occurred()) SWIG_fail;
36984 }
36985 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36986 return resultobj;
36987 fail:
36988 return NULL;
36989 }
36990
36991
36992 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36993 PyObject *resultobj = 0;
36994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36995 bool arg2 ;
36996 void *argp1 = 0 ;
36997 int res1 = 0 ;
36998 bool val2 ;
36999 int ecode2 = 0 ;
37000 PyObject * obj0 = 0 ;
37001 PyObject * obj1 = 0 ;
37002 char * kwnames[] = {
37003 (char *) "self",(char *) "q", NULL
37004 };
37005
37006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37008 if (!SWIG_IsOK(res1)) {
37009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37010 }
37011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37012 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37013 if (!SWIG_IsOK(ecode2)) {
37014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37015 }
37016 arg2 = static_cast< bool >(val2);
37017 {
37018 PyThreadState* __tstate = wxPyBeginAllowThreads();
37019 (arg1)->SetQuickBestSize(arg2);
37020 wxPyEndAllowThreads(__tstate);
37021 if (PyErr_Occurred()) SWIG_fail;
37022 }
37023 resultobj = SWIG_Py_Void();
37024 return resultobj;
37025 fail:
37026 return NULL;
37027 }
37028
37029
37030 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37031 PyObject *resultobj = 0;
37032 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37033 bool result;
37034 void *argp1 = 0 ;
37035 int res1 = 0 ;
37036 PyObject *swig_obj[1] ;
37037
37038 if (!args) SWIG_fail;
37039 swig_obj[0] = args;
37040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37041 if (!SWIG_IsOK(res1)) {
37042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37043 }
37044 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37045 {
37046 PyThreadState* __tstate = wxPyBeginAllowThreads();
37047 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37048 wxPyEndAllowThreads(__tstate);
37049 if (PyErr_Occurred()) SWIG_fail;
37050 }
37051 {
37052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37053 }
37054 return resultobj;
37055 fail:
37056 return NULL;
37057 }
37058
37059
37060 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37061 PyObject *obj;
37062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37063 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37064 return SWIG_Py_Void();
37065 }
37066
37067 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37068 return SWIG_Python_InitShadowInstance(args);
37069 }
37070
37071 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37072 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37073 return 1;
37074 }
37075
37076
37077 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37078 PyObject *pyobj = 0;
37079
37080 {
37081 #if wxUSE_UNICODE
37082 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37083 #else
37084 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37085 #endif
37086 }
37087 return pyobj;
37088 }
37089
37090
37091 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37092 PyObject *resultobj = 0;
37093 wxWindow *arg1 = (wxWindow *) 0 ;
37094 int arg2 = (int) (int)-1 ;
37095 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37096 wxString *arg3 = (wxString *) &arg3_defvalue ;
37097 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37098 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37099 wxSize const &arg5_defvalue = wxDefaultSize ;
37100 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37101 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37102 wxString const &arg7_defvalue = wxPyEmptyString ;
37103 wxString *arg7 = (wxString *) &arg7_defvalue ;
37104 int arg8 = (int) 0 ;
37105 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37106 wxString *arg9 = (wxString *) &arg9_defvalue ;
37107 wxGenericDirCtrl *result = 0 ;
37108 void *argp1 = 0 ;
37109 int res1 = 0 ;
37110 int val2 ;
37111 int ecode2 = 0 ;
37112 bool temp3 = false ;
37113 wxPoint temp4 ;
37114 wxSize temp5 ;
37115 long val6 ;
37116 int ecode6 = 0 ;
37117 bool temp7 = false ;
37118 int val8 ;
37119 int ecode8 = 0 ;
37120 bool temp9 = false ;
37121 PyObject * obj0 = 0 ;
37122 PyObject * obj1 = 0 ;
37123 PyObject * obj2 = 0 ;
37124 PyObject * obj3 = 0 ;
37125 PyObject * obj4 = 0 ;
37126 PyObject * obj5 = 0 ;
37127 PyObject * obj6 = 0 ;
37128 PyObject * obj7 = 0 ;
37129 PyObject * obj8 = 0 ;
37130 char * kwnames[] = {
37131 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37132 };
37133
37134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37136 if (!SWIG_IsOK(res1)) {
37137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37138 }
37139 arg1 = reinterpret_cast< wxWindow * >(argp1);
37140 if (obj1) {
37141 ecode2 = SWIG_AsVal_int(obj1, &val2);
37142 if (!SWIG_IsOK(ecode2)) {
37143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37144 }
37145 arg2 = static_cast< int >(val2);
37146 }
37147 if (obj2) {
37148 {
37149 arg3 = wxString_in_helper(obj2);
37150 if (arg3 == NULL) SWIG_fail;
37151 temp3 = true;
37152 }
37153 }
37154 if (obj3) {
37155 {
37156 arg4 = &temp4;
37157 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37158 }
37159 }
37160 if (obj4) {
37161 {
37162 arg5 = &temp5;
37163 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37164 }
37165 }
37166 if (obj5) {
37167 ecode6 = SWIG_AsVal_long(obj5, &val6);
37168 if (!SWIG_IsOK(ecode6)) {
37169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37170 }
37171 arg6 = static_cast< long >(val6);
37172 }
37173 if (obj6) {
37174 {
37175 arg7 = wxString_in_helper(obj6);
37176 if (arg7 == NULL) SWIG_fail;
37177 temp7 = true;
37178 }
37179 }
37180 if (obj7) {
37181 ecode8 = SWIG_AsVal_int(obj7, &val8);
37182 if (!SWIG_IsOK(ecode8)) {
37183 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37184 }
37185 arg8 = static_cast< int >(val8);
37186 }
37187 if (obj8) {
37188 {
37189 arg9 = wxString_in_helper(obj8);
37190 if (arg9 == NULL) SWIG_fail;
37191 temp9 = true;
37192 }
37193 }
37194 {
37195 if (!wxPyCheckForApp()) SWIG_fail;
37196 PyThreadState* __tstate = wxPyBeginAllowThreads();
37197 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37198 wxPyEndAllowThreads(__tstate);
37199 if (PyErr_Occurred()) SWIG_fail;
37200 }
37201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37202 {
37203 if (temp3)
37204 delete arg3;
37205 }
37206 {
37207 if (temp7)
37208 delete arg7;
37209 }
37210 {
37211 if (temp9)
37212 delete arg9;
37213 }
37214 return resultobj;
37215 fail:
37216 {
37217 if (temp3)
37218 delete arg3;
37219 }
37220 {
37221 if (temp7)
37222 delete arg7;
37223 }
37224 {
37225 if (temp9)
37226 delete arg9;
37227 }
37228 return NULL;
37229 }
37230
37231
37232 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37233 PyObject *resultobj = 0;
37234 wxGenericDirCtrl *result = 0 ;
37235
37236 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37237 {
37238 if (!wxPyCheckForApp()) SWIG_fail;
37239 PyThreadState* __tstate = wxPyBeginAllowThreads();
37240 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37241 wxPyEndAllowThreads(__tstate);
37242 if (PyErr_Occurred()) SWIG_fail;
37243 }
37244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37245 return resultobj;
37246 fail:
37247 return NULL;
37248 }
37249
37250
37251 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37252 PyObject *resultobj = 0;
37253 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37254 wxWindow *arg2 = (wxWindow *) 0 ;
37255 int arg3 = (int) (int)-1 ;
37256 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37257 wxString *arg4 = (wxString *) &arg4_defvalue ;
37258 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37259 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37260 wxSize const &arg6_defvalue = wxDefaultSize ;
37261 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37262 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37263 wxString const &arg8_defvalue = wxPyEmptyString ;
37264 wxString *arg8 = (wxString *) &arg8_defvalue ;
37265 int arg9 = (int) 0 ;
37266 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37267 wxString *arg10 = (wxString *) &arg10_defvalue ;
37268 bool result;
37269 void *argp1 = 0 ;
37270 int res1 = 0 ;
37271 void *argp2 = 0 ;
37272 int res2 = 0 ;
37273 int val3 ;
37274 int ecode3 = 0 ;
37275 bool temp4 = false ;
37276 wxPoint temp5 ;
37277 wxSize temp6 ;
37278 long val7 ;
37279 int ecode7 = 0 ;
37280 bool temp8 = false ;
37281 int val9 ;
37282 int ecode9 = 0 ;
37283 bool temp10 = false ;
37284 PyObject * obj0 = 0 ;
37285 PyObject * obj1 = 0 ;
37286 PyObject * obj2 = 0 ;
37287 PyObject * obj3 = 0 ;
37288 PyObject * obj4 = 0 ;
37289 PyObject * obj5 = 0 ;
37290 PyObject * obj6 = 0 ;
37291 PyObject * obj7 = 0 ;
37292 PyObject * obj8 = 0 ;
37293 PyObject * obj9 = 0 ;
37294 char * kwnames[] = {
37295 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37296 };
37297
37298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37300 if (!SWIG_IsOK(res1)) {
37301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37302 }
37303 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37305 if (!SWIG_IsOK(res2)) {
37306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37307 }
37308 arg2 = reinterpret_cast< wxWindow * >(argp2);
37309 if (obj2) {
37310 ecode3 = SWIG_AsVal_int(obj2, &val3);
37311 if (!SWIG_IsOK(ecode3)) {
37312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37313 }
37314 arg3 = static_cast< int >(val3);
37315 }
37316 if (obj3) {
37317 {
37318 arg4 = wxString_in_helper(obj3);
37319 if (arg4 == NULL) SWIG_fail;
37320 temp4 = true;
37321 }
37322 }
37323 if (obj4) {
37324 {
37325 arg5 = &temp5;
37326 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37327 }
37328 }
37329 if (obj5) {
37330 {
37331 arg6 = &temp6;
37332 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37333 }
37334 }
37335 if (obj6) {
37336 ecode7 = SWIG_AsVal_long(obj6, &val7);
37337 if (!SWIG_IsOK(ecode7)) {
37338 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37339 }
37340 arg7 = static_cast< long >(val7);
37341 }
37342 if (obj7) {
37343 {
37344 arg8 = wxString_in_helper(obj7);
37345 if (arg8 == NULL) SWIG_fail;
37346 temp8 = true;
37347 }
37348 }
37349 if (obj8) {
37350 ecode9 = SWIG_AsVal_int(obj8, &val9);
37351 if (!SWIG_IsOK(ecode9)) {
37352 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37353 }
37354 arg9 = static_cast< int >(val9);
37355 }
37356 if (obj9) {
37357 {
37358 arg10 = wxString_in_helper(obj9);
37359 if (arg10 == NULL) SWIG_fail;
37360 temp10 = true;
37361 }
37362 }
37363 {
37364 PyThreadState* __tstate = wxPyBeginAllowThreads();
37365 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37366 wxPyEndAllowThreads(__tstate);
37367 if (PyErr_Occurred()) SWIG_fail;
37368 }
37369 {
37370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37371 }
37372 {
37373 if (temp4)
37374 delete arg4;
37375 }
37376 {
37377 if (temp8)
37378 delete arg8;
37379 }
37380 {
37381 if (temp10)
37382 delete arg10;
37383 }
37384 return resultobj;
37385 fail:
37386 {
37387 if (temp4)
37388 delete arg4;
37389 }
37390 {
37391 if (temp8)
37392 delete arg8;
37393 }
37394 {
37395 if (temp10)
37396 delete arg10;
37397 }
37398 return NULL;
37399 }
37400
37401
37402 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37403 PyObject *resultobj = 0;
37404 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37405 wxString *arg2 = 0 ;
37406 bool result;
37407 void *argp1 = 0 ;
37408 int res1 = 0 ;
37409 bool temp2 = false ;
37410 PyObject * obj0 = 0 ;
37411 PyObject * obj1 = 0 ;
37412 char * kwnames[] = {
37413 (char *) "self",(char *) "path", NULL
37414 };
37415
37416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37418 if (!SWIG_IsOK(res1)) {
37419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37420 }
37421 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37422 {
37423 arg2 = wxString_in_helper(obj1);
37424 if (arg2 == NULL) SWIG_fail;
37425 temp2 = true;
37426 }
37427 {
37428 PyThreadState* __tstate = wxPyBeginAllowThreads();
37429 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37430 wxPyEndAllowThreads(__tstate);
37431 if (PyErr_Occurred()) SWIG_fail;
37432 }
37433 {
37434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37435 }
37436 {
37437 if (temp2)
37438 delete arg2;
37439 }
37440 return resultobj;
37441 fail:
37442 {
37443 if (temp2)
37444 delete arg2;
37445 }
37446 return NULL;
37447 }
37448
37449
37450 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37451 PyObject *resultobj = 0;
37452 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37453 wxString *arg2 = 0 ;
37454 bool result;
37455 void *argp1 = 0 ;
37456 int res1 = 0 ;
37457 bool temp2 = false ;
37458 PyObject * obj0 = 0 ;
37459 PyObject * obj1 = 0 ;
37460 char * kwnames[] = {
37461 (char *) "self",(char *) "path", NULL
37462 };
37463
37464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37466 if (!SWIG_IsOK(res1)) {
37467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37468 }
37469 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37470 {
37471 arg2 = wxString_in_helper(obj1);
37472 if (arg2 == NULL) SWIG_fail;
37473 temp2 = true;
37474 }
37475 {
37476 PyThreadState* __tstate = wxPyBeginAllowThreads();
37477 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37478 wxPyEndAllowThreads(__tstate);
37479 if (PyErr_Occurred()) SWIG_fail;
37480 }
37481 {
37482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37483 }
37484 {
37485 if (temp2)
37486 delete arg2;
37487 }
37488 return resultobj;
37489 fail:
37490 {
37491 if (temp2)
37492 delete arg2;
37493 }
37494 return NULL;
37495 }
37496
37497
37498 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37499 PyObject *resultobj = 0;
37500 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37501 wxString result;
37502 void *argp1 = 0 ;
37503 int res1 = 0 ;
37504 PyObject *swig_obj[1] ;
37505
37506 if (!args) SWIG_fail;
37507 swig_obj[0] = args;
37508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37509 if (!SWIG_IsOK(res1)) {
37510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37511 }
37512 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37513 {
37514 PyThreadState* __tstate = wxPyBeginAllowThreads();
37515 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37516 wxPyEndAllowThreads(__tstate);
37517 if (PyErr_Occurred()) SWIG_fail;
37518 }
37519 {
37520 #if wxUSE_UNICODE
37521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37522 #else
37523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37524 #endif
37525 }
37526 return resultobj;
37527 fail:
37528 return NULL;
37529 }
37530
37531
37532 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37533 PyObject *resultobj = 0;
37534 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37535 wxString *arg2 = 0 ;
37536 void *argp1 = 0 ;
37537 int res1 = 0 ;
37538 bool temp2 = false ;
37539 PyObject * obj0 = 0 ;
37540 PyObject * obj1 = 0 ;
37541 char * kwnames[] = {
37542 (char *) "self",(char *) "path", NULL
37543 };
37544
37545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37547 if (!SWIG_IsOK(res1)) {
37548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37549 }
37550 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37551 {
37552 arg2 = wxString_in_helper(obj1);
37553 if (arg2 == NULL) SWIG_fail;
37554 temp2 = true;
37555 }
37556 {
37557 PyThreadState* __tstate = wxPyBeginAllowThreads();
37558 (arg1)->SetDefaultPath((wxString const &)*arg2);
37559 wxPyEndAllowThreads(__tstate);
37560 if (PyErr_Occurred()) SWIG_fail;
37561 }
37562 resultobj = SWIG_Py_Void();
37563 {
37564 if (temp2)
37565 delete arg2;
37566 }
37567 return resultobj;
37568 fail:
37569 {
37570 if (temp2)
37571 delete arg2;
37572 }
37573 return NULL;
37574 }
37575
37576
37577 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37578 PyObject *resultobj = 0;
37579 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37580 wxString result;
37581 void *argp1 = 0 ;
37582 int res1 = 0 ;
37583 PyObject *swig_obj[1] ;
37584
37585 if (!args) SWIG_fail;
37586 swig_obj[0] = args;
37587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37588 if (!SWIG_IsOK(res1)) {
37589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37590 }
37591 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37592 {
37593 PyThreadState* __tstate = wxPyBeginAllowThreads();
37594 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37595 wxPyEndAllowThreads(__tstate);
37596 if (PyErr_Occurred()) SWIG_fail;
37597 }
37598 {
37599 #if wxUSE_UNICODE
37600 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37601 #else
37602 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37603 #endif
37604 }
37605 return resultobj;
37606 fail:
37607 return NULL;
37608 }
37609
37610
37611 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37612 PyObject *resultobj = 0;
37613 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37614 wxString result;
37615 void *argp1 = 0 ;
37616 int res1 = 0 ;
37617 PyObject *swig_obj[1] ;
37618
37619 if (!args) SWIG_fail;
37620 swig_obj[0] = args;
37621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37622 if (!SWIG_IsOK(res1)) {
37623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37624 }
37625 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37626 {
37627 PyThreadState* __tstate = wxPyBeginAllowThreads();
37628 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37629 wxPyEndAllowThreads(__tstate);
37630 if (PyErr_Occurred()) SWIG_fail;
37631 }
37632 {
37633 #if wxUSE_UNICODE
37634 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37635 #else
37636 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37637 #endif
37638 }
37639 return resultobj;
37640 fail:
37641 return NULL;
37642 }
37643
37644
37645 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37646 PyObject *resultobj = 0;
37647 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37648 wxString *arg2 = 0 ;
37649 void *argp1 = 0 ;
37650 int res1 = 0 ;
37651 bool temp2 = false ;
37652 PyObject * obj0 = 0 ;
37653 PyObject * obj1 = 0 ;
37654 char * kwnames[] = {
37655 (char *) "self",(char *) "path", NULL
37656 };
37657
37658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37660 if (!SWIG_IsOK(res1)) {
37661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37662 }
37663 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37664 {
37665 arg2 = wxString_in_helper(obj1);
37666 if (arg2 == NULL) SWIG_fail;
37667 temp2 = true;
37668 }
37669 {
37670 PyThreadState* __tstate = wxPyBeginAllowThreads();
37671 (arg1)->SetPath((wxString const &)*arg2);
37672 wxPyEndAllowThreads(__tstate);
37673 if (PyErr_Occurred()) SWIG_fail;
37674 }
37675 resultobj = SWIG_Py_Void();
37676 {
37677 if (temp2)
37678 delete arg2;
37679 }
37680 return resultobj;
37681 fail:
37682 {
37683 if (temp2)
37684 delete arg2;
37685 }
37686 return NULL;
37687 }
37688
37689
37690 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37691 PyObject *resultobj = 0;
37692 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37693 bool arg2 ;
37694 void *argp1 = 0 ;
37695 int res1 = 0 ;
37696 bool val2 ;
37697 int ecode2 = 0 ;
37698 PyObject * obj0 = 0 ;
37699 PyObject * obj1 = 0 ;
37700 char * kwnames[] = {
37701 (char *) "self",(char *) "show", NULL
37702 };
37703
37704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37706 if (!SWIG_IsOK(res1)) {
37707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37708 }
37709 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37710 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37711 if (!SWIG_IsOK(ecode2)) {
37712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37713 }
37714 arg2 = static_cast< bool >(val2);
37715 {
37716 PyThreadState* __tstate = wxPyBeginAllowThreads();
37717 (arg1)->ShowHidden(arg2);
37718 wxPyEndAllowThreads(__tstate);
37719 if (PyErr_Occurred()) SWIG_fail;
37720 }
37721 resultobj = SWIG_Py_Void();
37722 return resultobj;
37723 fail:
37724 return NULL;
37725 }
37726
37727
37728 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37729 PyObject *resultobj = 0;
37730 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37731 bool result;
37732 void *argp1 = 0 ;
37733 int res1 = 0 ;
37734 PyObject *swig_obj[1] ;
37735
37736 if (!args) SWIG_fail;
37737 swig_obj[0] = args;
37738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37739 if (!SWIG_IsOK(res1)) {
37740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37741 }
37742 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37743 {
37744 PyThreadState* __tstate = wxPyBeginAllowThreads();
37745 result = (bool)(arg1)->GetShowHidden();
37746 wxPyEndAllowThreads(__tstate);
37747 if (PyErr_Occurred()) SWIG_fail;
37748 }
37749 {
37750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37751 }
37752 return resultobj;
37753 fail:
37754 return NULL;
37755 }
37756
37757
37758 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37759 PyObject *resultobj = 0;
37760 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37761 wxString result;
37762 void *argp1 = 0 ;
37763 int res1 = 0 ;
37764 PyObject *swig_obj[1] ;
37765
37766 if (!args) SWIG_fail;
37767 swig_obj[0] = args;
37768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37769 if (!SWIG_IsOK(res1)) {
37770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37771 }
37772 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37773 {
37774 PyThreadState* __tstate = wxPyBeginAllowThreads();
37775 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37776 wxPyEndAllowThreads(__tstate);
37777 if (PyErr_Occurred()) SWIG_fail;
37778 }
37779 {
37780 #if wxUSE_UNICODE
37781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37782 #else
37783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37784 #endif
37785 }
37786 return resultobj;
37787 fail:
37788 return NULL;
37789 }
37790
37791
37792 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37793 PyObject *resultobj = 0;
37794 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37795 wxString *arg2 = 0 ;
37796 void *argp1 = 0 ;
37797 int res1 = 0 ;
37798 bool temp2 = false ;
37799 PyObject * obj0 = 0 ;
37800 PyObject * obj1 = 0 ;
37801 char * kwnames[] = {
37802 (char *) "self",(char *) "filter", NULL
37803 };
37804
37805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37807 if (!SWIG_IsOK(res1)) {
37808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37809 }
37810 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37811 {
37812 arg2 = wxString_in_helper(obj1);
37813 if (arg2 == NULL) SWIG_fail;
37814 temp2 = true;
37815 }
37816 {
37817 PyThreadState* __tstate = wxPyBeginAllowThreads();
37818 (arg1)->SetFilter((wxString const &)*arg2);
37819 wxPyEndAllowThreads(__tstate);
37820 if (PyErr_Occurred()) SWIG_fail;
37821 }
37822 resultobj = SWIG_Py_Void();
37823 {
37824 if (temp2)
37825 delete arg2;
37826 }
37827 return resultobj;
37828 fail:
37829 {
37830 if (temp2)
37831 delete arg2;
37832 }
37833 return NULL;
37834 }
37835
37836
37837 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37838 PyObject *resultobj = 0;
37839 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37840 int result;
37841 void *argp1 = 0 ;
37842 int res1 = 0 ;
37843 PyObject *swig_obj[1] ;
37844
37845 if (!args) SWIG_fail;
37846 swig_obj[0] = args;
37847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37848 if (!SWIG_IsOK(res1)) {
37849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37850 }
37851 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37852 {
37853 PyThreadState* __tstate = wxPyBeginAllowThreads();
37854 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37855 wxPyEndAllowThreads(__tstate);
37856 if (PyErr_Occurred()) SWIG_fail;
37857 }
37858 resultobj = SWIG_From_int(static_cast< int >(result));
37859 return resultobj;
37860 fail:
37861 return NULL;
37862 }
37863
37864
37865 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37866 PyObject *resultobj = 0;
37867 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37868 int arg2 ;
37869 void *argp1 = 0 ;
37870 int res1 = 0 ;
37871 int val2 ;
37872 int ecode2 = 0 ;
37873 PyObject * obj0 = 0 ;
37874 PyObject * obj1 = 0 ;
37875 char * kwnames[] = {
37876 (char *) "self",(char *) "n", NULL
37877 };
37878
37879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37881 if (!SWIG_IsOK(res1)) {
37882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37883 }
37884 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37885 ecode2 = SWIG_AsVal_int(obj1, &val2);
37886 if (!SWIG_IsOK(ecode2)) {
37887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37888 }
37889 arg2 = static_cast< int >(val2);
37890 {
37891 PyThreadState* __tstate = wxPyBeginAllowThreads();
37892 (arg1)->SetFilterIndex(arg2);
37893 wxPyEndAllowThreads(__tstate);
37894 if (PyErr_Occurred()) SWIG_fail;
37895 }
37896 resultobj = SWIG_Py_Void();
37897 return resultobj;
37898 fail:
37899 return NULL;
37900 }
37901
37902
37903 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37904 PyObject *resultobj = 0;
37905 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37906 wxTreeItemId result;
37907 void *argp1 = 0 ;
37908 int res1 = 0 ;
37909 PyObject *swig_obj[1] ;
37910
37911 if (!args) SWIG_fail;
37912 swig_obj[0] = args;
37913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37914 if (!SWIG_IsOK(res1)) {
37915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37916 }
37917 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37918 {
37919 PyThreadState* __tstate = wxPyBeginAllowThreads();
37920 result = (arg1)->GetRootId();
37921 wxPyEndAllowThreads(__tstate);
37922 if (PyErr_Occurred()) SWIG_fail;
37923 }
37924 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37925 return resultobj;
37926 fail:
37927 return NULL;
37928 }
37929
37930
37931 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37932 PyObject *resultobj = 0;
37933 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37934 wxPyTreeCtrl *result = 0 ;
37935 void *argp1 = 0 ;
37936 int res1 = 0 ;
37937 PyObject *swig_obj[1] ;
37938
37939 if (!args) SWIG_fail;
37940 swig_obj[0] = args;
37941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37942 if (!SWIG_IsOK(res1)) {
37943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37944 }
37945 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37946 {
37947 PyThreadState* __tstate = wxPyBeginAllowThreads();
37948 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37949 wxPyEndAllowThreads(__tstate);
37950 if (PyErr_Occurred()) SWIG_fail;
37951 }
37952 {
37953 resultobj = wxPyMake_wxObject(result, 0);
37954 }
37955 return resultobj;
37956 fail:
37957 return NULL;
37958 }
37959
37960
37961 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37962 PyObject *resultobj = 0;
37963 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37964 wxDirFilterListCtrl *result = 0 ;
37965 void *argp1 = 0 ;
37966 int res1 = 0 ;
37967 PyObject *swig_obj[1] ;
37968
37969 if (!args) SWIG_fail;
37970 swig_obj[0] = args;
37971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37972 if (!SWIG_IsOK(res1)) {
37973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37974 }
37975 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37976 {
37977 PyThreadState* __tstate = wxPyBeginAllowThreads();
37978 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37979 wxPyEndAllowThreads(__tstate);
37980 if (PyErr_Occurred()) SWIG_fail;
37981 }
37982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37983 return resultobj;
37984 fail:
37985 return NULL;
37986 }
37987
37988
37989 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37990 PyObject *resultobj = 0;
37991 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37992 wxTreeItemId arg2 ;
37993 wxString *arg3 = 0 ;
37994 bool *arg4 = 0 ;
37995 wxTreeItemId result;
37996 void *argp1 = 0 ;
37997 int res1 = 0 ;
37998 void *argp2 ;
37999 int res2 = 0 ;
38000 bool temp3 = false ;
38001 bool temp4 ;
38002 int res4 = SWIG_TMPOBJ ;
38003 PyObject * obj0 = 0 ;
38004 PyObject * obj1 = 0 ;
38005 PyObject * obj2 = 0 ;
38006 char * kwnames[] = {
38007 (char *) "self",(char *) "parentId",(char *) "path", NULL
38008 };
38009
38010 arg4 = &temp4;
38011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38013 if (!SWIG_IsOK(res1)) {
38014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38015 }
38016 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38017 {
38018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38019 if (!SWIG_IsOK(res2)) {
38020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38021 }
38022 if (!argp2) {
38023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38024 } else {
38025 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38026 arg2 = *temp;
38027 if (SWIG_IsNewObj(res2)) delete temp;
38028 }
38029 }
38030 {
38031 arg3 = wxString_in_helper(obj2);
38032 if (arg3 == NULL) SWIG_fail;
38033 temp3 = true;
38034 }
38035 {
38036 PyThreadState* __tstate = wxPyBeginAllowThreads();
38037 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38038 wxPyEndAllowThreads(__tstate);
38039 if (PyErr_Occurred()) SWIG_fail;
38040 }
38041 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38042 if (SWIG_IsTmpObj(res4)) {
38043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38044 } else {
38045 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38047 }
38048 {
38049 if (temp3)
38050 delete arg3;
38051 }
38052 return resultobj;
38053 fail:
38054 {
38055 if (temp3)
38056 delete arg3;
38057 }
38058 return NULL;
38059 }
38060
38061
38062 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38063 PyObject *resultobj = 0;
38064 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38065 void *argp1 = 0 ;
38066 int res1 = 0 ;
38067 PyObject *swig_obj[1] ;
38068
38069 if (!args) SWIG_fail;
38070 swig_obj[0] = args;
38071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38072 if (!SWIG_IsOK(res1)) {
38073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38074 }
38075 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38076 {
38077 PyThreadState* __tstate = wxPyBeginAllowThreads();
38078 (arg1)->DoResize();
38079 wxPyEndAllowThreads(__tstate);
38080 if (PyErr_Occurred()) SWIG_fail;
38081 }
38082 resultobj = SWIG_Py_Void();
38083 return resultobj;
38084 fail:
38085 return NULL;
38086 }
38087
38088
38089 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38090 PyObject *resultobj = 0;
38091 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38092 void *argp1 = 0 ;
38093 int res1 = 0 ;
38094 PyObject *swig_obj[1] ;
38095
38096 if (!args) SWIG_fail;
38097 swig_obj[0] = args;
38098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38099 if (!SWIG_IsOK(res1)) {
38100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38101 }
38102 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38103 {
38104 PyThreadState* __tstate = wxPyBeginAllowThreads();
38105 (arg1)->ReCreateTree();
38106 wxPyEndAllowThreads(__tstate);
38107 if (PyErr_Occurred()) SWIG_fail;
38108 }
38109 resultobj = SWIG_Py_Void();
38110 return resultobj;
38111 fail:
38112 return NULL;
38113 }
38114
38115
38116 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38117 PyObject *obj;
38118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38119 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38120 return SWIG_Py_Void();
38121 }
38122
38123 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38124 return SWIG_Python_InitShadowInstance(args);
38125 }
38126
38127 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38128 PyObject *resultobj = 0;
38129 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38130 int arg2 = (int) (int)-1 ;
38131 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38132 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38133 wxSize const &arg4_defvalue = wxDefaultSize ;
38134 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38135 long arg5 = (long) 0 ;
38136 wxDirFilterListCtrl *result = 0 ;
38137 void *argp1 = 0 ;
38138 int res1 = 0 ;
38139 int val2 ;
38140 int ecode2 = 0 ;
38141 wxPoint temp3 ;
38142 wxSize temp4 ;
38143 long val5 ;
38144 int ecode5 = 0 ;
38145 PyObject * obj0 = 0 ;
38146 PyObject * obj1 = 0 ;
38147 PyObject * obj2 = 0 ;
38148 PyObject * obj3 = 0 ;
38149 PyObject * obj4 = 0 ;
38150 char * kwnames[] = {
38151 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38152 };
38153
38154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38156 if (!SWIG_IsOK(res1)) {
38157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38158 }
38159 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38160 if (obj1) {
38161 ecode2 = SWIG_AsVal_int(obj1, &val2);
38162 if (!SWIG_IsOK(ecode2)) {
38163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38164 }
38165 arg2 = static_cast< int >(val2);
38166 }
38167 if (obj2) {
38168 {
38169 arg3 = &temp3;
38170 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38171 }
38172 }
38173 if (obj3) {
38174 {
38175 arg4 = &temp4;
38176 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38177 }
38178 }
38179 if (obj4) {
38180 ecode5 = SWIG_AsVal_long(obj4, &val5);
38181 if (!SWIG_IsOK(ecode5)) {
38182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38183 }
38184 arg5 = static_cast< long >(val5);
38185 }
38186 {
38187 if (!wxPyCheckForApp()) SWIG_fail;
38188 PyThreadState* __tstate = wxPyBeginAllowThreads();
38189 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38190 wxPyEndAllowThreads(__tstate);
38191 if (PyErr_Occurred()) SWIG_fail;
38192 }
38193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38194 return resultobj;
38195 fail:
38196 return NULL;
38197 }
38198
38199
38200 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38201 PyObject *resultobj = 0;
38202 wxDirFilterListCtrl *result = 0 ;
38203
38204 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38205 {
38206 if (!wxPyCheckForApp()) SWIG_fail;
38207 PyThreadState* __tstate = wxPyBeginAllowThreads();
38208 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38209 wxPyEndAllowThreads(__tstate);
38210 if (PyErr_Occurred()) SWIG_fail;
38211 }
38212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38213 return resultobj;
38214 fail:
38215 return NULL;
38216 }
38217
38218
38219 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38220 PyObject *resultobj = 0;
38221 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38222 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38223 int arg3 = (int) (int)-1 ;
38224 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38225 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38226 wxSize const &arg5_defvalue = wxDefaultSize ;
38227 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38228 long arg6 = (long) 0 ;
38229 bool result;
38230 void *argp1 = 0 ;
38231 int res1 = 0 ;
38232 void *argp2 = 0 ;
38233 int res2 = 0 ;
38234 int val3 ;
38235 int ecode3 = 0 ;
38236 wxPoint temp4 ;
38237 wxSize temp5 ;
38238 long val6 ;
38239 int ecode6 = 0 ;
38240 PyObject * obj0 = 0 ;
38241 PyObject * obj1 = 0 ;
38242 PyObject * obj2 = 0 ;
38243 PyObject * obj3 = 0 ;
38244 PyObject * obj4 = 0 ;
38245 PyObject * obj5 = 0 ;
38246 char * kwnames[] = {
38247 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38248 };
38249
38250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38252 if (!SWIG_IsOK(res1)) {
38253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38254 }
38255 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38257 if (!SWIG_IsOK(res2)) {
38258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38259 }
38260 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38261 if (obj2) {
38262 ecode3 = SWIG_AsVal_int(obj2, &val3);
38263 if (!SWIG_IsOK(ecode3)) {
38264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38265 }
38266 arg3 = static_cast< int >(val3);
38267 }
38268 if (obj3) {
38269 {
38270 arg4 = &temp4;
38271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38272 }
38273 }
38274 if (obj4) {
38275 {
38276 arg5 = &temp5;
38277 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38278 }
38279 }
38280 if (obj5) {
38281 ecode6 = SWIG_AsVal_long(obj5, &val6);
38282 if (!SWIG_IsOK(ecode6)) {
38283 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38284 }
38285 arg6 = static_cast< long >(val6);
38286 }
38287 {
38288 PyThreadState* __tstate = wxPyBeginAllowThreads();
38289 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38290 wxPyEndAllowThreads(__tstate);
38291 if (PyErr_Occurred()) SWIG_fail;
38292 }
38293 {
38294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38295 }
38296 return resultobj;
38297 fail:
38298 return NULL;
38299 }
38300
38301
38302 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38303 PyObject *resultobj = 0;
38304 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38305 wxString *arg2 = 0 ;
38306 int arg3 ;
38307 void *argp1 = 0 ;
38308 int res1 = 0 ;
38309 bool temp2 = false ;
38310 int val3 ;
38311 int ecode3 = 0 ;
38312 PyObject * obj0 = 0 ;
38313 PyObject * obj1 = 0 ;
38314 PyObject * obj2 = 0 ;
38315 char * kwnames[] = {
38316 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38317 };
38318
38319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38321 if (!SWIG_IsOK(res1)) {
38322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38323 }
38324 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38325 {
38326 arg2 = wxString_in_helper(obj1);
38327 if (arg2 == NULL) SWIG_fail;
38328 temp2 = true;
38329 }
38330 ecode3 = SWIG_AsVal_int(obj2, &val3);
38331 if (!SWIG_IsOK(ecode3)) {
38332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38333 }
38334 arg3 = static_cast< int >(val3);
38335 {
38336 PyThreadState* __tstate = wxPyBeginAllowThreads();
38337 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38338 wxPyEndAllowThreads(__tstate);
38339 if (PyErr_Occurred()) SWIG_fail;
38340 }
38341 resultobj = SWIG_Py_Void();
38342 {
38343 if (temp2)
38344 delete arg2;
38345 }
38346 return resultobj;
38347 fail:
38348 {
38349 if (temp2)
38350 delete arg2;
38351 }
38352 return NULL;
38353 }
38354
38355
38356 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38357 PyObject *obj;
38358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38359 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38360 return SWIG_Py_Void();
38361 }
38362
38363 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38364 return SWIG_Python_InitShadowInstance(args);
38365 }
38366
38367 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38368 PyObject *resultobj = 0;
38369 wxWindow *arg1 = (wxWindow *) 0 ;
38370 int arg2 = (int) (int)-1 ;
38371 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38372 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38373 wxSize const &arg4_defvalue = wxDefaultSize ;
38374 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38375 long arg5 = (long) 0 ;
38376 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38377 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38378 wxString const &arg7_defvalue = wxPyControlNameStr ;
38379 wxString *arg7 = (wxString *) &arg7_defvalue ;
38380 wxPyControl *result = 0 ;
38381 void *argp1 = 0 ;
38382 int res1 = 0 ;
38383 int val2 ;
38384 int ecode2 = 0 ;
38385 wxPoint temp3 ;
38386 wxSize temp4 ;
38387 long val5 ;
38388 int ecode5 = 0 ;
38389 void *argp6 = 0 ;
38390 int res6 = 0 ;
38391 bool temp7 = false ;
38392 PyObject * obj0 = 0 ;
38393 PyObject * obj1 = 0 ;
38394 PyObject * obj2 = 0 ;
38395 PyObject * obj3 = 0 ;
38396 PyObject * obj4 = 0 ;
38397 PyObject * obj5 = 0 ;
38398 PyObject * obj6 = 0 ;
38399 char * kwnames[] = {
38400 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38401 };
38402
38403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38405 if (!SWIG_IsOK(res1)) {
38406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38407 }
38408 arg1 = reinterpret_cast< wxWindow * >(argp1);
38409 if (obj1) {
38410 ecode2 = SWIG_AsVal_int(obj1, &val2);
38411 if (!SWIG_IsOK(ecode2)) {
38412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38413 }
38414 arg2 = static_cast< int >(val2);
38415 }
38416 if (obj2) {
38417 {
38418 arg3 = &temp3;
38419 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38420 }
38421 }
38422 if (obj3) {
38423 {
38424 arg4 = &temp4;
38425 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38426 }
38427 }
38428 if (obj4) {
38429 ecode5 = SWIG_AsVal_long(obj4, &val5);
38430 if (!SWIG_IsOK(ecode5)) {
38431 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38432 }
38433 arg5 = static_cast< long >(val5);
38434 }
38435 if (obj5) {
38436 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38437 if (!SWIG_IsOK(res6)) {
38438 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38439 }
38440 if (!argp6) {
38441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38442 }
38443 arg6 = reinterpret_cast< wxValidator * >(argp6);
38444 }
38445 if (obj6) {
38446 {
38447 arg7 = wxString_in_helper(obj6);
38448 if (arg7 == NULL) SWIG_fail;
38449 temp7 = true;
38450 }
38451 }
38452 {
38453 if (!wxPyCheckForApp()) SWIG_fail;
38454 PyThreadState* __tstate = wxPyBeginAllowThreads();
38455 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38456 wxPyEndAllowThreads(__tstate);
38457 if (PyErr_Occurred()) SWIG_fail;
38458 }
38459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38460 {
38461 if (temp7)
38462 delete arg7;
38463 }
38464 return resultobj;
38465 fail:
38466 {
38467 if (temp7)
38468 delete arg7;
38469 }
38470 return NULL;
38471 }
38472
38473
38474 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38475 PyObject *resultobj = 0;
38476 wxPyControl *result = 0 ;
38477
38478 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38479 {
38480 if (!wxPyCheckForApp()) SWIG_fail;
38481 PyThreadState* __tstate = wxPyBeginAllowThreads();
38482 result = (wxPyControl *)new wxPyControl();
38483 wxPyEndAllowThreads(__tstate);
38484 if (PyErr_Occurred()) SWIG_fail;
38485 }
38486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38487 return resultobj;
38488 fail:
38489 return NULL;
38490 }
38491
38492
38493 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38494 PyObject *resultobj = 0;
38495 wxPyControl *arg1 = (wxPyControl *) 0 ;
38496 PyObject *arg2 = (PyObject *) 0 ;
38497 PyObject *arg3 = (PyObject *) 0 ;
38498 void *argp1 = 0 ;
38499 int res1 = 0 ;
38500 PyObject * obj0 = 0 ;
38501 PyObject * obj1 = 0 ;
38502 PyObject * obj2 = 0 ;
38503 char * kwnames[] = {
38504 (char *) "self",(char *) "self",(char *) "_class", NULL
38505 };
38506
38507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38509 if (!SWIG_IsOK(res1)) {
38510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38511 }
38512 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38513 arg2 = obj1;
38514 arg3 = obj2;
38515 {
38516 PyThreadState* __tstate = wxPyBeginAllowThreads();
38517 (arg1)->_setCallbackInfo(arg2,arg3);
38518 wxPyEndAllowThreads(__tstate);
38519 if (PyErr_Occurred()) SWIG_fail;
38520 }
38521 resultobj = SWIG_Py_Void();
38522 return resultobj;
38523 fail:
38524 return NULL;
38525 }
38526
38527
38528 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38529 PyObject *resultobj = 0;
38530 wxPyControl *arg1 = (wxPyControl *) 0 ;
38531 wxSize *arg2 = 0 ;
38532 void *argp1 = 0 ;
38533 int res1 = 0 ;
38534 wxSize temp2 ;
38535 PyObject * obj0 = 0 ;
38536 PyObject * obj1 = 0 ;
38537 char * kwnames[] = {
38538 (char *) "self",(char *) "size", NULL
38539 };
38540
38541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38543 if (!SWIG_IsOK(res1)) {
38544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38545 }
38546 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38547 {
38548 arg2 = &temp2;
38549 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38550 }
38551 {
38552 PyThreadState* __tstate = wxPyBeginAllowThreads();
38553 (arg1)->SetBestSize((wxSize const &)*arg2);
38554 wxPyEndAllowThreads(__tstate);
38555 if (PyErr_Occurred()) SWIG_fail;
38556 }
38557 resultobj = SWIG_Py_Void();
38558 return resultobj;
38559 fail:
38560 return NULL;
38561 }
38562
38563
38564 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38565 PyObject *resultobj = 0;
38566 wxPyControl *arg1 = (wxPyControl *) 0 ;
38567 wxDC *arg2 = (wxDC *) 0 ;
38568 bool result;
38569 void *argp1 = 0 ;
38570 int res1 = 0 ;
38571 void *argp2 = 0 ;
38572 int res2 = 0 ;
38573 PyObject * obj0 = 0 ;
38574 PyObject * obj1 = 0 ;
38575 char * kwnames[] = {
38576 (char *) "self",(char *) "dc", NULL
38577 };
38578
38579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38581 if (!SWIG_IsOK(res1)) {
38582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38583 }
38584 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38586 if (!SWIG_IsOK(res2)) {
38587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38588 }
38589 arg2 = reinterpret_cast< wxDC * >(argp2);
38590 {
38591 PyThreadState* __tstate = wxPyBeginAllowThreads();
38592 result = (bool)(arg1)->DoEraseBackground(arg2);
38593 wxPyEndAllowThreads(__tstate);
38594 if (PyErr_Occurred()) SWIG_fail;
38595 }
38596 {
38597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38598 }
38599 return resultobj;
38600 fail:
38601 return NULL;
38602 }
38603
38604
38605 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38606 PyObject *resultobj = 0;
38607 wxPyControl *arg1 = (wxPyControl *) 0 ;
38608 int arg2 ;
38609 int arg3 ;
38610 int arg4 ;
38611 int arg5 ;
38612 void *argp1 = 0 ;
38613 int res1 = 0 ;
38614 int val2 ;
38615 int ecode2 = 0 ;
38616 int val3 ;
38617 int ecode3 = 0 ;
38618 int val4 ;
38619 int ecode4 = 0 ;
38620 int val5 ;
38621 int ecode5 = 0 ;
38622 PyObject * obj0 = 0 ;
38623 PyObject * obj1 = 0 ;
38624 PyObject * obj2 = 0 ;
38625 PyObject * obj3 = 0 ;
38626 PyObject * obj4 = 0 ;
38627 char * kwnames[] = {
38628 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38629 };
38630
38631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38633 if (!SWIG_IsOK(res1)) {
38634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38635 }
38636 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38637 ecode2 = SWIG_AsVal_int(obj1, &val2);
38638 if (!SWIG_IsOK(ecode2)) {
38639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38640 }
38641 arg2 = static_cast< int >(val2);
38642 ecode3 = SWIG_AsVal_int(obj2, &val3);
38643 if (!SWIG_IsOK(ecode3)) {
38644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38645 }
38646 arg3 = static_cast< int >(val3);
38647 ecode4 = SWIG_AsVal_int(obj3, &val4);
38648 if (!SWIG_IsOK(ecode4)) {
38649 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38650 }
38651 arg4 = static_cast< int >(val4);
38652 ecode5 = SWIG_AsVal_int(obj4, &val5);
38653 if (!SWIG_IsOK(ecode5)) {
38654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38655 }
38656 arg5 = static_cast< int >(val5);
38657 {
38658 PyThreadState* __tstate = wxPyBeginAllowThreads();
38659 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38660 wxPyEndAllowThreads(__tstate);
38661 if (PyErr_Occurred()) SWIG_fail;
38662 }
38663 resultobj = SWIG_Py_Void();
38664 return resultobj;
38665 fail:
38666 return NULL;
38667 }
38668
38669
38670 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38671 PyObject *resultobj = 0;
38672 wxPyControl *arg1 = (wxPyControl *) 0 ;
38673 int arg2 ;
38674 int arg3 ;
38675 int arg4 ;
38676 int arg5 ;
38677 int arg6 = (int) wxSIZE_AUTO ;
38678 void *argp1 = 0 ;
38679 int res1 = 0 ;
38680 int val2 ;
38681 int ecode2 = 0 ;
38682 int val3 ;
38683 int ecode3 = 0 ;
38684 int val4 ;
38685 int ecode4 = 0 ;
38686 int val5 ;
38687 int ecode5 = 0 ;
38688 int val6 ;
38689 int ecode6 = 0 ;
38690 PyObject * obj0 = 0 ;
38691 PyObject * obj1 = 0 ;
38692 PyObject * obj2 = 0 ;
38693 PyObject * obj3 = 0 ;
38694 PyObject * obj4 = 0 ;
38695 PyObject * obj5 = 0 ;
38696 char * kwnames[] = {
38697 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38698 };
38699
38700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38702 if (!SWIG_IsOK(res1)) {
38703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38704 }
38705 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38706 ecode2 = SWIG_AsVal_int(obj1, &val2);
38707 if (!SWIG_IsOK(ecode2)) {
38708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38709 }
38710 arg2 = static_cast< int >(val2);
38711 ecode3 = SWIG_AsVal_int(obj2, &val3);
38712 if (!SWIG_IsOK(ecode3)) {
38713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38714 }
38715 arg3 = static_cast< int >(val3);
38716 ecode4 = SWIG_AsVal_int(obj3, &val4);
38717 if (!SWIG_IsOK(ecode4)) {
38718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38719 }
38720 arg4 = static_cast< int >(val4);
38721 ecode5 = SWIG_AsVal_int(obj4, &val5);
38722 if (!SWIG_IsOK(ecode5)) {
38723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38724 }
38725 arg5 = static_cast< int >(val5);
38726 if (obj5) {
38727 ecode6 = SWIG_AsVal_int(obj5, &val6);
38728 if (!SWIG_IsOK(ecode6)) {
38729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38730 }
38731 arg6 = static_cast< int >(val6);
38732 }
38733 {
38734 PyThreadState* __tstate = wxPyBeginAllowThreads();
38735 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38736 wxPyEndAllowThreads(__tstate);
38737 if (PyErr_Occurred()) SWIG_fail;
38738 }
38739 resultobj = SWIG_Py_Void();
38740 return resultobj;
38741 fail:
38742 return NULL;
38743 }
38744
38745
38746 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38747 PyObject *resultobj = 0;
38748 wxPyControl *arg1 = (wxPyControl *) 0 ;
38749 int arg2 ;
38750 int arg3 ;
38751 void *argp1 = 0 ;
38752 int res1 = 0 ;
38753 int val2 ;
38754 int ecode2 = 0 ;
38755 int val3 ;
38756 int ecode3 = 0 ;
38757 PyObject * obj0 = 0 ;
38758 PyObject * obj1 = 0 ;
38759 PyObject * obj2 = 0 ;
38760 char * kwnames[] = {
38761 (char *) "self",(char *) "width",(char *) "height", NULL
38762 };
38763
38764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38766 if (!SWIG_IsOK(res1)) {
38767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38768 }
38769 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38770 ecode2 = SWIG_AsVal_int(obj1, &val2);
38771 if (!SWIG_IsOK(ecode2)) {
38772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38773 }
38774 arg2 = static_cast< int >(val2);
38775 ecode3 = SWIG_AsVal_int(obj2, &val3);
38776 if (!SWIG_IsOK(ecode3)) {
38777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38778 }
38779 arg3 = static_cast< int >(val3);
38780 {
38781 PyThreadState* __tstate = wxPyBeginAllowThreads();
38782 (arg1)->DoSetClientSize(arg2,arg3);
38783 wxPyEndAllowThreads(__tstate);
38784 if (PyErr_Occurred()) SWIG_fail;
38785 }
38786 resultobj = SWIG_Py_Void();
38787 return resultobj;
38788 fail:
38789 return NULL;
38790 }
38791
38792
38793 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38794 PyObject *resultobj = 0;
38795 wxPyControl *arg1 = (wxPyControl *) 0 ;
38796 int arg2 ;
38797 int arg3 ;
38798 void *argp1 = 0 ;
38799 int res1 = 0 ;
38800 int val2 ;
38801 int ecode2 = 0 ;
38802 int val3 ;
38803 int ecode3 = 0 ;
38804 PyObject * obj0 = 0 ;
38805 PyObject * obj1 = 0 ;
38806 PyObject * obj2 = 0 ;
38807 char * kwnames[] = {
38808 (char *) "self",(char *) "x",(char *) "y", NULL
38809 };
38810
38811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38813 if (!SWIG_IsOK(res1)) {
38814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38815 }
38816 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38817 ecode2 = SWIG_AsVal_int(obj1, &val2);
38818 if (!SWIG_IsOK(ecode2)) {
38819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38820 }
38821 arg2 = static_cast< int >(val2);
38822 ecode3 = SWIG_AsVal_int(obj2, &val3);
38823 if (!SWIG_IsOK(ecode3)) {
38824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38825 }
38826 arg3 = static_cast< int >(val3);
38827 {
38828 PyThreadState* __tstate = wxPyBeginAllowThreads();
38829 (arg1)->DoSetVirtualSize(arg2,arg3);
38830 wxPyEndAllowThreads(__tstate);
38831 if (PyErr_Occurred()) SWIG_fail;
38832 }
38833 resultobj = SWIG_Py_Void();
38834 return resultobj;
38835 fail:
38836 return NULL;
38837 }
38838
38839
38840 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38841 PyObject *resultobj = 0;
38842 wxPyControl *arg1 = (wxPyControl *) 0 ;
38843 int *arg2 = (int *) 0 ;
38844 int *arg3 = (int *) 0 ;
38845 void *argp1 = 0 ;
38846 int res1 = 0 ;
38847 int temp2 ;
38848 int res2 = SWIG_TMPOBJ ;
38849 int temp3 ;
38850 int res3 = SWIG_TMPOBJ ;
38851 PyObject *swig_obj[1] ;
38852
38853 arg2 = &temp2;
38854 arg3 = &temp3;
38855 if (!args) SWIG_fail;
38856 swig_obj[0] = args;
38857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38858 if (!SWIG_IsOK(res1)) {
38859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38860 }
38861 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38862 {
38863 PyThreadState* __tstate = wxPyBeginAllowThreads();
38864 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38865 wxPyEndAllowThreads(__tstate);
38866 if (PyErr_Occurred()) SWIG_fail;
38867 }
38868 resultobj = SWIG_Py_Void();
38869 if (SWIG_IsTmpObj(res2)) {
38870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38871 } else {
38872 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38874 }
38875 if (SWIG_IsTmpObj(res3)) {
38876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38877 } else {
38878 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38880 }
38881 return resultobj;
38882 fail:
38883 return NULL;
38884 }
38885
38886
38887 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38888 PyObject *resultobj = 0;
38889 wxPyControl *arg1 = (wxPyControl *) 0 ;
38890 int *arg2 = (int *) 0 ;
38891 int *arg3 = (int *) 0 ;
38892 void *argp1 = 0 ;
38893 int res1 = 0 ;
38894 int temp2 ;
38895 int res2 = SWIG_TMPOBJ ;
38896 int temp3 ;
38897 int res3 = SWIG_TMPOBJ ;
38898 PyObject *swig_obj[1] ;
38899
38900 arg2 = &temp2;
38901 arg3 = &temp3;
38902 if (!args) SWIG_fail;
38903 swig_obj[0] = args;
38904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38905 if (!SWIG_IsOK(res1)) {
38906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38907 }
38908 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38909 {
38910 PyThreadState* __tstate = wxPyBeginAllowThreads();
38911 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38912 wxPyEndAllowThreads(__tstate);
38913 if (PyErr_Occurred()) SWIG_fail;
38914 }
38915 resultobj = SWIG_Py_Void();
38916 if (SWIG_IsTmpObj(res2)) {
38917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38918 } else {
38919 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38921 }
38922 if (SWIG_IsTmpObj(res3)) {
38923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38924 } else {
38925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38927 }
38928 return resultobj;
38929 fail:
38930 return NULL;
38931 }
38932
38933
38934 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38935 PyObject *resultobj = 0;
38936 wxPyControl *arg1 = (wxPyControl *) 0 ;
38937 int *arg2 = (int *) 0 ;
38938 int *arg3 = (int *) 0 ;
38939 void *argp1 = 0 ;
38940 int res1 = 0 ;
38941 int temp2 ;
38942 int res2 = SWIG_TMPOBJ ;
38943 int temp3 ;
38944 int res3 = SWIG_TMPOBJ ;
38945 PyObject *swig_obj[1] ;
38946
38947 arg2 = &temp2;
38948 arg3 = &temp3;
38949 if (!args) SWIG_fail;
38950 swig_obj[0] = args;
38951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38952 if (!SWIG_IsOK(res1)) {
38953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38954 }
38955 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38956 {
38957 PyThreadState* __tstate = wxPyBeginAllowThreads();
38958 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38959 wxPyEndAllowThreads(__tstate);
38960 if (PyErr_Occurred()) SWIG_fail;
38961 }
38962 resultobj = SWIG_Py_Void();
38963 if (SWIG_IsTmpObj(res2)) {
38964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38965 } else {
38966 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38968 }
38969 if (SWIG_IsTmpObj(res3)) {
38970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38971 } else {
38972 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38974 }
38975 return resultobj;
38976 fail:
38977 return NULL;
38978 }
38979
38980
38981 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38982 PyObject *resultobj = 0;
38983 wxPyControl *arg1 = (wxPyControl *) 0 ;
38984 wxSize result;
38985 void *argp1 = 0 ;
38986 int res1 = 0 ;
38987 PyObject *swig_obj[1] ;
38988
38989 if (!args) SWIG_fail;
38990 swig_obj[0] = args;
38991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38992 if (!SWIG_IsOK(res1)) {
38993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38994 }
38995 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38996 {
38997 PyThreadState* __tstate = wxPyBeginAllowThreads();
38998 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38999 wxPyEndAllowThreads(__tstate);
39000 if (PyErr_Occurred()) SWIG_fail;
39001 }
39002 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39003 return resultobj;
39004 fail:
39005 return NULL;
39006 }
39007
39008
39009 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39010 PyObject *resultobj = 0;
39011 wxPyControl *arg1 = (wxPyControl *) 0 ;
39012 wxSize result;
39013 void *argp1 = 0 ;
39014 int res1 = 0 ;
39015 PyObject *swig_obj[1] ;
39016
39017 if (!args) SWIG_fail;
39018 swig_obj[0] = args;
39019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39020 if (!SWIG_IsOK(res1)) {
39021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39022 }
39023 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39024 {
39025 PyThreadState* __tstate = wxPyBeginAllowThreads();
39026 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39027 wxPyEndAllowThreads(__tstate);
39028 if (PyErr_Occurred()) SWIG_fail;
39029 }
39030 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39031 return resultobj;
39032 fail:
39033 return NULL;
39034 }
39035
39036
39037 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39038 PyObject *resultobj = 0;
39039 wxPyControl *arg1 = (wxPyControl *) 0 ;
39040 SwigValueWrapper<wxVisualAttributes > result;
39041 void *argp1 = 0 ;
39042 int res1 = 0 ;
39043 PyObject *swig_obj[1] ;
39044
39045 if (!args) SWIG_fail;
39046 swig_obj[0] = args;
39047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39048 if (!SWIG_IsOK(res1)) {
39049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39050 }
39051 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39052 {
39053 PyThreadState* __tstate = wxPyBeginAllowThreads();
39054 result = (arg1)->GetDefaultAttributes();
39055 wxPyEndAllowThreads(__tstate);
39056 if (PyErr_Occurred()) SWIG_fail;
39057 }
39058 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39059 return resultobj;
39060 fail:
39061 return NULL;
39062 }
39063
39064
39065 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39066 PyObject *resultobj = 0;
39067 wxPyControl *arg1 = (wxPyControl *) 0 ;
39068 void *argp1 = 0 ;
39069 int res1 = 0 ;
39070 PyObject *swig_obj[1] ;
39071
39072 if (!args) SWIG_fail;
39073 swig_obj[0] = args;
39074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39075 if (!SWIG_IsOK(res1)) {
39076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39077 }
39078 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39079 {
39080 PyThreadState* __tstate = wxPyBeginAllowThreads();
39081 (arg1)->OnInternalIdle();
39082 wxPyEndAllowThreads(__tstate);
39083 if (PyErr_Occurred()) SWIG_fail;
39084 }
39085 resultobj = SWIG_Py_Void();
39086 return resultobj;
39087 fail:
39088 return NULL;
39089 }
39090
39091
39092 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39093 PyObject *obj;
39094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39095 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39096 return SWIG_Py_Void();
39097 }
39098
39099 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39100 return SWIG_Python_InitShadowInstance(args);
39101 }
39102
39103 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39104 PyObject *resultobj = 0;
39105 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39106 int arg2 = (int) 0 ;
39107 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39108 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39109 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39110 wxHelpEvent *result = 0 ;
39111 int val1 ;
39112 int ecode1 = 0 ;
39113 int val2 ;
39114 int ecode2 = 0 ;
39115 wxPoint temp3 ;
39116 int val4 ;
39117 int ecode4 = 0 ;
39118 PyObject * obj0 = 0 ;
39119 PyObject * obj1 = 0 ;
39120 PyObject * obj2 = 0 ;
39121 PyObject * obj3 = 0 ;
39122 char * kwnames[] = {
39123 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39124 };
39125
39126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39127 if (obj0) {
39128 ecode1 = SWIG_AsVal_int(obj0, &val1);
39129 if (!SWIG_IsOK(ecode1)) {
39130 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39131 }
39132 arg1 = static_cast< wxEventType >(val1);
39133 }
39134 if (obj1) {
39135 ecode2 = SWIG_AsVal_int(obj1, &val2);
39136 if (!SWIG_IsOK(ecode2)) {
39137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39138 }
39139 arg2 = static_cast< int >(val2);
39140 }
39141 if (obj2) {
39142 {
39143 arg3 = &temp3;
39144 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39145 }
39146 }
39147 if (obj3) {
39148 ecode4 = SWIG_AsVal_int(obj3, &val4);
39149 if (!SWIG_IsOK(ecode4)) {
39150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39151 }
39152 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39153 }
39154 {
39155 PyThreadState* __tstate = wxPyBeginAllowThreads();
39156 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39157 wxPyEndAllowThreads(__tstate);
39158 if (PyErr_Occurred()) SWIG_fail;
39159 }
39160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39161 return resultobj;
39162 fail:
39163 return NULL;
39164 }
39165
39166
39167 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39168 PyObject *resultobj = 0;
39169 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39170 wxPoint result;
39171 void *argp1 = 0 ;
39172 int res1 = 0 ;
39173 PyObject *swig_obj[1] ;
39174
39175 if (!args) SWIG_fail;
39176 swig_obj[0] = args;
39177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39178 if (!SWIG_IsOK(res1)) {
39179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39180 }
39181 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39182 {
39183 PyThreadState* __tstate = wxPyBeginAllowThreads();
39184 result = ((wxHelpEvent const *)arg1)->GetPosition();
39185 wxPyEndAllowThreads(__tstate);
39186 if (PyErr_Occurred()) SWIG_fail;
39187 }
39188 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39189 return resultobj;
39190 fail:
39191 return NULL;
39192 }
39193
39194
39195 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39196 PyObject *resultobj = 0;
39197 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39198 wxPoint *arg2 = 0 ;
39199 void *argp1 = 0 ;
39200 int res1 = 0 ;
39201 wxPoint temp2 ;
39202 PyObject * obj0 = 0 ;
39203 PyObject * obj1 = 0 ;
39204 char * kwnames[] = {
39205 (char *) "self",(char *) "pos", NULL
39206 };
39207
39208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39210 if (!SWIG_IsOK(res1)) {
39211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39212 }
39213 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39214 {
39215 arg2 = &temp2;
39216 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39217 }
39218 {
39219 PyThreadState* __tstate = wxPyBeginAllowThreads();
39220 (arg1)->SetPosition((wxPoint const &)*arg2);
39221 wxPyEndAllowThreads(__tstate);
39222 if (PyErr_Occurred()) SWIG_fail;
39223 }
39224 resultobj = SWIG_Py_Void();
39225 return resultobj;
39226 fail:
39227 return NULL;
39228 }
39229
39230
39231 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39232 PyObject *resultobj = 0;
39233 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39234 wxString *result = 0 ;
39235 void *argp1 = 0 ;
39236 int res1 = 0 ;
39237 PyObject *swig_obj[1] ;
39238
39239 if (!args) SWIG_fail;
39240 swig_obj[0] = args;
39241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39242 if (!SWIG_IsOK(res1)) {
39243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39244 }
39245 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39246 {
39247 PyThreadState* __tstate = wxPyBeginAllowThreads();
39248 {
39249 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39250 result = (wxString *) &_result_ref;
39251 }
39252 wxPyEndAllowThreads(__tstate);
39253 if (PyErr_Occurred()) SWIG_fail;
39254 }
39255 {
39256 #if wxUSE_UNICODE
39257 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39258 #else
39259 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39260 #endif
39261 }
39262 return resultobj;
39263 fail:
39264 return NULL;
39265 }
39266
39267
39268 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39269 PyObject *resultobj = 0;
39270 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39271 wxString *arg2 = 0 ;
39272 void *argp1 = 0 ;
39273 int res1 = 0 ;
39274 bool temp2 = false ;
39275 PyObject * obj0 = 0 ;
39276 PyObject * obj1 = 0 ;
39277 char * kwnames[] = {
39278 (char *) "self",(char *) "link", NULL
39279 };
39280
39281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39283 if (!SWIG_IsOK(res1)) {
39284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39285 }
39286 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39287 {
39288 arg2 = wxString_in_helper(obj1);
39289 if (arg2 == NULL) SWIG_fail;
39290 temp2 = true;
39291 }
39292 {
39293 PyThreadState* __tstate = wxPyBeginAllowThreads();
39294 (arg1)->SetLink((wxString const &)*arg2);
39295 wxPyEndAllowThreads(__tstate);
39296 if (PyErr_Occurred()) SWIG_fail;
39297 }
39298 resultobj = SWIG_Py_Void();
39299 {
39300 if (temp2)
39301 delete arg2;
39302 }
39303 return resultobj;
39304 fail:
39305 {
39306 if (temp2)
39307 delete arg2;
39308 }
39309 return NULL;
39310 }
39311
39312
39313 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39314 PyObject *resultobj = 0;
39315 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39316 wxString *result = 0 ;
39317 void *argp1 = 0 ;
39318 int res1 = 0 ;
39319 PyObject *swig_obj[1] ;
39320
39321 if (!args) SWIG_fail;
39322 swig_obj[0] = args;
39323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39324 if (!SWIG_IsOK(res1)) {
39325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39326 }
39327 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39328 {
39329 PyThreadState* __tstate = wxPyBeginAllowThreads();
39330 {
39331 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39332 result = (wxString *) &_result_ref;
39333 }
39334 wxPyEndAllowThreads(__tstate);
39335 if (PyErr_Occurred()) SWIG_fail;
39336 }
39337 {
39338 #if wxUSE_UNICODE
39339 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39340 #else
39341 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39342 #endif
39343 }
39344 return resultobj;
39345 fail:
39346 return NULL;
39347 }
39348
39349
39350 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39351 PyObject *resultobj = 0;
39352 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39353 wxString *arg2 = 0 ;
39354 void *argp1 = 0 ;
39355 int res1 = 0 ;
39356 bool temp2 = false ;
39357 PyObject * obj0 = 0 ;
39358 PyObject * obj1 = 0 ;
39359 char * kwnames[] = {
39360 (char *) "self",(char *) "target", NULL
39361 };
39362
39363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39365 if (!SWIG_IsOK(res1)) {
39366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39367 }
39368 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39369 {
39370 arg2 = wxString_in_helper(obj1);
39371 if (arg2 == NULL) SWIG_fail;
39372 temp2 = true;
39373 }
39374 {
39375 PyThreadState* __tstate = wxPyBeginAllowThreads();
39376 (arg1)->SetTarget((wxString const &)*arg2);
39377 wxPyEndAllowThreads(__tstate);
39378 if (PyErr_Occurred()) SWIG_fail;
39379 }
39380 resultobj = SWIG_Py_Void();
39381 {
39382 if (temp2)
39383 delete arg2;
39384 }
39385 return resultobj;
39386 fail:
39387 {
39388 if (temp2)
39389 delete arg2;
39390 }
39391 return NULL;
39392 }
39393
39394
39395 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39396 PyObject *resultobj = 0;
39397 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39398 wxHelpEvent::Origin result;
39399 void *argp1 = 0 ;
39400 int res1 = 0 ;
39401 PyObject *swig_obj[1] ;
39402
39403 if (!args) SWIG_fail;
39404 swig_obj[0] = args;
39405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39406 if (!SWIG_IsOK(res1)) {
39407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39408 }
39409 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39410 {
39411 PyThreadState* __tstate = wxPyBeginAllowThreads();
39412 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39413 wxPyEndAllowThreads(__tstate);
39414 if (PyErr_Occurred()) SWIG_fail;
39415 }
39416 resultobj = SWIG_From_int(static_cast< int >(result));
39417 return resultobj;
39418 fail:
39419 return NULL;
39420 }
39421
39422
39423 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39424 PyObject *resultobj = 0;
39425 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39426 wxHelpEvent::Origin arg2 ;
39427 void *argp1 = 0 ;
39428 int res1 = 0 ;
39429 int val2 ;
39430 int ecode2 = 0 ;
39431 PyObject * obj0 = 0 ;
39432 PyObject * obj1 = 0 ;
39433 char * kwnames[] = {
39434 (char *) "self",(char *) "origin", NULL
39435 };
39436
39437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39439 if (!SWIG_IsOK(res1)) {
39440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39441 }
39442 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39443 ecode2 = SWIG_AsVal_int(obj1, &val2);
39444 if (!SWIG_IsOK(ecode2)) {
39445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39446 }
39447 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39448 {
39449 PyThreadState* __tstate = wxPyBeginAllowThreads();
39450 (arg1)->SetOrigin(arg2);
39451 wxPyEndAllowThreads(__tstate);
39452 if (PyErr_Occurred()) SWIG_fail;
39453 }
39454 resultobj = SWIG_Py_Void();
39455 return resultobj;
39456 fail:
39457 return NULL;
39458 }
39459
39460
39461 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39462 PyObject *obj;
39463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39464 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39465 return SWIG_Py_Void();
39466 }
39467
39468 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39469 return SWIG_Python_InitShadowInstance(args);
39470 }
39471
39472 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39473 PyObject *resultobj = 0;
39474 wxWindow *arg1 = (wxWindow *) NULL ;
39475 bool arg2 = (bool) true ;
39476 wxContextHelp *result = 0 ;
39477 void *argp1 = 0 ;
39478 int res1 = 0 ;
39479 bool val2 ;
39480 int ecode2 = 0 ;
39481 PyObject * obj0 = 0 ;
39482 PyObject * obj1 = 0 ;
39483 char * kwnames[] = {
39484 (char *) "window",(char *) "doNow", NULL
39485 };
39486
39487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39488 if (obj0) {
39489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39490 if (!SWIG_IsOK(res1)) {
39491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39492 }
39493 arg1 = reinterpret_cast< wxWindow * >(argp1);
39494 }
39495 if (obj1) {
39496 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39497 if (!SWIG_IsOK(ecode2)) {
39498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39499 }
39500 arg2 = static_cast< bool >(val2);
39501 }
39502 {
39503 if (!wxPyCheckForApp()) SWIG_fail;
39504 PyThreadState* __tstate = wxPyBeginAllowThreads();
39505 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39506 wxPyEndAllowThreads(__tstate);
39507 if (PyErr_Occurred()) SWIG_fail;
39508 }
39509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39510 return resultobj;
39511 fail:
39512 return NULL;
39513 }
39514
39515
39516 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39517 PyObject *resultobj = 0;
39518 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39519 void *argp1 = 0 ;
39520 int res1 = 0 ;
39521 PyObject *swig_obj[1] ;
39522
39523 if (!args) SWIG_fail;
39524 swig_obj[0] = args;
39525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39526 if (!SWIG_IsOK(res1)) {
39527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39528 }
39529 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39530 {
39531 PyThreadState* __tstate = wxPyBeginAllowThreads();
39532 delete arg1;
39533
39534 wxPyEndAllowThreads(__tstate);
39535 if (PyErr_Occurred()) SWIG_fail;
39536 }
39537 resultobj = SWIG_Py_Void();
39538 return resultobj;
39539 fail:
39540 return NULL;
39541 }
39542
39543
39544 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39545 PyObject *resultobj = 0;
39546 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39547 wxWindow *arg2 = (wxWindow *) NULL ;
39548 bool result;
39549 void *argp1 = 0 ;
39550 int res1 = 0 ;
39551 void *argp2 = 0 ;
39552 int res2 = 0 ;
39553 PyObject * obj0 = 0 ;
39554 PyObject * obj1 = 0 ;
39555 char * kwnames[] = {
39556 (char *) "self",(char *) "window", NULL
39557 };
39558
39559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39561 if (!SWIG_IsOK(res1)) {
39562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39563 }
39564 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39565 if (obj1) {
39566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39567 if (!SWIG_IsOK(res2)) {
39568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39569 }
39570 arg2 = reinterpret_cast< wxWindow * >(argp2);
39571 }
39572 {
39573 PyThreadState* __tstate = wxPyBeginAllowThreads();
39574 result = (bool)(arg1)->BeginContextHelp(arg2);
39575 wxPyEndAllowThreads(__tstate);
39576 if (PyErr_Occurred()) SWIG_fail;
39577 }
39578 {
39579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39580 }
39581 return resultobj;
39582 fail:
39583 return NULL;
39584 }
39585
39586
39587 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39588 PyObject *resultobj = 0;
39589 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39590 bool result;
39591 void *argp1 = 0 ;
39592 int res1 = 0 ;
39593 PyObject *swig_obj[1] ;
39594
39595 if (!args) SWIG_fail;
39596 swig_obj[0] = args;
39597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39598 if (!SWIG_IsOK(res1)) {
39599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39600 }
39601 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39602 {
39603 PyThreadState* __tstate = wxPyBeginAllowThreads();
39604 result = (bool)(arg1)->EndContextHelp();
39605 wxPyEndAllowThreads(__tstate);
39606 if (PyErr_Occurred()) SWIG_fail;
39607 }
39608 {
39609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39610 }
39611 return resultobj;
39612 fail:
39613 return NULL;
39614 }
39615
39616
39617 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39618 PyObject *obj;
39619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39620 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39621 return SWIG_Py_Void();
39622 }
39623
39624 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39625 return SWIG_Python_InitShadowInstance(args);
39626 }
39627
39628 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39629 PyObject *resultobj = 0;
39630 wxWindow *arg1 = (wxWindow *) 0 ;
39631 int arg2 = (int) wxID_CONTEXT_HELP ;
39632 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39633 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39634 wxSize const &arg4_defvalue = wxDefaultSize ;
39635 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39636 long arg5 = (long) wxBU_AUTODRAW ;
39637 wxContextHelpButton *result = 0 ;
39638 void *argp1 = 0 ;
39639 int res1 = 0 ;
39640 int val2 ;
39641 int ecode2 = 0 ;
39642 wxPoint temp3 ;
39643 wxSize temp4 ;
39644 long val5 ;
39645 int ecode5 = 0 ;
39646 PyObject * obj0 = 0 ;
39647 PyObject * obj1 = 0 ;
39648 PyObject * obj2 = 0 ;
39649 PyObject * obj3 = 0 ;
39650 PyObject * obj4 = 0 ;
39651 char * kwnames[] = {
39652 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39653 };
39654
39655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39657 if (!SWIG_IsOK(res1)) {
39658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39659 }
39660 arg1 = reinterpret_cast< wxWindow * >(argp1);
39661 if (obj1) {
39662 ecode2 = SWIG_AsVal_int(obj1, &val2);
39663 if (!SWIG_IsOK(ecode2)) {
39664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39665 }
39666 arg2 = static_cast< int >(val2);
39667 }
39668 if (obj2) {
39669 {
39670 arg3 = &temp3;
39671 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39672 }
39673 }
39674 if (obj3) {
39675 {
39676 arg4 = &temp4;
39677 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39678 }
39679 }
39680 if (obj4) {
39681 ecode5 = SWIG_AsVal_long(obj4, &val5);
39682 if (!SWIG_IsOK(ecode5)) {
39683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39684 }
39685 arg5 = static_cast< long >(val5);
39686 }
39687 {
39688 if (!wxPyCheckForApp()) SWIG_fail;
39689 PyThreadState* __tstate = wxPyBeginAllowThreads();
39690 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39691 wxPyEndAllowThreads(__tstate);
39692 if (PyErr_Occurred()) SWIG_fail;
39693 }
39694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39695 return resultobj;
39696 fail:
39697 return NULL;
39698 }
39699
39700
39701 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39702 PyObject *obj;
39703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39704 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39705 return SWIG_Py_Void();
39706 }
39707
39708 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39709 return SWIG_Python_InitShadowInstance(args);
39710 }
39711
39712 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39713 PyObject *resultobj = 0;
39714 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39715 void *argp1 = 0 ;
39716 int res1 = 0 ;
39717 PyObject *swig_obj[1] ;
39718
39719 if (!args) SWIG_fail;
39720 swig_obj[0] = args;
39721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39722 if (!SWIG_IsOK(res1)) {
39723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39724 }
39725 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39726 {
39727 PyThreadState* __tstate = wxPyBeginAllowThreads();
39728 delete arg1;
39729
39730 wxPyEndAllowThreads(__tstate);
39731 if (PyErr_Occurred()) SWIG_fail;
39732 }
39733 resultobj = SWIG_Py_Void();
39734 return resultobj;
39735 fail:
39736 return NULL;
39737 }
39738
39739
39740 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39741 PyObject *resultobj = 0;
39742 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39743 wxHelpProvider *result = 0 ;
39744 int res1 = 0 ;
39745 PyObject * obj0 = 0 ;
39746 char * kwnames[] = {
39747 (char *) "helpProvider", NULL
39748 };
39749
39750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39751 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39752 if (!SWIG_IsOK(res1)) {
39753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39754 }
39755 {
39756 PyThreadState* __tstate = wxPyBeginAllowThreads();
39757 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39758 wxPyEndAllowThreads(__tstate);
39759 if (PyErr_Occurred()) SWIG_fail;
39760 }
39761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39762 return resultobj;
39763 fail:
39764 return NULL;
39765 }
39766
39767
39768 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39769 PyObject *resultobj = 0;
39770 wxHelpProvider *result = 0 ;
39771
39772 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39773 {
39774 PyThreadState* __tstate = wxPyBeginAllowThreads();
39775 result = (wxHelpProvider *)wxHelpProvider::Get();
39776 wxPyEndAllowThreads(__tstate);
39777 if (PyErr_Occurred()) SWIG_fail;
39778 }
39779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39780 return resultobj;
39781 fail:
39782 return NULL;
39783 }
39784
39785
39786 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39787 PyObject *resultobj = 0;
39788 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39789 wxWindow *arg2 = (wxWindow *) 0 ;
39790 wxString result;
39791 void *argp1 = 0 ;
39792 int res1 = 0 ;
39793 void *argp2 = 0 ;
39794 int res2 = 0 ;
39795 PyObject * obj0 = 0 ;
39796 PyObject * obj1 = 0 ;
39797 char * kwnames[] = {
39798 (char *) "self",(char *) "window", NULL
39799 };
39800
39801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39803 if (!SWIG_IsOK(res1)) {
39804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39805 }
39806 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39808 if (!SWIG_IsOK(res2)) {
39809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39810 }
39811 arg2 = reinterpret_cast< wxWindow * >(argp2);
39812 {
39813 PyThreadState* __tstate = wxPyBeginAllowThreads();
39814 result = (arg1)->GetHelp((wxWindow const *)arg2);
39815 wxPyEndAllowThreads(__tstate);
39816 if (PyErr_Occurred()) SWIG_fail;
39817 }
39818 {
39819 #if wxUSE_UNICODE
39820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39821 #else
39822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39823 #endif
39824 }
39825 return resultobj;
39826 fail:
39827 return NULL;
39828 }
39829
39830
39831 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39832 PyObject *resultobj = 0;
39833 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39834 wxWindow *arg2 = (wxWindow *) 0 ;
39835 bool result;
39836 void *argp1 = 0 ;
39837 int res1 = 0 ;
39838 void *argp2 = 0 ;
39839 int res2 = 0 ;
39840 PyObject * obj0 = 0 ;
39841 PyObject * obj1 = 0 ;
39842 char * kwnames[] = {
39843 (char *) "self",(char *) "window", NULL
39844 };
39845
39846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39848 if (!SWIG_IsOK(res1)) {
39849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39850 }
39851 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39852 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39853 if (!SWIG_IsOK(res2)) {
39854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39855 }
39856 arg2 = reinterpret_cast< wxWindow * >(argp2);
39857 {
39858 PyThreadState* __tstate = wxPyBeginAllowThreads();
39859 result = (bool)(arg1)->ShowHelp(arg2);
39860 wxPyEndAllowThreads(__tstate);
39861 if (PyErr_Occurred()) SWIG_fail;
39862 }
39863 {
39864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39865 }
39866 return resultobj;
39867 fail:
39868 return NULL;
39869 }
39870
39871
39872 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39873 PyObject *resultobj = 0;
39874 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39875 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39876 wxPoint *arg3 = 0 ;
39877 wxHelpEvent::Origin arg4 ;
39878 bool result;
39879 void *argp1 = 0 ;
39880 int res1 = 0 ;
39881 void *argp2 = 0 ;
39882 int res2 = 0 ;
39883 wxPoint temp3 ;
39884 int val4 ;
39885 int ecode4 = 0 ;
39886 PyObject * obj0 = 0 ;
39887 PyObject * obj1 = 0 ;
39888 PyObject * obj2 = 0 ;
39889 PyObject * obj3 = 0 ;
39890 char * kwnames[] = {
39891 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39892 };
39893
39894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39896 if (!SWIG_IsOK(res1)) {
39897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39898 }
39899 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39900 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39901 if (!SWIG_IsOK(res2)) {
39902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39903 }
39904 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39905 {
39906 arg3 = &temp3;
39907 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39908 }
39909 ecode4 = SWIG_AsVal_int(obj3, &val4);
39910 if (!SWIG_IsOK(ecode4)) {
39911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39912 }
39913 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39914 {
39915 PyThreadState* __tstate = wxPyBeginAllowThreads();
39916 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39917 wxPyEndAllowThreads(__tstate);
39918 if (PyErr_Occurred()) SWIG_fail;
39919 }
39920 {
39921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39922 }
39923 return resultobj;
39924 fail:
39925 return NULL;
39926 }
39927
39928
39929 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39930 PyObject *resultobj = 0;
39931 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39932 wxWindow *arg2 = (wxWindow *) 0 ;
39933 wxString *arg3 = 0 ;
39934 void *argp1 = 0 ;
39935 int res1 = 0 ;
39936 void *argp2 = 0 ;
39937 int res2 = 0 ;
39938 bool temp3 = false ;
39939 PyObject * obj0 = 0 ;
39940 PyObject * obj1 = 0 ;
39941 PyObject * obj2 = 0 ;
39942 char * kwnames[] = {
39943 (char *) "self",(char *) "window",(char *) "text", NULL
39944 };
39945
39946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39948 if (!SWIG_IsOK(res1)) {
39949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39950 }
39951 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39952 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39953 if (!SWIG_IsOK(res2)) {
39954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39955 }
39956 arg2 = reinterpret_cast< wxWindow * >(argp2);
39957 {
39958 arg3 = wxString_in_helper(obj2);
39959 if (arg3 == NULL) SWIG_fail;
39960 temp3 = true;
39961 }
39962 {
39963 PyThreadState* __tstate = wxPyBeginAllowThreads();
39964 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39965 wxPyEndAllowThreads(__tstate);
39966 if (PyErr_Occurred()) SWIG_fail;
39967 }
39968 resultobj = SWIG_Py_Void();
39969 {
39970 if (temp3)
39971 delete arg3;
39972 }
39973 return resultobj;
39974 fail:
39975 {
39976 if (temp3)
39977 delete arg3;
39978 }
39979 return NULL;
39980 }
39981
39982
39983 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39984 PyObject *resultobj = 0;
39985 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39986 int arg2 ;
39987 wxString *arg3 = 0 ;
39988 void *argp1 = 0 ;
39989 int res1 = 0 ;
39990 int val2 ;
39991 int ecode2 = 0 ;
39992 bool temp3 = false ;
39993 PyObject * obj0 = 0 ;
39994 PyObject * obj1 = 0 ;
39995 PyObject * obj2 = 0 ;
39996 char * kwnames[] = {
39997 (char *) "self",(char *) "id",(char *) "text", NULL
39998 };
39999
40000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40002 if (!SWIG_IsOK(res1)) {
40003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40004 }
40005 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40006 ecode2 = SWIG_AsVal_int(obj1, &val2);
40007 if (!SWIG_IsOK(ecode2)) {
40008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40009 }
40010 arg2 = static_cast< int >(val2);
40011 {
40012 arg3 = wxString_in_helper(obj2);
40013 if (arg3 == NULL) SWIG_fail;
40014 temp3 = true;
40015 }
40016 {
40017 PyThreadState* __tstate = wxPyBeginAllowThreads();
40018 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40019 wxPyEndAllowThreads(__tstate);
40020 if (PyErr_Occurred()) SWIG_fail;
40021 }
40022 resultobj = SWIG_Py_Void();
40023 {
40024 if (temp3)
40025 delete arg3;
40026 }
40027 return resultobj;
40028 fail:
40029 {
40030 if (temp3)
40031 delete arg3;
40032 }
40033 return NULL;
40034 }
40035
40036
40037 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40038 PyObject *resultobj = 0;
40039 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40040 wxWindow *arg2 = (wxWindow *) 0 ;
40041 void *argp1 = 0 ;
40042 int res1 = 0 ;
40043 void *argp2 = 0 ;
40044 int res2 = 0 ;
40045 PyObject * obj0 = 0 ;
40046 PyObject * obj1 = 0 ;
40047 char * kwnames[] = {
40048 (char *) "self",(char *) "window", NULL
40049 };
40050
40051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40053 if (!SWIG_IsOK(res1)) {
40054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40055 }
40056 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40058 if (!SWIG_IsOK(res2)) {
40059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40060 }
40061 arg2 = reinterpret_cast< wxWindow * >(argp2);
40062 {
40063 PyThreadState* __tstate = wxPyBeginAllowThreads();
40064 (arg1)->RemoveHelp(arg2);
40065 wxPyEndAllowThreads(__tstate);
40066 if (PyErr_Occurred()) SWIG_fail;
40067 }
40068 resultobj = SWIG_Py_Void();
40069 return resultobj;
40070 fail:
40071 return NULL;
40072 }
40073
40074
40075 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40076 PyObject *resultobj = 0;
40077 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40078 void *argp1 = 0 ;
40079 int res1 = 0 ;
40080 PyObject *swig_obj[1] ;
40081
40082 if (!args) SWIG_fail;
40083 swig_obj[0] = args;
40084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40085 if (!SWIG_IsOK(res1)) {
40086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40087 }
40088 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40089 {
40090 PyThreadState* __tstate = wxPyBeginAllowThreads();
40091 wxHelpProvider_Destroy(arg1);
40092 wxPyEndAllowThreads(__tstate);
40093 if (PyErr_Occurred()) SWIG_fail;
40094 }
40095 resultobj = SWIG_Py_Void();
40096 return resultobj;
40097 fail:
40098 return NULL;
40099 }
40100
40101
40102 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40103 PyObject *obj;
40104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40105 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40106 return SWIG_Py_Void();
40107 }
40108
40109 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40110 PyObject *resultobj = 0;
40111 wxSimpleHelpProvider *result = 0 ;
40112
40113 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40114 {
40115 PyThreadState* __tstate = wxPyBeginAllowThreads();
40116 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40117 wxPyEndAllowThreads(__tstate);
40118 if (PyErr_Occurred()) SWIG_fail;
40119 }
40120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40121 return resultobj;
40122 fail:
40123 return NULL;
40124 }
40125
40126
40127 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40128 PyObject *obj;
40129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40130 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40131 return SWIG_Py_Void();
40132 }
40133
40134 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40135 return SWIG_Python_InitShadowInstance(args);
40136 }
40137
40138 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40139 PyObject *resultobj = 0;
40140 wxBitmap *arg1 = 0 ;
40141 wxCursor const &arg2_defvalue = wxNullCursor ;
40142 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40143 wxGenericDragImage *result = 0 ;
40144 void *argp1 = 0 ;
40145 int res1 = 0 ;
40146 void *argp2 = 0 ;
40147 int res2 = 0 ;
40148 PyObject * obj0 = 0 ;
40149 PyObject * obj1 = 0 ;
40150 char * kwnames[] = {
40151 (char *) "image",(char *) "cursor", NULL
40152 };
40153
40154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40155 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40156 if (!SWIG_IsOK(res1)) {
40157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40158 }
40159 if (!argp1) {
40160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40161 }
40162 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40163 if (obj1) {
40164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40165 if (!SWIG_IsOK(res2)) {
40166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40167 }
40168 if (!argp2) {
40169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40170 }
40171 arg2 = reinterpret_cast< wxCursor * >(argp2);
40172 }
40173 {
40174 if (!wxPyCheckForApp()) SWIG_fail;
40175 PyThreadState* __tstate = wxPyBeginAllowThreads();
40176 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40177 wxPyEndAllowThreads(__tstate);
40178 if (PyErr_Occurred()) SWIG_fail;
40179 }
40180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40181 return resultobj;
40182 fail:
40183 return NULL;
40184 }
40185
40186
40187 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40188 PyObject *resultobj = 0;
40189 wxIcon *arg1 = 0 ;
40190 wxCursor const &arg2_defvalue = wxNullCursor ;
40191 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40192 wxGenericDragImage *result = 0 ;
40193 void *argp1 = 0 ;
40194 int res1 = 0 ;
40195 void *argp2 = 0 ;
40196 int res2 = 0 ;
40197 PyObject * obj0 = 0 ;
40198 PyObject * obj1 = 0 ;
40199 char * kwnames[] = {
40200 (char *) "image",(char *) "cursor", NULL
40201 };
40202
40203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40204 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40205 if (!SWIG_IsOK(res1)) {
40206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40207 }
40208 if (!argp1) {
40209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40210 }
40211 arg1 = reinterpret_cast< wxIcon * >(argp1);
40212 if (obj1) {
40213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40214 if (!SWIG_IsOK(res2)) {
40215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40216 }
40217 if (!argp2) {
40218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40219 }
40220 arg2 = reinterpret_cast< wxCursor * >(argp2);
40221 }
40222 {
40223 if (!wxPyCheckForApp()) SWIG_fail;
40224 PyThreadState* __tstate = wxPyBeginAllowThreads();
40225 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40226 wxPyEndAllowThreads(__tstate);
40227 if (PyErr_Occurred()) SWIG_fail;
40228 }
40229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40230 return resultobj;
40231 fail:
40232 return NULL;
40233 }
40234
40235
40236 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40237 PyObject *resultobj = 0;
40238 wxString *arg1 = 0 ;
40239 wxCursor const &arg2_defvalue = wxNullCursor ;
40240 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40241 wxGenericDragImage *result = 0 ;
40242 bool temp1 = false ;
40243 void *argp2 = 0 ;
40244 int res2 = 0 ;
40245 PyObject * obj0 = 0 ;
40246 PyObject * obj1 = 0 ;
40247 char * kwnames[] = {
40248 (char *) "str",(char *) "cursor", NULL
40249 };
40250
40251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40252 {
40253 arg1 = wxString_in_helper(obj0);
40254 if (arg1 == NULL) SWIG_fail;
40255 temp1 = true;
40256 }
40257 if (obj1) {
40258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40259 if (!SWIG_IsOK(res2)) {
40260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40261 }
40262 if (!argp2) {
40263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40264 }
40265 arg2 = reinterpret_cast< wxCursor * >(argp2);
40266 }
40267 {
40268 if (!wxPyCheckForApp()) SWIG_fail;
40269 PyThreadState* __tstate = wxPyBeginAllowThreads();
40270 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40271 wxPyEndAllowThreads(__tstate);
40272 if (PyErr_Occurred()) SWIG_fail;
40273 }
40274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40275 {
40276 if (temp1)
40277 delete arg1;
40278 }
40279 return resultobj;
40280 fail:
40281 {
40282 if (temp1)
40283 delete arg1;
40284 }
40285 return NULL;
40286 }
40287
40288
40289 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40290 PyObject *resultobj = 0;
40291 wxPyTreeCtrl *arg1 = 0 ;
40292 wxTreeItemId *arg2 = 0 ;
40293 wxGenericDragImage *result = 0 ;
40294 void *argp1 = 0 ;
40295 int res1 = 0 ;
40296 void *argp2 = 0 ;
40297 int res2 = 0 ;
40298 PyObject * obj0 = 0 ;
40299 PyObject * obj1 = 0 ;
40300 char * kwnames[] = {
40301 (char *) "treeCtrl",(char *) "id", NULL
40302 };
40303
40304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40305 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40306 if (!SWIG_IsOK(res1)) {
40307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40308 }
40309 if (!argp1) {
40310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40311 }
40312 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40314 if (!SWIG_IsOK(res2)) {
40315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40316 }
40317 if (!argp2) {
40318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40319 }
40320 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40321 {
40322 if (!wxPyCheckForApp()) SWIG_fail;
40323 PyThreadState* __tstate = wxPyBeginAllowThreads();
40324 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40325 wxPyEndAllowThreads(__tstate);
40326 if (PyErr_Occurred()) SWIG_fail;
40327 }
40328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40329 return resultobj;
40330 fail:
40331 return NULL;
40332 }
40333
40334
40335 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40336 PyObject *resultobj = 0;
40337 wxPyListCtrl *arg1 = 0 ;
40338 long arg2 ;
40339 wxGenericDragImage *result = 0 ;
40340 void *argp1 = 0 ;
40341 int res1 = 0 ;
40342 long val2 ;
40343 int ecode2 = 0 ;
40344 PyObject * obj0 = 0 ;
40345 PyObject * obj1 = 0 ;
40346 char * kwnames[] = {
40347 (char *) "listCtrl",(char *) "id", NULL
40348 };
40349
40350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40351 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40352 if (!SWIG_IsOK(res1)) {
40353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40354 }
40355 if (!argp1) {
40356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40357 }
40358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40359 ecode2 = SWIG_AsVal_long(obj1, &val2);
40360 if (!SWIG_IsOK(ecode2)) {
40361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40362 }
40363 arg2 = static_cast< long >(val2);
40364 {
40365 if (!wxPyCheckForApp()) SWIG_fail;
40366 PyThreadState* __tstate = wxPyBeginAllowThreads();
40367 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40368 wxPyEndAllowThreads(__tstate);
40369 if (PyErr_Occurred()) SWIG_fail;
40370 }
40371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40372 return resultobj;
40373 fail:
40374 return NULL;
40375 }
40376
40377
40378 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40379 PyObject *resultobj = 0;
40380 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40381 void *argp1 = 0 ;
40382 int res1 = 0 ;
40383 PyObject *swig_obj[1] ;
40384
40385 if (!args) SWIG_fail;
40386 swig_obj[0] = args;
40387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40388 if (!SWIG_IsOK(res1)) {
40389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40390 }
40391 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40392 {
40393 PyThreadState* __tstate = wxPyBeginAllowThreads();
40394 delete arg1;
40395
40396 wxPyEndAllowThreads(__tstate);
40397 if (PyErr_Occurred()) SWIG_fail;
40398 }
40399 resultobj = SWIG_Py_Void();
40400 return resultobj;
40401 fail:
40402 return NULL;
40403 }
40404
40405
40406 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40407 PyObject *resultobj = 0;
40408 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40409 wxBitmap *arg2 = (wxBitmap *) 0 ;
40410 void *argp1 = 0 ;
40411 int res1 = 0 ;
40412 void *argp2 = 0 ;
40413 int res2 = 0 ;
40414 PyObject * obj0 = 0 ;
40415 PyObject * obj1 = 0 ;
40416 char * kwnames[] = {
40417 (char *) "self",(char *) "bitmap", NULL
40418 };
40419
40420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40422 if (!SWIG_IsOK(res1)) {
40423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40424 }
40425 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40427 if (!SWIG_IsOK(res2)) {
40428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40429 }
40430 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40431 {
40432 PyThreadState* __tstate = wxPyBeginAllowThreads();
40433 (arg1)->SetBackingBitmap(arg2);
40434 wxPyEndAllowThreads(__tstate);
40435 if (PyErr_Occurred()) SWIG_fail;
40436 }
40437 resultobj = SWIG_Py_Void();
40438 return resultobj;
40439 fail:
40440 return NULL;
40441 }
40442
40443
40444 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40445 PyObject *resultobj = 0;
40446 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40447 wxPoint *arg2 = 0 ;
40448 wxWindow *arg3 = (wxWindow *) 0 ;
40449 bool arg4 = (bool) false ;
40450 wxRect *arg5 = (wxRect *) NULL ;
40451 bool result;
40452 void *argp1 = 0 ;
40453 int res1 = 0 ;
40454 wxPoint temp2 ;
40455 void *argp3 = 0 ;
40456 int res3 = 0 ;
40457 bool val4 ;
40458 int ecode4 = 0 ;
40459 void *argp5 = 0 ;
40460 int res5 = 0 ;
40461 PyObject * obj0 = 0 ;
40462 PyObject * obj1 = 0 ;
40463 PyObject * obj2 = 0 ;
40464 PyObject * obj3 = 0 ;
40465 PyObject * obj4 = 0 ;
40466 char * kwnames[] = {
40467 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40468 };
40469
40470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40472 if (!SWIG_IsOK(res1)) {
40473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40474 }
40475 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40476 {
40477 arg2 = &temp2;
40478 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40479 }
40480 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40481 if (!SWIG_IsOK(res3)) {
40482 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40483 }
40484 arg3 = reinterpret_cast< wxWindow * >(argp3);
40485 if (obj3) {
40486 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40487 if (!SWIG_IsOK(ecode4)) {
40488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40489 }
40490 arg4 = static_cast< bool >(val4);
40491 }
40492 if (obj4) {
40493 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40494 if (!SWIG_IsOK(res5)) {
40495 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40496 }
40497 arg5 = reinterpret_cast< wxRect * >(argp5);
40498 }
40499 {
40500 PyThreadState* __tstate = wxPyBeginAllowThreads();
40501 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40502 wxPyEndAllowThreads(__tstate);
40503 if (PyErr_Occurred()) SWIG_fail;
40504 }
40505 {
40506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40507 }
40508 return resultobj;
40509 fail:
40510 return NULL;
40511 }
40512
40513
40514 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40515 PyObject *resultobj = 0;
40516 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40517 wxPoint *arg2 = 0 ;
40518 wxWindow *arg3 = (wxWindow *) 0 ;
40519 wxWindow *arg4 = (wxWindow *) 0 ;
40520 bool result;
40521 void *argp1 = 0 ;
40522 int res1 = 0 ;
40523 wxPoint temp2 ;
40524 void *argp3 = 0 ;
40525 int res3 = 0 ;
40526 void *argp4 = 0 ;
40527 int res4 = 0 ;
40528 PyObject * obj0 = 0 ;
40529 PyObject * obj1 = 0 ;
40530 PyObject * obj2 = 0 ;
40531 PyObject * obj3 = 0 ;
40532 char * kwnames[] = {
40533 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40534 };
40535
40536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40538 if (!SWIG_IsOK(res1)) {
40539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40540 }
40541 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40542 {
40543 arg2 = &temp2;
40544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40545 }
40546 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40547 if (!SWIG_IsOK(res3)) {
40548 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40549 }
40550 arg3 = reinterpret_cast< wxWindow * >(argp3);
40551 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40552 if (!SWIG_IsOK(res4)) {
40553 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40554 }
40555 arg4 = reinterpret_cast< wxWindow * >(argp4);
40556 {
40557 PyThreadState* __tstate = wxPyBeginAllowThreads();
40558 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40559 wxPyEndAllowThreads(__tstate);
40560 if (PyErr_Occurred()) SWIG_fail;
40561 }
40562 {
40563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40564 }
40565 return resultobj;
40566 fail:
40567 return NULL;
40568 }
40569
40570
40571 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40572 PyObject *resultobj = 0;
40573 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40574 bool result;
40575 void *argp1 = 0 ;
40576 int res1 = 0 ;
40577 PyObject *swig_obj[1] ;
40578
40579 if (!args) SWIG_fail;
40580 swig_obj[0] = args;
40581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40582 if (!SWIG_IsOK(res1)) {
40583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40584 }
40585 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40586 {
40587 PyThreadState* __tstate = wxPyBeginAllowThreads();
40588 result = (bool)(arg1)->EndDrag();
40589 wxPyEndAllowThreads(__tstate);
40590 if (PyErr_Occurred()) SWIG_fail;
40591 }
40592 {
40593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40594 }
40595 return resultobj;
40596 fail:
40597 return NULL;
40598 }
40599
40600
40601 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40602 PyObject *resultobj = 0;
40603 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40604 wxPoint *arg2 = 0 ;
40605 bool result;
40606 void *argp1 = 0 ;
40607 int res1 = 0 ;
40608 wxPoint temp2 ;
40609 PyObject * obj0 = 0 ;
40610 PyObject * obj1 = 0 ;
40611 char * kwnames[] = {
40612 (char *) "self",(char *) "pt", NULL
40613 };
40614
40615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40617 if (!SWIG_IsOK(res1)) {
40618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40619 }
40620 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40621 {
40622 arg2 = &temp2;
40623 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40624 }
40625 {
40626 PyThreadState* __tstate = wxPyBeginAllowThreads();
40627 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40628 wxPyEndAllowThreads(__tstate);
40629 if (PyErr_Occurred()) SWIG_fail;
40630 }
40631 {
40632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40633 }
40634 return resultobj;
40635 fail:
40636 return NULL;
40637 }
40638
40639
40640 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40641 PyObject *resultobj = 0;
40642 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40643 bool result;
40644 void *argp1 = 0 ;
40645 int res1 = 0 ;
40646 PyObject *swig_obj[1] ;
40647
40648 if (!args) SWIG_fail;
40649 swig_obj[0] = args;
40650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40651 if (!SWIG_IsOK(res1)) {
40652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40653 }
40654 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40655 {
40656 PyThreadState* __tstate = wxPyBeginAllowThreads();
40657 result = (bool)(arg1)->Show();
40658 wxPyEndAllowThreads(__tstate);
40659 if (PyErr_Occurred()) SWIG_fail;
40660 }
40661 {
40662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40663 }
40664 return resultobj;
40665 fail:
40666 return NULL;
40667 }
40668
40669
40670 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40671 PyObject *resultobj = 0;
40672 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40673 bool result;
40674 void *argp1 = 0 ;
40675 int res1 = 0 ;
40676 PyObject *swig_obj[1] ;
40677
40678 if (!args) SWIG_fail;
40679 swig_obj[0] = args;
40680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40681 if (!SWIG_IsOK(res1)) {
40682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40683 }
40684 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40685 {
40686 PyThreadState* __tstate = wxPyBeginAllowThreads();
40687 result = (bool)(arg1)->Hide();
40688 wxPyEndAllowThreads(__tstate);
40689 if (PyErr_Occurred()) SWIG_fail;
40690 }
40691 {
40692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40693 }
40694 return resultobj;
40695 fail:
40696 return NULL;
40697 }
40698
40699
40700 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40701 PyObject *resultobj = 0;
40702 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40703 wxPoint *arg2 = 0 ;
40704 wxRect result;
40705 void *argp1 = 0 ;
40706 int res1 = 0 ;
40707 wxPoint temp2 ;
40708 PyObject * obj0 = 0 ;
40709 PyObject * obj1 = 0 ;
40710 char * kwnames[] = {
40711 (char *) "self",(char *) "pos", NULL
40712 };
40713
40714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40716 if (!SWIG_IsOK(res1)) {
40717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40718 }
40719 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40720 {
40721 arg2 = &temp2;
40722 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40723 }
40724 {
40725 PyThreadState* __tstate = wxPyBeginAllowThreads();
40726 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40727 wxPyEndAllowThreads(__tstate);
40728 if (PyErr_Occurred()) SWIG_fail;
40729 }
40730 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40731 return resultobj;
40732 fail:
40733 return NULL;
40734 }
40735
40736
40737 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40738 PyObject *resultobj = 0;
40739 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40740 wxDC *arg2 = 0 ;
40741 wxPoint *arg3 = 0 ;
40742 bool result;
40743 void *argp1 = 0 ;
40744 int res1 = 0 ;
40745 void *argp2 = 0 ;
40746 int res2 = 0 ;
40747 wxPoint temp3 ;
40748 PyObject * obj0 = 0 ;
40749 PyObject * obj1 = 0 ;
40750 PyObject * obj2 = 0 ;
40751 char * kwnames[] = {
40752 (char *) "self",(char *) "dc",(char *) "pos", NULL
40753 };
40754
40755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40757 if (!SWIG_IsOK(res1)) {
40758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40759 }
40760 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40762 if (!SWIG_IsOK(res2)) {
40763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40764 }
40765 if (!argp2) {
40766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40767 }
40768 arg2 = reinterpret_cast< wxDC * >(argp2);
40769 {
40770 arg3 = &temp3;
40771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40772 }
40773 {
40774 PyThreadState* __tstate = wxPyBeginAllowThreads();
40775 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40776 wxPyEndAllowThreads(__tstate);
40777 if (PyErr_Occurred()) SWIG_fail;
40778 }
40779 {
40780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40781 }
40782 return resultobj;
40783 fail:
40784 return NULL;
40785 }
40786
40787
40788 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40789 PyObject *resultobj = 0;
40790 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40791 wxDC *arg2 = 0 ;
40792 wxMemoryDC *arg3 = 0 ;
40793 wxRect *arg4 = 0 ;
40794 wxRect *arg5 = 0 ;
40795 bool result;
40796 void *argp1 = 0 ;
40797 int res1 = 0 ;
40798 void *argp2 = 0 ;
40799 int res2 = 0 ;
40800 void *argp3 = 0 ;
40801 int res3 = 0 ;
40802 wxRect temp4 ;
40803 wxRect temp5 ;
40804 PyObject * obj0 = 0 ;
40805 PyObject * obj1 = 0 ;
40806 PyObject * obj2 = 0 ;
40807 PyObject * obj3 = 0 ;
40808 PyObject * obj4 = 0 ;
40809 char * kwnames[] = {
40810 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40811 };
40812
40813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40815 if (!SWIG_IsOK(res1)) {
40816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40817 }
40818 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40820 if (!SWIG_IsOK(res2)) {
40821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40822 }
40823 if (!argp2) {
40824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40825 }
40826 arg2 = reinterpret_cast< wxDC * >(argp2);
40827 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40828 if (!SWIG_IsOK(res3)) {
40829 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40830 }
40831 if (!argp3) {
40832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40833 }
40834 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40835 {
40836 arg4 = &temp4;
40837 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40838 }
40839 {
40840 arg5 = &temp5;
40841 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40842 }
40843 {
40844 PyThreadState* __tstate = wxPyBeginAllowThreads();
40845 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40846 wxPyEndAllowThreads(__tstate);
40847 if (PyErr_Occurred()) SWIG_fail;
40848 }
40849 {
40850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40851 }
40852 return resultobj;
40853 fail:
40854 return NULL;
40855 }
40856
40857
40858 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40859 PyObject *resultobj = 0;
40860 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40861 wxPoint *arg2 = 0 ;
40862 wxPoint *arg3 = 0 ;
40863 bool arg4 ;
40864 bool arg5 ;
40865 bool result;
40866 void *argp1 = 0 ;
40867 int res1 = 0 ;
40868 wxPoint temp2 ;
40869 wxPoint temp3 ;
40870 bool val4 ;
40871 int ecode4 = 0 ;
40872 bool val5 ;
40873 int ecode5 = 0 ;
40874 PyObject * obj0 = 0 ;
40875 PyObject * obj1 = 0 ;
40876 PyObject * obj2 = 0 ;
40877 PyObject * obj3 = 0 ;
40878 PyObject * obj4 = 0 ;
40879 char * kwnames[] = {
40880 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40881 };
40882
40883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40885 if (!SWIG_IsOK(res1)) {
40886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40887 }
40888 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40889 {
40890 arg2 = &temp2;
40891 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40892 }
40893 {
40894 arg3 = &temp3;
40895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40896 }
40897 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40898 if (!SWIG_IsOK(ecode4)) {
40899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40900 }
40901 arg4 = static_cast< bool >(val4);
40902 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40903 if (!SWIG_IsOK(ecode5)) {
40904 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40905 }
40906 arg5 = static_cast< bool >(val5);
40907 {
40908 PyThreadState* __tstate = wxPyBeginAllowThreads();
40909 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40910 wxPyEndAllowThreads(__tstate);
40911 if (PyErr_Occurred()) SWIG_fail;
40912 }
40913 {
40914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40915 }
40916 return resultobj;
40917 fail:
40918 return NULL;
40919 }
40920
40921
40922 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40923 PyObject *obj;
40924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40925 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40926 return SWIG_Py_Void();
40927 }
40928
40929 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40930 return SWIG_Python_InitShadowInstance(args);
40931 }
40932
40933 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40934 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40935 return 1;
40936 }
40937
40938
40939 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40940 PyObject *pyobj = 0;
40941
40942 {
40943 #if wxUSE_UNICODE
40944 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40945 #else
40946 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40947 #endif
40948 }
40949 return pyobj;
40950 }
40951
40952
40953 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40954 PyObject *resultobj = 0;
40955 wxWindow *arg1 = (wxWindow *) 0 ;
40956 int arg2 = (int) -1 ;
40957 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40958 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40961 wxSize const &arg5_defvalue = wxDefaultSize ;
40962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40963 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40964 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40965 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40966 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40967 wxString *arg8 = (wxString *) &arg8_defvalue ;
40968 wxDatePickerCtrl *result = 0 ;
40969 void *argp1 = 0 ;
40970 int res1 = 0 ;
40971 int val2 ;
40972 int ecode2 = 0 ;
40973 void *argp3 = 0 ;
40974 int res3 = 0 ;
40975 wxPoint temp4 ;
40976 wxSize temp5 ;
40977 long val6 ;
40978 int ecode6 = 0 ;
40979 void *argp7 = 0 ;
40980 int res7 = 0 ;
40981 bool temp8 = false ;
40982 PyObject * obj0 = 0 ;
40983 PyObject * obj1 = 0 ;
40984 PyObject * obj2 = 0 ;
40985 PyObject * obj3 = 0 ;
40986 PyObject * obj4 = 0 ;
40987 PyObject * obj5 = 0 ;
40988 PyObject * obj6 = 0 ;
40989 PyObject * obj7 = 0 ;
40990 char * kwnames[] = {
40991 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40992 };
40993
40994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40996 if (!SWIG_IsOK(res1)) {
40997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40998 }
40999 arg1 = reinterpret_cast< wxWindow * >(argp1);
41000 if (obj1) {
41001 ecode2 = SWIG_AsVal_int(obj1, &val2);
41002 if (!SWIG_IsOK(ecode2)) {
41003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41004 }
41005 arg2 = static_cast< int >(val2);
41006 }
41007 if (obj2) {
41008 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41009 if (!SWIG_IsOK(res3)) {
41010 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41011 }
41012 if (!argp3) {
41013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41014 }
41015 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41016 }
41017 if (obj3) {
41018 {
41019 arg4 = &temp4;
41020 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41021 }
41022 }
41023 if (obj4) {
41024 {
41025 arg5 = &temp5;
41026 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41027 }
41028 }
41029 if (obj5) {
41030 ecode6 = SWIG_AsVal_long(obj5, &val6);
41031 if (!SWIG_IsOK(ecode6)) {
41032 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41033 }
41034 arg6 = static_cast< long >(val6);
41035 }
41036 if (obj6) {
41037 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41038 if (!SWIG_IsOK(res7)) {
41039 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41040 }
41041 if (!argp7) {
41042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41043 }
41044 arg7 = reinterpret_cast< wxValidator * >(argp7);
41045 }
41046 if (obj7) {
41047 {
41048 arg8 = wxString_in_helper(obj7);
41049 if (arg8 == NULL) SWIG_fail;
41050 temp8 = true;
41051 }
41052 }
41053 {
41054 if (!wxPyCheckForApp()) SWIG_fail;
41055 PyThreadState* __tstate = wxPyBeginAllowThreads();
41056 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41057 wxPyEndAllowThreads(__tstate);
41058 if (PyErr_Occurred()) SWIG_fail;
41059 }
41060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41061 {
41062 if (temp8)
41063 delete arg8;
41064 }
41065 return resultobj;
41066 fail:
41067 {
41068 if (temp8)
41069 delete arg8;
41070 }
41071 return NULL;
41072 }
41073
41074
41075 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41076 PyObject *resultobj = 0;
41077 wxDatePickerCtrl *result = 0 ;
41078
41079 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41080 {
41081 if (!wxPyCheckForApp()) SWIG_fail;
41082 PyThreadState* __tstate = wxPyBeginAllowThreads();
41083 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41084 wxPyEndAllowThreads(__tstate);
41085 if (PyErr_Occurred()) SWIG_fail;
41086 }
41087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41088 return resultobj;
41089 fail:
41090 return NULL;
41091 }
41092
41093
41094 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41095 PyObject *resultobj = 0;
41096 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41097 wxWindow *arg2 = (wxWindow *) 0 ;
41098 int arg3 = (int) -1 ;
41099 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41100 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41101 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41102 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41103 wxSize const &arg6_defvalue = wxDefaultSize ;
41104 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41105 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41106 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41107 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41108 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41109 wxString *arg9 = (wxString *) &arg9_defvalue ;
41110 bool result;
41111 void *argp1 = 0 ;
41112 int res1 = 0 ;
41113 void *argp2 = 0 ;
41114 int res2 = 0 ;
41115 int val3 ;
41116 int ecode3 = 0 ;
41117 void *argp4 = 0 ;
41118 int res4 = 0 ;
41119 wxPoint temp5 ;
41120 wxSize temp6 ;
41121 long val7 ;
41122 int ecode7 = 0 ;
41123 void *argp8 = 0 ;
41124 int res8 = 0 ;
41125 bool temp9 = false ;
41126 PyObject * obj0 = 0 ;
41127 PyObject * obj1 = 0 ;
41128 PyObject * obj2 = 0 ;
41129 PyObject * obj3 = 0 ;
41130 PyObject * obj4 = 0 ;
41131 PyObject * obj5 = 0 ;
41132 PyObject * obj6 = 0 ;
41133 PyObject * obj7 = 0 ;
41134 PyObject * obj8 = 0 ;
41135 char * kwnames[] = {
41136 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41137 };
41138
41139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41141 if (!SWIG_IsOK(res1)) {
41142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41143 }
41144 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41145 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41146 if (!SWIG_IsOK(res2)) {
41147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41148 }
41149 arg2 = reinterpret_cast< wxWindow * >(argp2);
41150 if (obj2) {
41151 ecode3 = SWIG_AsVal_int(obj2, &val3);
41152 if (!SWIG_IsOK(ecode3)) {
41153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41154 }
41155 arg3 = static_cast< int >(val3);
41156 }
41157 if (obj3) {
41158 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41159 if (!SWIG_IsOK(res4)) {
41160 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41161 }
41162 if (!argp4) {
41163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41164 }
41165 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41166 }
41167 if (obj4) {
41168 {
41169 arg5 = &temp5;
41170 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41171 }
41172 }
41173 if (obj5) {
41174 {
41175 arg6 = &temp6;
41176 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41177 }
41178 }
41179 if (obj6) {
41180 ecode7 = SWIG_AsVal_long(obj6, &val7);
41181 if (!SWIG_IsOK(ecode7)) {
41182 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41183 }
41184 arg7 = static_cast< long >(val7);
41185 }
41186 if (obj7) {
41187 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41188 if (!SWIG_IsOK(res8)) {
41189 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41190 }
41191 if (!argp8) {
41192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41193 }
41194 arg8 = reinterpret_cast< wxValidator * >(argp8);
41195 }
41196 if (obj8) {
41197 {
41198 arg9 = wxString_in_helper(obj8);
41199 if (arg9 == NULL) SWIG_fail;
41200 temp9 = true;
41201 }
41202 }
41203 {
41204 PyThreadState* __tstate = wxPyBeginAllowThreads();
41205 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41206 wxPyEndAllowThreads(__tstate);
41207 if (PyErr_Occurred()) SWIG_fail;
41208 }
41209 {
41210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41211 }
41212 {
41213 if (temp9)
41214 delete arg9;
41215 }
41216 return resultobj;
41217 fail:
41218 {
41219 if (temp9)
41220 delete arg9;
41221 }
41222 return NULL;
41223 }
41224
41225
41226 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41227 PyObject *resultobj = 0;
41228 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41229 wxDateTime *arg2 = 0 ;
41230 void *argp1 = 0 ;
41231 int res1 = 0 ;
41232 void *argp2 = 0 ;
41233 int res2 = 0 ;
41234 PyObject * obj0 = 0 ;
41235 PyObject * obj1 = 0 ;
41236 char * kwnames[] = {
41237 (char *) "self",(char *) "dt", NULL
41238 };
41239
41240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41242 if (!SWIG_IsOK(res1)) {
41243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41244 }
41245 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41247 if (!SWIG_IsOK(res2)) {
41248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41249 }
41250 if (!argp2) {
41251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41252 }
41253 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41254 {
41255 PyThreadState* __tstate = wxPyBeginAllowThreads();
41256 (arg1)->SetValue((wxDateTime const &)*arg2);
41257 wxPyEndAllowThreads(__tstate);
41258 if (PyErr_Occurred()) SWIG_fail;
41259 }
41260 resultobj = SWIG_Py_Void();
41261 return resultobj;
41262 fail:
41263 return NULL;
41264 }
41265
41266
41267 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41268 PyObject *resultobj = 0;
41269 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41270 wxDateTime result;
41271 void *argp1 = 0 ;
41272 int res1 = 0 ;
41273 PyObject *swig_obj[1] ;
41274
41275 if (!args) SWIG_fail;
41276 swig_obj[0] = args;
41277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41278 if (!SWIG_IsOK(res1)) {
41279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41280 }
41281 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41282 {
41283 PyThreadState* __tstate = wxPyBeginAllowThreads();
41284 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41285 wxPyEndAllowThreads(__tstate);
41286 if (PyErr_Occurred()) SWIG_fail;
41287 }
41288 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41289 return resultobj;
41290 fail:
41291 return NULL;
41292 }
41293
41294
41295 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41296 PyObject *resultobj = 0;
41297 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41298 wxDateTime *arg2 = 0 ;
41299 wxDateTime *arg3 = 0 ;
41300 void *argp1 = 0 ;
41301 int res1 = 0 ;
41302 void *argp2 = 0 ;
41303 int res2 = 0 ;
41304 void *argp3 = 0 ;
41305 int res3 = 0 ;
41306 PyObject * obj0 = 0 ;
41307 PyObject * obj1 = 0 ;
41308 PyObject * obj2 = 0 ;
41309 char * kwnames[] = {
41310 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41311 };
41312
41313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41315 if (!SWIG_IsOK(res1)) {
41316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41317 }
41318 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41320 if (!SWIG_IsOK(res2)) {
41321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41322 }
41323 if (!argp2) {
41324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41325 }
41326 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41327 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41328 if (!SWIG_IsOK(res3)) {
41329 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41330 }
41331 if (!argp3) {
41332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41333 }
41334 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41335 {
41336 PyThreadState* __tstate = wxPyBeginAllowThreads();
41337 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41338 wxPyEndAllowThreads(__tstate);
41339 if (PyErr_Occurred()) SWIG_fail;
41340 }
41341 resultobj = SWIG_Py_Void();
41342 return resultobj;
41343 fail:
41344 return NULL;
41345 }
41346
41347
41348 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41349 PyObject *resultobj = 0;
41350 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41351 wxDateTime result;
41352 void *argp1 = 0 ;
41353 int res1 = 0 ;
41354 PyObject *swig_obj[1] ;
41355
41356 if (!args) SWIG_fail;
41357 swig_obj[0] = args;
41358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41359 if (!SWIG_IsOK(res1)) {
41360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41361 }
41362 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41363 {
41364 PyThreadState* __tstate = wxPyBeginAllowThreads();
41365 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41366 wxPyEndAllowThreads(__tstate);
41367 if (PyErr_Occurred()) SWIG_fail;
41368 }
41369 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41370 return resultobj;
41371 fail:
41372 return NULL;
41373 }
41374
41375
41376 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41377 PyObject *resultobj = 0;
41378 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41379 wxDateTime result;
41380 void *argp1 = 0 ;
41381 int res1 = 0 ;
41382 PyObject *swig_obj[1] ;
41383
41384 if (!args) SWIG_fail;
41385 swig_obj[0] = args;
41386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41387 if (!SWIG_IsOK(res1)) {
41388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41389 }
41390 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41391 {
41392 PyThreadState* __tstate = wxPyBeginAllowThreads();
41393 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41394 wxPyEndAllowThreads(__tstate);
41395 if (PyErr_Occurred()) SWIG_fail;
41396 }
41397 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41398 return resultobj;
41399 fail:
41400 return NULL;
41401 }
41402
41403
41404 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41405 PyObject *obj;
41406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41407 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41408 return SWIG_Py_Void();
41409 }
41410
41411 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41412 return SWIG_Python_InitShadowInstance(args);
41413 }
41414
41415 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41416 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41417 return 1;
41418 }
41419
41420
41421 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41422 PyObject *pyobj = 0;
41423
41424 {
41425 #if wxUSE_UNICODE
41426 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41427 #else
41428 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41429 #endif
41430 }
41431 return pyobj;
41432 }
41433
41434
41435 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41436 PyObject *resultobj = 0;
41437 wxWindow *arg1 = (wxWindow *) 0 ;
41438 int arg2 ;
41439 wxString *arg3 = 0 ;
41440 wxString *arg4 = 0 ;
41441 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41442 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41443 wxSize const &arg6_defvalue = wxDefaultSize ;
41444 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41445 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41446 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41447 wxString *arg8 = (wxString *) &arg8_defvalue ;
41448 wxHyperlinkCtrl *result = 0 ;
41449 void *argp1 = 0 ;
41450 int res1 = 0 ;
41451 int val2 ;
41452 int ecode2 = 0 ;
41453 bool temp3 = false ;
41454 bool temp4 = false ;
41455 wxPoint temp5 ;
41456 wxSize temp6 ;
41457 long val7 ;
41458 int ecode7 = 0 ;
41459 bool temp8 = false ;
41460 PyObject * obj0 = 0 ;
41461 PyObject * obj1 = 0 ;
41462 PyObject * obj2 = 0 ;
41463 PyObject * obj3 = 0 ;
41464 PyObject * obj4 = 0 ;
41465 PyObject * obj5 = 0 ;
41466 PyObject * obj6 = 0 ;
41467 PyObject * obj7 = 0 ;
41468 char * kwnames[] = {
41469 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41470 };
41471
41472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41474 if (!SWIG_IsOK(res1)) {
41475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41476 }
41477 arg1 = reinterpret_cast< wxWindow * >(argp1);
41478 ecode2 = SWIG_AsVal_int(obj1, &val2);
41479 if (!SWIG_IsOK(ecode2)) {
41480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41481 }
41482 arg2 = static_cast< int >(val2);
41483 {
41484 arg3 = wxString_in_helper(obj2);
41485 if (arg3 == NULL) SWIG_fail;
41486 temp3 = true;
41487 }
41488 {
41489 arg4 = wxString_in_helper(obj3);
41490 if (arg4 == NULL) SWIG_fail;
41491 temp4 = true;
41492 }
41493 if (obj4) {
41494 {
41495 arg5 = &temp5;
41496 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41497 }
41498 }
41499 if (obj5) {
41500 {
41501 arg6 = &temp6;
41502 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41503 }
41504 }
41505 if (obj6) {
41506 ecode7 = SWIG_AsVal_long(obj6, &val7);
41507 if (!SWIG_IsOK(ecode7)) {
41508 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41509 }
41510 arg7 = static_cast< long >(val7);
41511 }
41512 if (obj7) {
41513 {
41514 arg8 = wxString_in_helper(obj7);
41515 if (arg8 == NULL) SWIG_fail;
41516 temp8 = true;
41517 }
41518 }
41519 {
41520 if (!wxPyCheckForApp()) SWIG_fail;
41521 PyThreadState* __tstate = wxPyBeginAllowThreads();
41522 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41523 wxPyEndAllowThreads(__tstate);
41524 if (PyErr_Occurred()) SWIG_fail;
41525 }
41526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41527 {
41528 if (temp3)
41529 delete arg3;
41530 }
41531 {
41532 if (temp4)
41533 delete arg4;
41534 }
41535 {
41536 if (temp8)
41537 delete arg8;
41538 }
41539 return resultobj;
41540 fail:
41541 {
41542 if (temp3)
41543 delete arg3;
41544 }
41545 {
41546 if (temp4)
41547 delete arg4;
41548 }
41549 {
41550 if (temp8)
41551 delete arg8;
41552 }
41553 return NULL;
41554 }
41555
41556
41557 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41558 PyObject *resultobj = 0;
41559 wxHyperlinkCtrl *result = 0 ;
41560
41561 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41562 {
41563 if (!wxPyCheckForApp()) SWIG_fail;
41564 PyThreadState* __tstate = wxPyBeginAllowThreads();
41565 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41566 wxPyEndAllowThreads(__tstate);
41567 if (PyErr_Occurred()) SWIG_fail;
41568 }
41569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41570 return resultobj;
41571 fail:
41572 return NULL;
41573 }
41574
41575
41576 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41577 PyObject *resultobj = 0;
41578 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41579 wxWindow *arg2 = (wxWindow *) 0 ;
41580 int arg3 ;
41581 wxString *arg4 = 0 ;
41582 wxString *arg5 = 0 ;
41583 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41584 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41585 wxSize const &arg7_defvalue = wxDefaultSize ;
41586 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41587 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41588 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41589 wxString *arg9 = (wxString *) &arg9_defvalue ;
41590 bool result;
41591 void *argp1 = 0 ;
41592 int res1 = 0 ;
41593 void *argp2 = 0 ;
41594 int res2 = 0 ;
41595 int val3 ;
41596 int ecode3 = 0 ;
41597 bool temp4 = false ;
41598 bool temp5 = false ;
41599 wxPoint temp6 ;
41600 wxSize temp7 ;
41601 long val8 ;
41602 int ecode8 = 0 ;
41603 bool temp9 = false ;
41604 PyObject * obj0 = 0 ;
41605 PyObject * obj1 = 0 ;
41606 PyObject * obj2 = 0 ;
41607 PyObject * obj3 = 0 ;
41608 PyObject * obj4 = 0 ;
41609 PyObject * obj5 = 0 ;
41610 PyObject * obj6 = 0 ;
41611 PyObject * obj7 = 0 ;
41612 PyObject * obj8 = 0 ;
41613 char * kwnames[] = {
41614 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41615 };
41616
41617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41619 if (!SWIG_IsOK(res1)) {
41620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41621 }
41622 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41624 if (!SWIG_IsOK(res2)) {
41625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41626 }
41627 arg2 = reinterpret_cast< wxWindow * >(argp2);
41628 ecode3 = SWIG_AsVal_int(obj2, &val3);
41629 if (!SWIG_IsOK(ecode3)) {
41630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41631 }
41632 arg3 = static_cast< int >(val3);
41633 {
41634 arg4 = wxString_in_helper(obj3);
41635 if (arg4 == NULL) SWIG_fail;
41636 temp4 = true;
41637 }
41638 {
41639 arg5 = wxString_in_helper(obj4);
41640 if (arg5 == NULL) SWIG_fail;
41641 temp5 = true;
41642 }
41643 if (obj5) {
41644 {
41645 arg6 = &temp6;
41646 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41647 }
41648 }
41649 if (obj6) {
41650 {
41651 arg7 = &temp7;
41652 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41653 }
41654 }
41655 if (obj7) {
41656 ecode8 = SWIG_AsVal_long(obj7, &val8);
41657 if (!SWIG_IsOK(ecode8)) {
41658 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41659 }
41660 arg8 = static_cast< long >(val8);
41661 }
41662 if (obj8) {
41663 {
41664 arg9 = wxString_in_helper(obj8);
41665 if (arg9 == NULL) SWIG_fail;
41666 temp9 = true;
41667 }
41668 }
41669 {
41670 PyThreadState* __tstate = wxPyBeginAllowThreads();
41671 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41672 wxPyEndAllowThreads(__tstate);
41673 if (PyErr_Occurred()) SWIG_fail;
41674 }
41675 {
41676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41677 }
41678 {
41679 if (temp4)
41680 delete arg4;
41681 }
41682 {
41683 if (temp5)
41684 delete arg5;
41685 }
41686 {
41687 if (temp9)
41688 delete arg9;
41689 }
41690 return resultobj;
41691 fail:
41692 {
41693 if (temp4)
41694 delete arg4;
41695 }
41696 {
41697 if (temp5)
41698 delete arg5;
41699 }
41700 {
41701 if (temp9)
41702 delete arg9;
41703 }
41704 return NULL;
41705 }
41706
41707
41708 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41709 PyObject *resultobj = 0;
41710 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41711 wxColour result;
41712 void *argp1 = 0 ;
41713 int res1 = 0 ;
41714 PyObject *swig_obj[1] ;
41715
41716 if (!args) SWIG_fail;
41717 swig_obj[0] = args;
41718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41719 if (!SWIG_IsOK(res1)) {
41720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41721 }
41722 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41723 {
41724 PyThreadState* __tstate = wxPyBeginAllowThreads();
41725 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41726 wxPyEndAllowThreads(__tstate);
41727 if (PyErr_Occurred()) SWIG_fail;
41728 }
41729 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41730 return resultobj;
41731 fail:
41732 return NULL;
41733 }
41734
41735
41736 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41737 PyObject *resultobj = 0;
41738 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41739 wxColour *arg2 = 0 ;
41740 void *argp1 = 0 ;
41741 int res1 = 0 ;
41742 wxColour temp2 ;
41743 PyObject * obj0 = 0 ;
41744 PyObject * obj1 = 0 ;
41745 char * kwnames[] = {
41746 (char *) "self",(char *) "colour", NULL
41747 };
41748
41749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41751 if (!SWIG_IsOK(res1)) {
41752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41753 }
41754 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41755 {
41756 arg2 = &temp2;
41757 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41758 }
41759 {
41760 PyThreadState* __tstate = wxPyBeginAllowThreads();
41761 (arg1)->SetHoverColour((wxColour const &)*arg2);
41762 wxPyEndAllowThreads(__tstate);
41763 if (PyErr_Occurred()) SWIG_fail;
41764 }
41765 resultobj = SWIG_Py_Void();
41766 return resultobj;
41767 fail:
41768 return NULL;
41769 }
41770
41771
41772 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41773 PyObject *resultobj = 0;
41774 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41775 wxColour result;
41776 void *argp1 = 0 ;
41777 int res1 = 0 ;
41778 PyObject *swig_obj[1] ;
41779
41780 if (!args) SWIG_fail;
41781 swig_obj[0] = args;
41782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41783 if (!SWIG_IsOK(res1)) {
41784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41785 }
41786 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41787 {
41788 PyThreadState* __tstate = wxPyBeginAllowThreads();
41789 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41790 wxPyEndAllowThreads(__tstate);
41791 if (PyErr_Occurred()) SWIG_fail;
41792 }
41793 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41794 return resultobj;
41795 fail:
41796 return NULL;
41797 }
41798
41799
41800 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41801 PyObject *resultobj = 0;
41802 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41803 wxColour *arg2 = 0 ;
41804 void *argp1 = 0 ;
41805 int res1 = 0 ;
41806 wxColour temp2 ;
41807 PyObject * obj0 = 0 ;
41808 PyObject * obj1 = 0 ;
41809 char * kwnames[] = {
41810 (char *) "self",(char *) "colour", NULL
41811 };
41812
41813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41815 if (!SWIG_IsOK(res1)) {
41816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41817 }
41818 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41819 {
41820 arg2 = &temp2;
41821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41822 }
41823 {
41824 PyThreadState* __tstate = wxPyBeginAllowThreads();
41825 (arg1)->SetNormalColour((wxColour const &)*arg2);
41826 wxPyEndAllowThreads(__tstate);
41827 if (PyErr_Occurred()) SWIG_fail;
41828 }
41829 resultobj = SWIG_Py_Void();
41830 return resultobj;
41831 fail:
41832 return NULL;
41833 }
41834
41835
41836 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41837 PyObject *resultobj = 0;
41838 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41839 wxColour result;
41840 void *argp1 = 0 ;
41841 int res1 = 0 ;
41842 PyObject *swig_obj[1] ;
41843
41844 if (!args) SWIG_fail;
41845 swig_obj[0] = args;
41846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41847 if (!SWIG_IsOK(res1)) {
41848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41849 }
41850 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41851 {
41852 PyThreadState* __tstate = wxPyBeginAllowThreads();
41853 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41854 wxPyEndAllowThreads(__tstate);
41855 if (PyErr_Occurred()) SWIG_fail;
41856 }
41857 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41858 return resultobj;
41859 fail:
41860 return NULL;
41861 }
41862
41863
41864 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41865 PyObject *resultobj = 0;
41866 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41867 wxColour *arg2 = 0 ;
41868 void *argp1 = 0 ;
41869 int res1 = 0 ;
41870 wxColour temp2 ;
41871 PyObject * obj0 = 0 ;
41872 PyObject * obj1 = 0 ;
41873 char * kwnames[] = {
41874 (char *) "self",(char *) "colour", NULL
41875 };
41876
41877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41879 if (!SWIG_IsOK(res1)) {
41880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41881 }
41882 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41883 {
41884 arg2 = &temp2;
41885 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41886 }
41887 {
41888 PyThreadState* __tstate = wxPyBeginAllowThreads();
41889 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41890 wxPyEndAllowThreads(__tstate);
41891 if (PyErr_Occurred()) SWIG_fail;
41892 }
41893 resultobj = SWIG_Py_Void();
41894 return resultobj;
41895 fail:
41896 return NULL;
41897 }
41898
41899
41900 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41901 PyObject *resultobj = 0;
41902 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41903 wxString result;
41904 void *argp1 = 0 ;
41905 int res1 = 0 ;
41906 PyObject *swig_obj[1] ;
41907
41908 if (!args) SWIG_fail;
41909 swig_obj[0] = args;
41910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41911 if (!SWIG_IsOK(res1)) {
41912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41913 }
41914 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41915 {
41916 PyThreadState* __tstate = wxPyBeginAllowThreads();
41917 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41918 wxPyEndAllowThreads(__tstate);
41919 if (PyErr_Occurred()) SWIG_fail;
41920 }
41921 {
41922 #if wxUSE_UNICODE
41923 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41924 #else
41925 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41926 #endif
41927 }
41928 return resultobj;
41929 fail:
41930 return NULL;
41931 }
41932
41933
41934 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41935 PyObject *resultobj = 0;
41936 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41937 wxString *arg2 = 0 ;
41938 void *argp1 = 0 ;
41939 int res1 = 0 ;
41940 bool temp2 = false ;
41941 PyObject * obj0 = 0 ;
41942 PyObject * obj1 = 0 ;
41943 char * kwnames[] = {
41944 (char *) "self",(char *) "url", NULL
41945 };
41946
41947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41949 if (!SWIG_IsOK(res1)) {
41950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41951 }
41952 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41953 {
41954 arg2 = wxString_in_helper(obj1);
41955 if (arg2 == NULL) SWIG_fail;
41956 temp2 = true;
41957 }
41958 {
41959 PyThreadState* __tstate = wxPyBeginAllowThreads();
41960 (arg1)->SetURL((wxString const &)*arg2);
41961 wxPyEndAllowThreads(__tstate);
41962 if (PyErr_Occurred()) SWIG_fail;
41963 }
41964 resultobj = SWIG_Py_Void();
41965 {
41966 if (temp2)
41967 delete arg2;
41968 }
41969 return resultobj;
41970 fail:
41971 {
41972 if (temp2)
41973 delete arg2;
41974 }
41975 return NULL;
41976 }
41977
41978
41979 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41980 PyObject *resultobj = 0;
41981 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41982 bool arg2 = (bool) true ;
41983 void *argp1 = 0 ;
41984 int res1 = 0 ;
41985 bool val2 ;
41986 int ecode2 = 0 ;
41987 PyObject * obj0 = 0 ;
41988 PyObject * obj1 = 0 ;
41989 char * kwnames[] = {
41990 (char *) "self",(char *) "visited", NULL
41991 };
41992
41993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41995 if (!SWIG_IsOK(res1)) {
41996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41997 }
41998 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41999 if (obj1) {
42000 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42001 if (!SWIG_IsOK(ecode2)) {
42002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42003 }
42004 arg2 = static_cast< bool >(val2);
42005 }
42006 {
42007 PyThreadState* __tstate = wxPyBeginAllowThreads();
42008 (arg1)->SetVisited(arg2);
42009 wxPyEndAllowThreads(__tstate);
42010 if (PyErr_Occurred()) SWIG_fail;
42011 }
42012 resultobj = SWIG_Py_Void();
42013 return resultobj;
42014 fail:
42015 return NULL;
42016 }
42017
42018
42019 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42020 PyObject *resultobj = 0;
42021 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42022 bool result;
42023 void *argp1 = 0 ;
42024 int res1 = 0 ;
42025 PyObject *swig_obj[1] ;
42026
42027 if (!args) SWIG_fail;
42028 swig_obj[0] = args;
42029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42030 if (!SWIG_IsOK(res1)) {
42031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42032 }
42033 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42034 {
42035 PyThreadState* __tstate = wxPyBeginAllowThreads();
42036 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42037 wxPyEndAllowThreads(__tstate);
42038 if (PyErr_Occurred()) SWIG_fail;
42039 }
42040 {
42041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42042 }
42043 return resultobj;
42044 fail:
42045 return NULL;
42046 }
42047
42048
42049 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42050 PyObject *obj;
42051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42052 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42053 return SWIG_Py_Void();
42054 }
42055
42056 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42057 return SWIG_Python_InitShadowInstance(args);
42058 }
42059
42060 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42061 PyObject *resultobj = 0;
42062 wxObject *arg1 = (wxObject *) 0 ;
42063 int arg2 ;
42064 wxString *arg3 = 0 ;
42065 wxHyperlinkEvent *result = 0 ;
42066 void *argp1 = 0 ;
42067 int res1 = 0 ;
42068 int val2 ;
42069 int ecode2 = 0 ;
42070 bool temp3 = false ;
42071 PyObject * obj0 = 0 ;
42072 PyObject * obj1 = 0 ;
42073 PyObject * obj2 = 0 ;
42074 char * kwnames[] = {
42075 (char *) "generator",(char *) "id",(char *) "url", NULL
42076 };
42077
42078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42080 if (!SWIG_IsOK(res1)) {
42081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42082 }
42083 arg1 = reinterpret_cast< wxObject * >(argp1);
42084 ecode2 = SWIG_AsVal_int(obj1, &val2);
42085 if (!SWIG_IsOK(ecode2)) {
42086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42087 }
42088 arg2 = static_cast< int >(val2);
42089 {
42090 arg3 = wxString_in_helper(obj2);
42091 if (arg3 == NULL) SWIG_fail;
42092 temp3 = true;
42093 }
42094 {
42095 PyThreadState* __tstate = wxPyBeginAllowThreads();
42096 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42097 wxPyEndAllowThreads(__tstate);
42098 if (PyErr_Occurred()) SWIG_fail;
42099 }
42100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42101 {
42102 if (temp3)
42103 delete arg3;
42104 }
42105 return resultobj;
42106 fail:
42107 {
42108 if (temp3)
42109 delete arg3;
42110 }
42111 return NULL;
42112 }
42113
42114
42115 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42116 PyObject *resultobj = 0;
42117 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42118 wxString result;
42119 void *argp1 = 0 ;
42120 int res1 = 0 ;
42121 PyObject *swig_obj[1] ;
42122
42123 if (!args) SWIG_fail;
42124 swig_obj[0] = args;
42125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42126 if (!SWIG_IsOK(res1)) {
42127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42128 }
42129 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42130 {
42131 PyThreadState* __tstate = wxPyBeginAllowThreads();
42132 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42133 wxPyEndAllowThreads(__tstate);
42134 if (PyErr_Occurred()) SWIG_fail;
42135 }
42136 {
42137 #if wxUSE_UNICODE
42138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42139 #else
42140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42141 #endif
42142 }
42143 return resultobj;
42144 fail:
42145 return NULL;
42146 }
42147
42148
42149 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42150 PyObject *resultobj = 0;
42151 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42152 wxString *arg2 = 0 ;
42153 void *argp1 = 0 ;
42154 int res1 = 0 ;
42155 bool temp2 = false ;
42156 PyObject * obj0 = 0 ;
42157 PyObject * obj1 = 0 ;
42158 char * kwnames[] = {
42159 (char *) "self",(char *) "url", NULL
42160 };
42161
42162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42164 if (!SWIG_IsOK(res1)) {
42165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42166 }
42167 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42168 {
42169 arg2 = wxString_in_helper(obj1);
42170 if (arg2 == NULL) SWIG_fail;
42171 temp2 = true;
42172 }
42173 {
42174 PyThreadState* __tstate = wxPyBeginAllowThreads();
42175 (arg1)->SetURL((wxString const &)*arg2);
42176 wxPyEndAllowThreads(__tstate);
42177 if (PyErr_Occurred()) SWIG_fail;
42178 }
42179 resultobj = SWIG_Py_Void();
42180 {
42181 if (temp2)
42182 delete arg2;
42183 }
42184 return resultobj;
42185 fail:
42186 {
42187 if (temp2)
42188 delete arg2;
42189 }
42190 return NULL;
42191 }
42192
42193
42194 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42195 PyObject *obj;
42196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42197 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42198 return SWIG_Py_Void();
42199 }
42200
42201 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42202 return SWIG_Python_InitShadowInstance(args);
42203 }
42204
42205 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42206 PyObject *resultobj = 0;
42207 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42208 wxWindow *arg2 = (wxWindow *) 0 ;
42209 int arg3 ;
42210 wxString const &arg4_defvalue = wxEmptyString ;
42211 wxString *arg4 = (wxString *) &arg4_defvalue ;
42212 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42213 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42214 wxSize const &arg6_defvalue = wxDefaultSize ;
42215 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42216 long arg7 = (long) 0 ;
42217 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42218 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42219 wxString const &arg9_defvalue = wxButtonNameStr ;
42220 wxString *arg9 = (wxString *) &arg9_defvalue ;
42221 bool result;
42222 void *argp1 = 0 ;
42223 int res1 = 0 ;
42224 void *argp2 = 0 ;
42225 int res2 = 0 ;
42226 int val3 ;
42227 int ecode3 = 0 ;
42228 bool temp4 = false ;
42229 wxPoint temp5 ;
42230 wxSize temp6 ;
42231 long val7 ;
42232 int ecode7 = 0 ;
42233 void *argp8 = 0 ;
42234 int res8 = 0 ;
42235 bool temp9 = false ;
42236 PyObject * obj0 = 0 ;
42237 PyObject * obj1 = 0 ;
42238 PyObject * obj2 = 0 ;
42239 PyObject * obj3 = 0 ;
42240 PyObject * obj4 = 0 ;
42241 PyObject * obj5 = 0 ;
42242 PyObject * obj6 = 0 ;
42243 PyObject * obj7 = 0 ;
42244 PyObject * obj8 = 0 ;
42245 char * kwnames[] = {
42246 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42247 };
42248
42249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42251 if (!SWIG_IsOK(res1)) {
42252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42253 }
42254 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42255 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42256 if (!SWIG_IsOK(res2)) {
42257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42258 }
42259 arg2 = reinterpret_cast< wxWindow * >(argp2);
42260 ecode3 = SWIG_AsVal_int(obj2, &val3);
42261 if (!SWIG_IsOK(ecode3)) {
42262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42263 }
42264 arg3 = static_cast< int >(val3);
42265 if (obj3) {
42266 {
42267 arg4 = wxString_in_helper(obj3);
42268 if (arg4 == NULL) SWIG_fail;
42269 temp4 = true;
42270 }
42271 }
42272 if (obj4) {
42273 {
42274 arg5 = &temp5;
42275 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42276 }
42277 }
42278 if (obj5) {
42279 {
42280 arg6 = &temp6;
42281 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42282 }
42283 }
42284 if (obj6) {
42285 ecode7 = SWIG_AsVal_long(obj6, &val7);
42286 if (!SWIG_IsOK(ecode7)) {
42287 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42288 }
42289 arg7 = static_cast< long >(val7);
42290 }
42291 if (obj7) {
42292 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42293 if (!SWIG_IsOK(res8)) {
42294 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42295 }
42296 if (!argp8) {
42297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42298 }
42299 arg8 = reinterpret_cast< wxValidator * >(argp8);
42300 }
42301 if (obj8) {
42302 {
42303 arg9 = wxString_in_helper(obj8);
42304 if (arg9 == NULL) SWIG_fail;
42305 temp9 = true;
42306 }
42307 }
42308 {
42309 PyThreadState* __tstate = wxPyBeginAllowThreads();
42310 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42311 wxPyEndAllowThreads(__tstate);
42312 if (PyErr_Occurred()) SWIG_fail;
42313 }
42314 {
42315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42316 }
42317 {
42318 if (temp4)
42319 delete arg4;
42320 }
42321 {
42322 if (temp9)
42323 delete arg9;
42324 }
42325 return resultobj;
42326 fail:
42327 {
42328 if (temp4)
42329 delete arg4;
42330 }
42331 {
42332 if (temp9)
42333 delete arg9;
42334 }
42335 return NULL;
42336 }
42337
42338
42339 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42340 PyObject *resultobj = 0;
42341 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42342 int arg2 ;
42343 void *argp1 = 0 ;
42344 int res1 = 0 ;
42345 int val2 ;
42346 int ecode2 = 0 ;
42347 PyObject * obj0 = 0 ;
42348 PyObject * obj1 = 0 ;
42349 char * kwnames[] = {
42350 (char *) "self",(char *) "newmargin", NULL
42351 };
42352
42353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42355 if (!SWIG_IsOK(res1)) {
42356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42357 }
42358 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42359 ecode2 = SWIG_AsVal_int(obj1, &val2);
42360 if (!SWIG_IsOK(ecode2)) {
42361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42362 }
42363 arg2 = static_cast< int >(val2);
42364 {
42365 PyThreadState* __tstate = wxPyBeginAllowThreads();
42366 (arg1)->SetInternalMargin(arg2);
42367 wxPyEndAllowThreads(__tstate);
42368 if (PyErr_Occurred()) SWIG_fail;
42369 }
42370 resultobj = SWIG_Py_Void();
42371 return resultobj;
42372 fail:
42373 return NULL;
42374 }
42375
42376
42377 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42378 PyObject *resultobj = 0;
42379 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42380 int result;
42381 void *argp1 = 0 ;
42382 int res1 = 0 ;
42383 PyObject *swig_obj[1] ;
42384
42385 if (!args) SWIG_fail;
42386 swig_obj[0] = args;
42387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42388 if (!SWIG_IsOK(res1)) {
42389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42390 }
42391 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42392 {
42393 PyThreadState* __tstate = wxPyBeginAllowThreads();
42394 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42395 wxPyEndAllowThreads(__tstate);
42396 if (PyErr_Occurred()) SWIG_fail;
42397 }
42398 resultobj = SWIG_From_int(static_cast< int >(result));
42399 return resultobj;
42400 fail:
42401 return NULL;
42402 }
42403
42404
42405 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42406 PyObject *resultobj = 0;
42407 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42408 int arg2 ;
42409 void *argp1 = 0 ;
42410 int res1 = 0 ;
42411 int val2 ;
42412 int ecode2 = 0 ;
42413 PyObject * obj0 = 0 ;
42414 PyObject * obj1 = 0 ;
42415 char * kwnames[] = {
42416 (char *) "self",(char *) "prop", NULL
42417 };
42418
42419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42421 if (!SWIG_IsOK(res1)) {
42422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42423 }
42424 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42425 ecode2 = SWIG_AsVal_int(obj1, &val2);
42426 if (!SWIG_IsOK(ecode2)) {
42427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42428 }
42429 arg2 = static_cast< int >(val2);
42430 {
42431 PyThreadState* __tstate = wxPyBeginAllowThreads();
42432 (arg1)->SetTextCtrlProportion(arg2);
42433 wxPyEndAllowThreads(__tstate);
42434 if (PyErr_Occurred()) SWIG_fail;
42435 }
42436 resultobj = SWIG_Py_Void();
42437 return resultobj;
42438 fail:
42439 return NULL;
42440 }
42441
42442
42443 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42444 PyObject *resultobj = 0;
42445 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42446 int result;
42447 void *argp1 = 0 ;
42448 int res1 = 0 ;
42449 PyObject *swig_obj[1] ;
42450
42451 if (!args) SWIG_fail;
42452 swig_obj[0] = args;
42453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42454 if (!SWIG_IsOK(res1)) {
42455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42456 }
42457 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42458 {
42459 PyThreadState* __tstate = wxPyBeginAllowThreads();
42460 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42461 wxPyEndAllowThreads(__tstate);
42462 if (PyErr_Occurred()) SWIG_fail;
42463 }
42464 resultobj = SWIG_From_int(static_cast< int >(result));
42465 return resultobj;
42466 fail:
42467 return NULL;
42468 }
42469
42470
42471 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42472 PyObject *resultobj = 0;
42473 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42474 bool result;
42475 void *argp1 = 0 ;
42476 int res1 = 0 ;
42477 PyObject *swig_obj[1] ;
42478
42479 if (!args) SWIG_fail;
42480 swig_obj[0] = args;
42481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42482 if (!SWIG_IsOK(res1)) {
42483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42484 }
42485 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42486 {
42487 PyThreadState* __tstate = wxPyBeginAllowThreads();
42488 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42489 wxPyEndAllowThreads(__tstate);
42490 if (PyErr_Occurred()) SWIG_fail;
42491 }
42492 {
42493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42494 }
42495 return resultobj;
42496 fail:
42497 return NULL;
42498 }
42499
42500
42501 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42502 PyObject *resultobj = 0;
42503 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42504 bool arg2 = (bool) true ;
42505 void *argp1 = 0 ;
42506 int res1 = 0 ;
42507 bool val2 ;
42508 int ecode2 = 0 ;
42509 PyObject * obj0 = 0 ;
42510 PyObject * obj1 = 0 ;
42511 char * kwnames[] = {
42512 (char *) "self",(char *) "grow", NULL
42513 };
42514
42515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42517 if (!SWIG_IsOK(res1)) {
42518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42519 }
42520 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42521 if (obj1) {
42522 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42523 if (!SWIG_IsOK(ecode2)) {
42524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42525 }
42526 arg2 = static_cast< bool >(val2);
42527 }
42528 {
42529 PyThreadState* __tstate = wxPyBeginAllowThreads();
42530 (arg1)->SetTextCtrlGrowable(arg2);
42531 wxPyEndAllowThreads(__tstate);
42532 if (PyErr_Occurred()) SWIG_fail;
42533 }
42534 resultobj = SWIG_Py_Void();
42535 return resultobj;
42536 fail:
42537 return NULL;
42538 }
42539
42540
42541 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42542 PyObject *resultobj = 0;
42543 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42544 bool result;
42545 void *argp1 = 0 ;
42546 int res1 = 0 ;
42547 PyObject *swig_obj[1] ;
42548
42549 if (!args) SWIG_fail;
42550 swig_obj[0] = args;
42551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42552 if (!SWIG_IsOK(res1)) {
42553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42554 }
42555 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42556 {
42557 PyThreadState* __tstate = wxPyBeginAllowThreads();
42558 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42559 wxPyEndAllowThreads(__tstate);
42560 if (PyErr_Occurred()) SWIG_fail;
42561 }
42562 {
42563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42564 }
42565 return resultobj;
42566 fail:
42567 return NULL;
42568 }
42569
42570
42571 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42572 PyObject *resultobj = 0;
42573 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42574 bool arg2 = (bool) true ;
42575 void *argp1 = 0 ;
42576 int res1 = 0 ;
42577 bool val2 ;
42578 int ecode2 = 0 ;
42579 PyObject * obj0 = 0 ;
42580 PyObject * obj1 = 0 ;
42581 char * kwnames[] = {
42582 (char *) "self",(char *) "grow", NULL
42583 };
42584
42585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42587 if (!SWIG_IsOK(res1)) {
42588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42589 }
42590 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42591 if (obj1) {
42592 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42593 if (!SWIG_IsOK(ecode2)) {
42594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42595 }
42596 arg2 = static_cast< bool >(val2);
42597 }
42598 {
42599 PyThreadState* __tstate = wxPyBeginAllowThreads();
42600 (arg1)->SetPickerCtrlGrowable(arg2);
42601 wxPyEndAllowThreads(__tstate);
42602 if (PyErr_Occurred()) SWIG_fail;
42603 }
42604 resultobj = SWIG_Py_Void();
42605 return resultobj;
42606 fail:
42607 return NULL;
42608 }
42609
42610
42611 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42612 PyObject *resultobj = 0;
42613 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42614 bool result;
42615 void *argp1 = 0 ;
42616 int res1 = 0 ;
42617 PyObject *swig_obj[1] ;
42618
42619 if (!args) SWIG_fail;
42620 swig_obj[0] = args;
42621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42622 if (!SWIG_IsOK(res1)) {
42623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42624 }
42625 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42626 {
42627 PyThreadState* __tstate = wxPyBeginAllowThreads();
42628 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42629 wxPyEndAllowThreads(__tstate);
42630 if (PyErr_Occurred()) SWIG_fail;
42631 }
42632 {
42633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42634 }
42635 return resultobj;
42636 fail:
42637 return NULL;
42638 }
42639
42640
42641 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42642 PyObject *resultobj = 0;
42643 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42644 wxTextCtrl *result = 0 ;
42645 void *argp1 = 0 ;
42646 int res1 = 0 ;
42647 PyObject *swig_obj[1] ;
42648
42649 if (!args) SWIG_fail;
42650 swig_obj[0] = args;
42651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42652 if (!SWIG_IsOK(res1)) {
42653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42654 }
42655 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42656 {
42657 PyThreadState* __tstate = wxPyBeginAllowThreads();
42658 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42659 wxPyEndAllowThreads(__tstate);
42660 if (PyErr_Occurred()) SWIG_fail;
42661 }
42662 {
42663 resultobj = wxPyMake_wxObject(result, 0);
42664 }
42665 return resultobj;
42666 fail:
42667 return NULL;
42668 }
42669
42670
42671 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42672 PyObject *resultobj = 0;
42673 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42674 wxControl *result = 0 ;
42675 void *argp1 = 0 ;
42676 int res1 = 0 ;
42677 PyObject *swig_obj[1] ;
42678
42679 if (!args) SWIG_fail;
42680 swig_obj[0] = args;
42681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42682 if (!SWIG_IsOK(res1)) {
42683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42684 }
42685 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42686 {
42687 PyThreadState* __tstate = wxPyBeginAllowThreads();
42688 result = (wxControl *)(arg1)->GetPickerCtrl();
42689 wxPyEndAllowThreads(__tstate);
42690 if (PyErr_Occurred()) SWIG_fail;
42691 }
42692 {
42693 resultobj = wxPyMake_wxObject(result, 0);
42694 }
42695 return resultobj;
42696 fail:
42697 return NULL;
42698 }
42699
42700
42701 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42702 PyObject *obj;
42703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42704 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42705 return SWIG_Py_Void();
42706 }
42707
42708 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42709 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42710 return 1;
42711 }
42712
42713
42714 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42715 PyObject *pyobj = 0;
42716
42717 {
42718 #if wxUSE_UNICODE
42719 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42720 #else
42721 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42722 #endif
42723 }
42724 return pyobj;
42725 }
42726
42727
42728 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42729 PyObject *resultobj = 0;
42730 wxWindow *arg1 = (wxWindow *) 0 ;
42731 int arg2 = (int) -1 ;
42732 wxColour const &arg3_defvalue = *wxBLACK ;
42733 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42734 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42735 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42736 wxSize const &arg5_defvalue = wxDefaultSize ;
42737 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42738 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42739 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42740 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42741 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42742 wxString *arg8 = (wxString *) &arg8_defvalue ;
42743 wxColourPickerCtrl *result = 0 ;
42744 void *argp1 = 0 ;
42745 int res1 = 0 ;
42746 int val2 ;
42747 int ecode2 = 0 ;
42748 wxColour temp3 ;
42749 wxPoint temp4 ;
42750 wxSize temp5 ;
42751 long val6 ;
42752 int ecode6 = 0 ;
42753 void *argp7 = 0 ;
42754 int res7 = 0 ;
42755 bool temp8 = false ;
42756 PyObject * obj0 = 0 ;
42757 PyObject * obj1 = 0 ;
42758 PyObject * obj2 = 0 ;
42759 PyObject * obj3 = 0 ;
42760 PyObject * obj4 = 0 ;
42761 PyObject * obj5 = 0 ;
42762 PyObject * obj6 = 0 ;
42763 PyObject * obj7 = 0 ;
42764 char * kwnames[] = {
42765 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42766 };
42767
42768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42770 if (!SWIG_IsOK(res1)) {
42771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42772 }
42773 arg1 = reinterpret_cast< wxWindow * >(argp1);
42774 if (obj1) {
42775 ecode2 = SWIG_AsVal_int(obj1, &val2);
42776 if (!SWIG_IsOK(ecode2)) {
42777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42778 }
42779 arg2 = static_cast< int >(val2);
42780 }
42781 if (obj2) {
42782 {
42783 arg3 = &temp3;
42784 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42785 }
42786 }
42787 if (obj3) {
42788 {
42789 arg4 = &temp4;
42790 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42791 }
42792 }
42793 if (obj4) {
42794 {
42795 arg5 = &temp5;
42796 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42797 }
42798 }
42799 if (obj5) {
42800 ecode6 = SWIG_AsVal_long(obj5, &val6);
42801 if (!SWIG_IsOK(ecode6)) {
42802 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42803 }
42804 arg6 = static_cast< long >(val6);
42805 }
42806 if (obj6) {
42807 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42808 if (!SWIG_IsOK(res7)) {
42809 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42810 }
42811 if (!argp7) {
42812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42813 }
42814 arg7 = reinterpret_cast< wxValidator * >(argp7);
42815 }
42816 if (obj7) {
42817 {
42818 arg8 = wxString_in_helper(obj7);
42819 if (arg8 == NULL) SWIG_fail;
42820 temp8 = true;
42821 }
42822 }
42823 {
42824 if (!wxPyCheckForApp()) SWIG_fail;
42825 PyThreadState* __tstate = wxPyBeginAllowThreads();
42826 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42827 wxPyEndAllowThreads(__tstate);
42828 if (PyErr_Occurred()) SWIG_fail;
42829 }
42830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42831 {
42832 if (temp8)
42833 delete arg8;
42834 }
42835 return resultobj;
42836 fail:
42837 {
42838 if (temp8)
42839 delete arg8;
42840 }
42841 return NULL;
42842 }
42843
42844
42845 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42846 PyObject *resultobj = 0;
42847 wxColourPickerCtrl *result = 0 ;
42848
42849 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42850 {
42851 if (!wxPyCheckForApp()) SWIG_fail;
42852 PyThreadState* __tstate = wxPyBeginAllowThreads();
42853 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42854 wxPyEndAllowThreads(__tstate);
42855 if (PyErr_Occurred()) SWIG_fail;
42856 }
42857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42858 return resultobj;
42859 fail:
42860 return NULL;
42861 }
42862
42863
42864 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42865 PyObject *resultobj = 0;
42866 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42867 wxWindow *arg2 = (wxWindow *) 0 ;
42868 int arg3 ;
42869 wxColour const &arg4_defvalue = *wxBLACK ;
42870 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42871 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42872 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42873 wxSize const &arg6_defvalue = wxDefaultSize ;
42874 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42875 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42876 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42877 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42878 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42879 wxString *arg9 = (wxString *) &arg9_defvalue ;
42880 bool result;
42881 void *argp1 = 0 ;
42882 int res1 = 0 ;
42883 void *argp2 = 0 ;
42884 int res2 = 0 ;
42885 int val3 ;
42886 int ecode3 = 0 ;
42887 wxColour temp4 ;
42888 wxPoint temp5 ;
42889 wxSize temp6 ;
42890 long val7 ;
42891 int ecode7 = 0 ;
42892 void *argp8 = 0 ;
42893 int res8 = 0 ;
42894 bool temp9 = false ;
42895 PyObject * obj0 = 0 ;
42896 PyObject * obj1 = 0 ;
42897 PyObject * obj2 = 0 ;
42898 PyObject * obj3 = 0 ;
42899 PyObject * obj4 = 0 ;
42900 PyObject * obj5 = 0 ;
42901 PyObject * obj6 = 0 ;
42902 PyObject * obj7 = 0 ;
42903 PyObject * obj8 = 0 ;
42904 char * kwnames[] = {
42905 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42906 };
42907
42908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42910 if (!SWIG_IsOK(res1)) {
42911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
42912 }
42913 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42914 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42915 if (!SWIG_IsOK(res2)) {
42916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42917 }
42918 arg2 = reinterpret_cast< wxWindow * >(argp2);
42919 ecode3 = SWIG_AsVal_int(obj2, &val3);
42920 if (!SWIG_IsOK(ecode3)) {
42921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42922 }
42923 arg3 = static_cast< int >(val3);
42924 if (obj3) {
42925 {
42926 arg4 = &temp4;
42927 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
42928 }
42929 }
42930 if (obj4) {
42931 {
42932 arg5 = &temp5;
42933 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42934 }
42935 }
42936 if (obj5) {
42937 {
42938 arg6 = &temp6;
42939 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42940 }
42941 }
42942 if (obj6) {
42943 ecode7 = SWIG_AsVal_long(obj6, &val7);
42944 if (!SWIG_IsOK(ecode7)) {
42945 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
42946 }
42947 arg7 = static_cast< long >(val7);
42948 }
42949 if (obj7) {
42950 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42951 if (!SWIG_IsOK(res8)) {
42952 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42953 }
42954 if (!argp8) {
42955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42956 }
42957 arg8 = reinterpret_cast< wxValidator * >(argp8);
42958 }
42959 if (obj8) {
42960 {
42961 arg9 = wxString_in_helper(obj8);
42962 if (arg9 == NULL) SWIG_fail;
42963 temp9 = true;
42964 }
42965 }
42966 {
42967 PyThreadState* __tstate = wxPyBeginAllowThreads();
42968 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42969 wxPyEndAllowThreads(__tstate);
42970 if (PyErr_Occurred()) SWIG_fail;
42971 }
42972 {
42973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42974 }
42975 {
42976 if (temp9)
42977 delete arg9;
42978 }
42979 return resultobj;
42980 fail:
42981 {
42982 if (temp9)
42983 delete arg9;
42984 }
42985 return NULL;
42986 }
42987
42988
42989 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42990 PyObject *resultobj = 0;
42991 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42992 wxColour result;
42993 void *argp1 = 0 ;
42994 int res1 = 0 ;
42995 PyObject *swig_obj[1] ;
42996
42997 if (!args) SWIG_fail;
42998 swig_obj[0] = args;
42999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43000 if (!SWIG_IsOK(res1)) {
43001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43002 }
43003 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43004 {
43005 PyThreadState* __tstate = wxPyBeginAllowThreads();
43006 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43007 wxPyEndAllowThreads(__tstate);
43008 if (PyErr_Occurred()) SWIG_fail;
43009 }
43010 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43011 return resultobj;
43012 fail:
43013 return NULL;
43014 }
43015
43016
43017 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43018 PyObject *resultobj = 0;
43019 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43020 wxColour *arg2 = 0 ;
43021 void *argp1 = 0 ;
43022 int res1 = 0 ;
43023 wxColour temp2 ;
43024 PyObject * obj0 = 0 ;
43025 PyObject * obj1 = 0 ;
43026 char * kwnames[] = {
43027 (char *) "self",(char *) "col", NULL
43028 };
43029
43030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43032 if (!SWIG_IsOK(res1)) {
43033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43034 }
43035 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43036 {
43037 arg2 = &temp2;
43038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43039 }
43040 {
43041 PyThreadState* __tstate = wxPyBeginAllowThreads();
43042 (arg1)->SetColour((wxColour const &)*arg2);
43043 wxPyEndAllowThreads(__tstate);
43044 if (PyErr_Occurred()) SWIG_fail;
43045 }
43046 resultobj = SWIG_Py_Void();
43047 return resultobj;
43048 fail:
43049 return NULL;
43050 }
43051
43052
43053 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43054 PyObject *obj;
43055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43056 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43057 return SWIG_Py_Void();
43058 }
43059
43060 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43061 return SWIG_Python_InitShadowInstance(args);
43062 }
43063
43064 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43065 PyObject *resultobj = 0;
43066 wxObject *arg1 = (wxObject *) 0 ;
43067 int arg2 ;
43068 wxColour *arg3 = 0 ;
43069 wxColourPickerEvent *result = 0 ;
43070 void *argp1 = 0 ;
43071 int res1 = 0 ;
43072 int val2 ;
43073 int ecode2 = 0 ;
43074 wxColour temp3 ;
43075 PyObject * obj0 = 0 ;
43076 PyObject * obj1 = 0 ;
43077 PyObject * obj2 = 0 ;
43078 char * kwnames[] = {
43079 (char *) "generator",(char *) "id",(char *) "col", NULL
43080 };
43081
43082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43084 if (!SWIG_IsOK(res1)) {
43085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43086 }
43087 arg1 = reinterpret_cast< wxObject * >(argp1);
43088 ecode2 = SWIG_AsVal_int(obj1, &val2);
43089 if (!SWIG_IsOK(ecode2)) {
43090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43091 }
43092 arg2 = static_cast< int >(val2);
43093 {
43094 arg3 = &temp3;
43095 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43096 }
43097 {
43098 PyThreadState* __tstate = wxPyBeginAllowThreads();
43099 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43100 wxPyEndAllowThreads(__tstate);
43101 if (PyErr_Occurred()) SWIG_fail;
43102 }
43103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43104 return resultobj;
43105 fail:
43106 return NULL;
43107 }
43108
43109
43110 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43111 PyObject *resultobj = 0;
43112 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43113 wxColour result;
43114 void *argp1 = 0 ;
43115 int res1 = 0 ;
43116 PyObject *swig_obj[1] ;
43117
43118 if (!args) SWIG_fail;
43119 swig_obj[0] = args;
43120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43121 if (!SWIG_IsOK(res1)) {
43122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43123 }
43124 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43125 {
43126 PyThreadState* __tstate = wxPyBeginAllowThreads();
43127 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43128 wxPyEndAllowThreads(__tstate);
43129 if (PyErr_Occurred()) SWIG_fail;
43130 }
43131 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43132 return resultobj;
43133 fail:
43134 return NULL;
43135 }
43136
43137
43138 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43139 PyObject *resultobj = 0;
43140 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43141 wxColour *arg2 = 0 ;
43142 void *argp1 = 0 ;
43143 int res1 = 0 ;
43144 wxColour temp2 ;
43145 PyObject * obj0 = 0 ;
43146 PyObject * obj1 = 0 ;
43147 char * kwnames[] = {
43148 (char *) "self",(char *) "c", NULL
43149 };
43150
43151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43153 if (!SWIG_IsOK(res1)) {
43154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43155 }
43156 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43157 {
43158 arg2 = &temp2;
43159 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43160 }
43161 {
43162 PyThreadState* __tstate = wxPyBeginAllowThreads();
43163 (arg1)->SetColour((wxColour const &)*arg2);
43164 wxPyEndAllowThreads(__tstate);
43165 if (PyErr_Occurred()) SWIG_fail;
43166 }
43167 resultobj = SWIG_Py_Void();
43168 return resultobj;
43169 fail:
43170 return NULL;
43171 }
43172
43173
43174 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43175 PyObject *obj;
43176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43177 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43178 return SWIG_Py_Void();
43179 }
43180
43181 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43182 return SWIG_Python_InitShadowInstance(args);
43183 }
43184
43185 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43186 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43187 return 1;
43188 }
43189
43190
43191 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43192 PyObject *pyobj = 0;
43193
43194 {
43195 #if wxUSE_UNICODE
43196 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43197 #else
43198 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43199 #endif
43200 }
43201 return pyobj;
43202 }
43203
43204
43205 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43206 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43207 return 1;
43208 }
43209
43210
43211 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43212 PyObject *pyobj = 0;
43213
43214 {
43215 #if wxUSE_UNICODE
43216 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43217 #else
43218 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43219 #endif
43220 }
43221 return pyobj;
43222 }
43223
43224
43225 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43226 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43227 return 1;
43228 }
43229
43230
43231 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43232 PyObject *pyobj = 0;
43233
43234 {
43235 #if wxUSE_UNICODE
43236 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43237 #else
43238 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43239 #endif
43240 }
43241 return pyobj;
43242 }
43243
43244
43245 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43246 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43247 return 1;
43248 }
43249
43250
43251 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43252 PyObject *pyobj = 0;
43253
43254 {
43255 #if wxUSE_UNICODE
43256 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43257 #else
43258 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43259 #endif
43260 }
43261 return pyobj;
43262 }
43263
43264
43265 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43266 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43267 return 1;
43268 }
43269
43270
43271 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43272 PyObject *pyobj = 0;
43273
43274 {
43275 #if wxUSE_UNICODE
43276 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43277 #else
43278 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43279 #endif
43280 }
43281 return pyobj;
43282 }
43283
43284
43285 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43286 PyObject *resultobj = 0;
43287 wxWindow *arg1 = (wxWindow *) 0 ;
43288 int arg2 = (int) -1 ;
43289 wxString const &arg3_defvalue = wxPyEmptyString ;
43290 wxString *arg3 = (wxString *) &arg3_defvalue ;
43291 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43292 wxString *arg4 = (wxString *) &arg4_defvalue ;
43293 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43294 wxString *arg5 = (wxString *) &arg5_defvalue ;
43295 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43296 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43297 wxSize const &arg7_defvalue = wxDefaultSize ;
43298 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43299 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43300 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43301 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43302 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43303 wxString *arg10 = (wxString *) &arg10_defvalue ;
43304 wxFilePickerCtrl *result = 0 ;
43305 void *argp1 = 0 ;
43306 int res1 = 0 ;
43307 int val2 ;
43308 int ecode2 = 0 ;
43309 bool temp3 = false ;
43310 bool temp4 = false ;
43311 bool temp5 = false ;
43312 wxPoint temp6 ;
43313 wxSize temp7 ;
43314 long val8 ;
43315 int ecode8 = 0 ;
43316 void *argp9 = 0 ;
43317 int res9 = 0 ;
43318 bool temp10 = false ;
43319 PyObject * obj0 = 0 ;
43320 PyObject * obj1 = 0 ;
43321 PyObject * obj2 = 0 ;
43322 PyObject * obj3 = 0 ;
43323 PyObject * obj4 = 0 ;
43324 PyObject * obj5 = 0 ;
43325 PyObject * obj6 = 0 ;
43326 PyObject * obj7 = 0 ;
43327 PyObject * obj8 = 0 ;
43328 PyObject * obj9 = 0 ;
43329 char * kwnames[] = {
43330 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43331 };
43332
43333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43335 if (!SWIG_IsOK(res1)) {
43336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43337 }
43338 arg1 = reinterpret_cast< wxWindow * >(argp1);
43339 if (obj1) {
43340 ecode2 = SWIG_AsVal_int(obj1, &val2);
43341 if (!SWIG_IsOK(ecode2)) {
43342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43343 }
43344 arg2 = static_cast< int >(val2);
43345 }
43346 if (obj2) {
43347 {
43348 arg3 = wxString_in_helper(obj2);
43349 if (arg3 == NULL) SWIG_fail;
43350 temp3 = true;
43351 }
43352 }
43353 if (obj3) {
43354 {
43355 arg4 = wxString_in_helper(obj3);
43356 if (arg4 == NULL) SWIG_fail;
43357 temp4 = true;
43358 }
43359 }
43360 if (obj4) {
43361 {
43362 arg5 = wxString_in_helper(obj4);
43363 if (arg5 == NULL) SWIG_fail;
43364 temp5 = true;
43365 }
43366 }
43367 if (obj5) {
43368 {
43369 arg6 = &temp6;
43370 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43371 }
43372 }
43373 if (obj6) {
43374 {
43375 arg7 = &temp7;
43376 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43377 }
43378 }
43379 if (obj7) {
43380 ecode8 = SWIG_AsVal_long(obj7, &val8);
43381 if (!SWIG_IsOK(ecode8)) {
43382 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43383 }
43384 arg8 = static_cast< long >(val8);
43385 }
43386 if (obj8) {
43387 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43388 if (!SWIG_IsOK(res9)) {
43389 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43390 }
43391 if (!argp9) {
43392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43393 }
43394 arg9 = reinterpret_cast< wxValidator * >(argp9);
43395 }
43396 if (obj9) {
43397 {
43398 arg10 = wxString_in_helper(obj9);
43399 if (arg10 == NULL) SWIG_fail;
43400 temp10 = true;
43401 }
43402 }
43403 {
43404 if (!wxPyCheckForApp()) SWIG_fail;
43405 PyThreadState* __tstate = wxPyBeginAllowThreads();
43406 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);
43407 wxPyEndAllowThreads(__tstate);
43408 if (PyErr_Occurred()) SWIG_fail;
43409 }
43410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43411 {
43412 if (temp3)
43413 delete arg3;
43414 }
43415 {
43416 if (temp4)
43417 delete arg4;
43418 }
43419 {
43420 if (temp5)
43421 delete arg5;
43422 }
43423 {
43424 if (temp10)
43425 delete arg10;
43426 }
43427 return resultobj;
43428 fail:
43429 {
43430 if (temp3)
43431 delete arg3;
43432 }
43433 {
43434 if (temp4)
43435 delete arg4;
43436 }
43437 {
43438 if (temp5)
43439 delete arg5;
43440 }
43441 {
43442 if (temp10)
43443 delete arg10;
43444 }
43445 return NULL;
43446 }
43447
43448
43449 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43450 PyObject *resultobj = 0;
43451 wxFilePickerCtrl *result = 0 ;
43452
43453 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43454 {
43455 if (!wxPyCheckForApp()) SWIG_fail;
43456 PyThreadState* __tstate = wxPyBeginAllowThreads();
43457 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43458 wxPyEndAllowThreads(__tstate);
43459 if (PyErr_Occurred()) SWIG_fail;
43460 }
43461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43462 return resultobj;
43463 fail:
43464 return NULL;
43465 }
43466
43467
43468 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43469 PyObject *resultobj = 0;
43470 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43471 wxWindow *arg2 = (wxWindow *) 0 ;
43472 int arg3 = (int) -1 ;
43473 wxString const &arg4_defvalue = wxPyEmptyString ;
43474 wxString *arg4 = (wxString *) &arg4_defvalue ;
43475 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43476 wxString *arg5 = (wxString *) &arg5_defvalue ;
43477 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43478 wxString *arg6 = (wxString *) &arg6_defvalue ;
43479 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43480 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43481 wxSize const &arg8_defvalue = wxDefaultSize ;
43482 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43483 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43484 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43485 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43486 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43487 wxString *arg11 = (wxString *) &arg11_defvalue ;
43488 bool result;
43489 void *argp1 = 0 ;
43490 int res1 = 0 ;
43491 void *argp2 = 0 ;
43492 int res2 = 0 ;
43493 int val3 ;
43494 int ecode3 = 0 ;
43495 bool temp4 = false ;
43496 bool temp5 = false ;
43497 bool temp6 = false ;
43498 wxPoint temp7 ;
43499 wxSize temp8 ;
43500 long val9 ;
43501 int ecode9 = 0 ;
43502 void *argp10 = 0 ;
43503 int res10 = 0 ;
43504 bool temp11 = false ;
43505 PyObject * obj0 = 0 ;
43506 PyObject * obj1 = 0 ;
43507 PyObject * obj2 = 0 ;
43508 PyObject * obj3 = 0 ;
43509 PyObject * obj4 = 0 ;
43510 PyObject * obj5 = 0 ;
43511 PyObject * obj6 = 0 ;
43512 PyObject * obj7 = 0 ;
43513 PyObject * obj8 = 0 ;
43514 PyObject * obj9 = 0 ;
43515 PyObject * obj10 = 0 ;
43516 char * kwnames[] = {
43517 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43518 };
43519
43520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43522 if (!SWIG_IsOK(res1)) {
43523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43524 }
43525 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43527 if (!SWIG_IsOK(res2)) {
43528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43529 }
43530 arg2 = reinterpret_cast< wxWindow * >(argp2);
43531 if (obj2) {
43532 ecode3 = SWIG_AsVal_int(obj2, &val3);
43533 if (!SWIG_IsOK(ecode3)) {
43534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43535 }
43536 arg3 = static_cast< int >(val3);
43537 }
43538 if (obj3) {
43539 {
43540 arg4 = wxString_in_helper(obj3);
43541 if (arg4 == NULL) SWIG_fail;
43542 temp4 = true;
43543 }
43544 }
43545 if (obj4) {
43546 {
43547 arg5 = wxString_in_helper(obj4);
43548 if (arg5 == NULL) SWIG_fail;
43549 temp5 = true;
43550 }
43551 }
43552 if (obj5) {
43553 {
43554 arg6 = wxString_in_helper(obj5);
43555 if (arg6 == NULL) SWIG_fail;
43556 temp6 = true;
43557 }
43558 }
43559 if (obj6) {
43560 {
43561 arg7 = &temp7;
43562 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43563 }
43564 }
43565 if (obj7) {
43566 {
43567 arg8 = &temp8;
43568 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43569 }
43570 }
43571 if (obj8) {
43572 ecode9 = SWIG_AsVal_long(obj8, &val9);
43573 if (!SWIG_IsOK(ecode9)) {
43574 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43575 }
43576 arg9 = static_cast< long >(val9);
43577 }
43578 if (obj9) {
43579 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43580 if (!SWIG_IsOK(res10)) {
43581 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43582 }
43583 if (!argp10) {
43584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43585 }
43586 arg10 = reinterpret_cast< wxValidator * >(argp10);
43587 }
43588 if (obj10) {
43589 {
43590 arg11 = wxString_in_helper(obj10);
43591 if (arg11 == NULL) SWIG_fail;
43592 temp11 = true;
43593 }
43594 }
43595 {
43596 PyThreadState* __tstate = wxPyBeginAllowThreads();
43597 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);
43598 wxPyEndAllowThreads(__tstate);
43599 if (PyErr_Occurred()) SWIG_fail;
43600 }
43601 {
43602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43603 }
43604 {
43605 if (temp4)
43606 delete arg4;
43607 }
43608 {
43609 if (temp5)
43610 delete arg5;
43611 }
43612 {
43613 if (temp6)
43614 delete arg6;
43615 }
43616 {
43617 if (temp11)
43618 delete arg11;
43619 }
43620 return resultobj;
43621 fail:
43622 {
43623 if (temp4)
43624 delete arg4;
43625 }
43626 {
43627 if (temp5)
43628 delete arg5;
43629 }
43630 {
43631 if (temp6)
43632 delete arg6;
43633 }
43634 {
43635 if (temp11)
43636 delete arg11;
43637 }
43638 return NULL;
43639 }
43640
43641
43642 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43643 PyObject *resultobj = 0;
43644 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43645 wxString result;
43646 void *argp1 = 0 ;
43647 int res1 = 0 ;
43648 PyObject *swig_obj[1] ;
43649
43650 if (!args) SWIG_fail;
43651 swig_obj[0] = args;
43652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43653 if (!SWIG_IsOK(res1)) {
43654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43655 }
43656 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43657 {
43658 PyThreadState* __tstate = wxPyBeginAllowThreads();
43659 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43660 wxPyEndAllowThreads(__tstate);
43661 if (PyErr_Occurred()) SWIG_fail;
43662 }
43663 {
43664 #if wxUSE_UNICODE
43665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43666 #else
43667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43668 #endif
43669 }
43670 return resultobj;
43671 fail:
43672 return NULL;
43673 }
43674
43675
43676 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43677 PyObject *resultobj = 0;
43678 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43679 wxString *arg2 = 0 ;
43680 void *argp1 = 0 ;
43681 int res1 = 0 ;
43682 bool temp2 = false ;
43683 PyObject * obj0 = 0 ;
43684 PyObject * obj1 = 0 ;
43685 char * kwnames[] = {
43686 (char *) "self",(char *) "str", NULL
43687 };
43688
43689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43691 if (!SWIG_IsOK(res1)) {
43692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43693 }
43694 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43695 {
43696 arg2 = wxString_in_helper(obj1);
43697 if (arg2 == NULL) SWIG_fail;
43698 temp2 = true;
43699 }
43700 {
43701 PyThreadState* __tstate = wxPyBeginAllowThreads();
43702 (arg1)->SetPath((wxString const &)*arg2);
43703 wxPyEndAllowThreads(__tstate);
43704 if (PyErr_Occurred()) SWIG_fail;
43705 }
43706 resultobj = SWIG_Py_Void();
43707 {
43708 if (temp2)
43709 delete arg2;
43710 }
43711 return resultobj;
43712 fail:
43713 {
43714 if (temp2)
43715 delete arg2;
43716 }
43717 return NULL;
43718 }
43719
43720
43721 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43722 PyObject *resultobj = 0;
43723 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43724 wxString *arg2 = 0 ;
43725 bool result;
43726 void *argp1 = 0 ;
43727 int res1 = 0 ;
43728 bool temp2 = false ;
43729 PyObject * obj0 = 0 ;
43730 PyObject * obj1 = 0 ;
43731 char * kwnames[] = {
43732 (char *) "self",(char *) "path", NULL
43733 };
43734
43735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43737 if (!SWIG_IsOK(res1)) {
43738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43739 }
43740 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43741 {
43742 arg2 = wxString_in_helper(obj1);
43743 if (arg2 == NULL) SWIG_fail;
43744 temp2 = true;
43745 }
43746 {
43747 PyThreadState* __tstate = wxPyBeginAllowThreads();
43748 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43749 wxPyEndAllowThreads(__tstate);
43750 if (PyErr_Occurred()) SWIG_fail;
43751 }
43752 {
43753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43754 }
43755 {
43756 if (temp2)
43757 delete arg2;
43758 }
43759 return resultobj;
43760 fail:
43761 {
43762 if (temp2)
43763 delete arg2;
43764 }
43765 return NULL;
43766 }
43767
43768
43769 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43770 PyObject *resultobj = 0;
43771 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43772 wxString result;
43773 void *argp1 = 0 ;
43774 int res1 = 0 ;
43775 PyObject *swig_obj[1] ;
43776
43777 if (!args) SWIG_fail;
43778 swig_obj[0] = args;
43779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43780 if (!SWIG_IsOK(res1)) {
43781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43782 }
43783 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43784 {
43785 PyThreadState* __tstate = wxPyBeginAllowThreads();
43786 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43787 wxPyEndAllowThreads(__tstate);
43788 if (PyErr_Occurred()) SWIG_fail;
43789 }
43790 {
43791 #if wxUSE_UNICODE
43792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43793 #else
43794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43795 #endif
43796 }
43797 return resultobj;
43798 fail:
43799 return NULL;
43800 }
43801
43802
43803 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43804 PyObject *obj;
43805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43806 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43807 return SWIG_Py_Void();
43808 }
43809
43810 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43811 return SWIG_Python_InitShadowInstance(args);
43812 }
43813
43814 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43815 PyObject *resultobj = 0;
43816 wxWindow *arg1 = (wxWindow *) 0 ;
43817 int arg2 = (int) -1 ;
43818 wxString const &arg3_defvalue = wxPyEmptyString ;
43819 wxString *arg3 = (wxString *) &arg3_defvalue ;
43820 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43821 wxString *arg4 = (wxString *) &arg4_defvalue ;
43822 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43823 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43824 wxSize const &arg6_defvalue = wxDefaultSize ;
43825 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43826 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43827 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43828 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43829 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43830 wxString *arg9 = (wxString *) &arg9_defvalue ;
43831 wxDirPickerCtrl *result = 0 ;
43832 void *argp1 = 0 ;
43833 int res1 = 0 ;
43834 int val2 ;
43835 int ecode2 = 0 ;
43836 bool temp3 = false ;
43837 bool temp4 = false ;
43838 wxPoint temp5 ;
43839 wxSize temp6 ;
43840 long val7 ;
43841 int ecode7 = 0 ;
43842 void *argp8 = 0 ;
43843 int res8 = 0 ;
43844 bool temp9 = false ;
43845 PyObject * obj0 = 0 ;
43846 PyObject * obj1 = 0 ;
43847 PyObject * obj2 = 0 ;
43848 PyObject * obj3 = 0 ;
43849 PyObject * obj4 = 0 ;
43850 PyObject * obj5 = 0 ;
43851 PyObject * obj6 = 0 ;
43852 PyObject * obj7 = 0 ;
43853 PyObject * obj8 = 0 ;
43854 char * kwnames[] = {
43855 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43856 };
43857
43858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43860 if (!SWIG_IsOK(res1)) {
43861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43862 }
43863 arg1 = reinterpret_cast< wxWindow * >(argp1);
43864 if (obj1) {
43865 ecode2 = SWIG_AsVal_int(obj1, &val2);
43866 if (!SWIG_IsOK(ecode2)) {
43867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43868 }
43869 arg2 = static_cast< int >(val2);
43870 }
43871 if (obj2) {
43872 {
43873 arg3 = wxString_in_helper(obj2);
43874 if (arg3 == NULL) SWIG_fail;
43875 temp3 = true;
43876 }
43877 }
43878 if (obj3) {
43879 {
43880 arg4 = wxString_in_helper(obj3);
43881 if (arg4 == NULL) SWIG_fail;
43882 temp4 = true;
43883 }
43884 }
43885 if (obj4) {
43886 {
43887 arg5 = &temp5;
43888 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43889 }
43890 }
43891 if (obj5) {
43892 {
43893 arg6 = &temp6;
43894 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43895 }
43896 }
43897 if (obj6) {
43898 ecode7 = SWIG_AsVal_long(obj6, &val7);
43899 if (!SWIG_IsOK(ecode7)) {
43900 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43901 }
43902 arg7 = static_cast< long >(val7);
43903 }
43904 if (obj7) {
43905 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43906 if (!SWIG_IsOK(res8)) {
43907 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43908 }
43909 if (!argp8) {
43910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43911 }
43912 arg8 = reinterpret_cast< wxValidator * >(argp8);
43913 }
43914 if (obj8) {
43915 {
43916 arg9 = wxString_in_helper(obj8);
43917 if (arg9 == NULL) SWIG_fail;
43918 temp9 = true;
43919 }
43920 }
43921 {
43922 if (!wxPyCheckForApp()) SWIG_fail;
43923 PyThreadState* __tstate = wxPyBeginAllowThreads();
43924 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);
43925 wxPyEndAllowThreads(__tstate);
43926 if (PyErr_Occurred()) SWIG_fail;
43927 }
43928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
43929 {
43930 if (temp3)
43931 delete arg3;
43932 }
43933 {
43934 if (temp4)
43935 delete arg4;
43936 }
43937 {
43938 if (temp9)
43939 delete arg9;
43940 }
43941 return resultobj;
43942 fail:
43943 {
43944 if (temp3)
43945 delete arg3;
43946 }
43947 {
43948 if (temp4)
43949 delete arg4;
43950 }
43951 {
43952 if (temp9)
43953 delete arg9;
43954 }
43955 return NULL;
43956 }
43957
43958
43959 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43960 PyObject *resultobj = 0;
43961 wxDirPickerCtrl *result = 0 ;
43962
43963 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
43964 {
43965 if (!wxPyCheckForApp()) SWIG_fail;
43966 PyThreadState* __tstate = wxPyBeginAllowThreads();
43967 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
43968 wxPyEndAllowThreads(__tstate);
43969 if (PyErr_Occurred()) SWIG_fail;
43970 }
43971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
43972 return resultobj;
43973 fail:
43974 return NULL;
43975 }
43976
43977
43978 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43979 PyObject *resultobj = 0;
43980 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
43981 wxWindow *arg2 = (wxWindow *) 0 ;
43982 int arg3 = (int) -1 ;
43983 wxString const &arg4_defvalue = wxPyEmptyString ;
43984 wxString *arg4 = (wxString *) &arg4_defvalue ;
43985 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
43986 wxString *arg5 = (wxString *) &arg5_defvalue ;
43987 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43988 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43989 wxSize const &arg7_defvalue = wxDefaultSize ;
43990 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43991 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
43992 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43993 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43994 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
43995 wxString *arg10 = (wxString *) &arg10_defvalue ;
43996 bool result;
43997 void *argp1 = 0 ;
43998 int res1 = 0 ;
43999 void *argp2 = 0 ;
44000 int res2 = 0 ;
44001 int val3 ;
44002 int ecode3 = 0 ;
44003 bool temp4 = false ;
44004 bool temp5 = false ;
44005 wxPoint temp6 ;
44006 wxSize temp7 ;
44007 long val8 ;
44008 int ecode8 = 0 ;
44009 void *argp9 = 0 ;
44010 int res9 = 0 ;
44011 bool temp10 = false ;
44012 PyObject * obj0 = 0 ;
44013 PyObject * obj1 = 0 ;
44014 PyObject * obj2 = 0 ;
44015 PyObject * obj3 = 0 ;
44016 PyObject * obj4 = 0 ;
44017 PyObject * obj5 = 0 ;
44018 PyObject * obj6 = 0 ;
44019 PyObject * obj7 = 0 ;
44020 PyObject * obj8 = 0 ;
44021 PyObject * obj9 = 0 ;
44022 char * kwnames[] = {
44023 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44024 };
44025
44026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44028 if (!SWIG_IsOK(res1)) {
44029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44030 }
44031 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44033 if (!SWIG_IsOK(res2)) {
44034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44035 }
44036 arg2 = reinterpret_cast< wxWindow * >(argp2);
44037 if (obj2) {
44038 ecode3 = SWIG_AsVal_int(obj2, &val3);
44039 if (!SWIG_IsOK(ecode3)) {
44040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44041 }
44042 arg3 = static_cast< int >(val3);
44043 }
44044 if (obj3) {
44045 {
44046 arg4 = wxString_in_helper(obj3);
44047 if (arg4 == NULL) SWIG_fail;
44048 temp4 = true;
44049 }
44050 }
44051 if (obj4) {
44052 {
44053 arg5 = wxString_in_helper(obj4);
44054 if (arg5 == NULL) SWIG_fail;
44055 temp5 = true;
44056 }
44057 }
44058 if (obj5) {
44059 {
44060 arg6 = &temp6;
44061 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44062 }
44063 }
44064 if (obj6) {
44065 {
44066 arg7 = &temp7;
44067 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44068 }
44069 }
44070 if (obj7) {
44071 ecode8 = SWIG_AsVal_long(obj7, &val8);
44072 if (!SWIG_IsOK(ecode8)) {
44073 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44074 }
44075 arg8 = static_cast< long >(val8);
44076 }
44077 if (obj8) {
44078 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44079 if (!SWIG_IsOK(res9)) {
44080 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44081 }
44082 if (!argp9) {
44083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44084 }
44085 arg9 = reinterpret_cast< wxValidator * >(argp9);
44086 }
44087 if (obj9) {
44088 {
44089 arg10 = wxString_in_helper(obj9);
44090 if (arg10 == NULL) SWIG_fail;
44091 temp10 = true;
44092 }
44093 }
44094 {
44095 PyThreadState* __tstate = wxPyBeginAllowThreads();
44096 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);
44097 wxPyEndAllowThreads(__tstate);
44098 if (PyErr_Occurred()) SWIG_fail;
44099 }
44100 {
44101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44102 }
44103 {
44104 if (temp4)
44105 delete arg4;
44106 }
44107 {
44108 if (temp5)
44109 delete arg5;
44110 }
44111 {
44112 if (temp10)
44113 delete arg10;
44114 }
44115 return resultobj;
44116 fail:
44117 {
44118 if (temp4)
44119 delete arg4;
44120 }
44121 {
44122 if (temp5)
44123 delete arg5;
44124 }
44125 {
44126 if (temp10)
44127 delete arg10;
44128 }
44129 return NULL;
44130 }
44131
44132
44133 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44134 PyObject *resultobj = 0;
44135 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44136 wxString result;
44137 void *argp1 = 0 ;
44138 int res1 = 0 ;
44139 PyObject *swig_obj[1] ;
44140
44141 if (!args) SWIG_fail;
44142 swig_obj[0] = args;
44143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44144 if (!SWIG_IsOK(res1)) {
44145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44146 }
44147 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44148 {
44149 PyThreadState* __tstate = wxPyBeginAllowThreads();
44150 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44151 wxPyEndAllowThreads(__tstate);
44152 if (PyErr_Occurred()) SWIG_fail;
44153 }
44154 {
44155 #if wxUSE_UNICODE
44156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44157 #else
44158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44159 #endif
44160 }
44161 return resultobj;
44162 fail:
44163 return NULL;
44164 }
44165
44166
44167 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44168 PyObject *resultobj = 0;
44169 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44170 wxString *arg2 = 0 ;
44171 void *argp1 = 0 ;
44172 int res1 = 0 ;
44173 bool temp2 = false ;
44174 PyObject * obj0 = 0 ;
44175 PyObject * obj1 = 0 ;
44176 char * kwnames[] = {
44177 (char *) "self",(char *) "str", NULL
44178 };
44179
44180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44182 if (!SWIG_IsOK(res1)) {
44183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44184 }
44185 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44186 {
44187 arg2 = wxString_in_helper(obj1);
44188 if (arg2 == NULL) SWIG_fail;
44189 temp2 = true;
44190 }
44191 {
44192 PyThreadState* __tstate = wxPyBeginAllowThreads();
44193 (arg1)->SetPath((wxString const &)*arg2);
44194 wxPyEndAllowThreads(__tstate);
44195 if (PyErr_Occurred()) SWIG_fail;
44196 }
44197 resultobj = SWIG_Py_Void();
44198 {
44199 if (temp2)
44200 delete arg2;
44201 }
44202 return resultobj;
44203 fail:
44204 {
44205 if (temp2)
44206 delete arg2;
44207 }
44208 return NULL;
44209 }
44210
44211
44212 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44213 PyObject *resultobj = 0;
44214 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44215 wxString *arg2 = 0 ;
44216 bool result;
44217 void *argp1 = 0 ;
44218 int res1 = 0 ;
44219 bool temp2 = false ;
44220 PyObject * obj0 = 0 ;
44221 PyObject * obj1 = 0 ;
44222 char * kwnames[] = {
44223 (char *) "self",(char *) "path", NULL
44224 };
44225
44226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44228 if (!SWIG_IsOK(res1)) {
44229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44230 }
44231 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44232 {
44233 arg2 = wxString_in_helper(obj1);
44234 if (arg2 == NULL) SWIG_fail;
44235 temp2 = true;
44236 }
44237 {
44238 PyThreadState* __tstate = wxPyBeginAllowThreads();
44239 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44240 wxPyEndAllowThreads(__tstate);
44241 if (PyErr_Occurred()) SWIG_fail;
44242 }
44243 {
44244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44245 }
44246 {
44247 if (temp2)
44248 delete arg2;
44249 }
44250 return resultobj;
44251 fail:
44252 {
44253 if (temp2)
44254 delete arg2;
44255 }
44256 return NULL;
44257 }
44258
44259
44260 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44261 PyObject *resultobj = 0;
44262 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44263 wxString result;
44264 void *argp1 = 0 ;
44265 int res1 = 0 ;
44266 PyObject *swig_obj[1] ;
44267
44268 if (!args) SWIG_fail;
44269 swig_obj[0] = args;
44270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44271 if (!SWIG_IsOK(res1)) {
44272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44273 }
44274 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44275 {
44276 PyThreadState* __tstate = wxPyBeginAllowThreads();
44277 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44278 wxPyEndAllowThreads(__tstate);
44279 if (PyErr_Occurred()) SWIG_fail;
44280 }
44281 {
44282 #if wxUSE_UNICODE
44283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44284 #else
44285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44286 #endif
44287 }
44288 return resultobj;
44289 fail:
44290 return NULL;
44291 }
44292
44293
44294 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44295 PyObject *obj;
44296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44297 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44298 return SWIG_Py_Void();
44299 }
44300
44301 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44302 return SWIG_Python_InitShadowInstance(args);
44303 }
44304
44305 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44306 PyObject *resultobj = 0;
44307 wxEventType arg1 ;
44308 wxObject *arg2 = (wxObject *) 0 ;
44309 int arg3 ;
44310 wxString *arg4 = 0 ;
44311 wxFileDirPickerEvent *result = 0 ;
44312 int val1 ;
44313 int ecode1 = 0 ;
44314 void *argp2 = 0 ;
44315 int res2 = 0 ;
44316 int val3 ;
44317 int ecode3 = 0 ;
44318 bool temp4 = false ;
44319 PyObject * obj0 = 0 ;
44320 PyObject * obj1 = 0 ;
44321 PyObject * obj2 = 0 ;
44322 PyObject * obj3 = 0 ;
44323 char * kwnames[] = {
44324 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44325 };
44326
44327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44328 ecode1 = SWIG_AsVal_int(obj0, &val1);
44329 if (!SWIG_IsOK(ecode1)) {
44330 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44331 }
44332 arg1 = static_cast< wxEventType >(val1);
44333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44334 if (!SWIG_IsOK(res2)) {
44335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44336 }
44337 arg2 = reinterpret_cast< wxObject * >(argp2);
44338 ecode3 = SWIG_AsVal_int(obj2, &val3);
44339 if (!SWIG_IsOK(ecode3)) {
44340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44341 }
44342 arg3 = static_cast< int >(val3);
44343 {
44344 arg4 = wxString_in_helper(obj3);
44345 if (arg4 == NULL) SWIG_fail;
44346 temp4 = true;
44347 }
44348 {
44349 PyThreadState* __tstate = wxPyBeginAllowThreads();
44350 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44351 wxPyEndAllowThreads(__tstate);
44352 if (PyErr_Occurred()) SWIG_fail;
44353 }
44354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44355 {
44356 if (temp4)
44357 delete arg4;
44358 }
44359 return resultobj;
44360 fail:
44361 {
44362 if (temp4)
44363 delete arg4;
44364 }
44365 return NULL;
44366 }
44367
44368
44369 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44370 PyObject *resultobj = 0;
44371 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44372 wxString result;
44373 void *argp1 = 0 ;
44374 int res1 = 0 ;
44375 PyObject *swig_obj[1] ;
44376
44377 if (!args) SWIG_fail;
44378 swig_obj[0] = args;
44379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44380 if (!SWIG_IsOK(res1)) {
44381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44382 }
44383 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44384 {
44385 PyThreadState* __tstate = wxPyBeginAllowThreads();
44386 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44387 wxPyEndAllowThreads(__tstate);
44388 if (PyErr_Occurred()) SWIG_fail;
44389 }
44390 {
44391 #if wxUSE_UNICODE
44392 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44393 #else
44394 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44395 #endif
44396 }
44397 return resultobj;
44398 fail:
44399 return NULL;
44400 }
44401
44402
44403 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44404 PyObject *resultobj = 0;
44405 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44406 wxString *arg2 = 0 ;
44407 void *argp1 = 0 ;
44408 int res1 = 0 ;
44409 bool temp2 = false ;
44410 PyObject * obj0 = 0 ;
44411 PyObject * obj1 = 0 ;
44412 char * kwnames[] = {
44413 (char *) "self",(char *) "p", NULL
44414 };
44415
44416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44418 if (!SWIG_IsOK(res1)) {
44419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44420 }
44421 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44422 {
44423 arg2 = wxString_in_helper(obj1);
44424 if (arg2 == NULL) SWIG_fail;
44425 temp2 = true;
44426 }
44427 {
44428 PyThreadState* __tstate = wxPyBeginAllowThreads();
44429 (arg1)->SetPath((wxString const &)*arg2);
44430 wxPyEndAllowThreads(__tstate);
44431 if (PyErr_Occurred()) SWIG_fail;
44432 }
44433 resultobj = SWIG_Py_Void();
44434 {
44435 if (temp2)
44436 delete arg2;
44437 }
44438 return resultobj;
44439 fail:
44440 {
44441 if (temp2)
44442 delete arg2;
44443 }
44444 return NULL;
44445 }
44446
44447
44448 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44449 PyObject *obj;
44450 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44451 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44452 return SWIG_Py_Void();
44453 }
44454
44455 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44456 return SWIG_Python_InitShadowInstance(args);
44457 }
44458
44459 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44460 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44461 return 1;
44462 }
44463
44464
44465 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44466 PyObject *pyobj = 0;
44467
44468 {
44469 #if wxUSE_UNICODE
44470 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44471 #else
44472 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44473 #endif
44474 }
44475 return pyobj;
44476 }
44477
44478
44479 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44480 PyObject *resultobj = 0;
44481 wxWindow *arg1 = (wxWindow *) 0 ;
44482 int arg2 = (int) -1 ;
44483 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44484 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44485 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44486 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44487 wxSize const &arg5_defvalue = wxDefaultSize ;
44488 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44489 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44490 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44491 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44492 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44493 wxString *arg8 = (wxString *) &arg8_defvalue ;
44494 wxFontPickerCtrl *result = 0 ;
44495 void *argp1 = 0 ;
44496 int res1 = 0 ;
44497 int val2 ;
44498 int ecode2 = 0 ;
44499 void *argp3 = 0 ;
44500 int res3 = 0 ;
44501 wxPoint temp4 ;
44502 wxSize temp5 ;
44503 long val6 ;
44504 int ecode6 = 0 ;
44505 void *argp7 = 0 ;
44506 int res7 = 0 ;
44507 bool temp8 = false ;
44508 PyObject * obj0 = 0 ;
44509 PyObject * obj1 = 0 ;
44510 PyObject * obj2 = 0 ;
44511 PyObject * obj3 = 0 ;
44512 PyObject * obj4 = 0 ;
44513 PyObject * obj5 = 0 ;
44514 PyObject * obj6 = 0 ;
44515 PyObject * obj7 = 0 ;
44516 char * kwnames[] = {
44517 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44518 };
44519
44520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44522 if (!SWIG_IsOK(res1)) {
44523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44524 }
44525 arg1 = reinterpret_cast< wxWindow * >(argp1);
44526 if (obj1) {
44527 ecode2 = SWIG_AsVal_int(obj1, &val2);
44528 if (!SWIG_IsOK(ecode2)) {
44529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44530 }
44531 arg2 = static_cast< int >(val2);
44532 }
44533 if (obj2) {
44534 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44535 if (!SWIG_IsOK(res3)) {
44536 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44537 }
44538 if (!argp3) {
44539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44540 }
44541 arg3 = reinterpret_cast< wxFont * >(argp3);
44542 }
44543 if (obj3) {
44544 {
44545 arg4 = &temp4;
44546 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44547 }
44548 }
44549 if (obj4) {
44550 {
44551 arg5 = &temp5;
44552 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44553 }
44554 }
44555 if (obj5) {
44556 ecode6 = SWIG_AsVal_long(obj5, &val6);
44557 if (!SWIG_IsOK(ecode6)) {
44558 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44559 }
44560 arg6 = static_cast< long >(val6);
44561 }
44562 if (obj6) {
44563 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44564 if (!SWIG_IsOK(res7)) {
44565 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44566 }
44567 if (!argp7) {
44568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44569 }
44570 arg7 = reinterpret_cast< wxValidator * >(argp7);
44571 }
44572 if (obj7) {
44573 {
44574 arg8 = wxString_in_helper(obj7);
44575 if (arg8 == NULL) SWIG_fail;
44576 temp8 = true;
44577 }
44578 }
44579 {
44580 if (!wxPyCheckForApp()) SWIG_fail;
44581 PyThreadState* __tstate = wxPyBeginAllowThreads();
44582 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44583 wxPyEndAllowThreads(__tstate);
44584 if (PyErr_Occurred()) SWIG_fail;
44585 }
44586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44587 {
44588 if (temp8)
44589 delete arg8;
44590 }
44591 return resultobj;
44592 fail:
44593 {
44594 if (temp8)
44595 delete arg8;
44596 }
44597 return NULL;
44598 }
44599
44600
44601 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44602 PyObject *resultobj = 0;
44603 wxFontPickerCtrl *result = 0 ;
44604
44605 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44606 {
44607 if (!wxPyCheckForApp()) SWIG_fail;
44608 PyThreadState* __tstate = wxPyBeginAllowThreads();
44609 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44610 wxPyEndAllowThreads(__tstate);
44611 if (PyErr_Occurred()) SWIG_fail;
44612 }
44613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44614 return resultobj;
44615 fail:
44616 return NULL;
44617 }
44618
44619
44620 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44621 PyObject *resultobj = 0;
44622 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44623 wxWindow *arg2 = (wxWindow *) 0 ;
44624 int arg3 = (int) -1 ;
44625 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44626 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44627 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44628 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44629 wxSize const &arg6_defvalue = wxDefaultSize ;
44630 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44631 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44632 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44633 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44634 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44635 wxString *arg9 = (wxString *) &arg9_defvalue ;
44636 bool result;
44637 void *argp1 = 0 ;
44638 int res1 = 0 ;
44639 void *argp2 = 0 ;
44640 int res2 = 0 ;
44641 int val3 ;
44642 int ecode3 = 0 ;
44643 void *argp4 = 0 ;
44644 int res4 = 0 ;
44645 wxPoint temp5 ;
44646 wxSize temp6 ;
44647 long val7 ;
44648 int ecode7 = 0 ;
44649 void *argp8 = 0 ;
44650 int res8 = 0 ;
44651 bool temp9 = false ;
44652 PyObject * obj0 = 0 ;
44653 PyObject * obj1 = 0 ;
44654 PyObject * obj2 = 0 ;
44655 PyObject * obj3 = 0 ;
44656 PyObject * obj4 = 0 ;
44657 PyObject * obj5 = 0 ;
44658 PyObject * obj6 = 0 ;
44659 PyObject * obj7 = 0 ;
44660 PyObject * obj8 = 0 ;
44661 char * kwnames[] = {
44662 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44663 };
44664
44665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44667 if (!SWIG_IsOK(res1)) {
44668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44669 }
44670 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44671 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44672 if (!SWIG_IsOK(res2)) {
44673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44674 }
44675 arg2 = reinterpret_cast< wxWindow * >(argp2);
44676 if (obj2) {
44677 ecode3 = SWIG_AsVal_int(obj2, &val3);
44678 if (!SWIG_IsOK(ecode3)) {
44679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44680 }
44681 arg3 = static_cast< int >(val3);
44682 }
44683 if (obj3) {
44684 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44685 if (!SWIG_IsOK(res4)) {
44686 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44687 }
44688 if (!argp4) {
44689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44690 }
44691 arg4 = reinterpret_cast< wxFont * >(argp4);
44692 }
44693 if (obj4) {
44694 {
44695 arg5 = &temp5;
44696 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44697 }
44698 }
44699 if (obj5) {
44700 {
44701 arg6 = &temp6;
44702 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44703 }
44704 }
44705 if (obj6) {
44706 ecode7 = SWIG_AsVal_long(obj6, &val7);
44707 if (!SWIG_IsOK(ecode7)) {
44708 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44709 }
44710 arg7 = static_cast< long >(val7);
44711 }
44712 if (obj7) {
44713 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44714 if (!SWIG_IsOK(res8)) {
44715 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44716 }
44717 if (!argp8) {
44718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44719 }
44720 arg8 = reinterpret_cast< wxValidator * >(argp8);
44721 }
44722 if (obj8) {
44723 {
44724 arg9 = wxString_in_helper(obj8);
44725 if (arg9 == NULL) SWIG_fail;
44726 temp9 = true;
44727 }
44728 }
44729 {
44730 PyThreadState* __tstate = wxPyBeginAllowThreads();
44731 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44732 wxPyEndAllowThreads(__tstate);
44733 if (PyErr_Occurred()) SWIG_fail;
44734 }
44735 {
44736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44737 }
44738 {
44739 if (temp9)
44740 delete arg9;
44741 }
44742 return resultobj;
44743 fail:
44744 {
44745 if (temp9)
44746 delete arg9;
44747 }
44748 return NULL;
44749 }
44750
44751
44752 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44753 PyObject *resultobj = 0;
44754 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44755 wxFont result;
44756 void *argp1 = 0 ;
44757 int res1 = 0 ;
44758 PyObject *swig_obj[1] ;
44759
44760 if (!args) SWIG_fail;
44761 swig_obj[0] = args;
44762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44763 if (!SWIG_IsOK(res1)) {
44764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44765 }
44766 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44767 {
44768 PyThreadState* __tstate = wxPyBeginAllowThreads();
44769 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44770 wxPyEndAllowThreads(__tstate);
44771 if (PyErr_Occurred()) SWIG_fail;
44772 }
44773 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44774 return resultobj;
44775 fail:
44776 return NULL;
44777 }
44778
44779
44780 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44781 PyObject *resultobj = 0;
44782 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44783 wxFont *arg2 = 0 ;
44784 void *argp1 = 0 ;
44785 int res1 = 0 ;
44786 void *argp2 = 0 ;
44787 int res2 = 0 ;
44788 PyObject * obj0 = 0 ;
44789 PyObject * obj1 = 0 ;
44790 char * kwnames[] = {
44791 (char *) "self",(char *) "f", NULL
44792 };
44793
44794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44796 if (!SWIG_IsOK(res1)) {
44797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44798 }
44799 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44801 if (!SWIG_IsOK(res2)) {
44802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44803 }
44804 if (!argp2) {
44805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44806 }
44807 arg2 = reinterpret_cast< wxFont * >(argp2);
44808 {
44809 PyThreadState* __tstate = wxPyBeginAllowThreads();
44810 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44811 wxPyEndAllowThreads(__tstate);
44812 if (PyErr_Occurred()) SWIG_fail;
44813 }
44814 resultobj = SWIG_Py_Void();
44815 return resultobj;
44816 fail:
44817 return NULL;
44818 }
44819
44820
44821 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44822 PyObject *resultobj = 0;
44823 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44824 unsigned int arg2 ;
44825 void *argp1 = 0 ;
44826 int res1 = 0 ;
44827 unsigned int val2 ;
44828 int ecode2 = 0 ;
44829 PyObject * obj0 = 0 ;
44830 PyObject * obj1 = 0 ;
44831 char * kwnames[] = {
44832 (char *) "self",(char *) "max", NULL
44833 };
44834
44835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44837 if (!SWIG_IsOK(res1)) {
44838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44839 }
44840 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44841 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44842 if (!SWIG_IsOK(ecode2)) {
44843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44844 }
44845 arg2 = static_cast< unsigned int >(val2);
44846 {
44847 PyThreadState* __tstate = wxPyBeginAllowThreads();
44848 (arg1)->SetMaxPointSize(arg2);
44849 wxPyEndAllowThreads(__tstate);
44850 if (PyErr_Occurred()) SWIG_fail;
44851 }
44852 resultobj = SWIG_Py_Void();
44853 return resultobj;
44854 fail:
44855 return NULL;
44856 }
44857
44858
44859 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44860 PyObject *resultobj = 0;
44861 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44862 unsigned int result;
44863 void *argp1 = 0 ;
44864 int res1 = 0 ;
44865 PyObject *swig_obj[1] ;
44866
44867 if (!args) SWIG_fail;
44868 swig_obj[0] = args;
44869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44870 if (!SWIG_IsOK(res1)) {
44871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44872 }
44873 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44874 {
44875 PyThreadState* __tstate = wxPyBeginAllowThreads();
44876 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44877 wxPyEndAllowThreads(__tstate);
44878 if (PyErr_Occurred()) SWIG_fail;
44879 }
44880 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44881 return resultobj;
44882 fail:
44883 return NULL;
44884 }
44885
44886
44887 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44888 PyObject *obj;
44889 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44890 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44891 return SWIG_Py_Void();
44892 }
44893
44894 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44895 return SWIG_Python_InitShadowInstance(args);
44896 }
44897
44898 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44899 PyObject *resultobj = 0;
44900 wxObject *arg1 = (wxObject *) 0 ;
44901 int arg2 ;
44902 wxFont *arg3 = 0 ;
44903 wxFontPickerEvent *result = 0 ;
44904 void *argp1 = 0 ;
44905 int res1 = 0 ;
44906 int val2 ;
44907 int ecode2 = 0 ;
44908 void *argp3 = 0 ;
44909 int res3 = 0 ;
44910 PyObject * obj0 = 0 ;
44911 PyObject * obj1 = 0 ;
44912 PyObject * obj2 = 0 ;
44913 char * kwnames[] = {
44914 (char *) "generator",(char *) "id",(char *) "f", NULL
44915 };
44916
44917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44919 if (!SWIG_IsOK(res1)) {
44920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44921 }
44922 arg1 = reinterpret_cast< wxObject * >(argp1);
44923 ecode2 = SWIG_AsVal_int(obj1, &val2);
44924 if (!SWIG_IsOK(ecode2)) {
44925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
44926 }
44927 arg2 = static_cast< int >(val2);
44928 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44929 if (!SWIG_IsOK(res3)) {
44930 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44931 }
44932 if (!argp3) {
44933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44934 }
44935 arg3 = reinterpret_cast< wxFont * >(argp3);
44936 {
44937 PyThreadState* __tstate = wxPyBeginAllowThreads();
44938 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
44939 wxPyEndAllowThreads(__tstate);
44940 if (PyErr_Occurred()) SWIG_fail;
44941 }
44942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
44943 return resultobj;
44944 fail:
44945 return NULL;
44946 }
44947
44948
44949 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44950 PyObject *resultobj = 0;
44951 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
44952 wxFont result;
44953 void *argp1 = 0 ;
44954 int res1 = 0 ;
44955 PyObject *swig_obj[1] ;
44956
44957 if (!args) SWIG_fail;
44958 swig_obj[0] = args;
44959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
44960 if (!SWIG_IsOK(res1)) {
44961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
44962 }
44963 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
44964 {
44965 PyThreadState* __tstate = wxPyBeginAllowThreads();
44966 result = ((wxFontPickerEvent const *)arg1)->GetFont();
44967 wxPyEndAllowThreads(__tstate);
44968 if (PyErr_Occurred()) SWIG_fail;
44969 }
44970 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44971 return resultobj;
44972 fail:
44973 return NULL;
44974 }
44975
44976
44977 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44978 PyObject *resultobj = 0;
44979 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
44980 wxFont *arg2 = 0 ;
44981 void *argp1 = 0 ;
44982 int res1 = 0 ;
44983 void *argp2 = 0 ;
44984 int res2 = 0 ;
44985 PyObject * obj0 = 0 ;
44986 PyObject * obj1 = 0 ;
44987 char * kwnames[] = {
44988 (char *) "self",(char *) "c", NULL
44989 };
44990
44991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
44992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
44993 if (!SWIG_IsOK(res1)) {
44994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
44995 }
44996 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
44997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44998 if (!SWIG_IsOK(res2)) {
44999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45000 }
45001 if (!argp2) {
45002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45003 }
45004 arg2 = reinterpret_cast< wxFont * >(argp2);
45005 {
45006 PyThreadState* __tstate = wxPyBeginAllowThreads();
45007 (arg1)->SetFont((wxFont const &)*arg2);
45008 wxPyEndAllowThreads(__tstate);
45009 if (PyErr_Occurred()) SWIG_fail;
45010 }
45011 resultobj = SWIG_Py_Void();
45012 return resultobj;
45013 fail:
45014 return NULL;
45015 }
45016
45017
45018 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45019 PyObject *obj;
45020 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45021 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45022 return SWIG_Py_Void();
45023 }
45024
45025 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45026 return SWIG_Python_InitShadowInstance(args);
45027 }
45028
45029 static PyMethodDef SwigMethods[] = {
45030 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45031 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45032 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45033 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45034 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45035 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45036 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45037 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45038 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45039 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45040 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45041 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45042 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45043 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45044 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45045 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45046 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45047 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45048 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45049 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45050 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45051 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45052 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45053 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45054 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45055 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45056 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45057 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45058 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45059 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45060 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45061 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45062 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45063 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45064 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45065 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45066 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45067 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45068 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45069 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45070 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45071 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45072 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45073 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45074 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45075 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45076 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45077 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45078 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45079 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45080 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45081 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45082 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45083 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45084 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45085 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45086 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45087 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45088 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45089 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45090 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45091 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45092 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45093 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45094 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45095 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45096 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45097 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45098 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45099 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45100 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45101 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45102 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45103 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45104 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45105 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45106 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45107 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45108 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45109 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45110 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45111 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45112 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45113 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45114 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45115 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45116 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45117 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45118 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45119 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45120 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45121 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45122 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45123 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45124 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45125 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45126 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45127 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45128 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45129 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45130 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45131 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45132 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45133 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45134 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45135 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45136 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45137 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45138 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45139 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45140 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45141 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45142 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45143 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45144 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45145 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45146 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45147 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45148 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45149 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45150 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45151 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45152 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45153 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45154 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45155 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45156 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45157 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45158 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45159 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45160 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45161 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45162 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45163 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45164 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45165 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45166 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45167 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45168 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45169 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45170 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45171 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45172 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45173 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45174 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45175 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45176 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45177 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45178 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45179 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45180 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45182 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45183 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45184 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45185 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45186 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45187 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45188 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45189 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45190 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45191 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45192 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45193 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45194 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45195 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45196 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45197 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45198 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45199 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45200 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45201 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45202 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45203 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45204 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45205 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45206 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45207 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45208 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45209 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45210 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45211 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45212 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45213 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45214 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45215 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45216 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45218 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45219 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45220 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45221 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45223 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45224 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45225 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45226 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45227 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45228 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45229 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45230 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45231 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45232 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45233 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45234 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45235 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45240 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45241 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45242 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45243 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45245 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45247 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45249 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45250 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45251 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45252 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45256 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45257 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45258 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45259 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45260 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45261 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45262 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45263 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45264 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45265 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45266 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45267 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45268 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45269 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45270 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45271 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45272 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45273 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45274 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45275 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45276 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45277 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45279 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45280 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45281 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45282 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45283 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45284 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45285 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45286 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45287 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45288 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45289 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45290 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45291 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45292 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45293 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45294 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45295 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45296 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45297 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45299 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45300 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45301 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45302 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45303 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45304 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45306 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45308 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45309 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45311 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45312 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45313 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45317 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45318 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45320 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45321 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45322 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45323 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45324 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45325 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45326 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45327 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45329 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45332 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45333 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45335 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45343 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45344 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45345 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45351 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45352 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45354 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45356 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45359 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45360 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45362 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45364 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45367 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45368 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45371 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45373 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45374 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45376 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45378 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45379 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45380 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45381 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45382 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45383 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45386 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45387 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45389 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45390 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45392 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45394 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45395 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45396 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45398 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45399 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45404 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45409 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45411 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45413 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45415 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45416 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45419 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45423 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45426 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45428 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45430 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45432 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45433 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45435 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45437 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45440 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45442 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45443 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45445 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45446 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45448 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45450 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45451 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45452 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45454 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45455 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45457 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45459 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45460 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45461 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45463 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45464 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45466 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45474 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45475 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45476 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45478 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45479 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45481 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45483 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45484 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45485 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45486 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45488 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45489 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45490 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45491 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45492 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45493 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45494 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45495 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45496 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45497 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45498 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45499 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45500 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45501 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45502 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45503 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45504 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45505 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45506 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45508 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45515 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45517 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45519 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45527 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45532 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45533 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45550 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45551 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45552 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45553 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45556 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45557 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45559 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45560 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45563 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45564 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45565 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45566 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45567 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45568 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45570 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45571 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45573 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45577 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45578 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45579 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45580 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45581 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45582 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45584 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45585 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45586 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45587 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45588 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45589 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45590 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45604 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45605 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45606 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45607 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45608 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45609 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45610 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45611 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45612 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45613 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45614 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45615 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45616 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45617 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45618 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45619 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45620 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45621 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45622 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45623 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45624 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45625 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45626 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45627 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45628 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45629 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45630 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45631 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45632 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45633 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45634 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45635 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45636 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45637 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45638 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45639 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45641 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45642 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45643 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45644 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45645 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45646 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45647 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45648 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45649 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45650 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45651 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45652 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45653 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45654 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45655 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45656 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45657 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45658 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45659 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45660 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45661 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45662 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45663 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45664 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45666 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45667 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45669 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45676 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45677 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45678 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45693 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45694 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45695 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45697 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45698 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45700 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45706 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45707 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45712 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45714 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45715 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
45722 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45738 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45740 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45741 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45743 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45747 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45749 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45753 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45754 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45755 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45756 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45757 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45760 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45761 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45762 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45763 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45765 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45766 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45768 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45770 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45771 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
45772 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
45773 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45774 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45776 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45778 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45780 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45781 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45783 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45785 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45788 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45789 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45790 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45792 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45795 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45796 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45798 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45800 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45801 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45829 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45830 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45831 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45838 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45848 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45853 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45855 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45861 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
45867 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45868 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45869 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45871 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45875 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45877 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45878 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45881 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45882 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45884 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45886 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45887 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45888 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45890 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45891 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45892 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45893 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45895 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45898 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45899 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45901 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
45909 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
45910 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
45911 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
45912 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
45913 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
45914 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
45915 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
45916 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
45917 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
45919 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
45921 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
45923 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
45925 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
45927 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
45928 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
45930 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
45932 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
45933 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
45934 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
45936 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
45937 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
45938 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
45940 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45942 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
45947 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
45948 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
45949 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
45950 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
45951 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
45957 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
45961 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
45963 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
45964 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
45969 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
45970 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
45972 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
45975 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
45977 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
45978 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
45979 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
45980 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
45982 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
45984 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
45986 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
45988 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
45990 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
45993 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
45994 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
45995 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
45997 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
45999 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46000 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46003 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46005 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46006 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46008 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46010 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46011 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46012 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46013 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46015 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46017 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46019 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46020 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46022 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46024 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46025 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46027 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46029 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46032 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46033 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46034 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46036 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46038 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46041 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46042 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46043 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46045 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46047 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46048 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46050 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46052 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46055 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46056 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46057 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46059 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46061 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46062 { NULL, NULL, 0, NULL }
46063 };
46064
46065
46066 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46067
46068 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46069 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46070 }
46071 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46072 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46073 }
46074 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46075 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46076 }
46077 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46078 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46079 }
46080 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46081 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46082 }
46083 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46084 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46085 }
46086 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46087 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46088 }
46089 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46090 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46091 }
46092 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46093 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46094 }
46095 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46096 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46097 }
46098 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46099 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46100 }
46101 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46102 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46103 }
46104 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46105 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46106 }
46107 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46108 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46109 }
46110 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46111 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46112 }
46113 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46114 return (void *)((wxEvent *) ((wxPyEvent *) x));
46115 }
46116 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46117 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46118 }
46119 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46120 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46121 }
46122 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46123 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46124 }
46125 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46126 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46127 }
46128 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46129 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46130 }
46131 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46132 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46133 }
46134 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46135 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46136 }
46137 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46138 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46139 }
46140 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46141 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46142 }
46143 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46144 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46145 }
46146 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46147 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46148 }
46149 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46150 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46151 }
46152 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46153 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46154 }
46155 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46156 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46157 }
46158 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46159 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46160 }
46161 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46162 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46163 }
46164 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46165 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46166 }
46167 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46168 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46169 }
46170 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46171 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46172 }
46173 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46174 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46175 }
46176 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46177 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46178 }
46179 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46180 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46181 }
46182 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46183 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46184 }
46185 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46186 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46187 }
46188 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46189 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46190 }
46191 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46192 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46193 }
46194 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46195 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46196 }
46197 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46198 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46199 }
46200 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46201 return (void *)((wxEvent *) ((wxShowEvent *) x));
46202 }
46203 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46204 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46205 }
46206 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46207 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46208 }
46209 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46210 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46211 }
46212 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46213 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46214 }
46215 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46216 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46217 }
46218 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46219 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46220 }
46221 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46222 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46223 }
46224 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46225 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46226 }
46227 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46228 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46229 }
46230 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46231 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46232 }
46233 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46234 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46235 }
46236 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46237 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46238 }
46239 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46240 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46241 }
46242 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46243 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46244 }
46245 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46246 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46247 }
46248 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46249 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46250 }
46251 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46252 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46253 }
46254 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46255 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46256 }
46257 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46258 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46259 }
46260 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46261 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46262 }
46263 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46264 return (void *)((wxControl *) ((wxPickerBase *) x));
46265 }
46266 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46267 return (void *)((wxControl *) ((wxToggleButton *) x));
46268 }
46269 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46270 return (void *)((wxControl *) ((wxRadioButton *) x));
46271 }
46272 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46273 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46274 }
46275 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46276 return (void *)((wxControl *) ((wxToolBarBase *) x));
46277 }
46278 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46279 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46280 }
46281 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46282 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46283 }
46284 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46285 return (void *)((wxControl *) ((wxComboBox *) x));
46286 }
46287 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46288 return (void *)((wxControl *) ((wxPyControl *) x));
46289 }
46290 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46291 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46292 }
46293 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46294 return (void *)((wxControl *) ((wxScrollBar *) x));
46295 }
46296 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46297 return (void *)((wxControl *) ((wxControlWithItems *) x));
46298 }
46299 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46300 return (void *)((wxControl *) ((wxGauge *) x));
46301 }
46302 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46303 return (void *)((wxControl *) ((wxStaticLine *) x));
46304 }
46305 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46306 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46307 }
46308 static void *_p_wxListbookTo_p_wxControl(void *x) {
46309 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46310 }
46311 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46312 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46313 }
46314 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46315 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46316 }
46317 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46318 return (void *)((wxControl *) ((wxCheckBox *) x));
46319 }
46320 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46321 return (void *)((wxControl *) ((wxRadioBox *) x));
46322 }
46323 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46324 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46325 }
46326 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46327 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46328 }
46329 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46330 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46331 }
46332 static void *_p_wxListViewTo_p_wxControl(void *x) {
46333 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46334 }
46335 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46336 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46337 }
46338 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46339 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46340 }
46341 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46342 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46343 }
46344 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46345 return (void *)((wxControl *) ((wxStaticText *) x));
46346 }
46347 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46348 return (void *)((wxControl *) ((wxStaticBox *) x));
46349 }
46350 static void *_p_wxSliderTo_p_wxControl(void *x) {
46351 return (void *)((wxControl *) ((wxSlider *) x));
46352 }
46353 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46354 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46355 }
46356 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46357 return (void *)((wxControl *) ((wxSpinButton *) x));
46358 }
46359 static void *_p_wxButtonTo_p_wxControl(void *x) {
46360 return (void *)((wxControl *) ((wxButton *) x));
46361 }
46362 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46363 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46364 }
46365 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46366 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46367 }
46368 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46369 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46370 }
46371 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46372 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46373 }
46374 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46375 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46376 }
46377 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46378 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46379 }
46380 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46381 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46382 }
46383 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46384 return (void *)((wxControl *) ((wxTextCtrl *) x));
46385 }
46386 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46387 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46388 }
46389 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46390 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46391 }
46392 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46393 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46394 }
46395 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46396 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46397 }
46398 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46399 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46400 }
46401 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46402 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46403 }
46404 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46405 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46406 }
46407 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46408 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46409 }
46410 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46411 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46412 }
46413 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46414 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46415 }
46416 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46417 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46418 }
46419 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46420 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46421 }
46422 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46423 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46424 }
46425 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46426 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46427 }
46428 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46429 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46430 }
46431 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46432 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46433 }
46434 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46435 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46436 }
46437 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46438 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46439 }
46440 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46441 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46442 }
46443 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46444 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46445 }
46446 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46447 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46448 }
46449 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46450 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46451 }
46452 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46453 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46454 }
46455 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46456 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46457 }
46458 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46459 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46460 }
46461 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46462 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46463 }
46464 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46465 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46466 }
46467 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46468 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46469 }
46470 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46471 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46472 }
46473 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46474 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46475 }
46476 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46477 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46478 }
46479 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46480 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46481 }
46482 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46483 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46484 }
46485 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46486 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46487 }
46488 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46489 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46490 }
46491 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46492 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46493 }
46494 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46495 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46496 }
46497 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46498 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46499 }
46500 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46501 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46502 }
46503 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46504 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46505 }
46506 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46507 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46508 }
46509 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46510 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46511 }
46512 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46513 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46514 }
46515 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46516 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46517 }
46518 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46519 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46520 }
46521 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46523 }
46524 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46526 }
46527 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46529 }
46530 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46531 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46532 }
46533 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46534 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46535 }
46536 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46537 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46538 }
46539 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46540 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46541 }
46542 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46543 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46544 }
46545 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46546 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46547 }
46548 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46549 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46550 }
46551 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46552 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46553 }
46554 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46555 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46556 }
46557 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46559 }
46560 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46561 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46562 }
46563 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46564 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46565 }
46566 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46568 }
46569 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46570 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46571 }
46572 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46573 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46574 }
46575 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46577 }
46578 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46580 }
46581 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46582 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46583 }
46584 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46585 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46586 }
46587 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46588 return (void *)((wxButton *) ((wxBitmapButton *) x));
46589 }
46590 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46591 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46592 }
46593 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46594 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46595 }
46596 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46597 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46598 }
46599 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46600 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46601 }
46602 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46603 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46604 }
46605 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46606 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46607 }
46608 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46609 return (void *)((wxObject *) ((wxSizerItem *) x));
46610 }
46611 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46612 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46613 }
46614 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46615 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46616 }
46617 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46619 }
46620 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46621 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46622 }
46623 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46624 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46625 }
46626 static void *_p_wxSizerTo_p_wxObject(void *x) {
46627 return (void *)((wxObject *) ((wxSizer *) x));
46628 }
46629 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46630 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46631 }
46632 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46633 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46634 }
46635 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46636 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46637 }
46638 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46639 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46640 }
46641 static void *_p_wxEventTo_p_wxObject(void *x) {
46642 return (void *)((wxObject *) ((wxEvent *) x));
46643 }
46644 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46645 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46646 }
46647 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46648 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46649 }
46650 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46651 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46652 }
46653 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46654 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46655 }
46656 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46657 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46658 }
46659 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46660 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46661 }
46662 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46664 }
46665 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46666 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46667 }
46668 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46669 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46670 }
46671 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46672 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46673 }
46674 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46675 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46676 }
46677 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46678 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46679 }
46680 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46681 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46682 }
46683 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46684 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46685 }
46686 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46687 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46688 }
46689 static void *_p_wxControlTo_p_wxObject(void *x) {
46690 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46691 }
46692 static void *_p_wxPyControlTo_p_wxObject(void *x) {
46693 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46694 }
46695 static void *_p_wxGaugeTo_p_wxObject(void *x) {
46696 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46697 }
46698 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46699 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46700 }
46701 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46703 }
46704 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46705 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46706 }
46707 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46708 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46709 }
46710 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46711 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46712 }
46713 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46714 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46715 }
46716 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46717 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46718 }
46719 static void *_p_wxChoiceTo_p_wxObject(void *x) {
46720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46721 }
46722 static void *_p_wxFSFileTo_p_wxObject(void *x) {
46723 return (void *)((wxObject *) ((wxFSFile *) x));
46724 }
46725 static void *_p_wxPySizerTo_p_wxObject(void *x) {
46726 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46727 }
46728 static void *_p_wxTreebookTo_p_wxObject(void *x) {
46729 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46730 }
46731 static void *_p_wxListViewTo_p_wxObject(void *x) {
46732 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46733 }
46734 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46735 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46736 }
46737 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46739 }
46740 static void *_p_wxNotebookTo_p_wxObject(void *x) {
46741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46742 }
46743 static void *_p_wxPyEventTo_p_wxObject(void *x) {
46744 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46745 }
46746 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46747 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46748 }
46749 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46750 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46751 }
46752 static void *_p_wxListbookTo_p_wxObject(void *x) {
46753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46754 }
46755 static void *_p_wxShowEventTo_p_wxObject(void *x) {
46756 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46757 }
46758 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46760 }
46761 static void *_p_wxSliderTo_p_wxObject(void *x) {
46762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46763 }
46764 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46765 return (void *)((wxObject *) ((wxMenuItem *) x));
46766 }
46767 static void *_p_wxDateEventTo_p_wxObject(void *x) {
46768 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46769 }
46770 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46771 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46772 }
46773 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46775 }
46776 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46777 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46778 }
46779 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46780 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46781 }
46782 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46783 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46784 }
46785 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46786 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46787 }
46788 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46789 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46790 }
46791 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46792 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46793 }
46794 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46795 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46796 }
46797 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46798 return (void *)((wxObject *) ((wxContextHelp *) x));
46799 }
46800 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46802 }
46803 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46804 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46805 }
46806 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46807 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46808 }
46809 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46810 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46811 }
46812 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46813 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46814 }
46815 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46816 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46817 }
46818 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46819 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46820 }
46821 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46822 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46823 }
46824 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46825 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46826 }
46827 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46828 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46829 }
46830 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46831 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46832 }
46833 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46834 return (void *)((wxObject *) ((wxImageHandler *) x));
46835 }
46836 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46837 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46838 }
46839 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46840 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46841 }
46842 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46843 return (void *)((wxObject *) ((wxEvtHandler *) x));
46844 }
46845 static void *_p_wxListEventTo_p_wxObject(void *x) {
46846 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46847 }
46848 static void *_p_wxListBoxTo_p_wxObject(void *x) {
46849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46850 }
46851 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46853 }
46854 static void *_p_wxButtonTo_p_wxObject(void *x) {
46855 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46856 }
46857 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46859 }
46860 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46862 }
46863 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46864 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46865 }
46866 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46867 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46868 }
46869 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46870 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46871 }
46872 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46874 }
46875 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46877 }
46878 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46880 }
46881 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46883 }
46884 static void *_p_wxListItemTo_p_wxObject(void *x) {
46885 return (void *)((wxObject *) ((wxListItem *) x));
46886 }
46887 static void *_p_wxImageTo_p_wxObject(void *x) {
46888 return (void *)((wxObject *) ((wxImage *) x));
46889 }
46890 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46891 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46892 }
46893 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46894 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46895 }
46896 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46897 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46898 }
46899 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
46900 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46901 }
46902 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
46903 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46904 }
46905 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
46906 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46907 }
46908 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
46909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46910 }
46911 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46913 }
46914 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46916 }
46917 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46919 }
46920 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
46922 }
46923 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
46925 }
46926 static void *_p_wxWindowTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
46928 }
46929 static void *_p_wxMenuTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
46931 }
46932 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
46934 }
46935 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) ((wxFileSystem *) x));
46937 }
46938 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
46940 }
46941 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
46943 }
46944 static void *_p_wxPyAppTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
46946 }
46947 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
46949 }
46950 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
46952 }
46953 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
46955 }
46956 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46958 }
46959 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46961 }
46962 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
46964 }
46965 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
46967 }
46968 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
46970 }
46971 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
46973 }
46974 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
46976 }
46977 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
46979 }
46980 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46982 }
46983 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46985 }
46986 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46988 }
46989 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46991 }
46992 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46994 }
46995 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46997 }
46998 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47000 }
47001 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47003 }
47004 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47006 }
47007 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47009 }
47010 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47011 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47012 }
47013 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47014 return (void *)((wxWindow *) ((wxMenuBar *) x));
47015 }
47016 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47017 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47018 }
47019 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47020 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47021 }
47022 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47023 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47024 }
47025 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47026 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47027 }
47028 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47029 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47030 }
47031 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47032 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47033 }
47034 static void *_p_wxControlTo_p_wxWindow(void *x) {
47035 return (void *)((wxWindow *) ((wxControl *) x));
47036 }
47037 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47038 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47039 }
47040 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47041 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47042 }
47043 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47044 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47045 }
47046 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47047 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47048 }
47049 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47050 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47051 }
47052 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47053 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47054 }
47055 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47056 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47057 }
47058 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47059 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47060 }
47061 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47062 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47063 }
47064 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47065 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47066 }
47067 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47068 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47069 }
47070 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47071 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47072 }
47073 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47074 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47075 }
47076 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47077 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47078 }
47079 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47080 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47081 }
47082 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47083 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47084 }
47085 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47086 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47087 }
47088 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47089 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47090 }
47091 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47092 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47093 }
47094 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47095 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47096 }
47097 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47098 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47099 }
47100 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47101 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47102 }
47103 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47104 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47105 }
47106 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47107 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47108 }
47109 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47110 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47111 }
47112 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47113 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47114 }
47115 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47116 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47117 }
47118 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47119 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47120 }
47121 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47122 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47123 }
47124 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47125 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47126 }
47127 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47128 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47129 }
47130 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47131 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47132 }
47133 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47134 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47135 }
47136 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47137 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47138 }
47139 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47140 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47141 }
47142 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47143 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47144 }
47145 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47146 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47147 }
47148 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47149 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47150 }
47151 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47152 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47153 }
47154 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47155 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47156 }
47157 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47158 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47159 }
47160 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47161 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47162 }
47163 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47164 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47165 }
47166 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47167 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47168 }
47169 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47170 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47171 }
47172 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47173 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47174 }
47175 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47176 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47177 }
47178 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47179 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47180 }
47181 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47182 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47183 }
47184 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47185 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47186 }
47187 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47188 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47189 }
47190 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47191 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47192 }
47193 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47194 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47195 }
47196 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47197 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47198 }
47199 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47200 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47201 }
47202 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47203 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47204 }
47205 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47206 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47207 }
47208 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47209 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47210 }
47211 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47212 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47213 }
47214 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47215 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47216 }
47217 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47218 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47219 }
47220 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47221 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47222 }
47223 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47224 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47225 }
47226 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47227 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47228 }
47229 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47230 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47231 }
47232 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47233 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47234 }
47235 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47236 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47237 }
47238 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47239 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47240 }
47241 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47242 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47243 }
47244 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47245 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47246 }
47247 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47248 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47249 }
47250 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47251 return (void *)((wxValidator *) ((wxPyValidator *) x));
47252 }
47253 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47254 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47255 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};
47256 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47257 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47258 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47259 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47260 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47261 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47262 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47263 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47264 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47265 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47266 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47267 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47268 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47269 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47270 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47271 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47272 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47273 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47274 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47275 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47276 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47277 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47278 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47279 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47280 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47281 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47282 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47283 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47284 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47285 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47286 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47287 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47288 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47289 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47290 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47291 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47292 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47293 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47294 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47295 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47296 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47297 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47298 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47299 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47300 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47301 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47302 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47303 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47304 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47305 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47306 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47307 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47308 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47309 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47310 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47311 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47312 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47313 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47314 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47315 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47316 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47317 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47318 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47319 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47320 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47321 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47322 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47323 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47324 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47325 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47326 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47327 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47328 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47329 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47330 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47331 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47332 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47333 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47334 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47335 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47336 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47337 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47338 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47339 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47340 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47341 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47342 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47343 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47344 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47345 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47346 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47347 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47348 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47349 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47350 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47351 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47352 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47353 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47354 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47355 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47356 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47357 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47358 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47359 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47360 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47361 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47362 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47363 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47364 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47365 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47366 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47367 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47368 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47369 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47370 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47371 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47372 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47373 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47374 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47375 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47376 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47377 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47378 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47379 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47380 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47381 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47382 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47383 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47384 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47385 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47386 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47387 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47388 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47389 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47390 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47391 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47392 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47393 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47394 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47395 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47396 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47397 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47398 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47399 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47400 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47401 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47402 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47403 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47404 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47405 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47406 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47407 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47408 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47409 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47410 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47411 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47412 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47413 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47414 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47415 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47416 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47417 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47418 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47419 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
47420 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47421 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47422 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47423 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47424 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47425 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47426 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47427 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47428
47429 static swig_type_info *swig_type_initial[] = {
47430 &_swigt__p_bool,
47431 &_swigt__p_char,
47432 &_swigt__p_form_ops_t,
47433 &_swigt__p_int,
47434 &_swigt__p_long,
47435 &_swigt__p_unsigned_char,
47436 &_swigt__p_unsigned_int,
47437 &_swigt__p_unsigned_long,
47438 &_swigt__p_void,
47439 &_swigt__p_wxANIHandler,
47440 &_swigt__p_wxAcceleratorTable,
47441 &_swigt__p_wxActivateEvent,
47442 &_swigt__p_wxArrayInt,
47443 &_swigt__p_wxArrayString,
47444 &_swigt__p_wxBMPHandler,
47445 &_swigt__p_wxBitmap,
47446 &_swigt__p_wxBitmapButton,
47447 &_swigt__p_wxBookCtrlBase,
47448 &_swigt__p_wxBookCtrlBaseEvent,
47449 &_swigt__p_wxBoxSizer,
47450 &_swigt__p_wxButton,
47451 &_swigt__p_wxCURHandler,
47452 &_swigt__p_wxCheckBox,
47453 &_swigt__p_wxCheckListBox,
47454 &_swigt__p_wxChildFocusEvent,
47455 &_swigt__p_wxChoice,
47456 &_swigt__p_wxChoicebook,
47457 &_swigt__p_wxChoicebookEvent,
47458 &_swigt__p_wxClipboardTextEvent,
47459 &_swigt__p_wxCloseEvent,
47460 &_swigt__p_wxColour,
47461 &_swigt__p_wxColourPickerCtrl,
47462 &_swigt__p_wxColourPickerEvent,
47463 &_swigt__p_wxComboBox,
47464 &_swigt__p_wxCommandEvent,
47465 &_swigt__p_wxContextHelp,
47466 &_swigt__p_wxContextHelpButton,
47467 &_swigt__p_wxContextMenuEvent,
47468 &_swigt__p_wxControl,
47469 &_swigt__p_wxControlWithItems,
47470 &_swigt__p_wxCursor,
47471 &_swigt__p_wxDC,
47472 &_swigt__p_wxDateEvent,
47473 &_swigt__p_wxDatePickerCtrl,
47474 &_swigt__p_wxDateTime,
47475 &_swigt__p_wxDirFilterListCtrl,
47476 &_swigt__p_wxDirPickerCtrl,
47477 &_swigt__p_wxDisplayChangedEvent,
47478 &_swigt__p_wxDropFilesEvent,
47479 &_swigt__p_wxDuplexMode,
47480 &_swigt__p_wxEraseEvent,
47481 &_swigt__p_wxEvent,
47482 &_swigt__p_wxEvtHandler,
47483 &_swigt__p_wxFSFile,
47484 &_swigt__p_wxFileDirPickerEvent,
47485 &_swigt__p_wxFilePickerCtrl,
47486 &_swigt__p_wxFileSystem,
47487 &_swigt__p_wxFlexGridSizer,
47488 &_swigt__p_wxFocusEvent,
47489 &_swigt__p_wxFont,
47490 &_swigt__p_wxFontPickerCtrl,
47491 &_swigt__p_wxFontPickerEvent,
47492 &_swigt__p_wxGBSizerItem,
47493 &_swigt__p_wxGIFHandler,
47494 &_swigt__p_wxGauge,
47495 &_swigt__p_wxGenericDirCtrl,
47496 &_swigt__p_wxGenericDragImage,
47497 &_swigt__p_wxGridBagSizer,
47498 &_swigt__p_wxGridSizer,
47499 &_swigt__p_wxHelpEvent,
47500 &_swigt__p_wxHelpProvider,
47501 &_swigt__p_wxHyperlinkCtrl,
47502 &_swigt__p_wxHyperlinkEvent,
47503 &_swigt__p_wxICOHandler,
47504 &_swigt__p_wxIcon,
47505 &_swigt__p_wxIconizeEvent,
47506 &_swigt__p_wxIdleEvent,
47507 &_swigt__p_wxImage,
47508 &_swigt__p_wxImageHandler,
47509 &_swigt__p_wxImageList,
47510 &_swigt__p_wxIndividualLayoutConstraint,
47511 &_swigt__p_wxInitDialogEvent,
47512 &_swigt__p_wxItemContainer,
47513 &_swigt__p_wxJPEGHandler,
47514 &_swigt__p_wxKeyEvent,
47515 &_swigt__p_wxLayoutConstraints,
47516 &_swigt__p_wxListBox,
47517 &_swigt__p_wxListEvent,
47518 &_swigt__p_wxListItem,
47519 &_swigt__p_wxListItemAttr,
47520 &_swigt__p_wxListView,
47521 &_swigt__p_wxListbook,
47522 &_swigt__p_wxListbookEvent,
47523 &_swigt__p_wxMaximizeEvent,
47524 &_swigt__p_wxMemoryDC,
47525 &_swigt__p_wxMenu,
47526 &_swigt__p_wxMenuBar,
47527 &_swigt__p_wxMenuEvent,
47528 &_swigt__p_wxMenuItem,
47529 &_swigt__p_wxMouseCaptureChangedEvent,
47530 &_swigt__p_wxMouseEvent,
47531 &_swigt__p_wxMoveEvent,
47532 &_swigt__p_wxNavigationKeyEvent,
47533 &_swigt__p_wxNcPaintEvent,
47534 &_swigt__p_wxNotebook,
47535 &_swigt__p_wxNotebookEvent,
47536 &_swigt__p_wxNotifyEvent,
47537 &_swigt__p_wxObject,
47538 &_swigt__p_wxPCXHandler,
47539 &_swigt__p_wxPNGHandler,
47540 &_swigt__p_wxPNMHandler,
47541 &_swigt__p_wxPaintEvent,
47542 &_swigt__p_wxPaletteChangedEvent,
47543 &_swigt__p_wxPaperSize,
47544 &_swigt__p_wxPickerBase,
47545 &_swigt__p_wxPoint,
47546 &_swigt__p_wxPyApp,
47547 &_swigt__p_wxPyCommandEvent,
47548 &_swigt__p_wxPyControl,
47549 &_swigt__p_wxPyEvent,
47550 &_swigt__p_wxPyImageHandler,
47551 &_swigt__p_wxPyListCtrl,
47552 &_swigt__p_wxPySizer,
47553 &_swigt__p_wxPyTreeCtrl,
47554 &_swigt__p_wxPyTreeItemData,
47555 &_swigt__p_wxPyValidator,
47556 &_swigt__p_wxQueryNewPaletteEvent,
47557 &_swigt__p_wxRadioBox,
47558 &_swigt__p_wxRadioButton,
47559 &_swigt__p_wxRect,
47560 &_swigt__p_wxScrollBar,
47561 &_swigt__p_wxScrollEvent,
47562 &_swigt__p_wxScrollWinEvent,
47563 &_swigt__p_wxSetCursorEvent,
47564 &_swigt__p_wxShowEvent,
47565 &_swigt__p_wxSimpleHelpProvider,
47566 &_swigt__p_wxSize,
47567 &_swigt__p_wxSizeEvent,
47568 &_swigt__p_wxSizer,
47569 &_swigt__p_wxSizerItem,
47570 &_swigt__p_wxSlider,
47571 &_swigt__p_wxSpinButton,
47572 &_swigt__p_wxSpinCtrl,
47573 &_swigt__p_wxSpinEvent,
47574 &_swigt__p_wxStaticBitmap,
47575 &_swigt__p_wxStaticBox,
47576 &_swigt__p_wxStaticBoxSizer,
47577 &_swigt__p_wxStaticLine,
47578 &_swigt__p_wxStaticText,
47579 &_swigt__p_wxStdDialogButtonSizer,
47580 &_swigt__p_wxString,
47581 &_swigt__p_wxSysColourChangedEvent,
47582 &_swigt__p_wxTIFFHandler,
47583 &_swigt__p_wxTextAttr,
47584 &_swigt__p_wxTextCtrl,
47585 &_swigt__p_wxTextUrlEvent,
47586 &_swigt__p_wxToggleButton,
47587 &_swigt__p_wxToolBar,
47588 &_swigt__p_wxToolBarBase,
47589 &_swigt__p_wxToolBarToolBase,
47590 &_swigt__p_wxToolbook,
47591 &_swigt__p_wxToolbookEvent,
47592 &_swigt__p_wxTreeCtrl,
47593 &_swigt__p_wxTreeEvent,
47594 &_swigt__p_wxTreeItemId,
47595 &_swigt__p_wxTreebook,
47596 &_swigt__p_wxTreebookEvent,
47597 &_swigt__p_wxUpdateUIEvent,
47598 &_swigt__p_wxValidator,
47599 &_swigt__p_wxVisualAttributes,
47600 &_swigt__p_wxWindow,
47601 &_swigt__p_wxWindowBase,
47602 &_swigt__p_wxWindowCreateEvent,
47603 &_swigt__p_wxWindowDestroyEvent,
47604 &_swigt__p_wxXPMHandler,
47605 };
47606
47607 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47608 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47609 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47610 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47611 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47612 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47613 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47614 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47615 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47616 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47617 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47618 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47619 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}};
47620 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}};
47621 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}};
47622 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}};
47623 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47624 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47625 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}};
47626 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47627 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47628 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
47629 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47630 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47631 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47632 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
47633 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
47634 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47635 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47636 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47637 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47638 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47639 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47640 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
47641 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
47642 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47643 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
47644 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
47645 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}};
47646 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47647 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47648 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47649 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47650 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
47651 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47652 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47653 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47654 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47655 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47656 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47657 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47658 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47659 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47660 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47661 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47662 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47663 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47664 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47665 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47666 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47667 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47668 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47669 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47670 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47671 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47672 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47673 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47674 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47675 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47676 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
47677 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
47678 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47679 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47680 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47681 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
47682 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47683 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47684 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47685 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
47686 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47687 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47688 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47689 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47690 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47691 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47692 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}};
47693 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47694 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
47695 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47696 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47697 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}};
47698 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47699 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}};
47700 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47701 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47702 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47703 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47704 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47705 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47706 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47707 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47708 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47709 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47710 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}};
47711 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47712 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47713 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47714 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47715 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47716 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47717 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47718 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47719 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47720 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47721 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47722 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47723 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
47724 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47725 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47726 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47727 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47728 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
47729 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47730 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47731 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47732 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
47733 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47734 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47735 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47736 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47737 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47738 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47739 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47740 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
47741 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
47742 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
47743 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}};
47744 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47745 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47746 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}};
47747 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47748 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47749 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47750 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47751 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47752 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47753 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47754 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47755 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47756 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47757 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47758 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47759 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47760 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47761 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47762 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47763 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47764 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47765 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47766 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47767 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47768 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47769 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}};
47770 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47771 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47772 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47773 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47774 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47775 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47776 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47777 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47778 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}};
47779 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
47780 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47781 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
47782
47783 static swig_cast_info *swig_cast_initial[] = {
47784 _swigc__p_bool,
47785 _swigc__p_char,
47786 _swigc__p_form_ops_t,
47787 _swigc__p_int,
47788 _swigc__p_long,
47789 _swigc__p_unsigned_char,
47790 _swigc__p_unsigned_int,
47791 _swigc__p_unsigned_long,
47792 _swigc__p_void,
47793 _swigc__p_wxANIHandler,
47794 _swigc__p_wxAcceleratorTable,
47795 _swigc__p_wxActivateEvent,
47796 _swigc__p_wxArrayInt,
47797 _swigc__p_wxArrayString,
47798 _swigc__p_wxBMPHandler,
47799 _swigc__p_wxBitmap,
47800 _swigc__p_wxBitmapButton,
47801 _swigc__p_wxBookCtrlBase,
47802 _swigc__p_wxBookCtrlBaseEvent,
47803 _swigc__p_wxBoxSizer,
47804 _swigc__p_wxButton,
47805 _swigc__p_wxCURHandler,
47806 _swigc__p_wxCheckBox,
47807 _swigc__p_wxCheckListBox,
47808 _swigc__p_wxChildFocusEvent,
47809 _swigc__p_wxChoice,
47810 _swigc__p_wxChoicebook,
47811 _swigc__p_wxChoicebookEvent,
47812 _swigc__p_wxClipboardTextEvent,
47813 _swigc__p_wxCloseEvent,
47814 _swigc__p_wxColour,
47815 _swigc__p_wxColourPickerCtrl,
47816 _swigc__p_wxColourPickerEvent,
47817 _swigc__p_wxComboBox,
47818 _swigc__p_wxCommandEvent,
47819 _swigc__p_wxContextHelp,
47820 _swigc__p_wxContextHelpButton,
47821 _swigc__p_wxContextMenuEvent,
47822 _swigc__p_wxControl,
47823 _swigc__p_wxControlWithItems,
47824 _swigc__p_wxCursor,
47825 _swigc__p_wxDC,
47826 _swigc__p_wxDateEvent,
47827 _swigc__p_wxDatePickerCtrl,
47828 _swigc__p_wxDateTime,
47829 _swigc__p_wxDirFilterListCtrl,
47830 _swigc__p_wxDirPickerCtrl,
47831 _swigc__p_wxDisplayChangedEvent,
47832 _swigc__p_wxDropFilesEvent,
47833 _swigc__p_wxDuplexMode,
47834 _swigc__p_wxEraseEvent,
47835 _swigc__p_wxEvent,
47836 _swigc__p_wxEvtHandler,
47837 _swigc__p_wxFSFile,
47838 _swigc__p_wxFileDirPickerEvent,
47839 _swigc__p_wxFilePickerCtrl,
47840 _swigc__p_wxFileSystem,
47841 _swigc__p_wxFlexGridSizer,
47842 _swigc__p_wxFocusEvent,
47843 _swigc__p_wxFont,
47844 _swigc__p_wxFontPickerCtrl,
47845 _swigc__p_wxFontPickerEvent,
47846 _swigc__p_wxGBSizerItem,
47847 _swigc__p_wxGIFHandler,
47848 _swigc__p_wxGauge,
47849 _swigc__p_wxGenericDirCtrl,
47850 _swigc__p_wxGenericDragImage,
47851 _swigc__p_wxGridBagSizer,
47852 _swigc__p_wxGridSizer,
47853 _swigc__p_wxHelpEvent,
47854 _swigc__p_wxHelpProvider,
47855 _swigc__p_wxHyperlinkCtrl,
47856 _swigc__p_wxHyperlinkEvent,
47857 _swigc__p_wxICOHandler,
47858 _swigc__p_wxIcon,
47859 _swigc__p_wxIconizeEvent,
47860 _swigc__p_wxIdleEvent,
47861 _swigc__p_wxImage,
47862 _swigc__p_wxImageHandler,
47863 _swigc__p_wxImageList,
47864 _swigc__p_wxIndividualLayoutConstraint,
47865 _swigc__p_wxInitDialogEvent,
47866 _swigc__p_wxItemContainer,
47867 _swigc__p_wxJPEGHandler,
47868 _swigc__p_wxKeyEvent,
47869 _swigc__p_wxLayoutConstraints,
47870 _swigc__p_wxListBox,
47871 _swigc__p_wxListEvent,
47872 _swigc__p_wxListItem,
47873 _swigc__p_wxListItemAttr,
47874 _swigc__p_wxListView,
47875 _swigc__p_wxListbook,
47876 _swigc__p_wxListbookEvent,
47877 _swigc__p_wxMaximizeEvent,
47878 _swigc__p_wxMemoryDC,
47879 _swigc__p_wxMenu,
47880 _swigc__p_wxMenuBar,
47881 _swigc__p_wxMenuEvent,
47882 _swigc__p_wxMenuItem,
47883 _swigc__p_wxMouseCaptureChangedEvent,
47884 _swigc__p_wxMouseEvent,
47885 _swigc__p_wxMoveEvent,
47886 _swigc__p_wxNavigationKeyEvent,
47887 _swigc__p_wxNcPaintEvent,
47888 _swigc__p_wxNotebook,
47889 _swigc__p_wxNotebookEvent,
47890 _swigc__p_wxNotifyEvent,
47891 _swigc__p_wxObject,
47892 _swigc__p_wxPCXHandler,
47893 _swigc__p_wxPNGHandler,
47894 _swigc__p_wxPNMHandler,
47895 _swigc__p_wxPaintEvent,
47896 _swigc__p_wxPaletteChangedEvent,
47897 _swigc__p_wxPaperSize,
47898 _swigc__p_wxPickerBase,
47899 _swigc__p_wxPoint,
47900 _swigc__p_wxPyApp,
47901 _swigc__p_wxPyCommandEvent,
47902 _swigc__p_wxPyControl,
47903 _swigc__p_wxPyEvent,
47904 _swigc__p_wxPyImageHandler,
47905 _swigc__p_wxPyListCtrl,
47906 _swigc__p_wxPySizer,
47907 _swigc__p_wxPyTreeCtrl,
47908 _swigc__p_wxPyTreeItemData,
47909 _swigc__p_wxPyValidator,
47910 _swigc__p_wxQueryNewPaletteEvent,
47911 _swigc__p_wxRadioBox,
47912 _swigc__p_wxRadioButton,
47913 _swigc__p_wxRect,
47914 _swigc__p_wxScrollBar,
47915 _swigc__p_wxScrollEvent,
47916 _swigc__p_wxScrollWinEvent,
47917 _swigc__p_wxSetCursorEvent,
47918 _swigc__p_wxShowEvent,
47919 _swigc__p_wxSimpleHelpProvider,
47920 _swigc__p_wxSize,
47921 _swigc__p_wxSizeEvent,
47922 _swigc__p_wxSizer,
47923 _swigc__p_wxSizerItem,
47924 _swigc__p_wxSlider,
47925 _swigc__p_wxSpinButton,
47926 _swigc__p_wxSpinCtrl,
47927 _swigc__p_wxSpinEvent,
47928 _swigc__p_wxStaticBitmap,
47929 _swigc__p_wxStaticBox,
47930 _swigc__p_wxStaticBoxSizer,
47931 _swigc__p_wxStaticLine,
47932 _swigc__p_wxStaticText,
47933 _swigc__p_wxStdDialogButtonSizer,
47934 _swigc__p_wxString,
47935 _swigc__p_wxSysColourChangedEvent,
47936 _swigc__p_wxTIFFHandler,
47937 _swigc__p_wxTextAttr,
47938 _swigc__p_wxTextCtrl,
47939 _swigc__p_wxTextUrlEvent,
47940 _swigc__p_wxToggleButton,
47941 _swigc__p_wxToolBar,
47942 _swigc__p_wxToolBarBase,
47943 _swigc__p_wxToolBarToolBase,
47944 _swigc__p_wxToolbook,
47945 _swigc__p_wxToolbookEvent,
47946 _swigc__p_wxTreeCtrl,
47947 _swigc__p_wxTreeEvent,
47948 _swigc__p_wxTreeItemId,
47949 _swigc__p_wxTreebook,
47950 _swigc__p_wxTreebookEvent,
47951 _swigc__p_wxUpdateUIEvent,
47952 _swigc__p_wxValidator,
47953 _swigc__p_wxVisualAttributes,
47954 _swigc__p_wxWindow,
47955 _swigc__p_wxWindowBase,
47956 _swigc__p_wxWindowCreateEvent,
47957 _swigc__p_wxWindowDestroyEvent,
47958 _swigc__p_wxXPMHandler,
47959 };
47960
47961
47962 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
47963
47964 static swig_const_info swig_const_table[] = {
47965 {0, 0, 0, 0.0, 0, 0}};
47966
47967 #ifdef __cplusplus
47968 }
47969 #endif
47970 /* -----------------------------------------------------------------------------
47971 * Type initialization:
47972 * This problem is tough by the requirement that no dynamic
47973 * memory is used. Also, since swig_type_info structures store pointers to
47974 * swig_cast_info structures and swig_cast_info structures store pointers back
47975 * to swig_type_info structures, we need some lookup code at initialization.
47976 * The idea is that swig generates all the structures that are needed.
47977 * The runtime then collects these partially filled structures.
47978 * The SWIG_InitializeModule function takes these initial arrays out of
47979 * swig_module, and does all the lookup, filling in the swig_module.types
47980 * array with the correct data and linking the correct swig_cast_info
47981 * structures together.
47982 *
47983 * The generated swig_type_info structures are assigned staticly to an initial
47984 * array. We just loop though that array, and handle each type individually.
47985 * First we lookup if this type has been already loaded, and if so, use the
47986 * loaded structure instead of the generated one. Then we have to fill in the
47987 * cast linked list. The cast data is initially stored in something like a
47988 * two-dimensional array. Each row corresponds to a type (there are the same
47989 * number of rows as there are in the swig_type_initial array). Each entry in
47990 * a column is one of the swig_cast_info structures for that type.
47991 * The cast_initial array is actually an array of arrays, because each row has
47992 * a variable number of columns. So to actually build the cast linked list,
47993 * we find the array of casts associated with the type, and loop through it
47994 * adding the casts to the list. The one last trick we need to do is making
47995 * sure the type pointer in the swig_cast_info struct is correct.
47996 *
47997 * First off, we lookup the cast->type name to see if it is already loaded.
47998 * There are three cases to handle:
47999 * 1) If the cast->type has already been loaded AND the type we are adding
48000 * casting info to has not been loaded (it is in this module), THEN we
48001 * replace the cast->type pointer with the type pointer that has already
48002 * been loaded.
48003 * 2) If BOTH types (the one we are adding casting info to, and the
48004 * cast->type) are loaded, THEN the cast info has already been loaded by
48005 * the previous module so we just ignore it.
48006 * 3) Finally, if cast->type has not already been loaded, then we add that
48007 * swig_cast_info to the linked list (because the cast->type) pointer will
48008 * be correct.
48009 * ----------------------------------------------------------------------------- */
48010
48011 #ifdef __cplusplus
48012 extern "C" {
48013 #if 0
48014 } /* c-mode */
48015 #endif
48016 #endif
48017
48018 #if 0
48019 #define SWIGRUNTIME_DEBUG
48020 #endif
48021
48022 SWIGRUNTIME void
48023 SWIG_InitializeModule(void *clientdata) {
48024 size_t i;
48025 swig_module_info *module_head;
48026 static int init_run = 0;
48027
48028 clientdata = clientdata;
48029
48030 if (init_run) return;
48031 init_run = 1;
48032
48033 /* Initialize the swig_module */
48034 swig_module.type_initial = swig_type_initial;
48035 swig_module.cast_initial = swig_cast_initial;
48036
48037 /* Try and load any already created modules */
48038 module_head = SWIG_GetModule(clientdata);
48039 if (module_head) {
48040 swig_module.next = module_head->next;
48041 module_head->next = &swig_module;
48042 } else {
48043 /* This is the first module loaded */
48044 swig_module.next = &swig_module;
48045 SWIG_SetModule(clientdata, &swig_module);
48046 }
48047
48048 /* Now work on filling in swig_module.types */
48049 #ifdef SWIGRUNTIME_DEBUG
48050 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48051 #endif
48052 for (i = 0; i < swig_module.size; ++i) {
48053 swig_type_info *type = 0;
48054 swig_type_info *ret;
48055 swig_cast_info *cast;
48056
48057 #ifdef SWIGRUNTIME_DEBUG
48058 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48059 #endif
48060
48061 /* if there is another module already loaded */
48062 if (swig_module.next != &swig_module) {
48063 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48064 }
48065 if (type) {
48066 /* Overwrite clientdata field */
48067 #ifdef SWIGRUNTIME_DEBUG
48068 printf("SWIG_InitializeModule: found type %s\n", type->name);
48069 #endif
48070 if (swig_module.type_initial[i]->clientdata) {
48071 type->clientdata = swig_module.type_initial[i]->clientdata;
48072 #ifdef SWIGRUNTIME_DEBUG
48073 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48074 #endif
48075 }
48076 } else {
48077 type = swig_module.type_initial[i];
48078 }
48079
48080 /* Insert casting types */
48081 cast = swig_module.cast_initial[i];
48082 while (cast->type) {
48083 /* Don't need to add information already in the list */
48084 ret = 0;
48085 #ifdef SWIGRUNTIME_DEBUG
48086 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48087 #endif
48088 if (swig_module.next != &swig_module) {
48089 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48090 #ifdef SWIGRUNTIME_DEBUG
48091 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48092 #endif
48093 }
48094 if (ret) {
48095 if (type == swig_module.type_initial[i]) {
48096 #ifdef SWIGRUNTIME_DEBUG
48097 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48098 #endif
48099 cast->type = ret;
48100 ret = 0;
48101 } else {
48102 /* Check for casting already in the list */
48103 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48104 #ifdef SWIGRUNTIME_DEBUG
48105 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48106 #endif
48107 if (!ocast) ret = 0;
48108 }
48109 }
48110
48111 if (!ret) {
48112 #ifdef SWIGRUNTIME_DEBUG
48113 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48114 #endif
48115 if (type->cast) {
48116 type->cast->prev = cast;
48117 cast->next = type->cast;
48118 }
48119 type->cast = cast;
48120 }
48121 cast++;
48122 }
48123 /* Set entry in modules->types array equal to the type */
48124 swig_module.types[i] = type;
48125 }
48126 swig_module.types[i] = 0;
48127
48128 #ifdef SWIGRUNTIME_DEBUG
48129 printf("**** SWIG_InitializeModule: Cast List ******\n");
48130 for (i = 0; i < swig_module.size; ++i) {
48131 int j = 0;
48132 swig_cast_info *cast = swig_module.cast_initial[i];
48133 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48134 while (cast->type) {
48135 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48136 cast++;
48137 ++j;
48138 }
48139 printf("---- Total casts: %d\n",j);
48140 }
48141 printf("**** SWIG_InitializeModule: Cast List ******\n");
48142 #endif
48143 }
48144
48145 /* This function will propagate the clientdata field of type to
48146 * any new swig_type_info structures that have been added into the list
48147 * of equivalent types. It is like calling
48148 * SWIG_TypeClientData(type, clientdata) a second time.
48149 */
48150 SWIGRUNTIME void
48151 SWIG_PropagateClientData(void) {
48152 size_t i;
48153 swig_cast_info *equiv;
48154 static int init_run = 0;
48155
48156 if (init_run) return;
48157 init_run = 1;
48158
48159 for (i = 0; i < swig_module.size; i++) {
48160 if (swig_module.types[i]->clientdata) {
48161 equiv = swig_module.types[i]->cast;
48162 while (equiv) {
48163 if (!equiv->converter) {
48164 if (equiv->type && !equiv->type->clientdata)
48165 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48166 }
48167 equiv = equiv->next;
48168 }
48169 }
48170 }
48171 }
48172
48173 #ifdef __cplusplus
48174 #if 0
48175 {
48176 /* c-mode */
48177 #endif
48178 }
48179 #endif
48180
48181
48182
48183 #ifdef __cplusplus
48184 extern "C" {
48185 #endif
48186
48187 /* Python-specific SWIG API */
48188 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48189 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48190 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48191
48192 /* -----------------------------------------------------------------------------
48193 * global variable support code.
48194 * ----------------------------------------------------------------------------- */
48195
48196 typedef struct swig_globalvar {
48197 char *name; /* Name of global variable */
48198 PyObject *(*get_attr)(void); /* Return the current value */
48199 int (*set_attr)(PyObject *); /* Set the value */
48200 struct swig_globalvar *next;
48201 } swig_globalvar;
48202
48203 typedef struct swig_varlinkobject {
48204 PyObject_HEAD
48205 swig_globalvar *vars;
48206 } swig_varlinkobject;
48207
48208 SWIGINTERN PyObject *
48209 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48210 return PyString_FromString("<Swig global variables>");
48211 }
48212
48213 SWIGINTERN PyObject *
48214 swig_varlink_str(swig_varlinkobject *v) {
48215 PyObject *str = PyString_FromString("(");
48216 swig_globalvar *var;
48217 for (var = v->vars; var; var=var->next) {
48218 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48219 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48220 }
48221 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48222 return str;
48223 }
48224
48225 SWIGINTERN int
48226 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48227 PyObject *str = swig_varlink_str(v);
48228 fprintf(fp,"Swig global variables ");
48229 fprintf(fp,"%s\n", PyString_AsString(str));
48230 Py_DECREF(str);
48231 return 0;
48232 }
48233
48234 SWIGINTERN void
48235 swig_varlink_dealloc(swig_varlinkobject *v) {
48236 swig_globalvar *var = v->vars;
48237 while (var) {
48238 swig_globalvar *n = var->next;
48239 free(var->name);
48240 free(var);
48241 var = n;
48242 }
48243 }
48244
48245 SWIGINTERN PyObject *
48246 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48247 PyObject *res = NULL;
48248 swig_globalvar *var = v->vars;
48249 while (var) {
48250 if (strcmp(var->name,n) == 0) {
48251 res = (*var->get_attr)();
48252 break;
48253 }
48254 var = var->next;
48255 }
48256 if (res == NULL && !PyErr_Occurred()) {
48257 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48258 }
48259 return res;
48260 }
48261
48262 SWIGINTERN int
48263 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48264 int res = 1;
48265 swig_globalvar *var = v->vars;
48266 while (var) {
48267 if (strcmp(var->name,n) == 0) {
48268 res = (*var->set_attr)(p);
48269 break;
48270 }
48271 var = var->next;
48272 }
48273 if (res == 1 && !PyErr_Occurred()) {
48274 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48275 }
48276 return res;
48277 }
48278
48279 SWIGINTERN PyTypeObject*
48280 swig_varlink_type(void) {
48281 static char varlink__doc__[] = "Swig var link object";
48282 static PyTypeObject varlink_type;
48283 static int type_init = 0;
48284 if (!type_init) {
48285 const PyTypeObject tmp
48286 = {
48287 PyObject_HEAD_INIT(NULL)
48288 0, /* Number of items in variable part (ob_size) */
48289 (char *)"swigvarlink", /* Type name (tp_name) */
48290 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48291 0, /* Itemsize (tp_itemsize) */
48292 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48293 (printfunc) swig_varlink_print, /* Print (tp_print) */
48294 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48295 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48296 0, /* tp_compare */
48297 (reprfunc) swig_varlink_repr, /* tp_repr */
48298 0, /* tp_as_number */
48299 0, /* tp_as_sequence */
48300 0, /* tp_as_mapping */
48301 0, /* tp_hash */
48302 0, /* tp_call */
48303 (reprfunc)swig_varlink_str, /* tp_str */
48304 0, /* tp_getattro */
48305 0, /* tp_setattro */
48306 0, /* tp_as_buffer */
48307 0, /* tp_flags */
48308 varlink__doc__, /* tp_doc */
48309 0, /* tp_traverse */
48310 0, /* tp_clear */
48311 0, /* tp_richcompare */
48312 0, /* tp_weaklistoffset */
48313 #if PY_VERSION_HEX >= 0x02020000
48314 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48315 #endif
48316 #if PY_VERSION_HEX >= 0x02030000
48317 0, /* tp_del */
48318 #endif
48319 #ifdef COUNT_ALLOCS
48320 0,0,0,0 /* tp_alloc -> tp_next */
48321 #endif
48322 };
48323 varlink_type = tmp;
48324 varlink_type.ob_type = &PyType_Type;
48325 type_init = 1;
48326 }
48327 return &varlink_type;
48328 }
48329
48330 /* Create a variable linking object for use later */
48331 SWIGINTERN PyObject *
48332 SWIG_Python_newvarlink(void) {
48333 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48334 if (result) {
48335 result->vars = 0;
48336 }
48337 return ((PyObject*) result);
48338 }
48339
48340 SWIGINTERN void
48341 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48342 swig_varlinkobject *v = (swig_varlinkobject *) p;
48343 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48344 if (gv) {
48345 size_t size = strlen(name)+1;
48346 gv->name = (char *)malloc(size);
48347 if (gv->name) {
48348 strncpy(gv->name,name,size);
48349 gv->get_attr = get_attr;
48350 gv->set_attr = set_attr;
48351 gv->next = v->vars;
48352 }
48353 }
48354 v->vars = gv;
48355 }
48356
48357 SWIGINTERN PyObject *
48358 SWIG_globals() {
48359 static PyObject *_SWIG_globals = 0;
48360 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48361 return _SWIG_globals;
48362 }
48363
48364 /* -----------------------------------------------------------------------------
48365 * constants/methods manipulation
48366 * ----------------------------------------------------------------------------- */
48367
48368 /* Install Constants */
48369 SWIGINTERN void
48370 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48371 PyObject *obj = 0;
48372 size_t i;
48373 for (i = 0; constants[i].type; ++i) {
48374 switch(constants[i].type) {
48375 case SWIG_PY_POINTER:
48376 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48377 break;
48378 case SWIG_PY_BINARY:
48379 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48380 break;
48381 default:
48382 obj = 0;
48383 break;
48384 }
48385 if (obj) {
48386 PyDict_SetItemString(d, constants[i].name, obj);
48387 Py_DECREF(obj);
48388 }
48389 }
48390 }
48391
48392 /* -----------------------------------------------------------------------------*/
48393 /* Fix SwigMethods to carry the callback ptrs when needed */
48394 /* -----------------------------------------------------------------------------*/
48395
48396 SWIGINTERN void
48397 SWIG_Python_FixMethods(PyMethodDef *methods,
48398 swig_const_info *const_table,
48399 swig_type_info **types,
48400 swig_type_info **types_initial) {
48401 size_t i;
48402 for (i = 0; methods[i].ml_name; ++i) {
48403 char *c = methods[i].ml_doc;
48404 if (c && (c = strstr(c, "swig_ptr: "))) {
48405 int j;
48406 swig_const_info *ci = 0;
48407 char *name = c + 10;
48408 for (j = 0; const_table[j].type; ++j) {
48409 if (strncmp(const_table[j].name, name,
48410 strlen(const_table[j].name)) == 0) {
48411 ci = &(const_table[j]);
48412 break;
48413 }
48414 }
48415 if (ci) {
48416 size_t shift = (ci->ptype) - types;
48417 swig_type_info *ty = types_initial[shift];
48418 size_t ldoc = (c - methods[i].ml_doc);
48419 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48420 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48421 if (ndoc) {
48422 char *buff = ndoc;
48423 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48424 if (ptr) {
48425 strncpy(buff, methods[i].ml_doc, ldoc);
48426 buff += ldoc;
48427 strncpy(buff, "swig_ptr: ", 10);
48428 buff += 10;
48429 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48430 methods[i].ml_doc = ndoc;
48431 }
48432 }
48433 }
48434 }
48435 }
48436 }
48437
48438 #ifdef __cplusplus
48439 }
48440 #endif
48441
48442 /* -----------------------------------------------------------------------------*
48443 * Partial Init method
48444 * -----------------------------------------------------------------------------*/
48445
48446 #ifdef __cplusplus
48447 extern "C"
48448 #endif
48449 SWIGEXPORT void SWIG_init(void) {
48450 PyObject *m, *d;
48451
48452 /* Fix SwigMethods to carry the callback ptrs when needed */
48453 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48454
48455 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48456 d = PyModule_GetDict(m);
48457
48458 SWIG_InitializeModule(0);
48459 SWIG_InstallConstants(d,swig_const_table);
48460
48461
48462 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48463 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48464 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48465 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48466 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48467 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48468 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48469 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48470 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48471 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48472 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48473 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48474 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48475 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48476 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48477 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48478 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48479 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48480 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48481 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48482 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48483 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48484 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48485 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48486 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48487 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48488 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48489 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48490 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48491 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48492 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48493 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48494 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48495 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48496 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48497 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48498 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48499 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48500 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48501 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48502 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48503 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48504 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48505 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48506 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48507 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48508 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48509 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48510 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48511 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48512 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48513 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48514 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48515 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48516 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48517 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48518 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48519 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48520 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48521 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48522 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48523 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48524 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48525 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48526 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48527 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48528 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48529 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48530 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48531 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48532 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48533 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48534 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48535 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48536 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48537 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48538 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48539 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48540 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48541 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48542 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48543 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48544 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48545 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48546 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48547 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48548 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48549 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48550 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48551 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48552 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48553 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48554 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48555 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48556 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48557 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48558 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48559 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48560 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48561 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48562 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48563 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48564 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48565 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48566 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48567 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48568 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48569 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48570 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48571 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48572 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48573 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48574 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48575 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48576 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48577 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48578 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48579 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48580 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48581 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48582 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48583 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48584 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48585 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48586 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48587 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48588 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48589 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48590 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48591 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48592 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48593 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48594 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48595 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48596 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48597 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48598 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48599 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48600 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48601 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48602 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48603 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48604 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48605 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48606 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48607 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48608 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48609 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48610 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48611 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48612 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48613 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48614 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48615 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48616 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48617 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48618 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48619 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48620 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48621 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
48622 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48623 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48624 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48625 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48626 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48627 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48628 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48629 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48630 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48631 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48632 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48633 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48634 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48635 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48636 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48637 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48638 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48639 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48640 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48641 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48642 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48643 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48644 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48645 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48646 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48647 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48648 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48649 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48650 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48651 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48652 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48653 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48654 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48655 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48656 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48657 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48658 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48659 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48660 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48661 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48662 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48663 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48664 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48665 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48666 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48667 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48668 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
48669 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
48670 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48671 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48672 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48673 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48674 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48675 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48676 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48677 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48678 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48679 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48680 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48681 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48682 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48683 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48684 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48685 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48686 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48687 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48688 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48689 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48690 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48691 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48692 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48693 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48694 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48695 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48696 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48697 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48698 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48699 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48700 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48701 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48702 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48703 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48704 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48705 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48706 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48707 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48708 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48709 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48710 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48711 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48712
48713 // Map renamed classes back to their common name for OOR
48714 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48715
48716 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48717 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48718 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48719 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48720 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48721 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48722 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48723 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48724 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48725 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48726 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48727 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48728 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48729 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48730 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
48731 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48732 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48733 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48734 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48735 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48736 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48737 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48738 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48739 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48740 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48741 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48742 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48743 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48744 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48745 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48746 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48747 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48748 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48749 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48750 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48751 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48752 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48753 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48754 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48755 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48756 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48757 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48758 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48759 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48760 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48761 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48762 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48763 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48764 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48765 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48766 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48767 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48768 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48769 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48770 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
48771 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
48772
48773 // Map renamed classes back to their common name for OOR
48774 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48775 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48776
48777 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48778 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48779 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48780 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48781 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48782 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48783 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48784 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48785 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48786 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
48787 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48788 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48789 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
48790
48791 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48792
48793 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48794 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48795 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48796 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48797 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48798 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
48799 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48800 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48801 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48802 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
48803 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48804 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48805 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48806 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48807 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48808 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48809 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48810 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48811 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48812 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48813 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48814 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48815 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48816 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48817 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48818 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48819 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48820 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48821 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48822 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48823 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48824 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48825 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48826 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48827 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48828 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48829 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48830 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48831 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48832 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
48833 }
48834