]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
demo tweaks
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521 #define SWIGTYPE_p_wxFSFile swig_types[55]
2522 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524 #define SWIGTYPE_p_wxFileSystem swig_types[58]
2525 #define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526 #define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527 #define SWIGTYPE_p_wxFont swig_types[61]
2528 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530 #define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531 #define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532 #define SWIGTYPE_p_wxGauge swig_types[66]
2533 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535 #define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536 #define SWIGTYPE_p_wxGridSizer swig_types[70]
2537 #define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538 #define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544 #define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545 #define SWIGTYPE_p_wxImage swig_types[79]
2546 #define SWIGTYPE_p_wxImageHandler swig_types[80]
2547 #define SWIGTYPE_p_wxImageList swig_types[81]
2548 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549 #define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550 #define SWIGTYPE_p_wxItemContainer swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554 #define SWIGTYPE_p_wxListBox swig_types[88]
2555 #define SWIGTYPE_p_wxListEvent swig_types[89]
2556 #define SWIGTYPE_p_wxListItem swig_types[90]
2557 #define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558 #define SWIGTYPE_p_wxListView swig_types[92]
2559 #define SWIGTYPE_p_wxListbook swig_types[93]
2560 #define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561 #define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563 #define SWIGTYPE_p_wxMenu swig_types[97]
2564 #define SWIGTYPE_p_wxMenuBar swig_types[98]
2565 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMenuItem swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotebook swig_types[107]
2574 #define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxObject swig_types[110]
2577 #define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaperSize swig_types[116]
2583 #define SWIGTYPE_p_wxPickerBase swig_types[117]
2584 #define SWIGTYPE_p_wxPoint swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyControl swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRadioBox swig_types[130]
2597 #define SWIGTYPE_p_wxRadioButton swig_types[131]
2598 #define SWIGTYPE_p_wxRect swig_types[132]
2599 #define SWIGTYPE_p_wxScrollBar swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603 #define SWIGTYPE_p_wxShowEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[138]
2605 #define SWIGTYPE_p_wxSize swig_types[139]
2606 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607 #define SWIGTYPE_p_wxSizer swig_types[141]
2608 #define SWIGTYPE_p_wxSizerItem swig_types[142]
2609 #define SWIGTYPE_p_wxSlider swig_types[143]
2610 #define SWIGTYPE_p_wxSpinButton swig_types[144]
2611 #define SWIGTYPE_p_wxSpinCtrl swig_types[145]
2612 #define SWIGTYPE_p_wxSpinEvent swig_types[146]
2613 #define SWIGTYPE_p_wxStaticBitmap swig_types[147]
2614 #define SWIGTYPE_p_wxStaticBox swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[149]
2616 #define SWIGTYPE_p_wxStaticLine swig_types[150]
2617 #define SWIGTYPE_p_wxStaticText swig_types[151]
2618 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[152]
2619 #define SWIGTYPE_p_wxString swig_types[153]
2620 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[154]
2621 #define SWIGTYPE_p_wxTGAHandler swig_types[155]
2622 #define SWIGTYPE_p_wxTIFFHandler swig_types[156]
2623 #define SWIGTYPE_p_wxTextAttr swig_types[157]
2624 #define SWIGTYPE_p_wxTextCtrl swig_types[158]
2625 #define SWIGTYPE_p_wxTextUrlEvent swig_types[159]
2626 #define SWIGTYPE_p_wxToggleButton swig_types[160]
2627 #define SWIGTYPE_p_wxToolBar swig_types[161]
2628 #define SWIGTYPE_p_wxToolBarBase swig_types[162]
2629 #define SWIGTYPE_p_wxToolBarToolBase swig_types[163]
2630 #define SWIGTYPE_p_wxToolbook swig_types[164]
2631 #define SWIGTYPE_p_wxToolbookEvent swig_types[165]
2632 #define SWIGTYPE_p_wxTreeEvent swig_types[166]
2633 #define SWIGTYPE_p_wxTreeItemId swig_types[167]
2634 #define SWIGTYPE_p_wxTreebook swig_types[168]
2635 #define SWIGTYPE_p_wxTreebookEvent swig_types[169]
2636 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[170]
2637 #define SWIGTYPE_p_wxValidator swig_types[171]
2638 #define SWIGTYPE_p_wxVisualAttributes swig_types[172]
2639 #define SWIGTYPE_p_wxWindow swig_types[173]
2640 #define SWIGTYPE_p_wxWindowBase swig_types[174]
2641 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[175]
2642 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[176]
2643 #define SWIGTYPE_p_wxXPMHandler swig_types[177]
2644 static swig_type_info *swig_types[179];
2645 static swig_module_info swig_module = {swig_types, 178, 0, 0, 0, 0};
2646 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2647 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2648
2649 /* -------- TYPES TABLE (END) -------- */
2650
2651 #if (PY_VERSION_HEX <= 0x02000000)
2652 # if !defined(SWIG_PYTHON_CLASSIC)
2653 # error "This python version requires to use swig with the '-classic' option"
2654 # endif
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodern' option"
2658 #endif
2659 #if (PY_VERSION_HEX <= 0x02020000)
2660 # error "This python version requires to use swig with the '-nomodernargs' option"
2661 #endif
2662 #ifndef METH_O
2663 # error "This python version requires to use swig with the '-nofastunpack' option"
2664 #endif
2665
2666 /*-----------------------------------------------
2667 @(target):= _controls_.so
2668 ------------------------------------------------*/
2669 #define SWIG_init init_controls_
2670
2671 #define SWIG_name "_controls_"
2672
2673 #define SWIGVERSION 0x010329
2674
2675
2676 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2677 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2678
2679
2680 #include <stdexcept>
2681
2682
2683 namespace swig {
2684 class PyObject_ptr {
2685 protected:
2686 PyObject *_obj;
2687
2688 public:
2689 PyObject_ptr() :_obj(0)
2690 {
2691 }
2692
2693 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2694 {
2695 Py_XINCREF(_obj);
2696 }
2697
2698 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2699 {
2700 if (initial_ref) Py_XINCREF(_obj);
2701 }
2702
2703 PyObject_ptr & operator=(const PyObject_ptr& item)
2704 {
2705 Py_XINCREF(item._obj);
2706 Py_XDECREF(_obj);
2707 _obj = item._obj;
2708 return *this;
2709 }
2710
2711 ~PyObject_ptr()
2712 {
2713 Py_XDECREF(_obj);
2714 }
2715
2716 operator PyObject *() const
2717 {
2718 return _obj;
2719 }
2720
2721 PyObject *operator->() const
2722 {
2723 return _obj;
2724 }
2725 };
2726 }
2727
2728
2729 namespace swig {
2730 struct PyObject_var : PyObject_ptr {
2731 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2732
2733 PyObject_var & operator = (PyObject* obj)
2734 {
2735 Py_XDECREF(_obj);
2736 _obj = obj;
2737 return *this;
2738 }
2739 };
2740 }
2741
2742
2743 #include "wx/wxPython/wxPython.h"
2744 #include "wx/wxPython/pyclasses.h"
2745
2746 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2747 static const wxString wxPyEmptyString(wxEmptyString);
2748 static const wxString wxPyControlNameStr(wxControlNameStr);
2749
2750 const wxArrayString wxPyEmptyStringArray;
2751
2752 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2753
2754 #define SWIG_From_long PyInt_FromLong
2755
2756
2757 SWIGINTERNINLINE PyObject *
2758 SWIG_From_int (int value)
2759 {
2760 return SWIG_From_long (value);
2761 }
2762
2763
2764 #include <limits.h>
2765 #ifndef LLONG_MIN
2766 # define LLONG_MIN LONG_LONG_MIN
2767 #endif
2768 #ifndef LLONG_MAX
2769 # define LLONG_MAX LONG_LONG_MAX
2770 #endif
2771 #ifndef ULLONG_MAX
2772 # define ULLONG_MAX ULONG_LONG_MAX
2773 #endif
2774
2775
2776 SWIGINTERN int
2777 SWIG_AsVal_long (PyObject* obj, long* val)
2778 {
2779 if (PyNumber_Check(obj)) {
2780 if (val) *val = PyInt_AsLong(obj);
2781 return SWIG_OK;
2782 }
2783 return SWIG_TypeError;
2784 }
2785
2786
2787 SWIGINTERN int
2788 SWIG_AsVal_int (PyObject * obj, int *val)
2789 {
2790 long v;
2791 int res = SWIG_AsVal_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v < INT_MIN || v > INT_MAX)) {
2794 return SWIG_OverflowError;
2795 } else {
2796 if (val) *val = static_cast< int >(v);
2797 }
2798 }
2799 return res;
2800 }
2801
2802 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2803
2804 SWIGINTERN int
2805 SWIG_AsVal_bool (PyObject *obj, bool *val)
2806 {
2807 if (obj == Py_True) {
2808 if (val) *val = true;
2809 return SWIG_OK;
2810 } else if (obj == Py_False) {
2811 if (val) *val = false;
2812 return SWIG_OK;
2813 } else {
2814 long v = 0;
2815 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2816 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2817 return res;
2818 }
2819 }
2820
2821 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2822 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2823 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2824 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2825 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2826 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2827
2828 #include <wx/checklst.h>
2829
2830 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2831 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2832 if (clientData)
2833 {
2834 wxPyClientData* data = new wxPyClientData(clientData);
2835 self->Insert(item, pos, data);
2836 }
2837 else
2838 self->Insert(item, pos);
2839 }
2840
2841 SWIGINTERN int
2842 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2843 {
2844 long v = 0;
2845 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2846 return SWIG_TypeError;
2847 }
2848 else if (val)
2849 *val = (unsigned long)v;
2850 return SWIG_OK;
2851 }
2852
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2856 {
2857 unsigned long v;
2858 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v > UINT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< unsigned int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2870 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2871 wxArrayInt lst;
2872 self->GetSelections(lst);
2873 PyObject *tup = PyTuple_New(lst.GetCount());
2874 for (size_t i=0; i<lst.GetCount(); i++)
2875 {
2876 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2877 }
2878 wxPyEndBlockThreads(blocked);
2879 return tup;
2880 }
2881 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2882 #ifdef __WXMSW__
2883 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2884 self->GetItem(item)->SetTextColour(c);
2885 #endif
2886 }
2887 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2888 #ifdef __WXMSW__
2889 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2890 self->GetItem(item)->SetBackgroundColour(c);
2891 #endif
2892 }
2893 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2894 #ifdef __WXMSW__
2895 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2896 self->GetItem(item)->SetFont(f);
2897 #endif
2898 }
2899 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2900 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2901 self->AppendText(text);
2902 }
2903 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2904 return self->GetValue().Mid(from, to - from);
2905 }
2906 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2907 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2908 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2909 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2910 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2911
2912 SWIGINTERNINLINE PyObject*
2913 SWIG_From_unsigned_SS_long (unsigned long value)
2914 {
2915 return (value > LONG_MAX) ?
2916 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2917 }
2918
2919
2920 SWIGINTERNINLINE PyObject *
2921 SWIG_From_size_t (size_t value)
2922 {
2923 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2924 }
2925
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_unsigned_SS_int (unsigned int value)
2929 {
2930 return SWIG_From_unsigned_SS_long (value);
2931 }
2932
2933
2934 #include <wx/slider.h>
2935
2936
2937 static const wxString wxPySliderNameStr(wxSliderNameStr);
2938 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2939
2940 #if !wxUSE_TOGGLEBTN
2941 // implement dummy items for platforms that don't have this class
2942
2943 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2944
2945 class wxToggleButton : public wxControl
2946 {
2947 public:
2948 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2949 const wxPoint&, const wxSize&, long,
2950 const wxValidator&, const wxString&)
2951 { wxPyRaiseNotImplemented(); }
2952
2953 wxToggleButton()
2954 { wxPyRaiseNotImplemented(); }
2955 };
2956 #endif
2957
2958 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2959
2960 SWIGINTERNINLINE int
2961 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2962 {
2963 unsigned long v;
2964 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2965 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2966 return res;
2967 }
2968
2969 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2970 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2971 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2972 if (udata) {
2973 Py_INCREF(udata->m_obj);
2974 return udata->m_obj;
2975 } else {
2976 Py_INCREF(Py_None);
2977 return Py_None;
2978 }
2979 }
2980 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2981 self->SetClientData(new wxPyUserData(clientData));
2982 }
2983 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){
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
2990 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){
2991 wxPyUserData* udata = NULL;
2992 if (clientData && clientData != Py_None)
2993 udata = new wxPyUserData(clientData);
2994 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2995 shortHelp, longHelp, udata);
2996 }
2997 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2998 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2999 if (udata) {
3000 Py_INCREF(udata->m_obj);
3001 return udata->m_obj;
3002 } else {
3003 Py_INCREF(Py_None);
3004 return Py_None;
3005 }
3006 }
3007 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3008 self->SetToolClientData(id, new wxPyUserData(clientData));
3009 }
3010
3011 #include <wx/listctrl.h>
3012
3013 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3014 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3015 // Python aware sorting function for wxPyListCtrl
3016 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3017 int retval = 0;
3018 PyObject* func = (PyObject*)funcPtr;
3019 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3020
3021 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3022 PyObject* result = PyEval_CallObject(func, args);
3023 Py_DECREF(args);
3024 if (result) {
3025 retval = PyInt_AsLong(result);
3026 Py_DECREF(result);
3027 }
3028
3029 wxPyEndBlockThreads(blocked);
3030 return retval;
3031 }
3032
3033 // C++ Version of a Python aware class
3034 class wxPyListCtrl : public wxListCtrl {
3035 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3036 public:
3037 wxPyListCtrl() : wxListCtrl() {}
3038 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3039 const wxPoint& pos,
3040 const wxSize& size,
3041 long style,
3042 const wxValidator& validator,
3043 const wxString& name) :
3044 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3045
3046 bool Create(wxWindow* parent, wxWindowID id,
3047 const wxPoint& pos,
3048 const wxSize& size,
3049 long style,
3050 const wxValidator& validator,
3051 const wxString& name) {
3052 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3053 }
3054
3055 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3056 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3057
3058 // use the virtual version to avoid a confusing assert in the base class
3059 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3060 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3061
3062 PYPRIVATE;
3063 };
3064
3065 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3066
3067 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3068 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3069 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3070 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3071
3072
3073 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3074 wxListItem item;
3075 item.SetMask( wxLIST_MASK_STATE |
3076 wxLIST_MASK_TEXT |
3077 wxLIST_MASK_IMAGE |
3078 wxLIST_MASK_DATA |
3079 wxLIST_SET_ITEM |
3080 wxLIST_MASK_WIDTH |
3081 wxLIST_MASK_FORMAT
3082 );
3083 if (self->GetColumn(col, item))
3084 return new wxListItem(item);
3085 else
3086 return NULL;
3087 }
3088 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3089 wxListItem* info = new wxListItem;
3090 info->m_itemId = itemId;
3091 info->m_col = col;
3092 info->m_mask = 0xFFFF;
3093 self->GetItem(*info);
3094 return info;
3095 }
3096 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3097 wxPoint pos;
3098 self->GetItemPosition(item, pos);
3099 return pos;
3100 }
3101 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3102 wxRect rect;
3103 self->GetItemRect(item, rect, code);
3104 return rect;
3105 }
3106 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3107 if (!PyCallable_Check(func))
3108 return false;
3109 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3110 }
3111 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3112
3113 return self;
3114
3115
3116
3117 }
3118
3119 #include <wx/treectrl.h>
3120 #include "wx/wxPython/pytree.h"
3121
3122 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3123 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3124 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3125 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3126
3127 static wxTreeItemId wxNullTreeItemId;
3128
3129 // C++ version of Python aware wxTreeCtrl
3130 class wxPyTreeCtrl : public wxTreeCtrl {
3131 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3132 public:
3133 wxPyTreeCtrl() : wxTreeCtrl() {}
3134 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3135 const wxPoint& pos,
3136 const wxSize& size,
3137 long style,
3138 const wxValidator& validator,
3139 const wxString& name) :
3140 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3141
3142 bool Create(wxWindow *parent, wxWindowID id,
3143 const wxPoint& pos,
3144 const wxSize& size,
3145 long style,
3146 const wxValidator& validator,
3147 const wxString& name) {
3148 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3149 }
3150
3151
3152 int OnCompareItems(const wxTreeItemId& item1,
3153 const wxTreeItemId& item2) {
3154 int rval = 0;
3155 bool found;
3156 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3157 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3158 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3159 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3160 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3161 Py_DECREF(o1);
3162 Py_DECREF(o2);
3163 }
3164 wxPyEndBlockThreads(blocked);
3165 if (! found)
3166 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3167 return rval;
3168 }
3169 PYPRIVATE;
3170 };
3171
3172 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3173
3174
3175 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData();
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 }
3182 return data;
3183 }
3184 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3185 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3186 if (data == NULL) {
3187 data = new wxPyTreeItemData();
3188 data->SetId(item); // set the id
3189 self->SetItemData(item, data);
3190 }
3191 return data->GetData();
3192 }
3193 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 }
3197 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3198 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3199 if (data == NULL) {
3200 data = new wxPyTreeItemData(obj);
3201 data->SetId(item); // set the id
3202 self->SetItemData(item, data);
3203 } else
3204 data->SetData(obj);
3205 }
3206 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3208 PyObject* rval = PyList_New(0);
3209 wxArrayTreeItemIds array;
3210 size_t num, x;
3211 num = self->GetSelections(array);
3212 for (x=0; x < num; x++) {
3213 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3214 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3215 PyList_Append(rval, item);
3216 Py_DECREF(item);
3217 }
3218 wxPyEndBlockThreads(blocked);
3219 return rval;
3220 }
3221 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3222 void* cookie = 0;
3223 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3225 PyObject* tup = PyTuple_New(2);
3226 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3227 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3228 wxPyEndBlockThreads(blocked);
3229 return tup;
3230 }
3231 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3232 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3233 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3234 PyObject* tup = PyTuple_New(2);
3235 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3236 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3237 wxPyEndBlockThreads(blocked);
3238 return tup;
3239 }
3240 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3241 wxRect rect;
3242 if (self->GetBoundingRect(item, rect, textOnly)) {
3243 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3244 wxRect* r = new wxRect(rect);
3245 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3246 wxPyEndBlockThreads(blocked);
3247 return val;
3248 }
3249 else
3250 RETURN_NONE();
3251 }
3252 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3253
3254 SWIGINTERNINLINE PyObject*
3255 SWIG_From_bool (bool value)
3256 {
3257 return PyBool_FromLong(value ? 1 : 0);
3258 }
3259
3260 // C++ version of Python aware wxControl
3261 class wxPyControl : public wxControl
3262 {
3263 DECLARE_DYNAMIC_CLASS(wxPyControl)
3264 public:
3265 wxPyControl() : wxControl() {}
3266 wxPyControl(wxWindow* parent, const wxWindowID id,
3267 const wxPoint& pos = wxDefaultPosition,
3268 const wxSize& size = wxDefaultSize,
3269 long style = 0,
3270 const wxValidator& validator=wxDefaultValidator,
3271 const wxString& name = wxPyControlNameStr)
3272 : wxControl(parent, id, pos, size, style, validator, name) {}
3273
3274
3275 bool DoEraseBackground(wxDC* dc) {
3276 #ifdef __WXMSW__
3277 return wxWindow::DoEraseBackground(dc->GetHDC());
3278 #else
3279 dc->SetBackground(wxBrush(GetBackgroundColour()));
3280 dc->Clear();
3281 return true;
3282 #endif
3283 }
3284
3285 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3286 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3287 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3288 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3289
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3291 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3293
3294 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3295 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3296
3297 DEC_PYCALLBACK__(InitDialog);
3298 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3299 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3300 DEC_PYCALLBACK_BOOL_(Validate);
3301
3302 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3303 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3304 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3305
3306 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3307 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3308
3309 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3310 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3311
3312 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3313
3314 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3315
3316 PYPRIVATE;
3317 };
3318
3319 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3320
3321 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3322 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3323 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3324 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3325
3326 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3327 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3328 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3329
3330 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3331 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3332
3333 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3334 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3335 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3336 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3337
3338 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3339 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3340 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3341
3342 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3343 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3344
3345 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3346 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3347
3348 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3349
3350 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3351
3352
3353
3354 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3355
3356 #include <wx/generic/dragimgg.h>
3357
3358 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3359 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3360 wxDateTime rv;
3361 self->GetRange(&rv, NULL);
3362 return rv;
3363 }
3364 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3365 wxDateTime rv;
3366 self->GetRange(NULL, &rv);
3367 return rv;
3368 }
3369 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3370 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3371 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3372 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3373 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3374 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3375 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3376 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3377
3378 #include <wx/collpane.h>
3379
3380 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3381 #ifdef __cplusplus
3382 extern "C" {
3383 #endif
3384 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3385 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3386 return 1;
3387 }
3388
3389
3390 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3391 PyObject *pyobj = 0;
3392
3393 {
3394 #if wxUSE_UNICODE
3395 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3396 #else
3397 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3398 #endif
3399 }
3400 return pyobj;
3401 }
3402
3403
3404 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3405 PyObject *resultobj = 0;
3406 wxWindow *arg1 = (wxWindow *) 0 ;
3407 int arg2 = (int) -1 ;
3408 wxString const &arg3_defvalue = wxPyEmptyString ;
3409 wxString *arg3 = (wxString *) &arg3_defvalue ;
3410 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3411 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3412 wxSize const &arg5_defvalue = wxDefaultSize ;
3413 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3414 long arg6 = (long) 0 ;
3415 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3416 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3417 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3418 wxString *arg8 = (wxString *) &arg8_defvalue ;
3419 wxButton *result = 0 ;
3420 void *argp1 = 0 ;
3421 int res1 = 0 ;
3422 int val2 ;
3423 int ecode2 = 0 ;
3424 bool temp3 = false ;
3425 wxPoint temp4 ;
3426 wxSize temp5 ;
3427 long val6 ;
3428 int ecode6 = 0 ;
3429 void *argp7 = 0 ;
3430 int res7 = 0 ;
3431 bool temp8 = false ;
3432 PyObject * obj0 = 0 ;
3433 PyObject * obj1 = 0 ;
3434 PyObject * obj2 = 0 ;
3435 PyObject * obj3 = 0 ;
3436 PyObject * obj4 = 0 ;
3437 PyObject * obj5 = 0 ;
3438 PyObject * obj6 = 0 ;
3439 PyObject * obj7 = 0 ;
3440 char * kwnames[] = {
3441 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3442 };
3443
3444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3446 if (!SWIG_IsOK(res1)) {
3447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3448 }
3449 arg1 = reinterpret_cast< wxWindow * >(argp1);
3450 if (obj1) {
3451 ecode2 = SWIG_AsVal_int(obj1, &val2);
3452 if (!SWIG_IsOK(ecode2)) {
3453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3454 }
3455 arg2 = static_cast< int >(val2);
3456 }
3457 if (obj2) {
3458 {
3459 arg3 = wxString_in_helper(obj2);
3460 if (arg3 == NULL) SWIG_fail;
3461 temp3 = true;
3462 }
3463 }
3464 if (obj3) {
3465 {
3466 arg4 = &temp4;
3467 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3468 }
3469 }
3470 if (obj4) {
3471 {
3472 arg5 = &temp5;
3473 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3474 }
3475 }
3476 if (obj5) {
3477 ecode6 = SWIG_AsVal_long(obj5, &val6);
3478 if (!SWIG_IsOK(ecode6)) {
3479 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3480 }
3481 arg6 = static_cast< long >(val6);
3482 }
3483 if (obj6) {
3484 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3485 if (!SWIG_IsOK(res7)) {
3486 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3487 }
3488 if (!argp7) {
3489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3490 }
3491 arg7 = reinterpret_cast< wxValidator * >(argp7);
3492 }
3493 if (obj7) {
3494 {
3495 arg8 = wxString_in_helper(obj7);
3496 if (arg8 == NULL) SWIG_fail;
3497 temp8 = true;
3498 }
3499 }
3500 {
3501 if (!wxPyCheckForApp()) SWIG_fail;
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3508 {
3509 if (temp3)
3510 delete arg3;
3511 }
3512 {
3513 if (temp8)
3514 delete arg8;
3515 }
3516 return resultobj;
3517 fail:
3518 {
3519 if (temp3)
3520 delete arg3;
3521 }
3522 {
3523 if (temp8)
3524 delete arg8;
3525 }
3526 return NULL;
3527 }
3528
3529
3530 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3531 PyObject *resultobj = 0;
3532 wxButton *result = 0 ;
3533
3534 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3535 {
3536 if (!wxPyCheckForApp()) SWIG_fail;
3537 PyThreadState* __tstate = wxPyBeginAllowThreads();
3538 result = (wxButton *)new wxButton();
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3543 return resultobj;
3544 fail:
3545 return NULL;
3546 }
3547
3548
3549 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj = 0;
3551 wxButton *arg1 = (wxButton *) 0 ;
3552 wxWindow *arg2 = (wxWindow *) 0 ;
3553 int arg3 = (int) -1 ;
3554 wxString const &arg4_defvalue = wxPyEmptyString ;
3555 wxString *arg4 = (wxString *) &arg4_defvalue ;
3556 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3557 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3558 wxSize const &arg6_defvalue = wxDefaultSize ;
3559 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3560 long arg7 = (long) 0 ;
3561 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3562 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3563 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3564 wxString *arg9 = (wxString *) &arg9_defvalue ;
3565 bool result;
3566 void *argp1 = 0 ;
3567 int res1 = 0 ;
3568 void *argp2 = 0 ;
3569 int res2 = 0 ;
3570 int val3 ;
3571 int ecode3 = 0 ;
3572 bool temp4 = false ;
3573 wxPoint temp5 ;
3574 wxSize temp6 ;
3575 long val7 ;
3576 int ecode7 = 0 ;
3577 void *argp8 = 0 ;
3578 int res8 = 0 ;
3579 bool temp9 = false ;
3580 PyObject * obj0 = 0 ;
3581 PyObject * obj1 = 0 ;
3582 PyObject * obj2 = 0 ;
3583 PyObject * obj3 = 0 ;
3584 PyObject * obj4 = 0 ;
3585 PyObject * obj5 = 0 ;
3586 PyObject * obj6 = 0 ;
3587 PyObject * obj7 = 0 ;
3588 PyObject * obj8 = 0 ;
3589 char * kwnames[] = {
3590 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3591 };
3592
3593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3595 if (!SWIG_IsOK(res1)) {
3596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3597 }
3598 arg1 = reinterpret_cast< wxButton * >(argp1);
3599 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3600 if (!SWIG_IsOK(res2)) {
3601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3602 }
3603 arg2 = reinterpret_cast< wxWindow * >(argp2);
3604 if (obj2) {
3605 ecode3 = SWIG_AsVal_int(obj2, &val3);
3606 if (!SWIG_IsOK(ecode3)) {
3607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3608 }
3609 arg3 = static_cast< int >(val3);
3610 }
3611 if (obj3) {
3612 {
3613 arg4 = wxString_in_helper(obj3);
3614 if (arg4 == NULL) SWIG_fail;
3615 temp4 = true;
3616 }
3617 }
3618 if (obj4) {
3619 {
3620 arg5 = &temp5;
3621 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3622 }
3623 }
3624 if (obj5) {
3625 {
3626 arg6 = &temp6;
3627 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3628 }
3629 }
3630 if (obj6) {
3631 ecode7 = SWIG_AsVal_long(obj6, &val7);
3632 if (!SWIG_IsOK(ecode7)) {
3633 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3634 }
3635 arg7 = static_cast< long >(val7);
3636 }
3637 if (obj7) {
3638 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3639 if (!SWIG_IsOK(res8)) {
3640 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3641 }
3642 if (!argp8) {
3643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3644 }
3645 arg8 = reinterpret_cast< wxValidator * >(argp8);
3646 }
3647 if (obj8) {
3648 {
3649 arg9 = wxString_in_helper(obj8);
3650 if (arg9 == NULL) SWIG_fail;
3651 temp9 = true;
3652 }
3653 }
3654 {
3655 PyThreadState* __tstate = wxPyBeginAllowThreads();
3656 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3657 wxPyEndAllowThreads(__tstate);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 }
3660 {
3661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3662 }
3663 {
3664 if (temp4)
3665 delete arg4;
3666 }
3667 {
3668 if (temp9)
3669 delete arg9;
3670 }
3671 return resultobj;
3672 fail:
3673 {
3674 if (temp4)
3675 delete arg4;
3676 }
3677 {
3678 if (temp9)
3679 delete arg9;
3680 }
3681 return NULL;
3682 }
3683
3684
3685 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3686 PyObject *resultobj = 0;
3687 wxButton *arg1 = (wxButton *) 0 ;
3688 void *argp1 = 0 ;
3689 int res1 = 0 ;
3690 PyObject *swig_obj[1] ;
3691
3692 if (!args) SWIG_fail;
3693 swig_obj[0] = args;
3694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3695 if (!SWIG_IsOK(res1)) {
3696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3697 }
3698 arg1 = reinterpret_cast< wxButton * >(argp1);
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 (arg1)->SetDefault();
3702 wxPyEndAllowThreads(__tstate);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 }
3705 resultobj = SWIG_Py_Void();
3706 return resultobj;
3707 fail:
3708 return NULL;
3709 }
3710
3711
3712 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3713 PyObject *resultobj = 0;
3714 wxSize result;
3715
3716 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3717 {
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 result = wxButton::GetDefaultSize();
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3724 return resultobj;
3725 fail:
3726 return NULL;
3727 }
3728
3729
3730 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3731 PyObject *resultobj = 0;
3732 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3733 SwigValueWrapper<wxVisualAttributes > result;
3734 int val1 ;
3735 int ecode1 = 0 ;
3736 PyObject * obj0 = 0 ;
3737 char * kwnames[] = {
3738 (char *) "variant", NULL
3739 };
3740
3741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3742 if (obj0) {
3743 ecode1 = SWIG_AsVal_int(obj0, &val1);
3744 if (!SWIG_IsOK(ecode1)) {
3745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3746 }
3747 arg1 = static_cast< wxWindowVariant >(val1);
3748 }
3749 {
3750 if (!wxPyCheckForApp()) SWIG_fail;
3751 PyThreadState* __tstate = wxPyBeginAllowThreads();
3752 result = wxButton::GetClassDefaultAttributes(arg1);
3753 wxPyEndAllowThreads(__tstate);
3754 if (PyErr_Occurred()) SWIG_fail;
3755 }
3756 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3757 return resultobj;
3758 fail:
3759 return NULL;
3760 }
3761
3762
3763 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3764 PyObject *obj;
3765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3766 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3767 return SWIG_Py_Void();
3768 }
3769
3770 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3771 return SWIG_Python_InitShadowInstance(args);
3772 }
3773
3774 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj = 0;
3776 wxWindow *arg1 = (wxWindow *) 0 ;
3777 int arg2 = (int) -1 ;
3778 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3779 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3780 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3781 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3782 wxSize const &arg5_defvalue = wxDefaultSize ;
3783 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3784 long arg6 = (long) wxBU_AUTODRAW ;
3785 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3786 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3787 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3788 wxString *arg8 = (wxString *) &arg8_defvalue ;
3789 wxBitmapButton *result = 0 ;
3790 void *argp1 = 0 ;
3791 int res1 = 0 ;
3792 int val2 ;
3793 int ecode2 = 0 ;
3794 void *argp3 = 0 ;
3795 int res3 = 0 ;
3796 wxPoint temp4 ;
3797 wxSize temp5 ;
3798 long val6 ;
3799 int ecode6 = 0 ;
3800 void *argp7 = 0 ;
3801 int res7 = 0 ;
3802 bool temp8 = false ;
3803 PyObject * obj0 = 0 ;
3804 PyObject * obj1 = 0 ;
3805 PyObject * obj2 = 0 ;
3806 PyObject * obj3 = 0 ;
3807 PyObject * obj4 = 0 ;
3808 PyObject * obj5 = 0 ;
3809 PyObject * obj6 = 0 ;
3810 PyObject * obj7 = 0 ;
3811 char * kwnames[] = {
3812 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3813 };
3814
3815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3817 if (!SWIG_IsOK(res1)) {
3818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3819 }
3820 arg1 = reinterpret_cast< wxWindow * >(argp1);
3821 if (obj1) {
3822 ecode2 = SWIG_AsVal_int(obj1, &val2);
3823 if (!SWIG_IsOK(ecode2)) {
3824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3825 }
3826 arg2 = static_cast< int >(val2);
3827 }
3828 if (obj2) {
3829 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3830 if (!SWIG_IsOK(res3)) {
3831 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3832 }
3833 if (!argp3) {
3834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3835 }
3836 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3837 }
3838 if (obj3) {
3839 {
3840 arg4 = &temp4;
3841 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3842 }
3843 }
3844 if (obj4) {
3845 {
3846 arg5 = &temp5;
3847 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3848 }
3849 }
3850 if (obj5) {
3851 ecode6 = SWIG_AsVal_long(obj5, &val6);
3852 if (!SWIG_IsOK(ecode6)) {
3853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3854 }
3855 arg6 = static_cast< long >(val6);
3856 }
3857 if (obj6) {
3858 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3859 if (!SWIG_IsOK(res7)) {
3860 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3861 }
3862 if (!argp7) {
3863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3864 }
3865 arg7 = reinterpret_cast< wxValidator * >(argp7);
3866 }
3867 if (obj7) {
3868 {
3869 arg8 = wxString_in_helper(obj7);
3870 if (arg8 == NULL) SWIG_fail;
3871 temp8 = true;
3872 }
3873 }
3874 {
3875 if (!wxPyCheckForApp()) SWIG_fail;
3876 PyThreadState* __tstate = wxPyBeginAllowThreads();
3877 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return resultobj;
3887 fail:
3888 {
3889 if (temp8)
3890 delete arg8;
3891 }
3892 return NULL;
3893 }
3894
3895
3896 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3897 PyObject *resultobj = 0;
3898 wxBitmapButton *result = 0 ;
3899
3900 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3901 {
3902 if (!wxPyCheckForApp()) SWIG_fail;
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 result = (wxBitmapButton *)new wxBitmapButton();
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3909 return resultobj;
3910 fail:
3911 return NULL;
3912 }
3913
3914
3915 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj = 0;
3917 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3918 wxWindow *arg2 = (wxWindow *) 0 ;
3919 int arg3 = (int) -1 ;
3920 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3921 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3922 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3923 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3924 wxSize const &arg6_defvalue = wxDefaultSize ;
3925 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3926 long arg7 = (long) wxBU_AUTODRAW ;
3927 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3928 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3929 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3930 wxString *arg9 = (wxString *) &arg9_defvalue ;
3931 bool result;
3932 void *argp1 = 0 ;
3933 int res1 = 0 ;
3934 void *argp2 = 0 ;
3935 int res2 = 0 ;
3936 int val3 ;
3937 int ecode3 = 0 ;
3938 void *argp4 = 0 ;
3939 int res4 = 0 ;
3940 wxPoint temp5 ;
3941 wxSize temp6 ;
3942 long val7 ;
3943 int ecode7 = 0 ;
3944 void *argp8 = 0 ;
3945 int res8 = 0 ;
3946 bool temp9 = false ;
3947 PyObject * obj0 = 0 ;
3948 PyObject * obj1 = 0 ;
3949 PyObject * obj2 = 0 ;
3950 PyObject * obj3 = 0 ;
3951 PyObject * obj4 = 0 ;
3952 PyObject * obj5 = 0 ;
3953 PyObject * obj6 = 0 ;
3954 PyObject * obj7 = 0 ;
3955 PyObject * obj8 = 0 ;
3956 char * kwnames[] = {
3957 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3958 };
3959
3960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3962 if (!SWIG_IsOK(res1)) {
3963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3964 }
3965 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3967 if (!SWIG_IsOK(res2)) {
3968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3969 }
3970 arg2 = reinterpret_cast< wxWindow * >(argp2);
3971 if (obj2) {
3972 ecode3 = SWIG_AsVal_int(obj2, &val3);
3973 if (!SWIG_IsOK(ecode3)) {
3974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3975 }
3976 arg3 = static_cast< int >(val3);
3977 }
3978 if (obj3) {
3979 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3980 if (!SWIG_IsOK(res4)) {
3981 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3982 }
3983 if (!argp4) {
3984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3985 }
3986 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3987 }
3988 if (obj4) {
3989 {
3990 arg5 = &temp5;
3991 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3992 }
3993 }
3994 if (obj5) {
3995 {
3996 arg6 = &temp6;
3997 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3998 }
3999 }
4000 if (obj6) {
4001 ecode7 = SWIG_AsVal_long(obj6, &val7);
4002 if (!SWIG_IsOK(ecode7)) {
4003 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4004 }
4005 arg7 = static_cast< long >(val7);
4006 }
4007 if (obj7) {
4008 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4009 if (!SWIG_IsOK(res8)) {
4010 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4011 }
4012 if (!argp8) {
4013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4014 }
4015 arg8 = reinterpret_cast< wxValidator * >(argp8);
4016 }
4017 if (obj8) {
4018 {
4019 arg9 = wxString_in_helper(obj8);
4020 if (arg9 == NULL) SWIG_fail;
4021 temp9 = true;
4022 }
4023 }
4024 {
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4027 wxPyEndAllowThreads(__tstate);
4028 if (PyErr_Occurred()) SWIG_fail;
4029 }
4030 {
4031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4032 }
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return resultobj;
4038 fail:
4039 {
4040 if (temp9)
4041 delete arg9;
4042 }
4043 return NULL;
4044 }
4045
4046
4047 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4048 PyObject *resultobj = 0;
4049 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4050 wxBitmap result;
4051 void *argp1 = 0 ;
4052 int res1 = 0 ;
4053 PyObject *swig_obj[1] ;
4054
4055 if (!args) SWIG_fail;
4056 swig_obj[0] = args;
4057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4058 if (!SWIG_IsOK(res1)) {
4059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4060 }
4061 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4062 {
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 result = (arg1)->GetBitmapLabel();
4065 wxPyEndAllowThreads(__tstate);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 }
4068 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4069 return resultobj;
4070 fail:
4071 return NULL;
4072 }
4073
4074
4075 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4076 PyObject *resultobj = 0;
4077 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4078 wxBitmap result;
4079 void *argp1 = 0 ;
4080 int res1 = 0 ;
4081 PyObject *swig_obj[1] ;
4082
4083 if (!args) SWIG_fail;
4084 swig_obj[0] = args;
4085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4086 if (!SWIG_IsOK(res1)) {
4087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4088 }
4089 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (arg1)->GetBitmapDisabled();
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4097 return resultobj;
4098 fail:
4099 return NULL;
4100 }
4101
4102
4103 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4104 PyObject *resultobj = 0;
4105 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4106 wxBitmap result;
4107 void *argp1 = 0 ;
4108 int res1 = 0 ;
4109 PyObject *swig_obj[1] ;
4110
4111 if (!args) SWIG_fail;
4112 swig_obj[0] = args;
4113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4114 if (!SWIG_IsOK(res1)) {
4115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4116 }
4117 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 result = (arg1)->GetBitmapFocus();
4121 wxPyEndAllowThreads(__tstate);
4122 if (PyErr_Occurred()) SWIG_fail;
4123 }
4124 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4125 return resultobj;
4126 fail:
4127 return NULL;
4128 }
4129
4130
4131 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4132 PyObject *resultobj = 0;
4133 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4134 wxBitmap result;
4135 void *argp1 = 0 ;
4136 int res1 = 0 ;
4137 PyObject *swig_obj[1] ;
4138
4139 if (!args) SWIG_fail;
4140 swig_obj[0] = args;
4141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4142 if (!SWIG_IsOK(res1)) {
4143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4144 }
4145 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (arg1)->GetBitmapSelected();
4149 wxPyEndAllowThreads(__tstate);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 }
4152 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4153 return resultobj;
4154 fail:
4155 return NULL;
4156 }
4157
4158
4159 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4160 PyObject *resultobj = 0;
4161 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4162 wxBitmap result;
4163 void *argp1 = 0 ;
4164 int res1 = 0 ;
4165 PyObject *swig_obj[1] ;
4166
4167 if (!args) SWIG_fail;
4168 swig_obj[0] = args;
4169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4170 if (!SWIG_IsOK(res1)) {
4171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4172 }
4173 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4174 {
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 result = (arg1)->GetBitmapHover();
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj = 0;
4189 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4190 wxBitmap *arg2 = 0 ;
4191 void *argp1 = 0 ;
4192 int res1 = 0 ;
4193 void *argp2 = 0 ;
4194 int res2 = 0 ;
4195 PyObject * obj0 = 0 ;
4196 PyObject * obj1 = 0 ;
4197 char * kwnames[] = {
4198 (char *) "self",(char *) "bitmap", NULL
4199 };
4200
4201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4203 if (!SWIG_IsOK(res1)) {
4204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4205 }
4206 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4208 if (!SWIG_IsOK(res2)) {
4209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4210 }
4211 if (!argp2) {
4212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4213 }
4214 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4218 wxPyEndAllowThreads(__tstate);
4219 if (PyErr_Occurred()) SWIG_fail;
4220 }
4221 resultobj = SWIG_Py_Void();
4222 return resultobj;
4223 fail:
4224 return NULL;
4225 }
4226
4227
4228 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4229 PyObject *resultobj = 0;
4230 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4231 wxBitmap *arg2 = 0 ;
4232 void *argp1 = 0 ;
4233 int res1 = 0 ;
4234 void *argp2 = 0 ;
4235 int res2 = 0 ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char * kwnames[] = {
4239 (char *) "self",(char *) "bitmap", NULL
4240 };
4241
4242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4246 }
4247 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4249 if (!SWIG_IsOK(res2)) {
4250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4251 }
4252 if (!argp2) {
4253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4254 }
4255 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 resultobj = SWIG_Py_Void();
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj = 0;
4271 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4272 wxBitmap *arg2 = 0 ;
4273 void *argp1 = 0 ;
4274 int res1 = 0 ;
4275 void *argp2 = 0 ;
4276 int res2 = 0 ;
4277 PyObject * obj0 = 0 ;
4278 PyObject * obj1 = 0 ;
4279 char * kwnames[] = {
4280 (char *) "self",(char *) "bitmap", NULL
4281 };
4282
4283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4285 if (!SWIG_IsOK(res1)) {
4286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4287 }
4288 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4290 if (!SWIG_IsOK(res2)) {
4291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4292 }
4293 if (!argp2) {
4294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4295 }
4296 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 resultobj = SWIG_Py_Void();
4304 return resultobj;
4305 fail:
4306 return NULL;
4307 }
4308
4309
4310 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4311 PyObject *resultobj = 0;
4312 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4313 wxBitmap *arg2 = 0 ;
4314 void *argp1 = 0 ;
4315 int res1 = 0 ;
4316 void *argp2 = 0 ;
4317 int res2 = 0 ;
4318 PyObject * obj0 = 0 ;
4319 PyObject * obj1 = 0 ;
4320 char * kwnames[] = {
4321 (char *) "self",(char *) "bitmap", NULL
4322 };
4323
4324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4326 if (!SWIG_IsOK(res1)) {
4327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4328 }
4329 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4331 if (!SWIG_IsOK(res2)) {
4332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4333 }
4334 if (!argp2) {
4335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4336 }
4337 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4338 {
4339 PyThreadState* __tstate = wxPyBeginAllowThreads();
4340 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4341 wxPyEndAllowThreads(__tstate);
4342 if (PyErr_Occurred()) SWIG_fail;
4343 }
4344 resultobj = SWIG_Py_Void();
4345 return resultobj;
4346 fail:
4347 return NULL;
4348 }
4349
4350
4351 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4352 PyObject *resultobj = 0;
4353 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4354 wxBitmap *arg2 = 0 ;
4355 void *argp1 = 0 ;
4356 int res1 = 0 ;
4357 void *argp2 = 0 ;
4358 int res2 = 0 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 char * kwnames[] = {
4362 (char *) "self",(char *) "hover", NULL
4363 };
4364
4365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4367 if (!SWIG_IsOK(res1)) {
4368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4369 }
4370 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4372 if (!SWIG_IsOK(res2)) {
4373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4374 }
4375 if (!argp2) {
4376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4377 }
4378 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4382 wxPyEndAllowThreads(__tstate);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 resultobj = SWIG_Py_Void();
4386 return resultobj;
4387 fail:
4388 return NULL;
4389 }
4390
4391
4392 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4393 PyObject *resultobj = 0;
4394 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4395 int arg2 ;
4396 int arg3 ;
4397 void *argp1 = 0 ;
4398 int res1 = 0 ;
4399 int val2 ;
4400 int ecode2 = 0 ;
4401 int val3 ;
4402 int ecode3 = 0 ;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 PyObject * obj2 = 0 ;
4406 char * kwnames[] = {
4407 (char *) "self",(char *) "x",(char *) "y", NULL
4408 };
4409
4410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4412 if (!SWIG_IsOK(res1)) {
4413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4414 }
4415 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4416 ecode2 = SWIG_AsVal_int(obj1, &val2);
4417 if (!SWIG_IsOK(ecode2)) {
4418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4419 }
4420 arg2 = static_cast< int >(val2);
4421 ecode3 = SWIG_AsVal_int(obj2, &val3);
4422 if (!SWIG_IsOK(ecode3)) {
4423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4424 }
4425 arg3 = static_cast< int >(val3);
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 (arg1)->SetMargins(arg2,arg3);
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) SWIG_fail;
4431 }
4432 resultobj = SWIG_Py_Void();
4433 return resultobj;
4434 fail:
4435 return NULL;
4436 }
4437
4438
4439 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4440 PyObject *resultobj = 0;
4441 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4442 int result;
4443 void *argp1 = 0 ;
4444 int res1 = 0 ;
4445 PyObject *swig_obj[1] ;
4446
4447 if (!args) SWIG_fail;
4448 swig_obj[0] = args;
4449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4450 if (!SWIG_IsOK(res1)) {
4451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4452 }
4453 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4454 {
4455 PyThreadState* __tstate = wxPyBeginAllowThreads();
4456 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4457 wxPyEndAllowThreads(__tstate);
4458 if (PyErr_Occurred()) SWIG_fail;
4459 }
4460 resultobj = SWIG_From_int(static_cast< int >(result));
4461 return resultobj;
4462 fail:
4463 return NULL;
4464 }
4465
4466
4467 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4468 PyObject *resultobj = 0;
4469 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4470 int result;
4471 void *argp1 = 0 ;
4472 int res1 = 0 ;
4473 PyObject *swig_obj[1] ;
4474
4475 if (!args) SWIG_fail;
4476 swig_obj[0] = args;
4477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4478 if (!SWIG_IsOK(res1)) {
4479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4480 }
4481 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4482 {
4483 PyThreadState* __tstate = wxPyBeginAllowThreads();
4484 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4485 wxPyEndAllowThreads(__tstate);
4486 if (PyErr_Occurred()) SWIG_fail;
4487 }
4488 resultobj = SWIG_From_int(static_cast< int >(result));
4489 return resultobj;
4490 fail:
4491 return NULL;
4492 }
4493
4494
4495 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4496 PyObject *obj;
4497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4498 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4499 return SWIG_Py_Void();
4500 }
4501
4502 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4503 return SWIG_Python_InitShadowInstance(args);
4504 }
4505
4506 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4507 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4508 return 1;
4509 }
4510
4511
4512 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4513 PyObject *pyobj = 0;
4514
4515 {
4516 #if wxUSE_UNICODE
4517 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4518 #else
4519 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4520 #endif
4521 }
4522 return pyobj;
4523 }
4524
4525
4526 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj = 0;
4528 wxWindow *arg1 = (wxWindow *) 0 ;
4529 int arg2 = (int) -1 ;
4530 wxString const &arg3_defvalue = wxPyEmptyString ;
4531 wxString *arg3 = (wxString *) &arg3_defvalue ;
4532 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4533 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4534 wxSize const &arg5_defvalue = wxDefaultSize ;
4535 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4536 long arg6 = (long) 0 ;
4537 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4538 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4539 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4540 wxString *arg8 = (wxString *) &arg8_defvalue ;
4541 wxCheckBox *result = 0 ;
4542 void *argp1 = 0 ;
4543 int res1 = 0 ;
4544 int val2 ;
4545 int ecode2 = 0 ;
4546 bool temp3 = false ;
4547 wxPoint temp4 ;
4548 wxSize temp5 ;
4549 long val6 ;
4550 int ecode6 = 0 ;
4551 void *argp7 = 0 ;
4552 int res7 = 0 ;
4553 bool temp8 = false ;
4554 PyObject * obj0 = 0 ;
4555 PyObject * obj1 = 0 ;
4556 PyObject * obj2 = 0 ;
4557 PyObject * obj3 = 0 ;
4558 PyObject * obj4 = 0 ;
4559 PyObject * obj5 = 0 ;
4560 PyObject * obj6 = 0 ;
4561 PyObject * obj7 = 0 ;
4562 char * kwnames[] = {
4563 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4564 };
4565
4566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4568 if (!SWIG_IsOK(res1)) {
4569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4570 }
4571 arg1 = reinterpret_cast< wxWindow * >(argp1);
4572 if (obj1) {
4573 ecode2 = SWIG_AsVal_int(obj1, &val2);
4574 if (!SWIG_IsOK(ecode2)) {
4575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4576 }
4577 arg2 = static_cast< int >(val2);
4578 }
4579 if (obj2) {
4580 {
4581 arg3 = wxString_in_helper(obj2);
4582 if (arg3 == NULL) SWIG_fail;
4583 temp3 = true;
4584 }
4585 }
4586 if (obj3) {
4587 {
4588 arg4 = &temp4;
4589 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4590 }
4591 }
4592 if (obj4) {
4593 {
4594 arg5 = &temp5;
4595 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4596 }
4597 }
4598 if (obj5) {
4599 ecode6 = SWIG_AsVal_long(obj5, &val6);
4600 if (!SWIG_IsOK(ecode6)) {
4601 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4602 }
4603 arg6 = static_cast< long >(val6);
4604 }
4605 if (obj6) {
4606 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4607 if (!SWIG_IsOK(res7)) {
4608 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4609 }
4610 if (!argp7) {
4611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4612 }
4613 arg7 = reinterpret_cast< wxValidator * >(argp7);
4614 }
4615 if (obj7) {
4616 {
4617 arg8 = wxString_in_helper(obj7);
4618 if (arg8 == NULL) SWIG_fail;
4619 temp8 = true;
4620 }
4621 }
4622 {
4623 if (!wxPyCheckForApp()) SWIG_fail;
4624 PyThreadState* __tstate = wxPyBeginAllowThreads();
4625 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4626 wxPyEndAllowThreads(__tstate);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4630 {
4631 if (temp3)
4632 delete arg3;
4633 }
4634 {
4635 if (temp8)
4636 delete arg8;
4637 }
4638 return resultobj;
4639 fail:
4640 {
4641 if (temp3)
4642 delete arg3;
4643 }
4644 {
4645 if (temp8)
4646 delete arg8;
4647 }
4648 return NULL;
4649 }
4650
4651
4652 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4653 PyObject *resultobj = 0;
4654 wxCheckBox *result = 0 ;
4655
4656 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4657 {
4658 if (!wxPyCheckForApp()) SWIG_fail;
4659 PyThreadState* __tstate = wxPyBeginAllowThreads();
4660 result = (wxCheckBox *)new wxCheckBox();
4661 wxPyEndAllowThreads(__tstate);
4662 if (PyErr_Occurred()) SWIG_fail;
4663 }
4664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4665 return resultobj;
4666 fail:
4667 return NULL;
4668 }
4669
4670
4671 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4672 PyObject *resultobj = 0;
4673 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4674 wxWindow *arg2 = (wxWindow *) 0 ;
4675 int arg3 = (int) -1 ;
4676 wxString const &arg4_defvalue = wxPyEmptyString ;
4677 wxString *arg4 = (wxString *) &arg4_defvalue ;
4678 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4679 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4680 wxSize const &arg6_defvalue = wxDefaultSize ;
4681 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4682 long arg7 = (long) 0 ;
4683 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4684 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4685 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4686 wxString *arg9 = (wxString *) &arg9_defvalue ;
4687 bool result;
4688 void *argp1 = 0 ;
4689 int res1 = 0 ;
4690 void *argp2 = 0 ;
4691 int res2 = 0 ;
4692 int val3 ;
4693 int ecode3 = 0 ;
4694 bool temp4 = false ;
4695 wxPoint temp5 ;
4696 wxSize temp6 ;
4697 long val7 ;
4698 int ecode7 = 0 ;
4699 void *argp8 = 0 ;
4700 int res8 = 0 ;
4701 bool temp9 = false ;
4702 PyObject * obj0 = 0 ;
4703 PyObject * obj1 = 0 ;
4704 PyObject * obj2 = 0 ;
4705 PyObject * obj3 = 0 ;
4706 PyObject * obj4 = 0 ;
4707 PyObject * obj5 = 0 ;
4708 PyObject * obj6 = 0 ;
4709 PyObject * obj7 = 0 ;
4710 PyObject * obj8 = 0 ;
4711 char * kwnames[] = {
4712 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4713 };
4714
4715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4719 }
4720 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4722 if (!SWIG_IsOK(res2)) {
4723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4724 }
4725 arg2 = reinterpret_cast< wxWindow * >(argp2);
4726 if (obj2) {
4727 ecode3 = SWIG_AsVal_int(obj2, &val3);
4728 if (!SWIG_IsOK(ecode3)) {
4729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4730 }
4731 arg3 = static_cast< int >(val3);
4732 }
4733 if (obj3) {
4734 {
4735 arg4 = wxString_in_helper(obj3);
4736 if (arg4 == NULL) SWIG_fail;
4737 temp4 = true;
4738 }
4739 }
4740 if (obj4) {
4741 {
4742 arg5 = &temp5;
4743 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4744 }
4745 }
4746 if (obj5) {
4747 {
4748 arg6 = &temp6;
4749 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4750 }
4751 }
4752 if (obj6) {
4753 ecode7 = SWIG_AsVal_long(obj6, &val7);
4754 if (!SWIG_IsOK(ecode7)) {
4755 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4756 }
4757 arg7 = static_cast< long >(val7);
4758 }
4759 if (obj7) {
4760 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4761 if (!SWIG_IsOK(res8)) {
4762 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4763 }
4764 if (!argp8) {
4765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4766 }
4767 arg8 = reinterpret_cast< wxValidator * >(argp8);
4768 }
4769 if (obj8) {
4770 {
4771 arg9 = wxString_in_helper(obj8);
4772 if (arg9 == NULL) SWIG_fail;
4773 temp9 = true;
4774 }
4775 }
4776 {
4777 PyThreadState* __tstate = wxPyBeginAllowThreads();
4778 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4779 wxPyEndAllowThreads(__tstate);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 {
4783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4784 }
4785 {
4786 if (temp4)
4787 delete arg4;
4788 }
4789 {
4790 if (temp9)
4791 delete arg9;
4792 }
4793 return resultobj;
4794 fail:
4795 {
4796 if (temp4)
4797 delete arg4;
4798 }
4799 {
4800 if (temp9)
4801 delete arg9;
4802 }
4803 return NULL;
4804 }
4805
4806
4807 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4808 PyObject *resultobj = 0;
4809 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4810 bool result;
4811 void *argp1 = 0 ;
4812 int res1 = 0 ;
4813 PyObject *swig_obj[1] ;
4814
4815 if (!args) SWIG_fail;
4816 swig_obj[0] = args;
4817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4818 if (!SWIG_IsOK(res1)) {
4819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4820 }
4821 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (bool)(arg1)->GetValue();
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 {
4829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4830 }
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838 PyObject *resultobj = 0;
4839 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4840 bool result;
4841 void *argp1 = 0 ;
4842 int res1 = 0 ;
4843 PyObject *swig_obj[1] ;
4844
4845 if (!args) SWIG_fail;
4846 swig_obj[0] = args;
4847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4848 if (!SWIG_IsOK(res1)) {
4849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4850 }
4851 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4852 {
4853 PyThreadState* __tstate = wxPyBeginAllowThreads();
4854 result = (bool)(arg1)->IsChecked();
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 {
4859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4860 }
4861 return resultobj;
4862 fail:
4863 return NULL;
4864 }
4865
4866
4867 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4868 PyObject *resultobj = 0;
4869 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4870 bool arg2 ;
4871 void *argp1 = 0 ;
4872 int res1 = 0 ;
4873 bool val2 ;
4874 int ecode2 = 0 ;
4875 PyObject * obj0 = 0 ;
4876 PyObject * obj1 = 0 ;
4877 char * kwnames[] = {
4878 (char *) "self",(char *) "state", NULL
4879 };
4880
4881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4883 if (!SWIG_IsOK(res1)) {
4884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4885 }
4886 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4887 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4888 if (!SWIG_IsOK(ecode2)) {
4889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4890 }
4891 arg2 = static_cast< bool >(val2);
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 (arg1)->SetValue(arg2);
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = SWIG_Py_Void();
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4906 PyObject *resultobj = 0;
4907 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4908 wxCheckBoxState result;
4909 void *argp1 = 0 ;
4910 int res1 = 0 ;
4911 PyObject *swig_obj[1] ;
4912
4913 if (!args) SWIG_fail;
4914 swig_obj[0] = args;
4915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4918 }
4919 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 resultobj = SWIG_From_int(static_cast< int >(result));
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4934 PyObject *resultobj = 0;
4935 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4936 wxCheckBoxState arg2 ;
4937 void *argp1 = 0 ;
4938 int res1 = 0 ;
4939 int val2 ;
4940 int ecode2 = 0 ;
4941 PyObject * obj0 = 0 ;
4942 PyObject * obj1 = 0 ;
4943 char * kwnames[] = {
4944 (char *) "self",(char *) "state", NULL
4945 };
4946
4947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4951 }
4952 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4953 ecode2 = SWIG_AsVal_int(obj1, &val2);
4954 if (!SWIG_IsOK(ecode2)) {
4955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4956 }
4957 arg2 = static_cast< wxCheckBoxState >(val2);
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 (arg1)->Set3StateValue(arg2);
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 resultobj = SWIG_Py_Void();
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4972 PyObject *resultobj = 0;
4973 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4974 bool result;
4975 void *argp1 = 0 ;
4976 int res1 = 0 ;
4977 PyObject *swig_obj[1] ;
4978
4979 if (!args) SWIG_fail;
4980 swig_obj[0] = args;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4984 }
4985 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 {
4993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4994 }
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5002 PyObject *resultobj = 0;
5003 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5004 bool result;
5005 void *argp1 = 0 ;
5006 int res1 = 0 ;
5007 PyObject *swig_obj[1] ;
5008
5009 if (!args) SWIG_fail;
5010 swig_obj[0] = args;
5011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5012 if (!SWIG_IsOK(res1)) {
5013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5014 }
5015 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5016 {
5017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5018 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5019 wxPyEndAllowThreads(__tstate);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
5022 {
5023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5024 }
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj = 0;
5033 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5034 SwigValueWrapper<wxVisualAttributes > result;
5035 int val1 ;
5036 int ecode1 = 0 ;
5037 PyObject * obj0 = 0 ;
5038 char * kwnames[] = {
5039 (char *) "variant", NULL
5040 };
5041
5042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5043 if (obj0) {
5044 ecode1 = SWIG_AsVal_int(obj0, &val1);
5045 if (!SWIG_IsOK(ecode1)) {
5046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5047 }
5048 arg1 = static_cast< wxWindowVariant >(val1);
5049 }
5050 {
5051 if (!wxPyCheckForApp()) SWIG_fail;
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5065 PyObject *obj;
5066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5067 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5068 return SWIG_Py_Void();
5069 }
5070
5071 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5072 return SWIG_Python_InitShadowInstance(args);
5073 }
5074
5075 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5076 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5077 return 1;
5078 }
5079
5080
5081 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5082 PyObject *pyobj = 0;
5083
5084 {
5085 #if wxUSE_UNICODE
5086 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5087 #else
5088 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5089 #endif
5090 }
5091 return pyobj;
5092 }
5093
5094
5095 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5096 PyObject *resultobj = 0;
5097 wxWindow *arg1 = (wxWindow *) 0 ;
5098 int arg2 = (int) -1 ;
5099 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5100 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5101 wxSize const &arg4_defvalue = wxDefaultSize ;
5102 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5103 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5104 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5105 long arg6 = (long) 0 ;
5106 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5107 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5108 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5109 wxString *arg8 = (wxString *) &arg8_defvalue ;
5110 wxChoice *result = 0 ;
5111 void *argp1 = 0 ;
5112 int res1 = 0 ;
5113 int val2 ;
5114 int ecode2 = 0 ;
5115 wxPoint temp3 ;
5116 wxSize temp4 ;
5117 bool temp5 = false ;
5118 long val6 ;
5119 int ecode6 = 0 ;
5120 void *argp7 = 0 ;
5121 int res7 = 0 ;
5122 bool temp8 = false ;
5123 PyObject * obj0 = 0 ;
5124 PyObject * obj1 = 0 ;
5125 PyObject * obj2 = 0 ;
5126 PyObject * obj3 = 0 ;
5127 PyObject * obj4 = 0 ;
5128 PyObject * obj5 = 0 ;
5129 PyObject * obj6 = 0 ;
5130 PyObject * obj7 = 0 ;
5131 char * kwnames[] = {
5132 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5133 };
5134
5135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5137 if (!SWIG_IsOK(res1)) {
5138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5139 }
5140 arg1 = reinterpret_cast< wxWindow * >(argp1);
5141 if (obj1) {
5142 ecode2 = SWIG_AsVal_int(obj1, &val2);
5143 if (!SWIG_IsOK(ecode2)) {
5144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5145 }
5146 arg2 = static_cast< int >(val2);
5147 }
5148 if (obj2) {
5149 {
5150 arg3 = &temp3;
5151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5152 }
5153 }
5154 if (obj3) {
5155 {
5156 arg4 = &temp4;
5157 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5158 }
5159 }
5160 if (obj4) {
5161 {
5162 if (! PySequence_Check(obj4)) {
5163 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5164 SWIG_fail;
5165 }
5166 arg5 = new wxArrayString;
5167 temp5 = true;
5168 int i, len=PySequence_Length(obj4);
5169 for (i=0; i<len; i++) {
5170 PyObject* item = PySequence_GetItem(obj4, i);
5171 wxString* s = wxString_in_helper(item);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 arg5->Add(*s);
5174 delete s;
5175 Py_DECREF(item);
5176 }
5177 }
5178 }
5179 if (obj5) {
5180 ecode6 = SWIG_AsVal_long(obj5, &val6);
5181 if (!SWIG_IsOK(ecode6)) {
5182 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5183 }
5184 arg6 = static_cast< long >(val6);
5185 }
5186 if (obj6) {
5187 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5188 if (!SWIG_IsOK(res7)) {
5189 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5190 }
5191 if (!argp7) {
5192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5193 }
5194 arg7 = reinterpret_cast< wxValidator * >(argp7);
5195 }
5196 if (obj7) {
5197 {
5198 arg8 = wxString_in_helper(obj7);
5199 if (arg8 == NULL) SWIG_fail;
5200 temp8 = true;
5201 }
5202 }
5203 {
5204 if (!wxPyCheckForApp()) SWIG_fail;
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5211 {
5212 if (temp5) delete arg5;
5213 }
5214 {
5215 if (temp8)
5216 delete arg8;
5217 }
5218 return resultobj;
5219 fail:
5220 {
5221 if (temp5) delete arg5;
5222 }
5223 {
5224 if (temp8)
5225 delete arg8;
5226 }
5227 return NULL;
5228 }
5229
5230
5231 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5232 PyObject *resultobj = 0;
5233 wxChoice *result = 0 ;
5234
5235 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5236 {
5237 if (!wxPyCheckForApp()) SWIG_fail;
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (wxChoice *)new wxChoice();
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5244 return resultobj;
5245 fail:
5246 return NULL;
5247 }
5248
5249
5250 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5251 PyObject *resultobj = 0;
5252 wxChoice *arg1 = (wxChoice *) 0 ;
5253 wxWindow *arg2 = (wxWindow *) 0 ;
5254 int arg3 = (int) -1 ;
5255 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5256 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5257 wxSize const &arg5_defvalue = wxDefaultSize ;
5258 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5259 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5260 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5261 long arg7 = (long) 0 ;
5262 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5263 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5264 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5265 wxString *arg9 = (wxString *) &arg9_defvalue ;
5266 bool result;
5267 void *argp1 = 0 ;
5268 int res1 = 0 ;
5269 void *argp2 = 0 ;
5270 int res2 = 0 ;
5271 int val3 ;
5272 int ecode3 = 0 ;
5273 wxPoint temp4 ;
5274 wxSize temp5 ;
5275 bool temp6 = false ;
5276 long val7 ;
5277 int ecode7 = 0 ;
5278 void *argp8 = 0 ;
5279 int res8 = 0 ;
5280 bool temp9 = false ;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
5283 PyObject * obj2 = 0 ;
5284 PyObject * obj3 = 0 ;
5285 PyObject * obj4 = 0 ;
5286 PyObject * obj5 = 0 ;
5287 PyObject * obj6 = 0 ;
5288 PyObject * obj7 = 0 ;
5289 PyObject * obj8 = 0 ;
5290 char * kwnames[] = {
5291 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5292 };
5293
5294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5296 if (!SWIG_IsOK(res1)) {
5297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5298 }
5299 arg1 = reinterpret_cast< wxChoice * >(argp1);
5300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5301 if (!SWIG_IsOK(res2)) {
5302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5303 }
5304 arg2 = reinterpret_cast< wxWindow * >(argp2);
5305 if (obj2) {
5306 ecode3 = SWIG_AsVal_int(obj2, &val3);
5307 if (!SWIG_IsOK(ecode3)) {
5308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5309 }
5310 arg3 = static_cast< int >(val3);
5311 }
5312 if (obj3) {
5313 {
5314 arg4 = &temp4;
5315 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5316 }
5317 }
5318 if (obj4) {
5319 {
5320 arg5 = &temp5;
5321 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5322 }
5323 }
5324 if (obj5) {
5325 {
5326 if (! PySequence_Check(obj5)) {
5327 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5328 SWIG_fail;
5329 }
5330 arg6 = new wxArrayString;
5331 temp6 = true;
5332 int i, len=PySequence_Length(obj5);
5333 for (i=0; i<len; i++) {
5334 PyObject* item = PySequence_GetItem(obj5, i);
5335 wxString* s = wxString_in_helper(item);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 arg6->Add(*s);
5338 delete s;
5339 Py_DECREF(item);
5340 }
5341 }
5342 }
5343 if (obj6) {
5344 ecode7 = SWIG_AsVal_long(obj6, &val7);
5345 if (!SWIG_IsOK(ecode7)) {
5346 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5347 }
5348 arg7 = static_cast< long >(val7);
5349 }
5350 if (obj7) {
5351 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5352 if (!SWIG_IsOK(res8)) {
5353 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5354 }
5355 if (!argp8) {
5356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5357 }
5358 arg8 = reinterpret_cast< wxValidator * >(argp8);
5359 }
5360 if (obj8) {
5361 {
5362 arg9 = wxString_in_helper(obj8);
5363 if (arg9 == NULL) SWIG_fail;
5364 temp9 = true;
5365 }
5366 }
5367 {
5368 PyThreadState* __tstate = wxPyBeginAllowThreads();
5369 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 {
5374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5375 }
5376 {
5377 if (temp6) delete arg6;
5378 }
5379 {
5380 if (temp9)
5381 delete arg9;
5382 }
5383 return resultobj;
5384 fail:
5385 {
5386 if (temp6) delete arg6;
5387 }
5388 {
5389 if (temp9)
5390 delete arg9;
5391 }
5392 return NULL;
5393 }
5394
5395
5396 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5397 PyObject *resultobj = 0;
5398 wxChoice *arg1 = (wxChoice *) 0 ;
5399 int result;
5400 void *argp1 = 0 ;
5401 int res1 = 0 ;
5402 PyObject *swig_obj[1] ;
5403
5404 if (!args) SWIG_fail;
5405 swig_obj[0] = args;
5406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5407 if (!SWIG_IsOK(res1)) {
5408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5409 }
5410 arg1 = reinterpret_cast< wxChoice * >(argp1);
5411 {
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 resultobj = SWIG_From_int(static_cast< int >(result));
5418 return resultobj;
5419 fail:
5420 return NULL;
5421 }
5422
5423
5424 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5425 PyObject *resultobj = 0;
5426 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5427 SwigValueWrapper<wxVisualAttributes > result;
5428 int val1 ;
5429 int ecode1 = 0 ;
5430 PyObject * obj0 = 0 ;
5431 char * kwnames[] = {
5432 (char *) "variant", NULL
5433 };
5434
5435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5436 if (obj0) {
5437 ecode1 = SWIG_AsVal_int(obj0, &val1);
5438 if (!SWIG_IsOK(ecode1)) {
5439 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5440 }
5441 arg1 = static_cast< wxWindowVariant >(val1);
5442 }
5443 {
5444 if (!wxPyCheckForApp()) SWIG_fail;
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 result = wxChoice::GetClassDefaultAttributes(arg1);
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5451 return resultobj;
5452 fail:
5453 return NULL;
5454 }
5455
5456
5457 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5458 PyObject *obj;
5459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5460 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5461 return SWIG_Py_Void();
5462 }
5463
5464 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5465 return SWIG_Python_InitShadowInstance(args);
5466 }
5467
5468 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5469 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5470 return 1;
5471 }
5472
5473
5474 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5475 PyObject *pyobj = 0;
5476
5477 {
5478 #if wxUSE_UNICODE
5479 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5480 #else
5481 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5482 #endif
5483 }
5484 return pyobj;
5485 }
5486
5487
5488 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5489 PyObject *resultobj = 0;
5490 wxWindow *arg1 = (wxWindow *) 0 ;
5491 int arg2 = (int) -1 ;
5492 wxString const &arg3_defvalue = wxPyEmptyString ;
5493 wxString *arg3 = (wxString *) &arg3_defvalue ;
5494 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5495 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5496 wxSize const &arg5_defvalue = wxDefaultSize ;
5497 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5498 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5499 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5500 long arg7 = (long) 0 ;
5501 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5502 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5503 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5504 wxString *arg9 = (wxString *) &arg9_defvalue ;
5505 wxComboBox *result = 0 ;
5506 void *argp1 = 0 ;
5507 int res1 = 0 ;
5508 int val2 ;
5509 int ecode2 = 0 ;
5510 bool temp3 = false ;
5511 wxPoint temp4 ;
5512 wxSize temp5 ;
5513 bool temp6 = false ;
5514 long val7 ;
5515 int ecode7 = 0 ;
5516 void *argp8 = 0 ;
5517 int res8 = 0 ;
5518 bool temp9 = false ;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5521 PyObject * obj2 = 0 ;
5522 PyObject * obj3 = 0 ;
5523 PyObject * obj4 = 0 ;
5524 PyObject * obj5 = 0 ;
5525 PyObject * obj6 = 0 ;
5526 PyObject * obj7 = 0 ;
5527 PyObject * obj8 = 0 ;
5528 char * kwnames[] = {
5529 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5530 };
5531
5532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5534 if (!SWIG_IsOK(res1)) {
5535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5536 }
5537 arg1 = reinterpret_cast< wxWindow * >(argp1);
5538 if (obj1) {
5539 ecode2 = SWIG_AsVal_int(obj1, &val2);
5540 if (!SWIG_IsOK(ecode2)) {
5541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5542 }
5543 arg2 = static_cast< int >(val2);
5544 }
5545 if (obj2) {
5546 {
5547 arg3 = wxString_in_helper(obj2);
5548 if (arg3 == NULL) SWIG_fail;
5549 temp3 = true;
5550 }
5551 }
5552 if (obj3) {
5553 {
5554 arg4 = &temp4;
5555 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5556 }
5557 }
5558 if (obj4) {
5559 {
5560 arg5 = &temp5;
5561 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5562 }
5563 }
5564 if (obj5) {
5565 {
5566 if (! PySequence_Check(obj5)) {
5567 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5568 SWIG_fail;
5569 }
5570 arg6 = new wxArrayString;
5571 temp6 = true;
5572 int i, len=PySequence_Length(obj5);
5573 for (i=0; i<len; i++) {
5574 PyObject* item = PySequence_GetItem(obj5, i);
5575 wxString* s = wxString_in_helper(item);
5576 if (PyErr_Occurred()) SWIG_fail;
5577 arg6->Add(*s);
5578 delete s;
5579 Py_DECREF(item);
5580 }
5581 }
5582 }
5583 if (obj6) {
5584 ecode7 = SWIG_AsVal_long(obj6, &val7);
5585 if (!SWIG_IsOK(ecode7)) {
5586 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5587 }
5588 arg7 = static_cast< long >(val7);
5589 }
5590 if (obj7) {
5591 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5592 if (!SWIG_IsOK(res8)) {
5593 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5594 }
5595 if (!argp8) {
5596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5597 }
5598 arg8 = reinterpret_cast< wxValidator * >(argp8);
5599 }
5600 if (obj8) {
5601 {
5602 arg9 = wxString_in_helper(obj8);
5603 if (arg9 == NULL) SWIG_fail;
5604 temp9 = true;
5605 }
5606 }
5607 {
5608 if (!wxPyCheckForApp()) SWIG_fail;
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 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);
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5615 {
5616 if (temp3)
5617 delete arg3;
5618 }
5619 {
5620 if (temp6) delete arg6;
5621 }
5622 {
5623 if (temp9)
5624 delete arg9;
5625 }
5626 return resultobj;
5627 fail:
5628 {
5629 if (temp3)
5630 delete arg3;
5631 }
5632 {
5633 if (temp6) delete arg6;
5634 }
5635 {
5636 if (temp9)
5637 delete arg9;
5638 }
5639 return NULL;
5640 }
5641
5642
5643 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5644 PyObject *resultobj = 0;
5645 wxComboBox *result = 0 ;
5646
5647 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5648 {
5649 if (!wxPyCheckForApp()) SWIG_fail;
5650 PyThreadState* __tstate = wxPyBeginAllowThreads();
5651 result = (wxComboBox *)new wxComboBox();
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) SWIG_fail;
5654 }
5655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5656 return resultobj;
5657 fail:
5658 return NULL;
5659 }
5660
5661
5662 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5663 PyObject *resultobj = 0;
5664 wxComboBox *arg1 = (wxComboBox *) 0 ;
5665 wxWindow *arg2 = (wxWindow *) 0 ;
5666 int arg3 = (int) -1 ;
5667 wxString const &arg4_defvalue = wxPyEmptyString ;
5668 wxString *arg4 = (wxString *) &arg4_defvalue ;
5669 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5670 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5671 wxSize const &arg6_defvalue = wxDefaultSize ;
5672 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5673 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5674 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5675 long arg8 = (long) 0 ;
5676 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5677 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5678 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5679 wxString *arg10 = (wxString *) &arg10_defvalue ;
5680 bool result;
5681 void *argp1 = 0 ;
5682 int res1 = 0 ;
5683 void *argp2 = 0 ;
5684 int res2 = 0 ;
5685 int val3 ;
5686 int ecode3 = 0 ;
5687 bool temp4 = false ;
5688 wxPoint temp5 ;
5689 wxSize temp6 ;
5690 bool temp7 = false ;
5691 long val8 ;
5692 int ecode8 = 0 ;
5693 void *argp9 = 0 ;
5694 int res9 = 0 ;
5695 bool temp10 = false ;
5696 PyObject * obj0 = 0 ;
5697 PyObject * obj1 = 0 ;
5698 PyObject * obj2 = 0 ;
5699 PyObject * obj3 = 0 ;
5700 PyObject * obj4 = 0 ;
5701 PyObject * obj5 = 0 ;
5702 PyObject * obj6 = 0 ;
5703 PyObject * obj7 = 0 ;
5704 PyObject * obj8 = 0 ;
5705 PyObject * obj9 = 0 ;
5706 char * kwnames[] = {
5707 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5708 };
5709
5710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5712 if (!SWIG_IsOK(res1)) {
5713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5714 }
5715 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5716 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5717 if (!SWIG_IsOK(res2)) {
5718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5719 }
5720 arg2 = reinterpret_cast< wxWindow * >(argp2);
5721 if (obj2) {
5722 ecode3 = SWIG_AsVal_int(obj2, &val3);
5723 if (!SWIG_IsOK(ecode3)) {
5724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5725 }
5726 arg3 = static_cast< int >(val3);
5727 }
5728 if (obj3) {
5729 {
5730 arg4 = wxString_in_helper(obj3);
5731 if (arg4 == NULL) SWIG_fail;
5732 temp4 = true;
5733 }
5734 }
5735 if (obj4) {
5736 {
5737 arg5 = &temp5;
5738 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5739 }
5740 }
5741 if (obj5) {
5742 {
5743 arg6 = &temp6;
5744 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5745 }
5746 }
5747 if (obj6) {
5748 {
5749 if (! PySequence_Check(obj6)) {
5750 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5751 SWIG_fail;
5752 }
5753 arg7 = new wxArrayString;
5754 temp7 = true;
5755 int i, len=PySequence_Length(obj6);
5756 for (i=0; i<len; i++) {
5757 PyObject* item = PySequence_GetItem(obj6, i);
5758 wxString* s = wxString_in_helper(item);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 arg7->Add(*s);
5761 delete s;
5762 Py_DECREF(item);
5763 }
5764 }
5765 }
5766 if (obj7) {
5767 ecode8 = SWIG_AsVal_long(obj7, &val8);
5768 if (!SWIG_IsOK(ecode8)) {
5769 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5770 }
5771 arg8 = static_cast< long >(val8);
5772 }
5773 if (obj8) {
5774 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5775 if (!SWIG_IsOK(res9)) {
5776 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5777 }
5778 if (!argp9) {
5779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5780 }
5781 arg9 = reinterpret_cast< wxValidator * >(argp9);
5782 }
5783 if (obj9) {
5784 {
5785 arg10 = wxString_in_helper(obj9);
5786 if (arg10 == NULL) SWIG_fail;
5787 temp10 = true;
5788 }
5789 }
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 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);
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 {
5797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5798 }
5799 {
5800 if (temp4)
5801 delete arg4;
5802 }
5803 {
5804 if (temp7) delete arg7;
5805 }
5806 {
5807 if (temp10)
5808 delete arg10;
5809 }
5810 return resultobj;
5811 fail:
5812 {
5813 if (temp4)
5814 delete arg4;
5815 }
5816 {
5817 if (temp7) delete arg7;
5818 }
5819 {
5820 if (temp10)
5821 delete arg10;
5822 }
5823 return NULL;
5824 }
5825
5826
5827 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5828 PyObject *resultobj = 0;
5829 wxComboBox *arg1 = (wxComboBox *) 0 ;
5830 wxString result;
5831 void *argp1 = 0 ;
5832 int res1 = 0 ;
5833 PyObject *swig_obj[1] ;
5834
5835 if (!args) SWIG_fail;
5836 swig_obj[0] = args;
5837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5838 if (!SWIG_IsOK(res1)) {
5839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5840 }
5841 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5842 {
5843 PyThreadState* __tstate = wxPyBeginAllowThreads();
5844 result = ((wxComboBox const *)arg1)->GetValue();
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 {
5849 #if wxUSE_UNICODE
5850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5851 #else
5852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5853 #endif
5854 }
5855 return resultobj;
5856 fail:
5857 return NULL;
5858 }
5859
5860
5861 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj = 0;
5863 wxComboBox *arg1 = (wxComboBox *) 0 ;
5864 wxString *arg2 = 0 ;
5865 void *argp1 = 0 ;
5866 int res1 = 0 ;
5867 bool temp2 = false ;
5868 PyObject * obj0 = 0 ;
5869 PyObject * obj1 = 0 ;
5870 char * kwnames[] = {
5871 (char *) "self",(char *) "value", NULL
5872 };
5873
5874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5878 }
5879 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5880 {
5881 arg2 = wxString_in_helper(obj1);
5882 if (arg2 == NULL) SWIG_fail;
5883 temp2 = true;
5884 }
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 (arg1)->SetValue((wxString const &)*arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_Py_Void();
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return resultobj;
5897 fail:
5898 {
5899 if (temp2)
5900 delete arg2;
5901 }
5902 return NULL;
5903 }
5904
5905
5906 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5907 PyObject *resultobj = 0;
5908 wxComboBox *arg1 = (wxComboBox *) 0 ;
5909 void *argp1 = 0 ;
5910 int res1 = 0 ;
5911 PyObject *swig_obj[1] ;
5912
5913 if (!args) SWIG_fail;
5914 swig_obj[0] = args;
5915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5916 if (!SWIG_IsOK(res1)) {
5917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5918 }
5919 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5920 {
5921 PyThreadState* __tstate = wxPyBeginAllowThreads();
5922 (arg1)->Copy();
5923 wxPyEndAllowThreads(__tstate);
5924 if (PyErr_Occurred()) SWIG_fail;
5925 }
5926 resultobj = SWIG_Py_Void();
5927 return resultobj;
5928 fail:
5929 return NULL;
5930 }
5931
5932
5933 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5934 PyObject *resultobj = 0;
5935 wxComboBox *arg1 = (wxComboBox *) 0 ;
5936 void *argp1 = 0 ;
5937 int res1 = 0 ;
5938 PyObject *swig_obj[1] ;
5939
5940 if (!args) SWIG_fail;
5941 swig_obj[0] = args;
5942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5943 if (!SWIG_IsOK(res1)) {
5944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5945 }
5946 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 (arg1)->Cut();
5950 wxPyEndAllowThreads(__tstate);
5951 if (PyErr_Occurred()) SWIG_fail;
5952 }
5953 resultobj = SWIG_Py_Void();
5954 return resultobj;
5955 fail:
5956 return NULL;
5957 }
5958
5959
5960 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5961 PyObject *resultobj = 0;
5962 wxComboBox *arg1 = (wxComboBox *) 0 ;
5963 void *argp1 = 0 ;
5964 int res1 = 0 ;
5965 PyObject *swig_obj[1] ;
5966
5967 if (!args) SWIG_fail;
5968 swig_obj[0] = args;
5969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5970 if (!SWIG_IsOK(res1)) {
5971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5972 }
5973 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5974 {
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5976 (arg1)->Paste();
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 resultobj = SWIG_Py_Void();
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj = 0;
5989 wxComboBox *arg1 = (wxComboBox *) 0 ;
5990 long arg2 ;
5991 void *argp1 = 0 ;
5992 int res1 = 0 ;
5993 long val2 ;
5994 int ecode2 = 0 ;
5995 PyObject * obj0 = 0 ;
5996 PyObject * obj1 = 0 ;
5997 char * kwnames[] = {
5998 (char *) "self",(char *) "pos", NULL
5999 };
6000
6001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6003 if (!SWIG_IsOK(res1)) {
6004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6005 }
6006 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6007 ecode2 = SWIG_AsVal_long(obj1, &val2);
6008 if (!SWIG_IsOK(ecode2)) {
6009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6010 }
6011 arg2 = static_cast< long >(val2);
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 (arg1)->SetInsertionPoint(arg2);
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = SWIG_Py_Void();
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6026 PyObject *resultobj = 0;
6027 wxComboBox *arg1 = (wxComboBox *) 0 ;
6028 long result;
6029 void *argp1 = 0 ;
6030 int res1 = 0 ;
6031 PyObject *swig_obj[1] ;
6032
6033 if (!args) SWIG_fail;
6034 swig_obj[0] = args;
6035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6036 if (!SWIG_IsOK(res1)) {
6037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6038 }
6039 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6040 {
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
6042 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 resultobj = SWIG_From_long(static_cast< long >(result));
6047 return resultobj;
6048 fail:
6049 return NULL;
6050 }
6051
6052
6053 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6054 PyObject *resultobj = 0;
6055 wxComboBox *arg1 = (wxComboBox *) 0 ;
6056 long result;
6057 void *argp1 = 0 ;
6058 int res1 = 0 ;
6059 PyObject *swig_obj[1] ;
6060
6061 if (!args) SWIG_fail;
6062 swig_obj[0] = args;
6063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6064 if (!SWIG_IsOK(res1)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6066 }
6067 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 resultobj = SWIG_From_long(static_cast< long >(result));
6075 return resultobj;
6076 fail:
6077 return NULL;
6078 }
6079
6080
6081 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6082 PyObject *resultobj = 0;
6083 wxComboBox *arg1 = (wxComboBox *) 0 ;
6084 long arg2 ;
6085 long arg3 ;
6086 wxString *arg4 = 0 ;
6087 void *argp1 = 0 ;
6088 int res1 = 0 ;
6089 long val2 ;
6090 int ecode2 = 0 ;
6091 long val3 ;
6092 int ecode3 = 0 ;
6093 bool temp4 = false ;
6094 PyObject * obj0 = 0 ;
6095 PyObject * obj1 = 0 ;
6096 PyObject * obj2 = 0 ;
6097 PyObject * obj3 = 0 ;
6098 char * kwnames[] = {
6099 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6100 };
6101
6102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6104 if (!SWIG_IsOK(res1)) {
6105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6106 }
6107 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6108 ecode2 = SWIG_AsVal_long(obj1, &val2);
6109 if (!SWIG_IsOK(ecode2)) {
6110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6111 }
6112 arg2 = static_cast< long >(val2);
6113 ecode3 = SWIG_AsVal_long(obj2, &val3);
6114 if (!SWIG_IsOK(ecode3)) {
6115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6116 }
6117 arg3 = static_cast< long >(val3);
6118 {
6119 arg4 = wxString_in_helper(obj3);
6120 if (arg4 == NULL) SWIG_fail;
6121 temp4 = true;
6122 }
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_Py_Void();
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return resultobj;
6135 fail:
6136 {
6137 if (temp4)
6138 delete arg4;
6139 }
6140 return NULL;
6141 }
6142
6143
6144 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj = 0;
6146 wxComboBox *arg1 = (wxComboBox *) 0 ;
6147 long arg2 ;
6148 long arg3 ;
6149 void *argp1 = 0 ;
6150 int res1 = 0 ;
6151 long val2 ;
6152 int ecode2 = 0 ;
6153 long val3 ;
6154 int ecode3 = 0 ;
6155 PyObject * obj0 = 0 ;
6156 PyObject * obj1 = 0 ;
6157 PyObject * obj2 = 0 ;
6158 char * kwnames[] = {
6159 (char *) "self",(char *) "from",(char *) "to", NULL
6160 };
6161
6162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6164 if (!SWIG_IsOK(res1)) {
6165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6166 }
6167 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6168 ecode2 = SWIG_AsVal_long(obj1, &val2);
6169 if (!SWIG_IsOK(ecode2)) {
6170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6171 }
6172 arg2 = static_cast< long >(val2);
6173 ecode3 = SWIG_AsVal_long(obj2, &val3);
6174 if (!SWIG_IsOK(ecode3)) {
6175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6176 }
6177 arg3 = static_cast< long >(val3);
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 (arg1)->SetSelection(arg2,arg3);
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 resultobj = SWIG_Py_Void();
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6192 PyObject *resultobj = 0;
6193 wxComboBox *arg1 = (wxComboBox *) 0 ;
6194 long *arg2 = (long *) 0 ;
6195 long *arg3 = (long *) 0 ;
6196 void *argp1 = 0 ;
6197 int res1 = 0 ;
6198 long temp2 ;
6199 int res2 = SWIG_TMPOBJ ;
6200 long temp3 ;
6201 int res3 = SWIG_TMPOBJ ;
6202 PyObject *swig_obj[1] ;
6203
6204 arg2 = &temp2;
6205 arg3 = &temp3;
6206 if (!args) SWIG_fail;
6207 swig_obj[0] = args;
6208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6211 }
6212 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6213 {
6214 PyThreadState* __tstate = wxPyBeginAllowThreads();
6215 (arg1)->GetSelection(arg2,arg3);
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 resultobj = SWIG_Py_Void();
6220 if (SWIG_IsTmpObj(res2)) {
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6222 } else {
6223 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6225 }
6226 if (SWIG_IsTmpObj(res3)) {
6227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6228 } else {
6229 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6231 }
6232 return resultobj;
6233 fail:
6234 return NULL;
6235 }
6236
6237
6238 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6239 PyObject *resultobj = 0;
6240 wxComboBox *arg1 = (wxComboBox *) 0 ;
6241 int result;
6242 void *argp1 = 0 ;
6243 int res1 = 0 ;
6244 PyObject *swig_obj[1] ;
6245
6246 if (!args) SWIG_fail;
6247 swig_obj[0] = args;
6248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6249 if (!SWIG_IsOK(res1)) {
6250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6251 }
6252 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6253 {
6254 PyThreadState* __tstate = wxPyBeginAllowThreads();
6255 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6256 wxPyEndAllowThreads(__tstate);
6257 if (PyErr_Occurred()) SWIG_fail;
6258 }
6259 resultobj = SWIG_From_int(static_cast< int >(result));
6260 return resultobj;
6261 fail:
6262 return NULL;
6263 }
6264
6265
6266 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj = 0;
6268 wxComboBox *arg1 = (wxComboBox *) 0 ;
6269 wxString *arg2 = 0 ;
6270 bool result;
6271 void *argp1 = 0 ;
6272 int res1 = 0 ;
6273 bool temp2 = false ;
6274 PyObject * obj0 = 0 ;
6275 PyObject * obj1 = 0 ;
6276 char * kwnames[] = {
6277 (char *) "self",(char *) "string", NULL
6278 };
6279
6280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6282 if (!SWIG_IsOK(res1)) {
6283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6284 }
6285 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6286 {
6287 arg2 = wxString_in_helper(obj1);
6288 if (arg2 == NULL) SWIG_fail;
6289 temp2 = true;
6290 }
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6294 wxPyEndAllowThreads(__tstate);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 {
6298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6299 }
6300 {
6301 if (temp2)
6302 delete arg2;
6303 }
6304 return resultobj;
6305 fail:
6306 {
6307 if (temp2)
6308 delete arg2;
6309 }
6310 return NULL;
6311 }
6312
6313
6314 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj = 0;
6316 wxComboBox *arg1 = (wxComboBox *) 0 ;
6317 int arg2 ;
6318 wxString *arg3 = 0 ;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 int val2 ;
6322 int ecode2 = 0 ;
6323 bool temp3 = false ;
6324 PyObject * obj0 = 0 ;
6325 PyObject * obj1 = 0 ;
6326 PyObject * obj2 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "self",(char *) "n",(char *) "string", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6333 if (!SWIG_IsOK(res1)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6335 }
6336 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6337 ecode2 = SWIG_AsVal_int(obj1, &val2);
6338 if (!SWIG_IsOK(ecode2)) {
6339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6340 }
6341 arg2 = static_cast< int >(val2);
6342 {
6343 arg3 = wxString_in_helper(obj2);
6344 if (arg3 == NULL) SWIG_fail;
6345 temp3 = true;
6346 }
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 (arg1)->SetString(arg2,(wxString const &)*arg3);
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 resultobj = SWIG_Py_Void();
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return resultobj;
6359 fail:
6360 {
6361 if (temp3)
6362 delete arg3;
6363 }
6364 return NULL;
6365 }
6366
6367
6368 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj = 0;
6370 wxComboBox *arg1 = (wxComboBox *) 0 ;
6371 bool arg2 ;
6372 void *argp1 = 0 ;
6373 int res1 = 0 ;
6374 bool val2 ;
6375 int ecode2 = 0 ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 char * kwnames[] = {
6379 (char *) "self",(char *) "editable", NULL
6380 };
6381
6382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6386 }
6387 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6388 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6389 if (!SWIG_IsOK(ecode2)) {
6390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6391 }
6392 arg2 = static_cast< bool >(val2);
6393 {
6394 PyThreadState* __tstate = wxPyBeginAllowThreads();
6395 (arg1)->SetEditable(arg2);
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 resultobj = SWIG_Py_Void();
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6407 PyObject *resultobj = 0;
6408 wxComboBox *arg1 = (wxComboBox *) 0 ;
6409 void *argp1 = 0 ;
6410 int res1 = 0 ;
6411 PyObject *swig_obj[1] ;
6412
6413 if (!args) SWIG_fail;
6414 swig_obj[0] = args;
6415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6416 if (!SWIG_IsOK(res1)) {
6417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6418 }
6419 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 (arg1)->SetInsertionPointEnd();
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_Py_Void();
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6434 PyObject *resultobj = 0;
6435 wxComboBox *arg1 = (wxComboBox *) 0 ;
6436 long arg2 ;
6437 long arg3 ;
6438 void *argp1 = 0 ;
6439 int res1 = 0 ;
6440 long val2 ;
6441 int ecode2 = 0 ;
6442 long val3 ;
6443 int ecode3 = 0 ;
6444 PyObject * obj0 = 0 ;
6445 PyObject * obj1 = 0 ;
6446 PyObject * obj2 = 0 ;
6447 char * kwnames[] = {
6448 (char *) "self",(char *) "from",(char *) "to", NULL
6449 };
6450
6451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6453 if (!SWIG_IsOK(res1)) {
6454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6455 }
6456 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6457 ecode2 = SWIG_AsVal_long(obj1, &val2);
6458 if (!SWIG_IsOK(ecode2)) {
6459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6460 }
6461 arg2 = static_cast< long >(val2);
6462 ecode3 = SWIG_AsVal_long(obj2, &val3);
6463 if (!SWIG_IsOK(ecode3)) {
6464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6465 }
6466 arg3 = static_cast< long >(val3);
6467 {
6468 PyThreadState* __tstate = wxPyBeginAllowThreads();
6469 (arg1)->Remove(arg2,arg3);
6470 wxPyEndAllowThreads(__tstate);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 resultobj = SWIG_Py_Void();
6474 return resultobj;
6475 fail:
6476 return NULL;
6477 }
6478
6479
6480 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6481 PyObject *resultobj = 0;
6482 wxComboBox *arg1 = (wxComboBox *) 0 ;
6483 bool result;
6484 void *argp1 = 0 ;
6485 int res1 = 0 ;
6486 PyObject *swig_obj[1] ;
6487
6488 if (!args) SWIG_fail;
6489 swig_obj[0] = args;
6490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6491 if (!SWIG_IsOK(res1)) {
6492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6493 }
6494 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6495 {
6496 PyThreadState* __tstate = wxPyBeginAllowThreads();
6497 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 {
6502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6503 }
6504 return resultobj;
6505 fail:
6506 return NULL;
6507 }
6508
6509
6510 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxComboBox *arg1 = (wxComboBox *) 0 ;
6513 void *argp1 = 0 ;
6514 int res1 = 0 ;
6515 PyObject *swig_obj[1] ;
6516
6517 if (!args) SWIG_fail;
6518 swig_obj[0] = args;
6519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6520 if (!SWIG_IsOK(res1)) {
6521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6522 }
6523 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6524 {
6525 PyThreadState* __tstate = wxPyBeginAllowThreads();
6526 (arg1)->Undo();
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_Py_Void();
6531 return resultobj;
6532 fail:
6533 return NULL;
6534 }
6535
6536
6537 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6538 PyObject *resultobj = 0;
6539 wxComboBox *arg1 = (wxComboBox *) 0 ;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6549 }
6550 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 (arg1)->Redo();
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_Py_Void();
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6565 PyObject *resultobj = 0;
6566 wxComboBox *arg1 = (wxComboBox *) 0 ;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 PyObject *swig_obj[1] ;
6570
6571 if (!args) SWIG_fail;
6572 swig_obj[0] = args;
6573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6574 if (!SWIG_IsOK(res1)) {
6575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6576 }
6577 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 (arg1)->SelectAll();
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = SWIG_Py_Void();
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6592 PyObject *resultobj = 0;
6593 wxComboBox *arg1 = (wxComboBox *) 0 ;
6594 bool result;
6595 void *argp1 = 0 ;
6596 int res1 = 0 ;
6597 PyObject *swig_obj[1] ;
6598
6599 if (!args) SWIG_fail;
6600 swig_obj[0] = args;
6601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6602 if (!SWIG_IsOK(res1)) {
6603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6604 }
6605 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6609 wxPyEndAllowThreads(__tstate);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 {
6613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6614 }
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6622 PyObject *resultobj = 0;
6623 wxComboBox *arg1 = (wxComboBox *) 0 ;
6624 bool result;
6625 void *argp1 = 0 ;
6626 int res1 = 0 ;
6627 PyObject *swig_obj[1] ;
6628
6629 if (!args) SWIG_fail;
6630 swig_obj[0] = args;
6631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6632 if (!SWIG_IsOK(res1)) {
6633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6634 }
6635 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6636 {
6637 PyThreadState* __tstate = wxPyBeginAllowThreads();
6638 result = (bool)((wxComboBox const *)arg1)->CanCut();
6639 wxPyEndAllowThreads(__tstate);
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 {
6643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6644 }
6645 return resultobj;
6646 fail:
6647 return NULL;
6648 }
6649
6650
6651 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6652 PyObject *resultobj = 0;
6653 wxComboBox *arg1 = (wxComboBox *) 0 ;
6654 bool result;
6655 void *argp1 = 0 ;
6656 int res1 = 0 ;
6657 PyObject *swig_obj[1] ;
6658
6659 if (!args) SWIG_fail;
6660 swig_obj[0] = args;
6661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6662 if (!SWIG_IsOK(res1)) {
6663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6664 }
6665 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6666 {
6667 PyThreadState* __tstate = wxPyBeginAllowThreads();
6668 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6669 wxPyEndAllowThreads(__tstate);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 {
6673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6674 }
6675 return resultobj;
6676 fail:
6677 return NULL;
6678 }
6679
6680
6681 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6682 PyObject *resultobj = 0;
6683 wxComboBox *arg1 = (wxComboBox *) 0 ;
6684 bool result;
6685 void *argp1 = 0 ;
6686 int res1 = 0 ;
6687 PyObject *swig_obj[1] ;
6688
6689 if (!args) SWIG_fail;
6690 swig_obj[0] = args;
6691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6692 if (!SWIG_IsOK(res1)) {
6693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6694 }
6695 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6696 {
6697 PyThreadState* __tstate = wxPyBeginAllowThreads();
6698 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6699 wxPyEndAllowThreads(__tstate);
6700 if (PyErr_Occurred()) SWIG_fail;
6701 }
6702 {
6703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6704 }
6705 return resultobj;
6706 fail:
6707 return NULL;
6708 }
6709
6710
6711 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6712 PyObject *resultobj = 0;
6713 wxComboBox *arg1 = (wxComboBox *) 0 ;
6714 bool result;
6715 void *argp1 = 0 ;
6716 int res1 = 0 ;
6717 PyObject *swig_obj[1] ;
6718
6719 if (!args) SWIG_fail;
6720 swig_obj[0] = args;
6721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6722 if (!SWIG_IsOK(res1)) {
6723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6724 }
6725 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6729 wxPyEndAllowThreads(__tstate);
6730 if (PyErr_Occurred()) SWIG_fail;
6731 }
6732 {
6733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6734 }
6735 return resultobj;
6736 fail:
6737 return NULL;
6738 }
6739
6740
6741 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6742 PyObject *resultobj = 0;
6743 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6744 SwigValueWrapper<wxVisualAttributes > result;
6745 int val1 ;
6746 int ecode1 = 0 ;
6747 PyObject * obj0 = 0 ;
6748 char * kwnames[] = {
6749 (char *) "variant", NULL
6750 };
6751
6752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6753 if (obj0) {
6754 ecode1 = SWIG_AsVal_int(obj0, &val1);
6755 if (!SWIG_IsOK(ecode1)) {
6756 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6757 }
6758 arg1 = static_cast< wxWindowVariant >(val1);
6759 }
6760 {
6761 if (!wxPyCheckForApp()) SWIG_fail;
6762 PyThreadState* __tstate = wxPyBeginAllowThreads();
6763 result = wxComboBox::GetClassDefaultAttributes(arg1);
6764 wxPyEndAllowThreads(__tstate);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6768 return resultobj;
6769 fail:
6770 return NULL;
6771 }
6772
6773
6774 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6775 PyObject *obj;
6776 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6777 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6778 return SWIG_Py_Void();
6779 }
6780
6781 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6782 return SWIG_Python_InitShadowInstance(args);
6783 }
6784
6785 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6786 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6787 return 1;
6788 }
6789
6790
6791 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6792 PyObject *pyobj = 0;
6793
6794 {
6795 #if wxUSE_UNICODE
6796 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6797 #else
6798 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6799 #endif
6800 }
6801 return pyobj;
6802 }
6803
6804
6805 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj = 0;
6807 wxWindow *arg1 = (wxWindow *) 0 ;
6808 int arg2 = (int) -1 ;
6809 int arg3 = (int) 100 ;
6810 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6811 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6812 wxSize const &arg5_defvalue = wxDefaultSize ;
6813 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6814 long arg6 = (long) wxGA_HORIZONTAL ;
6815 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6816 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6817 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6818 wxString *arg8 = (wxString *) &arg8_defvalue ;
6819 wxGauge *result = 0 ;
6820 void *argp1 = 0 ;
6821 int res1 = 0 ;
6822 int val2 ;
6823 int ecode2 = 0 ;
6824 int val3 ;
6825 int ecode3 = 0 ;
6826 wxPoint temp4 ;
6827 wxSize temp5 ;
6828 long val6 ;
6829 int ecode6 = 0 ;
6830 void *argp7 = 0 ;
6831 int res7 = 0 ;
6832 bool temp8 = false ;
6833 PyObject * obj0 = 0 ;
6834 PyObject * obj1 = 0 ;
6835 PyObject * obj2 = 0 ;
6836 PyObject * obj3 = 0 ;
6837 PyObject * obj4 = 0 ;
6838 PyObject * obj5 = 0 ;
6839 PyObject * obj6 = 0 ;
6840 PyObject * obj7 = 0 ;
6841 char * kwnames[] = {
6842 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6843 };
6844
6845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6847 if (!SWIG_IsOK(res1)) {
6848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6849 }
6850 arg1 = reinterpret_cast< wxWindow * >(argp1);
6851 if (obj1) {
6852 ecode2 = SWIG_AsVal_int(obj1, &val2);
6853 if (!SWIG_IsOK(ecode2)) {
6854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6855 }
6856 arg2 = static_cast< int >(val2);
6857 }
6858 if (obj2) {
6859 ecode3 = SWIG_AsVal_int(obj2, &val3);
6860 if (!SWIG_IsOK(ecode3)) {
6861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6862 }
6863 arg3 = static_cast< int >(val3);
6864 }
6865 if (obj3) {
6866 {
6867 arg4 = &temp4;
6868 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6869 }
6870 }
6871 if (obj4) {
6872 {
6873 arg5 = &temp5;
6874 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6875 }
6876 }
6877 if (obj5) {
6878 ecode6 = SWIG_AsVal_long(obj5, &val6);
6879 if (!SWIG_IsOK(ecode6)) {
6880 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6881 }
6882 arg6 = static_cast< long >(val6);
6883 }
6884 if (obj6) {
6885 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6886 if (!SWIG_IsOK(res7)) {
6887 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6888 }
6889 if (!argp7) {
6890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6891 }
6892 arg7 = reinterpret_cast< wxValidator * >(argp7);
6893 }
6894 if (obj7) {
6895 {
6896 arg8 = wxString_in_helper(obj7);
6897 if (arg8 == NULL) SWIG_fail;
6898 temp8 = true;
6899 }
6900 }
6901 {
6902 if (!wxPyCheckForApp()) SWIG_fail;
6903 PyThreadState* __tstate = wxPyBeginAllowThreads();
6904 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return resultobj;
6914 fail:
6915 {
6916 if (temp8)
6917 delete arg8;
6918 }
6919 return NULL;
6920 }
6921
6922
6923 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6924 PyObject *resultobj = 0;
6925 wxGauge *result = 0 ;
6926
6927 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6928 {
6929 if (!wxPyCheckForApp()) SWIG_fail;
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 result = (wxGauge *)new wxGauge();
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6943 PyObject *resultobj = 0;
6944 wxGauge *arg1 = (wxGauge *) 0 ;
6945 wxWindow *arg2 = (wxWindow *) 0 ;
6946 int arg3 = (int) -1 ;
6947 int arg4 = (int) 100 ;
6948 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6949 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6950 wxSize const &arg6_defvalue = wxDefaultSize ;
6951 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6952 long arg7 = (long) wxGA_HORIZONTAL ;
6953 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6954 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6955 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6956 wxString *arg9 = (wxString *) &arg9_defvalue ;
6957 bool result;
6958 void *argp1 = 0 ;
6959 int res1 = 0 ;
6960 void *argp2 = 0 ;
6961 int res2 = 0 ;
6962 int val3 ;
6963 int ecode3 = 0 ;
6964 int val4 ;
6965 int ecode4 = 0 ;
6966 wxPoint temp5 ;
6967 wxSize temp6 ;
6968 long val7 ;
6969 int ecode7 = 0 ;
6970 void *argp8 = 0 ;
6971 int res8 = 0 ;
6972 bool temp9 = false ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 PyObject * obj2 = 0 ;
6976 PyObject * obj3 = 0 ;
6977 PyObject * obj4 = 0 ;
6978 PyObject * obj5 = 0 ;
6979 PyObject * obj6 = 0 ;
6980 PyObject * obj7 = 0 ;
6981 PyObject * obj8 = 0 ;
6982 char * kwnames[] = {
6983 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6984 };
6985
6986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6988 if (!SWIG_IsOK(res1)) {
6989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6990 }
6991 arg1 = reinterpret_cast< wxGauge * >(argp1);
6992 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6993 if (!SWIG_IsOK(res2)) {
6994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6995 }
6996 arg2 = reinterpret_cast< wxWindow * >(argp2);
6997 if (obj2) {
6998 ecode3 = SWIG_AsVal_int(obj2, &val3);
6999 if (!SWIG_IsOK(ecode3)) {
7000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
7001 }
7002 arg3 = static_cast< int >(val3);
7003 }
7004 if (obj3) {
7005 ecode4 = SWIG_AsVal_int(obj3, &val4);
7006 if (!SWIG_IsOK(ecode4)) {
7007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7008 }
7009 arg4 = static_cast< int >(val4);
7010 }
7011 if (obj4) {
7012 {
7013 arg5 = &temp5;
7014 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7015 }
7016 }
7017 if (obj5) {
7018 {
7019 arg6 = &temp6;
7020 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7021 }
7022 }
7023 if (obj6) {
7024 ecode7 = SWIG_AsVal_long(obj6, &val7);
7025 if (!SWIG_IsOK(ecode7)) {
7026 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7027 }
7028 arg7 = static_cast< long >(val7);
7029 }
7030 if (obj7) {
7031 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7032 if (!SWIG_IsOK(res8)) {
7033 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7034 }
7035 if (!argp8) {
7036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7037 }
7038 arg8 = reinterpret_cast< wxValidator * >(argp8);
7039 }
7040 if (obj8) {
7041 {
7042 arg9 = wxString_in_helper(obj8);
7043 if (arg9 == NULL) SWIG_fail;
7044 temp9 = true;
7045 }
7046 }
7047 {
7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
7049 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7050 wxPyEndAllowThreads(__tstate);
7051 if (PyErr_Occurred()) SWIG_fail;
7052 }
7053 {
7054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7055 }
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return resultobj;
7061 fail:
7062 {
7063 if (temp9)
7064 delete arg9;
7065 }
7066 return NULL;
7067 }
7068
7069
7070 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj = 0;
7072 wxGauge *arg1 = (wxGauge *) 0 ;
7073 int arg2 ;
7074 void *argp1 = 0 ;
7075 int res1 = 0 ;
7076 int val2 ;
7077 int ecode2 = 0 ;
7078 PyObject * obj0 = 0 ;
7079 PyObject * obj1 = 0 ;
7080 char * kwnames[] = {
7081 (char *) "self",(char *) "range", NULL
7082 };
7083
7084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7088 }
7089 arg1 = reinterpret_cast< wxGauge * >(argp1);
7090 ecode2 = SWIG_AsVal_int(obj1, &val2);
7091 if (!SWIG_IsOK(ecode2)) {
7092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7093 }
7094 arg2 = static_cast< int >(val2);
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 (arg1)->SetRange(arg2);
7098 wxPyEndAllowThreads(__tstate);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_Py_Void();
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7109 PyObject *resultobj = 0;
7110 wxGauge *arg1 = (wxGauge *) 0 ;
7111 int result;
7112 void *argp1 = 0 ;
7113 int res1 = 0 ;
7114 PyObject *swig_obj[1] ;
7115
7116 if (!args) SWIG_fail;
7117 swig_obj[0] = args;
7118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7119 if (!SWIG_IsOK(res1)) {
7120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7121 }
7122 arg1 = reinterpret_cast< wxGauge * >(argp1);
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 result = (int)((wxGauge const *)arg1)->GetRange();
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_From_int(static_cast< int >(result));
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj = 0;
7138 wxGauge *arg1 = (wxGauge *) 0 ;
7139 int arg2 ;
7140 void *argp1 = 0 ;
7141 int res1 = 0 ;
7142 int val2 ;
7143 int ecode2 = 0 ;
7144 PyObject * obj0 = 0 ;
7145 PyObject * obj1 = 0 ;
7146 char * kwnames[] = {
7147 (char *) "self",(char *) "pos", NULL
7148 };
7149
7150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7152 if (!SWIG_IsOK(res1)) {
7153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7154 }
7155 arg1 = reinterpret_cast< wxGauge * >(argp1);
7156 ecode2 = SWIG_AsVal_int(obj1, &val2);
7157 if (!SWIG_IsOK(ecode2)) {
7158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7159 }
7160 arg2 = static_cast< int >(val2);
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 (arg1)->SetValue(arg2);
7164 wxPyEndAllowThreads(__tstate);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = SWIG_Py_Void();
7168 return resultobj;
7169 fail:
7170 return NULL;
7171 }
7172
7173
7174 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7175 PyObject *resultobj = 0;
7176 wxGauge *arg1 = (wxGauge *) 0 ;
7177 int result;
7178 void *argp1 = 0 ;
7179 int res1 = 0 ;
7180 PyObject *swig_obj[1] ;
7181
7182 if (!args) SWIG_fail;
7183 swig_obj[0] = args;
7184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7185 if (!SWIG_IsOK(res1)) {
7186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7187 }
7188 arg1 = reinterpret_cast< wxGauge * >(argp1);
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 result = (int)((wxGauge const *)arg1)->GetValue();
7192 wxPyEndAllowThreads(__tstate);
7193 if (PyErr_Occurred()) SWIG_fail;
7194 }
7195 resultobj = SWIG_From_int(static_cast< int >(result));
7196 return resultobj;
7197 fail:
7198 return NULL;
7199 }
7200
7201
7202 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7203 PyObject *resultobj = 0;
7204 wxGauge *arg1 = (wxGauge *) 0 ;
7205 void *argp1 = 0 ;
7206 int res1 = 0 ;
7207 PyObject *swig_obj[1] ;
7208
7209 if (!args) SWIG_fail;
7210 swig_obj[0] = args;
7211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7212 if (!SWIG_IsOK(res1)) {
7213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7214 }
7215 arg1 = reinterpret_cast< wxGauge * >(argp1);
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 (arg1)->Pulse();
7219 wxPyEndAllowThreads(__tstate);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 resultobj = SWIG_Py_Void();
7223 return resultobj;
7224 fail:
7225 return NULL;
7226 }
7227
7228
7229 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7230 PyObject *resultobj = 0;
7231 wxGauge *arg1 = (wxGauge *) 0 ;
7232 bool result;
7233 void *argp1 = 0 ;
7234 int res1 = 0 ;
7235 PyObject *swig_obj[1] ;
7236
7237 if (!args) SWIG_fail;
7238 swig_obj[0] = args;
7239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7240 if (!SWIG_IsOK(res1)) {
7241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7242 }
7243 arg1 = reinterpret_cast< wxGauge * >(argp1);
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 result = (bool)((wxGauge const *)arg1)->IsVertical();
7247 wxPyEndAllowThreads(__tstate);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 {
7251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7252 }
7253 return resultobj;
7254 fail:
7255 return NULL;
7256 }
7257
7258
7259 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj = 0;
7261 wxGauge *arg1 = (wxGauge *) 0 ;
7262 int arg2 ;
7263 void *argp1 = 0 ;
7264 int res1 = 0 ;
7265 int val2 ;
7266 int ecode2 = 0 ;
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 char * kwnames[] = {
7270 (char *) "self",(char *) "w", NULL
7271 };
7272
7273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7277 }
7278 arg1 = reinterpret_cast< wxGauge * >(argp1);
7279 ecode2 = SWIG_AsVal_int(obj1, &val2);
7280 if (!SWIG_IsOK(ecode2)) {
7281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7282 }
7283 arg2 = static_cast< int >(val2);
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 (arg1)->SetShadowWidth(arg2);
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_Py_Void();
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7298 PyObject *resultobj = 0;
7299 wxGauge *arg1 = (wxGauge *) 0 ;
7300 int result;
7301 void *argp1 = 0 ;
7302 int res1 = 0 ;
7303 PyObject *swig_obj[1] ;
7304
7305 if (!args) SWIG_fail;
7306 swig_obj[0] = args;
7307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7308 if (!SWIG_IsOK(res1)) {
7309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7310 }
7311 arg1 = reinterpret_cast< wxGauge * >(argp1);
7312 {
7313 PyThreadState* __tstate = wxPyBeginAllowThreads();
7314 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7315 wxPyEndAllowThreads(__tstate);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 resultobj = SWIG_From_int(static_cast< int >(result));
7319 return resultobj;
7320 fail:
7321 return NULL;
7322 }
7323
7324
7325 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7326 PyObject *resultobj = 0;
7327 wxGauge *arg1 = (wxGauge *) 0 ;
7328 int arg2 ;
7329 void *argp1 = 0 ;
7330 int res1 = 0 ;
7331 int val2 ;
7332 int ecode2 = 0 ;
7333 PyObject * obj0 = 0 ;
7334 PyObject * obj1 = 0 ;
7335 char * kwnames[] = {
7336 (char *) "self",(char *) "w", NULL
7337 };
7338
7339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7343 }
7344 arg1 = reinterpret_cast< wxGauge * >(argp1);
7345 ecode2 = SWIG_AsVal_int(obj1, &val2);
7346 if (!SWIG_IsOK(ecode2)) {
7347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7348 }
7349 arg2 = static_cast< int >(val2);
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 (arg1)->SetBezelFace(arg2);
7353 wxPyEndAllowThreads(__tstate);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_Py_Void();
7357 return resultobj;
7358 fail:
7359 return NULL;
7360 }
7361
7362
7363 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7364 PyObject *resultobj = 0;
7365 wxGauge *arg1 = (wxGauge *) 0 ;
7366 int result;
7367 void *argp1 = 0 ;
7368 int res1 = 0 ;
7369 PyObject *swig_obj[1] ;
7370
7371 if (!args) SWIG_fail;
7372 swig_obj[0] = args;
7373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7374 if (!SWIG_IsOK(res1)) {
7375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7376 }
7377 arg1 = reinterpret_cast< wxGauge * >(argp1);
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_From_int(static_cast< int >(result));
7385 return resultobj;
7386 fail:
7387 return NULL;
7388 }
7389
7390
7391 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7392 PyObject *resultobj = 0;
7393 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7394 SwigValueWrapper<wxVisualAttributes > result;
7395 int val1 ;
7396 int ecode1 = 0 ;
7397 PyObject * obj0 = 0 ;
7398 char * kwnames[] = {
7399 (char *) "variant", NULL
7400 };
7401
7402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7403 if (obj0) {
7404 ecode1 = SWIG_AsVal_int(obj0, &val1);
7405 if (!SWIG_IsOK(ecode1)) {
7406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7407 }
7408 arg1 = static_cast< wxWindowVariant >(val1);
7409 }
7410 {
7411 if (!wxPyCheckForApp()) SWIG_fail;
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 result = wxGauge::GetClassDefaultAttributes(arg1);
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7418 return resultobj;
7419 fail:
7420 return NULL;
7421 }
7422
7423
7424 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7425 PyObject *obj;
7426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7427 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7428 return SWIG_Py_Void();
7429 }
7430
7431 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7432 return SWIG_Python_InitShadowInstance(args);
7433 }
7434
7435 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7436 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7437 return 1;
7438 }
7439
7440
7441 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7442 PyObject *pyobj = 0;
7443
7444 {
7445 #if wxUSE_UNICODE
7446 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7447 #else
7448 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7449 #endif
7450 }
7451 return pyobj;
7452 }
7453
7454
7455 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7456 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7457 return 1;
7458 }
7459
7460
7461 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7462 PyObject *pyobj = 0;
7463
7464 {
7465 #if wxUSE_UNICODE
7466 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7467 #else
7468 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7469 #endif
7470 }
7471 return pyobj;
7472 }
7473
7474
7475 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7476 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7477 return 1;
7478 }
7479
7480
7481 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7482 PyObject *pyobj = 0;
7483
7484 {
7485 #if wxUSE_UNICODE
7486 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7487 #else
7488 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7489 #endif
7490 }
7491 return pyobj;
7492 }
7493
7494
7495 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj = 0;
7497 wxWindow *arg1 = (wxWindow *) 0 ;
7498 int arg2 = (int) -1 ;
7499 wxString const &arg3_defvalue = wxPyEmptyString ;
7500 wxString *arg3 = (wxString *) &arg3_defvalue ;
7501 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7502 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7503 wxSize const &arg5_defvalue = wxDefaultSize ;
7504 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7505 long arg6 = (long) 0 ;
7506 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7507 wxString *arg7 = (wxString *) &arg7_defvalue ;
7508 wxStaticBox *result = 0 ;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511 int val2 ;
7512 int ecode2 = 0 ;
7513 bool temp3 = false ;
7514 wxPoint temp4 ;
7515 wxSize temp5 ;
7516 long val6 ;
7517 int ecode6 = 0 ;
7518 bool temp7 = false ;
7519 PyObject * obj0 = 0 ;
7520 PyObject * obj1 = 0 ;
7521 PyObject * obj2 = 0 ;
7522 PyObject * obj3 = 0 ;
7523 PyObject * obj4 = 0 ;
7524 PyObject * obj5 = 0 ;
7525 PyObject * obj6 = 0 ;
7526 char * kwnames[] = {
7527 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7528 };
7529
7530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7532 if (!SWIG_IsOK(res1)) {
7533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7534 }
7535 arg1 = reinterpret_cast< wxWindow * >(argp1);
7536 if (obj1) {
7537 ecode2 = SWIG_AsVal_int(obj1, &val2);
7538 if (!SWIG_IsOK(ecode2)) {
7539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7540 }
7541 arg2 = static_cast< int >(val2);
7542 }
7543 if (obj2) {
7544 {
7545 arg3 = wxString_in_helper(obj2);
7546 if (arg3 == NULL) SWIG_fail;
7547 temp3 = true;
7548 }
7549 }
7550 if (obj3) {
7551 {
7552 arg4 = &temp4;
7553 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7554 }
7555 }
7556 if (obj4) {
7557 {
7558 arg5 = &temp5;
7559 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7560 }
7561 }
7562 if (obj5) {
7563 ecode6 = SWIG_AsVal_long(obj5, &val6);
7564 if (!SWIG_IsOK(ecode6)) {
7565 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7566 }
7567 arg6 = static_cast< long >(val6);
7568 }
7569 if (obj6) {
7570 {
7571 arg7 = wxString_in_helper(obj6);
7572 if (arg7 == NULL) SWIG_fail;
7573 temp7 = true;
7574 }
7575 }
7576 {
7577 if (!wxPyCheckForApp()) SWIG_fail;
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7584 {
7585 if (temp3)
7586 delete arg3;
7587 }
7588 {
7589 if (temp7)
7590 delete arg7;
7591 }
7592 return resultobj;
7593 fail:
7594 {
7595 if (temp3)
7596 delete arg3;
7597 }
7598 {
7599 if (temp7)
7600 delete arg7;
7601 }
7602 return NULL;
7603 }
7604
7605
7606 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7607 PyObject *resultobj = 0;
7608 wxStaticBox *result = 0 ;
7609
7610 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7611 {
7612 if (!wxPyCheckForApp()) SWIG_fail;
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = (wxStaticBox *)new wxStaticBox();
7615 wxPyEndAllowThreads(__tstate);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7619 return resultobj;
7620 fail:
7621 return NULL;
7622 }
7623
7624
7625 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7626 PyObject *resultobj = 0;
7627 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7628 wxWindow *arg2 = (wxWindow *) 0 ;
7629 int arg3 = (int) -1 ;
7630 wxString const &arg4_defvalue = wxPyEmptyString ;
7631 wxString *arg4 = (wxString *) &arg4_defvalue ;
7632 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7633 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7634 wxSize const &arg6_defvalue = wxDefaultSize ;
7635 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7636 long arg7 = (long) 0 ;
7637 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7638 wxString *arg8 = (wxString *) &arg8_defvalue ;
7639 bool result;
7640 void *argp1 = 0 ;
7641 int res1 = 0 ;
7642 void *argp2 = 0 ;
7643 int res2 = 0 ;
7644 int val3 ;
7645 int ecode3 = 0 ;
7646 bool temp4 = false ;
7647 wxPoint temp5 ;
7648 wxSize temp6 ;
7649 long val7 ;
7650 int ecode7 = 0 ;
7651 bool temp8 = false ;
7652 PyObject * obj0 = 0 ;
7653 PyObject * obj1 = 0 ;
7654 PyObject * obj2 = 0 ;
7655 PyObject * obj3 = 0 ;
7656 PyObject * obj4 = 0 ;
7657 PyObject * obj5 = 0 ;
7658 PyObject * obj6 = 0 ;
7659 PyObject * obj7 = 0 ;
7660 char * kwnames[] = {
7661 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7662 };
7663
7664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7666 if (!SWIG_IsOK(res1)) {
7667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7668 }
7669 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7670 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7671 if (!SWIG_IsOK(res2)) {
7672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7673 }
7674 arg2 = reinterpret_cast< wxWindow * >(argp2);
7675 if (obj2) {
7676 ecode3 = SWIG_AsVal_int(obj2, &val3);
7677 if (!SWIG_IsOK(ecode3)) {
7678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7679 }
7680 arg3 = static_cast< int >(val3);
7681 }
7682 if (obj3) {
7683 {
7684 arg4 = wxString_in_helper(obj3);
7685 if (arg4 == NULL) SWIG_fail;
7686 temp4 = true;
7687 }
7688 }
7689 if (obj4) {
7690 {
7691 arg5 = &temp5;
7692 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7693 }
7694 }
7695 if (obj5) {
7696 {
7697 arg6 = &temp6;
7698 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7699 }
7700 }
7701 if (obj6) {
7702 ecode7 = SWIG_AsVal_long(obj6, &val7);
7703 if (!SWIG_IsOK(ecode7)) {
7704 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7705 }
7706 arg7 = static_cast< long >(val7);
7707 }
7708 if (obj7) {
7709 {
7710 arg8 = wxString_in_helper(obj7);
7711 if (arg8 == NULL) SWIG_fail;
7712 temp8 = true;
7713 }
7714 }
7715 {
7716 PyThreadState* __tstate = wxPyBeginAllowThreads();
7717 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7718 wxPyEndAllowThreads(__tstate);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 {
7722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7723 }
7724 {
7725 if (temp4)
7726 delete arg4;
7727 }
7728 {
7729 if (temp8)
7730 delete arg8;
7731 }
7732 return resultobj;
7733 fail:
7734 {
7735 if (temp4)
7736 delete arg4;
7737 }
7738 {
7739 if (temp8)
7740 delete arg8;
7741 }
7742 return NULL;
7743 }
7744
7745
7746 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj = 0;
7748 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7749 SwigValueWrapper<wxVisualAttributes > result;
7750 int val1 ;
7751 int ecode1 = 0 ;
7752 PyObject * obj0 = 0 ;
7753 char * kwnames[] = {
7754 (char *) "variant", NULL
7755 };
7756
7757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7758 if (obj0) {
7759 ecode1 = SWIG_AsVal_int(obj0, &val1);
7760 if (!SWIG_IsOK(ecode1)) {
7761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7762 }
7763 arg1 = static_cast< wxWindowVariant >(val1);
7764 }
7765 {
7766 if (!wxPyCheckForApp()) SWIG_fail;
7767 PyThreadState* __tstate = wxPyBeginAllowThreads();
7768 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7773 return resultobj;
7774 fail:
7775 return NULL;
7776 }
7777
7778
7779 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7780 PyObject *obj;
7781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7782 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7783 return SWIG_Py_Void();
7784 }
7785
7786 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7787 return SWIG_Python_InitShadowInstance(args);
7788 }
7789
7790 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7791 PyObject *resultobj = 0;
7792 wxWindow *arg1 = (wxWindow *) 0 ;
7793 int arg2 = (int) -1 ;
7794 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7795 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7796 wxSize const &arg4_defvalue = wxDefaultSize ;
7797 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7798 long arg5 = (long) wxLI_HORIZONTAL ;
7799 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7800 wxString *arg6 = (wxString *) &arg6_defvalue ;
7801 wxStaticLine *result = 0 ;
7802 void *argp1 = 0 ;
7803 int res1 = 0 ;
7804 int val2 ;
7805 int ecode2 = 0 ;
7806 wxPoint temp3 ;
7807 wxSize temp4 ;
7808 long val5 ;
7809 int ecode5 = 0 ;
7810 bool temp6 = false ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 PyObject * obj2 = 0 ;
7814 PyObject * obj3 = 0 ;
7815 PyObject * obj4 = 0 ;
7816 PyObject * obj5 = 0 ;
7817 char * kwnames[] = {
7818 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7819 };
7820
7821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7823 if (!SWIG_IsOK(res1)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7825 }
7826 arg1 = reinterpret_cast< wxWindow * >(argp1);
7827 if (obj1) {
7828 ecode2 = SWIG_AsVal_int(obj1, &val2);
7829 if (!SWIG_IsOK(ecode2)) {
7830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7831 }
7832 arg2 = static_cast< int >(val2);
7833 }
7834 if (obj2) {
7835 {
7836 arg3 = &temp3;
7837 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7838 }
7839 }
7840 if (obj3) {
7841 {
7842 arg4 = &temp4;
7843 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7844 }
7845 }
7846 if (obj4) {
7847 ecode5 = SWIG_AsVal_long(obj4, &val5);
7848 if (!SWIG_IsOK(ecode5)) {
7849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7850 }
7851 arg5 = static_cast< long >(val5);
7852 }
7853 if (obj5) {
7854 {
7855 arg6 = wxString_in_helper(obj5);
7856 if (arg6 == NULL) SWIG_fail;
7857 temp6 = true;
7858 }
7859 }
7860 {
7861 if (!wxPyCheckForApp()) SWIG_fail;
7862 PyThreadState* __tstate = wxPyBeginAllowThreads();
7863 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7864 wxPyEndAllowThreads(__tstate);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7868 {
7869 if (temp6)
7870 delete arg6;
7871 }
7872 return resultobj;
7873 fail:
7874 {
7875 if (temp6)
7876 delete arg6;
7877 }
7878 return NULL;
7879 }
7880
7881
7882 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7883 PyObject *resultobj = 0;
7884 wxStaticLine *result = 0 ;
7885
7886 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7887 {
7888 if (!wxPyCheckForApp()) SWIG_fail;
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 result = (wxStaticLine *)new wxStaticLine();
7891 wxPyEndAllowThreads(__tstate);
7892 if (PyErr_Occurred()) SWIG_fail;
7893 }
7894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7895 return resultobj;
7896 fail:
7897 return NULL;
7898 }
7899
7900
7901 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7902 PyObject *resultobj = 0;
7903 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7904 wxWindow *arg2 = (wxWindow *) 0 ;
7905 int arg3 = (int) -1 ;
7906 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7907 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7908 wxSize const &arg5_defvalue = wxDefaultSize ;
7909 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7910 long arg6 = (long) wxLI_HORIZONTAL ;
7911 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7912 wxString *arg7 = (wxString *) &arg7_defvalue ;
7913 bool result;
7914 void *argp1 = 0 ;
7915 int res1 = 0 ;
7916 void *argp2 = 0 ;
7917 int res2 = 0 ;
7918 int val3 ;
7919 int ecode3 = 0 ;
7920 wxPoint temp4 ;
7921 wxSize temp5 ;
7922 long val6 ;
7923 int ecode6 = 0 ;
7924 bool temp7 = false ;
7925 PyObject * obj0 = 0 ;
7926 PyObject * obj1 = 0 ;
7927 PyObject * obj2 = 0 ;
7928 PyObject * obj3 = 0 ;
7929 PyObject * obj4 = 0 ;
7930 PyObject * obj5 = 0 ;
7931 PyObject * obj6 = 0 ;
7932 char * kwnames[] = {
7933 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7934 };
7935
7936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7938 if (!SWIG_IsOK(res1)) {
7939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7940 }
7941 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7943 if (!SWIG_IsOK(res2)) {
7944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7945 }
7946 arg2 = reinterpret_cast< wxWindow * >(argp2);
7947 if (obj2) {
7948 ecode3 = SWIG_AsVal_int(obj2, &val3);
7949 if (!SWIG_IsOK(ecode3)) {
7950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7951 }
7952 arg3 = static_cast< int >(val3);
7953 }
7954 if (obj3) {
7955 {
7956 arg4 = &temp4;
7957 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7958 }
7959 }
7960 if (obj4) {
7961 {
7962 arg5 = &temp5;
7963 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7964 }
7965 }
7966 if (obj5) {
7967 ecode6 = SWIG_AsVal_long(obj5, &val6);
7968 if (!SWIG_IsOK(ecode6)) {
7969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7970 }
7971 arg6 = static_cast< long >(val6);
7972 }
7973 if (obj6) {
7974 {
7975 arg7 = wxString_in_helper(obj6);
7976 if (arg7 == NULL) SWIG_fail;
7977 temp7 = true;
7978 }
7979 }
7980 {
7981 PyThreadState* __tstate = wxPyBeginAllowThreads();
7982 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7983 wxPyEndAllowThreads(__tstate);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 {
7987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7988 }
7989 {
7990 if (temp7)
7991 delete arg7;
7992 }
7993 return resultobj;
7994 fail:
7995 {
7996 if (temp7)
7997 delete arg7;
7998 }
7999 return NULL;
8000 }
8001
8002
8003 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8004 PyObject *resultobj = 0;
8005 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8006 bool result;
8007 void *argp1 = 0 ;
8008 int res1 = 0 ;
8009 PyObject *swig_obj[1] ;
8010
8011 if (!args) SWIG_fail;
8012 swig_obj[0] = args;
8013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8016 }
8017 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8018 {
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 {
8025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8026 }
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8034 PyObject *resultobj = 0;
8035 int result;
8036
8037 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = (int)wxStaticLine::GetDefaultSize();
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 resultobj = SWIG_From_int(static_cast< int >(result));
8045 return resultobj;
8046 fail:
8047 return NULL;
8048 }
8049
8050
8051 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8052 PyObject *resultobj = 0;
8053 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8054 SwigValueWrapper<wxVisualAttributes > result;
8055 int val1 ;
8056 int ecode1 = 0 ;
8057 PyObject * obj0 = 0 ;
8058 char * kwnames[] = {
8059 (char *) "variant", NULL
8060 };
8061
8062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8063 if (obj0) {
8064 ecode1 = SWIG_AsVal_int(obj0, &val1);
8065 if (!SWIG_IsOK(ecode1)) {
8066 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8067 }
8068 arg1 = static_cast< wxWindowVariant >(val1);
8069 }
8070 {
8071 if (!wxPyCheckForApp()) SWIG_fail;
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8078 return resultobj;
8079 fail:
8080 return NULL;
8081 }
8082
8083
8084 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8085 PyObject *obj;
8086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8087 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8088 return SWIG_Py_Void();
8089 }
8090
8091 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8092 return SWIG_Python_InitShadowInstance(args);
8093 }
8094
8095 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8096 PyObject *resultobj = 0;
8097 wxWindow *arg1 = (wxWindow *) 0 ;
8098 int arg2 = (int) -1 ;
8099 wxString const &arg3_defvalue = wxPyEmptyString ;
8100 wxString *arg3 = (wxString *) &arg3_defvalue ;
8101 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8102 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8103 wxSize const &arg5_defvalue = wxDefaultSize ;
8104 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8105 long arg6 = (long) 0 ;
8106 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8107 wxString *arg7 = (wxString *) &arg7_defvalue ;
8108 wxStaticText *result = 0 ;
8109 void *argp1 = 0 ;
8110 int res1 = 0 ;
8111 int val2 ;
8112 int ecode2 = 0 ;
8113 bool temp3 = false ;
8114 wxPoint temp4 ;
8115 wxSize temp5 ;
8116 long val6 ;
8117 int ecode6 = 0 ;
8118 bool temp7 = false ;
8119 PyObject * obj0 = 0 ;
8120 PyObject * obj1 = 0 ;
8121 PyObject * obj2 = 0 ;
8122 PyObject * obj3 = 0 ;
8123 PyObject * obj4 = 0 ;
8124 PyObject * obj5 = 0 ;
8125 PyObject * obj6 = 0 ;
8126 char * kwnames[] = {
8127 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8128 };
8129
8130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8132 if (!SWIG_IsOK(res1)) {
8133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8134 }
8135 arg1 = reinterpret_cast< wxWindow * >(argp1);
8136 if (obj1) {
8137 ecode2 = SWIG_AsVal_int(obj1, &val2);
8138 if (!SWIG_IsOK(ecode2)) {
8139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8140 }
8141 arg2 = static_cast< int >(val2);
8142 }
8143 if (obj2) {
8144 {
8145 arg3 = wxString_in_helper(obj2);
8146 if (arg3 == NULL) SWIG_fail;
8147 temp3 = true;
8148 }
8149 }
8150 if (obj3) {
8151 {
8152 arg4 = &temp4;
8153 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8154 }
8155 }
8156 if (obj4) {
8157 {
8158 arg5 = &temp5;
8159 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8160 }
8161 }
8162 if (obj5) {
8163 ecode6 = SWIG_AsVal_long(obj5, &val6);
8164 if (!SWIG_IsOK(ecode6)) {
8165 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8166 }
8167 arg6 = static_cast< long >(val6);
8168 }
8169 if (obj6) {
8170 {
8171 arg7 = wxString_in_helper(obj6);
8172 if (arg7 == NULL) SWIG_fail;
8173 temp7 = true;
8174 }
8175 }
8176 {
8177 if (!wxPyCheckForApp()) SWIG_fail;
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8184 {
8185 if (temp3)
8186 delete arg3;
8187 }
8188 {
8189 if (temp7)
8190 delete arg7;
8191 }
8192 return resultobj;
8193 fail:
8194 {
8195 if (temp3)
8196 delete arg3;
8197 }
8198 {
8199 if (temp7)
8200 delete arg7;
8201 }
8202 return NULL;
8203 }
8204
8205
8206 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8207 PyObject *resultobj = 0;
8208 wxStaticText *result = 0 ;
8209
8210 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8211 {
8212 if (!wxPyCheckForApp()) SWIG_fail;
8213 PyThreadState* __tstate = wxPyBeginAllowThreads();
8214 result = (wxStaticText *)new wxStaticText();
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8219 return resultobj;
8220 fail:
8221 return NULL;
8222 }
8223
8224
8225 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8226 PyObject *resultobj = 0;
8227 wxStaticText *arg1 = (wxStaticText *) 0 ;
8228 wxWindow *arg2 = (wxWindow *) 0 ;
8229 int arg3 = (int) -1 ;
8230 wxString const &arg4_defvalue = wxPyEmptyString ;
8231 wxString *arg4 = (wxString *) &arg4_defvalue ;
8232 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8233 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8234 wxSize const &arg6_defvalue = wxDefaultSize ;
8235 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8236 long arg7 = (long) 0 ;
8237 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8238 wxString *arg8 = (wxString *) &arg8_defvalue ;
8239 bool result;
8240 void *argp1 = 0 ;
8241 int res1 = 0 ;
8242 void *argp2 = 0 ;
8243 int res2 = 0 ;
8244 int val3 ;
8245 int ecode3 = 0 ;
8246 bool temp4 = false ;
8247 wxPoint temp5 ;
8248 wxSize temp6 ;
8249 long val7 ;
8250 int ecode7 = 0 ;
8251 bool temp8 = false ;
8252 PyObject * obj0 = 0 ;
8253 PyObject * obj1 = 0 ;
8254 PyObject * obj2 = 0 ;
8255 PyObject * obj3 = 0 ;
8256 PyObject * obj4 = 0 ;
8257 PyObject * obj5 = 0 ;
8258 PyObject * obj6 = 0 ;
8259 PyObject * obj7 = 0 ;
8260 char * kwnames[] = {
8261 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8262 };
8263
8264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8266 if (!SWIG_IsOK(res1)) {
8267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8268 }
8269 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8271 if (!SWIG_IsOK(res2)) {
8272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8273 }
8274 arg2 = reinterpret_cast< wxWindow * >(argp2);
8275 if (obj2) {
8276 ecode3 = SWIG_AsVal_int(obj2, &val3);
8277 if (!SWIG_IsOK(ecode3)) {
8278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8279 }
8280 arg3 = static_cast< int >(val3);
8281 }
8282 if (obj3) {
8283 {
8284 arg4 = wxString_in_helper(obj3);
8285 if (arg4 == NULL) SWIG_fail;
8286 temp4 = true;
8287 }
8288 }
8289 if (obj4) {
8290 {
8291 arg5 = &temp5;
8292 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8293 }
8294 }
8295 if (obj5) {
8296 {
8297 arg6 = &temp6;
8298 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8299 }
8300 }
8301 if (obj6) {
8302 ecode7 = SWIG_AsVal_long(obj6, &val7);
8303 if (!SWIG_IsOK(ecode7)) {
8304 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8305 }
8306 arg7 = static_cast< long >(val7);
8307 }
8308 if (obj7) {
8309 {
8310 arg8 = wxString_in_helper(obj7);
8311 if (arg8 == NULL) SWIG_fail;
8312 temp8 = true;
8313 }
8314 }
8315 {
8316 PyThreadState* __tstate = wxPyBeginAllowThreads();
8317 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8318 wxPyEndAllowThreads(__tstate);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 {
8322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8323 }
8324 {
8325 if (temp4)
8326 delete arg4;
8327 }
8328 {
8329 if (temp8)
8330 delete arg8;
8331 }
8332 return resultobj;
8333 fail:
8334 {
8335 if (temp4)
8336 delete arg4;
8337 }
8338 {
8339 if (temp8)
8340 delete arg8;
8341 }
8342 return NULL;
8343 }
8344
8345
8346 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8347 PyObject *resultobj = 0;
8348 wxStaticText *arg1 = (wxStaticText *) 0 ;
8349 int arg2 ;
8350 void *argp1 = 0 ;
8351 int res1 = 0 ;
8352 int val2 ;
8353 int ecode2 = 0 ;
8354 PyObject * obj0 = 0 ;
8355 PyObject * obj1 = 0 ;
8356 char * kwnames[] = {
8357 (char *) "self",(char *) "width", NULL
8358 };
8359
8360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8362 if (!SWIG_IsOK(res1)) {
8363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8364 }
8365 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8366 ecode2 = SWIG_AsVal_int(obj1, &val2);
8367 if (!SWIG_IsOK(ecode2)) {
8368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8369 }
8370 arg2 = static_cast< int >(val2);
8371 {
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 (arg1)->Wrap(arg2);
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_Py_Void();
8378 return resultobj;
8379 fail:
8380 return NULL;
8381 }
8382
8383
8384 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8385 PyObject *resultobj = 0;
8386 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8387 SwigValueWrapper<wxVisualAttributes > result;
8388 int val1 ;
8389 int ecode1 = 0 ;
8390 PyObject * obj0 = 0 ;
8391 char * kwnames[] = {
8392 (char *) "variant", NULL
8393 };
8394
8395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8396 if (obj0) {
8397 ecode1 = SWIG_AsVal_int(obj0, &val1);
8398 if (!SWIG_IsOK(ecode1)) {
8399 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8400 }
8401 arg1 = static_cast< wxWindowVariant >(val1);
8402 }
8403 {
8404 if (!wxPyCheckForApp()) SWIG_fail;
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
8406 result = wxStaticText::GetClassDefaultAttributes(arg1);
8407 wxPyEndAllowThreads(__tstate);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8411 return resultobj;
8412 fail:
8413 return NULL;
8414 }
8415
8416
8417 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8418 PyObject *obj;
8419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8420 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8421 return SWIG_Py_Void();
8422 }
8423
8424 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8425 return SWIG_Python_InitShadowInstance(args);
8426 }
8427
8428 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj = 0;
8430 wxWindow *arg1 = (wxWindow *) 0 ;
8431 int arg2 = (int) -1 ;
8432 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8433 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8434 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8435 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8436 wxSize const &arg5_defvalue = wxDefaultSize ;
8437 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8438 long arg6 = (long) 0 ;
8439 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8440 wxString *arg7 = (wxString *) &arg7_defvalue ;
8441 wxStaticBitmap *result = 0 ;
8442 void *argp1 = 0 ;
8443 int res1 = 0 ;
8444 int val2 ;
8445 int ecode2 = 0 ;
8446 void *argp3 = 0 ;
8447 int res3 = 0 ;
8448 wxPoint temp4 ;
8449 wxSize temp5 ;
8450 long val6 ;
8451 int ecode6 = 0 ;
8452 bool temp7 = false ;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455 PyObject * obj2 = 0 ;
8456 PyObject * obj3 = 0 ;
8457 PyObject * obj4 = 0 ;
8458 PyObject * obj5 = 0 ;
8459 PyObject * obj6 = 0 ;
8460 char * kwnames[] = {
8461 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8462 };
8463
8464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8466 if (!SWIG_IsOK(res1)) {
8467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8468 }
8469 arg1 = reinterpret_cast< wxWindow * >(argp1);
8470 if (obj1) {
8471 ecode2 = SWIG_AsVal_int(obj1, &val2);
8472 if (!SWIG_IsOK(ecode2)) {
8473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8474 }
8475 arg2 = static_cast< int >(val2);
8476 }
8477 if (obj2) {
8478 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8479 if (!SWIG_IsOK(res3)) {
8480 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8481 }
8482 if (!argp3) {
8483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8484 }
8485 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8486 }
8487 if (obj3) {
8488 {
8489 arg4 = &temp4;
8490 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8491 }
8492 }
8493 if (obj4) {
8494 {
8495 arg5 = &temp5;
8496 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8497 }
8498 }
8499 if (obj5) {
8500 ecode6 = SWIG_AsVal_long(obj5, &val6);
8501 if (!SWIG_IsOK(ecode6)) {
8502 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8503 }
8504 arg6 = static_cast< long >(val6);
8505 }
8506 if (obj6) {
8507 {
8508 arg7 = wxString_in_helper(obj6);
8509 if (arg7 == NULL) SWIG_fail;
8510 temp7 = true;
8511 }
8512 }
8513 {
8514 if (!wxPyCheckForApp()) SWIG_fail;
8515 PyThreadState* __tstate = wxPyBeginAllowThreads();
8516 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8517 wxPyEndAllowThreads(__tstate);
8518 if (PyErr_Occurred()) SWIG_fail;
8519 }
8520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8521 {
8522 if (temp7)
8523 delete arg7;
8524 }
8525 return resultobj;
8526 fail:
8527 {
8528 if (temp7)
8529 delete arg7;
8530 }
8531 return NULL;
8532 }
8533
8534
8535 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8536 PyObject *resultobj = 0;
8537 wxStaticBitmap *result = 0 ;
8538
8539 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8540 {
8541 if (!wxPyCheckForApp()) SWIG_fail;
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 result = (wxStaticBitmap *)new wxStaticBitmap();
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8548 return resultobj;
8549 fail:
8550 return NULL;
8551 }
8552
8553
8554 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj = 0;
8556 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8557 wxWindow *arg2 = (wxWindow *) 0 ;
8558 int arg3 = (int) -1 ;
8559 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8560 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8561 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8562 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8563 wxSize const &arg6_defvalue = wxDefaultSize ;
8564 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8565 long arg7 = (long) 0 ;
8566 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8567 wxString *arg8 = (wxString *) &arg8_defvalue ;
8568 bool result;
8569 void *argp1 = 0 ;
8570 int res1 = 0 ;
8571 void *argp2 = 0 ;
8572 int res2 = 0 ;
8573 int val3 ;
8574 int ecode3 = 0 ;
8575 void *argp4 = 0 ;
8576 int res4 = 0 ;
8577 wxPoint temp5 ;
8578 wxSize temp6 ;
8579 long val7 ;
8580 int ecode7 = 0 ;
8581 bool temp8 = false ;
8582 PyObject * obj0 = 0 ;
8583 PyObject * obj1 = 0 ;
8584 PyObject * obj2 = 0 ;
8585 PyObject * obj3 = 0 ;
8586 PyObject * obj4 = 0 ;
8587 PyObject * obj5 = 0 ;
8588 PyObject * obj6 = 0 ;
8589 PyObject * obj7 = 0 ;
8590 char * kwnames[] = {
8591 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8592 };
8593
8594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8596 if (!SWIG_IsOK(res1)) {
8597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8598 }
8599 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8601 if (!SWIG_IsOK(res2)) {
8602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8603 }
8604 arg2 = reinterpret_cast< wxWindow * >(argp2);
8605 if (obj2) {
8606 ecode3 = SWIG_AsVal_int(obj2, &val3);
8607 if (!SWIG_IsOK(ecode3)) {
8608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8609 }
8610 arg3 = static_cast< int >(val3);
8611 }
8612 if (obj3) {
8613 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8614 if (!SWIG_IsOK(res4)) {
8615 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8616 }
8617 if (!argp4) {
8618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8619 }
8620 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8621 }
8622 if (obj4) {
8623 {
8624 arg5 = &temp5;
8625 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8626 }
8627 }
8628 if (obj5) {
8629 {
8630 arg6 = &temp6;
8631 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8632 }
8633 }
8634 if (obj6) {
8635 ecode7 = SWIG_AsVal_long(obj6, &val7);
8636 if (!SWIG_IsOK(ecode7)) {
8637 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8638 }
8639 arg7 = static_cast< long >(val7);
8640 }
8641 if (obj7) {
8642 {
8643 arg8 = wxString_in_helper(obj7);
8644 if (arg8 == NULL) SWIG_fail;
8645 temp8 = true;
8646 }
8647 }
8648 {
8649 PyThreadState* __tstate = wxPyBeginAllowThreads();
8650 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8651 wxPyEndAllowThreads(__tstate);
8652 if (PyErr_Occurred()) SWIG_fail;
8653 }
8654 {
8655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8656 }
8657 {
8658 if (temp8)
8659 delete arg8;
8660 }
8661 return resultobj;
8662 fail:
8663 {
8664 if (temp8)
8665 delete arg8;
8666 }
8667 return NULL;
8668 }
8669
8670
8671 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *resultobj = 0;
8673 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8674 wxBitmap result;
8675 void *argp1 = 0 ;
8676 int res1 = 0 ;
8677 PyObject *swig_obj[1] ;
8678
8679 if (!args) SWIG_fail;
8680 swig_obj[0] = args;
8681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8682 if (!SWIG_IsOK(res1)) {
8683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8684 }
8685 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8686 {
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 result = (arg1)->GetBitmap();
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8700 PyObject *resultobj = 0;
8701 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8702 wxBitmap *arg2 = 0 ;
8703 void *argp1 = 0 ;
8704 int res1 = 0 ;
8705 void *argp2 = 0 ;
8706 int res2 = 0 ;
8707 PyObject * obj0 = 0 ;
8708 PyObject * obj1 = 0 ;
8709 char * kwnames[] = {
8710 (char *) "self",(char *) "bitmap", NULL
8711 };
8712
8713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8715 if (!SWIG_IsOK(res1)) {
8716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8717 }
8718 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8720 if (!SWIG_IsOK(res2)) {
8721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8722 }
8723 if (!argp2) {
8724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8725 }
8726 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8727 {
8728 PyThreadState* __tstate = wxPyBeginAllowThreads();
8729 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8730 wxPyEndAllowThreads(__tstate);
8731 if (PyErr_Occurred()) SWIG_fail;
8732 }
8733 resultobj = SWIG_Py_Void();
8734 return resultobj;
8735 fail:
8736 return NULL;
8737 }
8738
8739
8740 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8741 PyObject *resultobj = 0;
8742 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8743 wxIcon *arg2 = 0 ;
8744 void *argp1 = 0 ;
8745 int res1 = 0 ;
8746 void *argp2 = 0 ;
8747 int res2 = 0 ;
8748 PyObject * obj0 = 0 ;
8749 PyObject * obj1 = 0 ;
8750 char * kwnames[] = {
8751 (char *) "self",(char *) "icon", NULL
8752 };
8753
8754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8756 if (!SWIG_IsOK(res1)) {
8757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8758 }
8759 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8761 if (!SWIG_IsOK(res2)) {
8762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8763 }
8764 if (!argp2) {
8765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8766 }
8767 arg2 = reinterpret_cast< wxIcon * >(argp2);
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 (arg1)->SetIcon((wxIcon const &)*arg2);
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = SWIG_Py_Void();
8775 return resultobj;
8776 fail:
8777 return NULL;
8778 }
8779
8780
8781 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8782 PyObject *resultobj = 0;
8783 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8784 SwigValueWrapper<wxVisualAttributes > result;
8785 int val1 ;
8786 int ecode1 = 0 ;
8787 PyObject * obj0 = 0 ;
8788 char * kwnames[] = {
8789 (char *) "variant", NULL
8790 };
8791
8792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8793 if (obj0) {
8794 ecode1 = SWIG_AsVal_int(obj0, &val1);
8795 if (!SWIG_IsOK(ecode1)) {
8796 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8797 }
8798 arg1 = static_cast< wxWindowVariant >(val1);
8799 }
8800 {
8801 if (!wxPyCheckForApp()) SWIG_fail;
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8804 wxPyEndAllowThreads(__tstate);
8805 if (PyErr_Occurred()) SWIG_fail;
8806 }
8807 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8808 return resultobj;
8809 fail:
8810 return NULL;
8811 }
8812
8813
8814 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8815 PyObject *obj;
8816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8817 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8818 return SWIG_Py_Void();
8819 }
8820
8821 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8822 return SWIG_Python_InitShadowInstance(args);
8823 }
8824
8825 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8826 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8827 return 1;
8828 }
8829
8830
8831 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8832 PyObject *pyobj = 0;
8833
8834 {
8835 #if wxUSE_UNICODE
8836 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8837 #else
8838 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8839 #endif
8840 }
8841 return pyobj;
8842 }
8843
8844
8845 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj = 0;
8847 wxWindow *arg1 = (wxWindow *) 0 ;
8848 int arg2 = (int) -1 ;
8849 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8850 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8851 wxSize const &arg4_defvalue = wxDefaultSize ;
8852 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8853 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8854 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8855 long arg6 = (long) 0 ;
8856 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8857 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8858 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8859 wxString *arg8 = (wxString *) &arg8_defvalue ;
8860 wxListBox *result = 0 ;
8861 void *argp1 = 0 ;
8862 int res1 = 0 ;
8863 int val2 ;
8864 int ecode2 = 0 ;
8865 wxPoint temp3 ;
8866 wxSize temp4 ;
8867 bool temp5 = false ;
8868 long val6 ;
8869 int ecode6 = 0 ;
8870 void *argp7 = 0 ;
8871 int res7 = 0 ;
8872 bool temp8 = false ;
8873 PyObject * obj0 = 0 ;
8874 PyObject * obj1 = 0 ;
8875 PyObject * obj2 = 0 ;
8876 PyObject * obj3 = 0 ;
8877 PyObject * obj4 = 0 ;
8878 PyObject * obj5 = 0 ;
8879 PyObject * obj6 = 0 ;
8880 PyObject * obj7 = 0 ;
8881 char * kwnames[] = {
8882 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8883 };
8884
8885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8887 if (!SWIG_IsOK(res1)) {
8888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8889 }
8890 arg1 = reinterpret_cast< wxWindow * >(argp1);
8891 if (obj1) {
8892 ecode2 = SWIG_AsVal_int(obj1, &val2);
8893 if (!SWIG_IsOK(ecode2)) {
8894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8895 }
8896 arg2 = static_cast< int >(val2);
8897 }
8898 if (obj2) {
8899 {
8900 arg3 = &temp3;
8901 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8902 }
8903 }
8904 if (obj3) {
8905 {
8906 arg4 = &temp4;
8907 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8908 }
8909 }
8910 if (obj4) {
8911 {
8912 if (! PySequence_Check(obj4)) {
8913 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8914 SWIG_fail;
8915 }
8916 arg5 = new wxArrayString;
8917 temp5 = true;
8918 int i, len=PySequence_Length(obj4);
8919 for (i=0; i<len; i++) {
8920 PyObject* item = PySequence_GetItem(obj4, i);
8921 wxString* s = wxString_in_helper(item);
8922 if (PyErr_Occurred()) SWIG_fail;
8923 arg5->Add(*s);
8924 delete s;
8925 Py_DECREF(item);
8926 }
8927 }
8928 }
8929 if (obj5) {
8930 ecode6 = SWIG_AsVal_long(obj5, &val6);
8931 if (!SWIG_IsOK(ecode6)) {
8932 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8933 }
8934 arg6 = static_cast< long >(val6);
8935 }
8936 if (obj6) {
8937 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8938 if (!SWIG_IsOK(res7)) {
8939 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8940 }
8941 if (!argp7) {
8942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8943 }
8944 arg7 = reinterpret_cast< wxValidator * >(argp7);
8945 }
8946 if (obj7) {
8947 {
8948 arg8 = wxString_in_helper(obj7);
8949 if (arg8 == NULL) SWIG_fail;
8950 temp8 = true;
8951 }
8952 }
8953 {
8954 if (!wxPyCheckForApp()) SWIG_fail;
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8961 {
8962 if (temp5) delete arg5;
8963 }
8964 {
8965 if (temp8)
8966 delete arg8;
8967 }
8968 return resultobj;
8969 fail:
8970 {
8971 if (temp5) delete arg5;
8972 }
8973 {
8974 if (temp8)
8975 delete arg8;
8976 }
8977 return NULL;
8978 }
8979
8980
8981 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8982 PyObject *resultobj = 0;
8983 wxListBox *result = 0 ;
8984
8985 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8986 {
8987 if (!wxPyCheckForApp()) SWIG_fail;
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 result = (wxListBox *)new wxListBox();
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj = 0;
9002 wxListBox *arg1 = (wxListBox *) 0 ;
9003 wxWindow *arg2 = (wxWindow *) 0 ;
9004 int arg3 = (int) -1 ;
9005 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9006 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9007 wxSize const &arg5_defvalue = wxDefaultSize ;
9008 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9009 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9010 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9011 long arg7 = (long) 0 ;
9012 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9013 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9014 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9015 wxString *arg9 = (wxString *) &arg9_defvalue ;
9016 bool result;
9017 void *argp1 = 0 ;
9018 int res1 = 0 ;
9019 void *argp2 = 0 ;
9020 int res2 = 0 ;
9021 int val3 ;
9022 int ecode3 = 0 ;
9023 wxPoint temp4 ;
9024 wxSize temp5 ;
9025 bool temp6 = false ;
9026 long val7 ;
9027 int ecode7 = 0 ;
9028 void *argp8 = 0 ;
9029 int res8 = 0 ;
9030 bool temp9 = false ;
9031 PyObject * obj0 = 0 ;
9032 PyObject * obj1 = 0 ;
9033 PyObject * obj2 = 0 ;
9034 PyObject * obj3 = 0 ;
9035 PyObject * obj4 = 0 ;
9036 PyObject * obj5 = 0 ;
9037 PyObject * obj6 = 0 ;
9038 PyObject * obj7 = 0 ;
9039 PyObject * obj8 = 0 ;
9040 char * kwnames[] = {
9041 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9042 };
9043
9044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9046 if (!SWIG_IsOK(res1)) {
9047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9048 }
9049 arg1 = reinterpret_cast< wxListBox * >(argp1);
9050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9051 if (!SWIG_IsOK(res2)) {
9052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9053 }
9054 arg2 = reinterpret_cast< wxWindow * >(argp2);
9055 if (obj2) {
9056 ecode3 = SWIG_AsVal_int(obj2, &val3);
9057 if (!SWIG_IsOK(ecode3)) {
9058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9059 }
9060 arg3 = static_cast< int >(val3);
9061 }
9062 if (obj3) {
9063 {
9064 arg4 = &temp4;
9065 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9066 }
9067 }
9068 if (obj4) {
9069 {
9070 arg5 = &temp5;
9071 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9072 }
9073 }
9074 if (obj5) {
9075 {
9076 if (! PySequence_Check(obj5)) {
9077 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9078 SWIG_fail;
9079 }
9080 arg6 = new wxArrayString;
9081 temp6 = true;
9082 int i, len=PySequence_Length(obj5);
9083 for (i=0; i<len; i++) {
9084 PyObject* item = PySequence_GetItem(obj5, i);
9085 wxString* s = wxString_in_helper(item);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 arg6->Add(*s);
9088 delete s;
9089 Py_DECREF(item);
9090 }
9091 }
9092 }
9093 if (obj6) {
9094 ecode7 = SWIG_AsVal_long(obj6, &val7);
9095 if (!SWIG_IsOK(ecode7)) {
9096 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9097 }
9098 arg7 = static_cast< long >(val7);
9099 }
9100 if (obj7) {
9101 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9102 if (!SWIG_IsOK(res8)) {
9103 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9104 }
9105 if (!argp8) {
9106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9107 }
9108 arg8 = reinterpret_cast< wxValidator * >(argp8);
9109 }
9110 if (obj8) {
9111 {
9112 arg9 = wxString_in_helper(obj8);
9113 if (arg9 == NULL) SWIG_fail;
9114 temp9 = true;
9115 }
9116 }
9117 {
9118 PyThreadState* __tstate = wxPyBeginAllowThreads();
9119 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 {
9124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9125 }
9126 {
9127 if (temp6) delete arg6;
9128 }
9129 {
9130 if (temp9)
9131 delete arg9;
9132 }
9133 return resultobj;
9134 fail:
9135 {
9136 if (temp6) delete arg6;
9137 }
9138 {
9139 if (temp9)
9140 delete arg9;
9141 }
9142 return NULL;
9143 }
9144
9145
9146 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj = 0;
9148 wxListBox *arg1 = (wxListBox *) 0 ;
9149 wxString *arg2 = 0 ;
9150 int arg3 ;
9151 PyObject *arg4 = (PyObject *) NULL ;
9152 void *argp1 = 0 ;
9153 int res1 = 0 ;
9154 bool temp2 = false ;
9155 int val3 ;
9156 int ecode3 = 0 ;
9157 PyObject * obj0 = 0 ;
9158 PyObject * obj1 = 0 ;
9159 PyObject * obj2 = 0 ;
9160 PyObject * obj3 = 0 ;
9161 char * kwnames[] = {
9162 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9163 };
9164
9165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9169 }
9170 arg1 = reinterpret_cast< wxListBox * >(argp1);
9171 {
9172 arg2 = wxString_in_helper(obj1);
9173 if (arg2 == NULL) SWIG_fail;
9174 temp2 = true;
9175 }
9176 ecode3 = SWIG_AsVal_int(obj2, &val3);
9177 if (!SWIG_IsOK(ecode3)) {
9178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9179 }
9180 arg3 = static_cast< int >(val3);
9181 if (obj3) {
9182 arg4 = obj3;
9183 }
9184 {
9185 PyThreadState* __tstate = wxPyBeginAllowThreads();
9186 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9187 wxPyEndAllowThreads(__tstate);
9188 if (PyErr_Occurred()) SWIG_fail;
9189 }
9190 resultobj = SWIG_Py_Void();
9191 {
9192 if (temp2)
9193 delete arg2;
9194 }
9195 return resultobj;
9196 fail:
9197 {
9198 if (temp2)
9199 delete arg2;
9200 }
9201 return NULL;
9202 }
9203
9204
9205 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj = 0;
9207 wxListBox *arg1 = (wxListBox *) 0 ;
9208 wxArrayString *arg2 = 0 ;
9209 unsigned int arg3 ;
9210 void *argp1 = 0 ;
9211 int res1 = 0 ;
9212 bool temp2 = false ;
9213 unsigned int val3 ;
9214 int ecode3 = 0 ;
9215 PyObject * obj0 = 0 ;
9216 PyObject * obj1 = 0 ;
9217 PyObject * obj2 = 0 ;
9218 char * kwnames[] = {
9219 (char *) "self",(char *) "items",(char *) "pos", NULL
9220 };
9221
9222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9226 }
9227 arg1 = reinterpret_cast< wxListBox * >(argp1);
9228 {
9229 if (! PySequence_Check(obj1)) {
9230 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9231 SWIG_fail;
9232 }
9233 arg2 = new wxArrayString;
9234 temp2 = true;
9235 int i, len=PySequence_Length(obj1);
9236 for (i=0; i<len; i++) {
9237 PyObject* item = PySequence_GetItem(obj1, i);
9238 wxString* s = wxString_in_helper(item);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 arg2->Add(*s);
9241 delete s;
9242 Py_DECREF(item);
9243 }
9244 }
9245 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9246 if (!SWIG_IsOK(ecode3)) {
9247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9248 }
9249 arg3 = static_cast< unsigned int >(val3);
9250 {
9251 PyThreadState* __tstate = wxPyBeginAllowThreads();
9252 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 resultobj = SWIG_Py_Void();
9257 {
9258 if (temp2) delete arg2;
9259 }
9260 return resultobj;
9261 fail:
9262 {
9263 if (temp2) delete arg2;
9264 }
9265 return NULL;
9266 }
9267
9268
9269 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj = 0;
9271 wxListBox *arg1 = (wxListBox *) 0 ;
9272 wxArrayString *arg2 = 0 ;
9273 void *argp1 = 0 ;
9274 int res1 = 0 ;
9275 bool temp2 = false ;
9276 PyObject * obj0 = 0 ;
9277 PyObject * obj1 = 0 ;
9278 char * kwnames[] = {
9279 (char *) "self",(char *) "items", NULL
9280 };
9281
9282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9284 if (!SWIG_IsOK(res1)) {
9285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9286 }
9287 arg1 = reinterpret_cast< wxListBox * >(argp1);
9288 {
9289 if (! PySequence_Check(obj1)) {
9290 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9291 SWIG_fail;
9292 }
9293 arg2 = new wxArrayString;
9294 temp2 = true;
9295 int i, len=PySequence_Length(obj1);
9296 for (i=0; i<len; i++) {
9297 PyObject* item = PySequence_GetItem(obj1, i);
9298 wxString* s = wxString_in_helper(item);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 arg2->Add(*s);
9301 delete s;
9302 Py_DECREF(item);
9303 }
9304 }
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 (arg1)->Set((wxArrayString const &)*arg2);
9308 wxPyEndAllowThreads(__tstate);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 }
9311 resultobj = SWIG_Py_Void();
9312 {
9313 if (temp2) delete arg2;
9314 }
9315 return resultobj;
9316 fail:
9317 {
9318 if (temp2) delete arg2;
9319 }
9320 return NULL;
9321 }
9322
9323
9324 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj = 0;
9326 wxListBox *arg1 = (wxListBox *) 0 ;
9327 int arg2 ;
9328 bool result;
9329 void *argp1 = 0 ;
9330 int res1 = 0 ;
9331 int val2 ;
9332 int ecode2 = 0 ;
9333 PyObject * obj0 = 0 ;
9334 PyObject * obj1 = 0 ;
9335 char * kwnames[] = {
9336 (char *) "self",(char *) "n", NULL
9337 };
9338
9339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9341 if (!SWIG_IsOK(res1)) {
9342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9343 }
9344 arg1 = reinterpret_cast< wxListBox * >(argp1);
9345 ecode2 = SWIG_AsVal_int(obj1, &val2);
9346 if (!SWIG_IsOK(ecode2)) {
9347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9348 }
9349 arg2 = static_cast< int >(val2);
9350 {
9351 PyThreadState* __tstate = wxPyBeginAllowThreads();
9352 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 {
9357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9358 }
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9366 PyObject *resultobj = 0;
9367 wxListBox *arg1 = (wxListBox *) 0 ;
9368 int arg2 ;
9369 bool arg3 = (bool) true ;
9370 void *argp1 = 0 ;
9371 int res1 = 0 ;
9372 int val2 ;
9373 int ecode2 = 0 ;
9374 bool val3 ;
9375 int ecode3 = 0 ;
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 PyObject * obj2 = 0 ;
9379 char * kwnames[] = {
9380 (char *) "self",(char *) "n",(char *) "select", NULL
9381 };
9382
9383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9385 if (!SWIG_IsOK(res1)) {
9386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9387 }
9388 arg1 = reinterpret_cast< wxListBox * >(argp1);
9389 ecode2 = SWIG_AsVal_int(obj1, &val2);
9390 if (!SWIG_IsOK(ecode2)) {
9391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9392 }
9393 arg2 = static_cast< int >(val2);
9394 if (obj2) {
9395 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9396 if (!SWIG_IsOK(ecode3)) {
9397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9398 }
9399 arg3 = static_cast< bool >(val3);
9400 }
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 (arg1)->SetSelection(arg2,arg3);
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 resultobj = SWIG_Py_Void();
9408 return resultobj;
9409 fail:
9410 return NULL;
9411 }
9412
9413
9414 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9415 PyObject *resultobj = 0;
9416 wxListBox *arg1 = (wxListBox *) 0 ;
9417 int arg2 ;
9418 void *argp1 = 0 ;
9419 int res1 = 0 ;
9420 int val2 ;
9421 int ecode2 = 0 ;
9422 PyObject * obj0 = 0 ;
9423 PyObject * obj1 = 0 ;
9424 char * kwnames[] = {
9425 (char *) "self",(char *) "n", NULL
9426 };
9427
9428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9430 if (!SWIG_IsOK(res1)) {
9431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9432 }
9433 arg1 = reinterpret_cast< wxListBox * >(argp1);
9434 ecode2 = SWIG_AsVal_int(obj1, &val2);
9435 if (!SWIG_IsOK(ecode2)) {
9436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9437 }
9438 arg2 = static_cast< int >(val2);
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 (arg1)->Select(arg2);
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_Py_Void();
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj = 0;
9454 wxListBox *arg1 = (wxListBox *) 0 ;
9455 int arg2 ;
9456 void *argp1 = 0 ;
9457 int res1 = 0 ;
9458 int val2 ;
9459 int ecode2 = 0 ;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 char * kwnames[] = {
9463 (char *) "self",(char *) "n", NULL
9464 };
9465
9466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9470 }
9471 arg1 = reinterpret_cast< wxListBox * >(argp1);
9472 ecode2 = SWIG_AsVal_int(obj1, &val2);
9473 if (!SWIG_IsOK(ecode2)) {
9474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9475 }
9476 arg2 = static_cast< int >(val2);
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 (arg1)->Deselect(arg2);
9480 wxPyEndAllowThreads(__tstate);
9481 if (PyErr_Occurred()) SWIG_fail;
9482 }
9483 resultobj = SWIG_Py_Void();
9484 return resultobj;
9485 fail:
9486 return NULL;
9487 }
9488
9489
9490 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9491 PyObject *resultobj = 0;
9492 wxListBox *arg1 = (wxListBox *) 0 ;
9493 int arg2 = (int) -1 ;
9494 void *argp1 = 0 ;
9495 int res1 = 0 ;
9496 int val2 ;
9497 int ecode2 = 0 ;
9498 PyObject * obj0 = 0 ;
9499 PyObject * obj1 = 0 ;
9500 char * kwnames[] = {
9501 (char *) "self",(char *) "itemToLeaveSelected", NULL
9502 };
9503
9504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9506 if (!SWIG_IsOK(res1)) {
9507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9508 }
9509 arg1 = reinterpret_cast< wxListBox * >(argp1);
9510 if (obj1) {
9511 ecode2 = SWIG_AsVal_int(obj1, &val2);
9512 if (!SWIG_IsOK(ecode2)) {
9513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9514 }
9515 arg2 = static_cast< int >(val2);
9516 }
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 (arg1)->DeselectAll(arg2);
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_Py_Void();
9524 return resultobj;
9525 fail:
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9531 PyObject *resultobj = 0;
9532 wxListBox *arg1 = (wxListBox *) 0 ;
9533 wxString *arg2 = 0 ;
9534 bool arg3 = (bool) true ;
9535 bool result;
9536 void *argp1 = 0 ;
9537 int res1 = 0 ;
9538 bool temp2 = false ;
9539 bool val3 ;
9540 int ecode3 = 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 PyObject * obj2 = 0 ;
9544 char * kwnames[] = {
9545 (char *) "self",(char *) "s",(char *) "select", NULL
9546 };
9547
9548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9550 if (!SWIG_IsOK(res1)) {
9551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9552 }
9553 arg1 = reinterpret_cast< wxListBox * >(argp1);
9554 {
9555 arg2 = wxString_in_helper(obj1);
9556 if (arg2 == NULL) SWIG_fail;
9557 temp2 = true;
9558 }
9559 if (obj2) {
9560 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9561 if (!SWIG_IsOK(ecode3)) {
9562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9563 }
9564 arg3 = static_cast< bool >(val3);
9565 }
9566 {
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 {
9573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9574 }
9575 {
9576 if (temp2)
9577 delete arg2;
9578 }
9579 return resultobj;
9580 fail:
9581 {
9582 if (temp2)
9583 delete arg2;
9584 }
9585 return NULL;
9586 }
9587
9588
9589 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9590 PyObject *resultobj = 0;
9591 wxListBox *arg1 = (wxListBox *) 0 ;
9592 PyObject *result = 0 ;
9593 void *argp1 = 0 ;
9594 int res1 = 0 ;
9595 PyObject *swig_obj[1] ;
9596
9597 if (!args) SWIG_fail;
9598 swig_obj[0] = args;
9599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9600 if (!SWIG_IsOK(res1)) {
9601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9602 }
9603 arg1 = reinterpret_cast< wxListBox * >(argp1);
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 result = (PyObject *)wxListBox_GetSelections(arg1);
9607 wxPyEndAllowThreads(__tstate);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 resultobj = result;
9611 return resultobj;
9612 fail:
9613 return NULL;
9614 }
9615
9616
9617 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9618 PyObject *resultobj = 0;
9619 wxListBox *arg1 = (wxListBox *) 0 ;
9620 int arg2 ;
9621 void *argp1 = 0 ;
9622 int res1 = 0 ;
9623 int val2 ;
9624 int ecode2 = 0 ;
9625 PyObject * obj0 = 0 ;
9626 PyObject * obj1 = 0 ;
9627 char * kwnames[] = {
9628 (char *) "self",(char *) "n", NULL
9629 };
9630
9631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",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_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9635 }
9636 arg1 = reinterpret_cast< wxListBox * >(argp1);
9637 ecode2 = SWIG_AsVal_int(obj1, &val2);
9638 if (!SWIG_IsOK(ecode2)) {
9639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9640 }
9641 arg2 = static_cast< int >(val2);
9642 {
9643 PyThreadState* __tstate = wxPyBeginAllowThreads();
9644 (arg1)->SetFirstItem(arg2);
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_Py_Void();
9649 return resultobj;
9650 fail:
9651 return NULL;
9652 }
9653
9654
9655 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9656 PyObject *resultobj = 0;
9657 wxListBox *arg1 = (wxListBox *) 0 ;
9658 wxString *arg2 = 0 ;
9659 void *argp1 = 0 ;
9660 int res1 = 0 ;
9661 bool temp2 = false ;
9662 PyObject * obj0 = 0 ;
9663 PyObject * obj1 = 0 ;
9664 char * kwnames[] = {
9665 (char *) "self",(char *) "s", NULL
9666 };
9667
9668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9670 if (!SWIG_IsOK(res1)) {
9671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9672 }
9673 arg1 = reinterpret_cast< wxListBox * >(argp1);
9674 {
9675 arg2 = wxString_in_helper(obj1);
9676 if (arg2 == NULL) SWIG_fail;
9677 temp2 = true;
9678 }
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 (arg1)->SetFirstItem((wxString const &)*arg2);
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 resultobj = SWIG_Py_Void();
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return resultobj;
9691 fail:
9692 {
9693 if (temp2)
9694 delete arg2;
9695 }
9696 return NULL;
9697 }
9698
9699
9700 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj = 0;
9702 wxListBox *arg1 = (wxListBox *) 0 ;
9703 int arg2 ;
9704 void *argp1 = 0 ;
9705 int res1 = 0 ;
9706 int val2 ;
9707 int ecode2 = 0 ;
9708 PyObject * obj0 = 0 ;
9709 PyObject * obj1 = 0 ;
9710 char * kwnames[] = {
9711 (char *) "self",(char *) "n", NULL
9712 };
9713
9714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",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_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9718 }
9719 arg1 = reinterpret_cast< wxListBox * >(argp1);
9720 ecode2 = SWIG_AsVal_int(obj1, &val2);
9721 if (!SWIG_IsOK(ecode2)) {
9722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9723 }
9724 arg2 = static_cast< int >(val2);
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 (arg1)->EnsureVisible(arg2);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_Py_Void();
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj = 0;
9740 wxListBox *arg1 = (wxListBox *) 0 ;
9741 wxString *arg2 = 0 ;
9742 void *argp1 = 0 ;
9743 int res1 = 0 ;
9744 bool temp2 = false ;
9745 PyObject * obj0 = 0 ;
9746 PyObject * obj1 = 0 ;
9747 char * kwnames[] = {
9748 (char *) "self",(char *) "s", NULL
9749 };
9750
9751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9753 if (!SWIG_IsOK(res1)) {
9754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9755 }
9756 arg1 = reinterpret_cast< wxListBox * >(argp1);
9757 {
9758 arg2 = wxString_in_helper(obj1);
9759 if (arg2 == NULL) SWIG_fail;
9760 temp2 = true;
9761 }
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_Py_Void();
9769 {
9770 if (temp2)
9771 delete arg2;
9772 }
9773 return resultobj;
9774 fail:
9775 {
9776 if (temp2)
9777 delete arg2;
9778 }
9779 return NULL;
9780 }
9781
9782
9783 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9784 PyObject *resultobj = 0;
9785 wxListBox *arg1 = (wxListBox *) 0 ;
9786 bool result;
9787 void *argp1 = 0 ;
9788 int res1 = 0 ;
9789 PyObject *swig_obj[1] ;
9790
9791 if (!args) SWIG_fail;
9792 swig_obj[0] = args;
9793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9794 if (!SWIG_IsOK(res1)) {
9795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9796 }
9797 arg1 = reinterpret_cast< wxListBox * >(argp1);
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 result = (bool)((wxListBox const *)arg1)->IsSorted();
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 {
9805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9806 }
9807 return resultobj;
9808 fail:
9809 return NULL;
9810 }
9811
9812
9813 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj = 0;
9815 wxListBox *arg1 = (wxListBox *) 0 ;
9816 wxPoint *arg2 = 0 ;
9817 int result;
9818 void *argp1 = 0 ;
9819 int res1 = 0 ;
9820 wxPoint temp2 ;
9821 PyObject * obj0 = 0 ;
9822 PyObject * obj1 = 0 ;
9823 char * kwnames[] = {
9824 (char *) "self",(char *) "pt", NULL
9825 };
9826
9827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9829 if (!SWIG_IsOK(res1)) {
9830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9831 }
9832 arg1 = reinterpret_cast< wxListBox * >(argp1);
9833 {
9834 arg2 = &temp2;
9835 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9836 }
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_From_int(static_cast< int >(result));
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj = 0;
9852 wxListBox *arg1 = (wxListBox *) 0 ;
9853 int arg2 ;
9854 wxColour *arg3 = 0 ;
9855 void *argp1 = 0 ;
9856 int res1 = 0 ;
9857 int val2 ;
9858 int ecode2 = 0 ;
9859 wxColour temp3 ;
9860 PyObject * obj0 = 0 ;
9861 PyObject * obj1 = 0 ;
9862 PyObject * obj2 = 0 ;
9863 char * kwnames[] = {
9864 (char *) "self",(char *) "item",(char *) "c", NULL
9865 };
9866
9867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9869 if (!SWIG_IsOK(res1)) {
9870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9871 }
9872 arg1 = reinterpret_cast< wxListBox * >(argp1);
9873 ecode2 = SWIG_AsVal_int(obj1, &val2);
9874 if (!SWIG_IsOK(ecode2)) {
9875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9876 }
9877 arg2 = static_cast< int >(val2);
9878 {
9879 arg3 = &temp3;
9880 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9881 }
9882 {
9883 PyThreadState* __tstate = wxPyBeginAllowThreads();
9884 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9885 wxPyEndAllowThreads(__tstate);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 }
9888 resultobj = SWIG_Py_Void();
9889 return resultobj;
9890 fail:
9891 return NULL;
9892 }
9893
9894
9895 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9896 PyObject *resultobj = 0;
9897 wxListBox *arg1 = (wxListBox *) 0 ;
9898 int arg2 ;
9899 wxColour *arg3 = 0 ;
9900 void *argp1 = 0 ;
9901 int res1 = 0 ;
9902 int val2 ;
9903 int ecode2 = 0 ;
9904 wxColour temp3 ;
9905 PyObject * obj0 = 0 ;
9906 PyObject * obj1 = 0 ;
9907 PyObject * obj2 = 0 ;
9908 char * kwnames[] = {
9909 (char *) "self",(char *) "item",(char *) "c", NULL
9910 };
9911
9912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9914 if (!SWIG_IsOK(res1)) {
9915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9916 }
9917 arg1 = reinterpret_cast< wxListBox * >(argp1);
9918 ecode2 = SWIG_AsVal_int(obj1, &val2);
9919 if (!SWIG_IsOK(ecode2)) {
9920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9921 }
9922 arg2 = static_cast< int >(val2);
9923 {
9924 arg3 = &temp3;
9925 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9926 }
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 resultobj = SWIG_Py_Void();
9934 return resultobj;
9935 fail:
9936 return NULL;
9937 }
9938
9939
9940 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9941 PyObject *resultobj = 0;
9942 wxListBox *arg1 = (wxListBox *) 0 ;
9943 int arg2 ;
9944 wxFont *arg3 = 0 ;
9945 void *argp1 = 0 ;
9946 int res1 = 0 ;
9947 int val2 ;
9948 int ecode2 = 0 ;
9949 void *argp3 = 0 ;
9950 int res3 = 0 ;
9951 PyObject * obj0 = 0 ;
9952 PyObject * obj1 = 0 ;
9953 PyObject * obj2 = 0 ;
9954 char * kwnames[] = {
9955 (char *) "self",(char *) "item",(char *) "f", NULL
9956 };
9957
9958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9960 if (!SWIG_IsOK(res1)) {
9961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9962 }
9963 arg1 = reinterpret_cast< wxListBox * >(argp1);
9964 ecode2 = SWIG_AsVal_int(obj1, &val2);
9965 if (!SWIG_IsOK(ecode2)) {
9966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9967 }
9968 arg2 = static_cast< int >(val2);
9969 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9970 if (!SWIG_IsOK(res3)) {
9971 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9972 }
9973 if (!argp3) {
9974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9975 }
9976 arg3 = reinterpret_cast< wxFont * >(argp3);
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 resultobj = SWIG_Py_Void();
9984 return resultobj;
9985 fail:
9986 return NULL;
9987 }
9988
9989
9990 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9991 PyObject *resultobj = 0;
9992 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9993 SwigValueWrapper<wxVisualAttributes > result;
9994 int val1 ;
9995 int ecode1 = 0 ;
9996 PyObject * obj0 = 0 ;
9997 char * kwnames[] = {
9998 (char *) "variant", NULL
9999 };
10000
10001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10002 if (obj0) {
10003 ecode1 = SWIG_AsVal_int(obj0, &val1);
10004 if (!SWIG_IsOK(ecode1)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10006 }
10007 arg1 = static_cast< wxWindowVariant >(val1);
10008 }
10009 {
10010 if (!wxPyCheckForApp()) SWIG_fail;
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = wxListBox::GetClassDefaultAttributes(arg1);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10017 return resultobj;
10018 fail:
10019 return NULL;
10020 }
10021
10022
10023 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10024 PyObject *obj;
10025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10026 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10027 return SWIG_Py_Void();
10028 }
10029
10030 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10031 return SWIG_Python_InitShadowInstance(args);
10032 }
10033
10034 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10035 PyObject *resultobj = 0;
10036 wxWindow *arg1 = (wxWindow *) 0 ;
10037 int arg2 = (int) -1 ;
10038 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10039 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10040 wxSize const &arg4_defvalue = wxDefaultSize ;
10041 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10042 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10043 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10044 long arg6 = (long) 0 ;
10045 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10046 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10047 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10048 wxString *arg8 = (wxString *) &arg8_defvalue ;
10049 wxCheckListBox *result = 0 ;
10050 void *argp1 = 0 ;
10051 int res1 = 0 ;
10052 int val2 ;
10053 int ecode2 = 0 ;
10054 wxPoint temp3 ;
10055 wxSize temp4 ;
10056 bool temp5 = false ;
10057 long val6 ;
10058 int ecode6 = 0 ;
10059 void *argp7 = 0 ;
10060 int res7 = 0 ;
10061 bool temp8 = false ;
10062 PyObject * obj0 = 0 ;
10063 PyObject * obj1 = 0 ;
10064 PyObject * obj2 = 0 ;
10065 PyObject * obj3 = 0 ;
10066 PyObject * obj4 = 0 ;
10067 PyObject * obj5 = 0 ;
10068 PyObject * obj6 = 0 ;
10069 PyObject * obj7 = 0 ;
10070 char * kwnames[] = {
10071 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10072 };
10073
10074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10076 if (!SWIG_IsOK(res1)) {
10077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10078 }
10079 arg1 = reinterpret_cast< wxWindow * >(argp1);
10080 if (obj1) {
10081 ecode2 = SWIG_AsVal_int(obj1, &val2);
10082 if (!SWIG_IsOK(ecode2)) {
10083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10084 }
10085 arg2 = static_cast< int >(val2);
10086 }
10087 if (obj2) {
10088 {
10089 arg3 = &temp3;
10090 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10091 }
10092 }
10093 if (obj3) {
10094 {
10095 arg4 = &temp4;
10096 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10097 }
10098 }
10099 if (obj4) {
10100 {
10101 if (! PySequence_Check(obj4)) {
10102 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10103 SWIG_fail;
10104 }
10105 arg5 = new wxArrayString;
10106 temp5 = true;
10107 int i, len=PySequence_Length(obj4);
10108 for (i=0; i<len; i++) {
10109 PyObject* item = PySequence_GetItem(obj4, i);
10110 wxString* s = wxString_in_helper(item);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 arg5->Add(*s);
10113 delete s;
10114 Py_DECREF(item);
10115 }
10116 }
10117 }
10118 if (obj5) {
10119 ecode6 = SWIG_AsVal_long(obj5, &val6);
10120 if (!SWIG_IsOK(ecode6)) {
10121 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10122 }
10123 arg6 = static_cast< long >(val6);
10124 }
10125 if (obj6) {
10126 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10127 if (!SWIG_IsOK(res7)) {
10128 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10129 }
10130 if (!argp7) {
10131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10132 }
10133 arg7 = reinterpret_cast< wxValidator * >(argp7);
10134 }
10135 if (obj7) {
10136 {
10137 arg8 = wxString_in_helper(obj7);
10138 if (arg8 == NULL) SWIG_fail;
10139 temp8 = true;
10140 }
10141 }
10142 {
10143 if (!wxPyCheckForApp()) SWIG_fail;
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10150 {
10151 if (temp5) delete arg5;
10152 }
10153 {
10154 if (temp8)
10155 delete arg8;
10156 }
10157 return resultobj;
10158 fail:
10159 {
10160 if (temp5) delete arg5;
10161 }
10162 {
10163 if (temp8)
10164 delete arg8;
10165 }
10166 return NULL;
10167 }
10168
10169
10170 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10171 PyObject *resultobj = 0;
10172 wxCheckListBox *result = 0 ;
10173
10174 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10175 {
10176 if (!wxPyCheckForApp()) SWIG_fail;
10177 PyThreadState* __tstate = wxPyBeginAllowThreads();
10178 result = (wxCheckListBox *)new wxCheckListBox();
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10183 return resultobj;
10184 fail:
10185 return NULL;
10186 }
10187
10188
10189 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10190 PyObject *resultobj = 0;
10191 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10192 wxWindow *arg2 = (wxWindow *) 0 ;
10193 int arg3 = (int) -1 ;
10194 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10195 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10196 wxSize const &arg5_defvalue = wxDefaultSize ;
10197 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10198 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10199 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10200 long arg7 = (long) 0 ;
10201 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10202 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10203 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10204 wxString *arg9 = (wxString *) &arg9_defvalue ;
10205 bool result;
10206 void *argp1 = 0 ;
10207 int res1 = 0 ;
10208 void *argp2 = 0 ;
10209 int res2 = 0 ;
10210 int val3 ;
10211 int ecode3 = 0 ;
10212 wxPoint temp4 ;
10213 wxSize temp5 ;
10214 bool temp6 = false ;
10215 long val7 ;
10216 int ecode7 = 0 ;
10217 void *argp8 = 0 ;
10218 int res8 = 0 ;
10219 bool temp9 = false ;
10220 PyObject * obj0 = 0 ;
10221 PyObject * obj1 = 0 ;
10222 PyObject * obj2 = 0 ;
10223 PyObject * obj3 = 0 ;
10224 PyObject * obj4 = 0 ;
10225 PyObject * obj5 = 0 ;
10226 PyObject * obj6 = 0 ;
10227 PyObject * obj7 = 0 ;
10228 PyObject * obj8 = 0 ;
10229 char * kwnames[] = {
10230 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10231 };
10232
10233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10235 if (!SWIG_IsOK(res1)) {
10236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10237 }
10238 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10240 if (!SWIG_IsOK(res2)) {
10241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10242 }
10243 arg2 = reinterpret_cast< wxWindow * >(argp2);
10244 if (obj2) {
10245 ecode3 = SWIG_AsVal_int(obj2, &val3);
10246 if (!SWIG_IsOK(ecode3)) {
10247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10248 }
10249 arg3 = static_cast< int >(val3);
10250 }
10251 if (obj3) {
10252 {
10253 arg4 = &temp4;
10254 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10255 }
10256 }
10257 if (obj4) {
10258 {
10259 arg5 = &temp5;
10260 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10261 }
10262 }
10263 if (obj5) {
10264 {
10265 if (! PySequence_Check(obj5)) {
10266 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10267 SWIG_fail;
10268 }
10269 arg6 = new wxArrayString;
10270 temp6 = true;
10271 int i, len=PySequence_Length(obj5);
10272 for (i=0; i<len; i++) {
10273 PyObject* item = PySequence_GetItem(obj5, i);
10274 wxString* s = wxString_in_helper(item);
10275 if (PyErr_Occurred()) SWIG_fail;
10276 arg6->Add(*s);
10277 delete s;
10278 Py_DECREF(item);
10279 }
10280 }
10281 }
10282 if (obj6) {
10283 ecode7 = SWIG_AsVal_long(obj6, &val7);
10284 if (!SWIG_IsOK(ecode7)) {
10285 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10286 }
10287 arg7 = static_cast< long >(val7);
10288 }
10289 if (obj7) {
10290 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10291 if (!SWIG_IsOK(res8)) {
10292 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10293 }
10294 if (!argp8) {
10295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10296 }
10297 arg8 = reinterpret_cast< wxValidator * >(argp8);
10298 }
10299 if (obj8) {
10300 {
10301 arg9 = wxString_in_helper(obj8);
10302 if (arg9 == NULL) SWIG_fail;
10303 temp9 = true;
10304 }
10305 }
10306 {
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 {
10313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10314 }
10315 {
10316 if (temp6) delete arg6;
10317 }
10318 {
10319 if (temp9)
10320 delete arg9;
10321 }
10322 return resultobj;
10323 fail:
10324 {
10325 if (temp6) delete arg6;
10326 }
10327 {
10328 if (temp9)
10329 delete arg9;
10330 }
10331 return NULL;
10332 }
10333
10334
10335 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10336 PyObject *resultobj = 0;
10337 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10338 unsigned int arg2 ;
10339 bool result;
10340 void *argp1 = 0 ;
10341 int res1 = 0 ;
10342 unsigned int val2 ;
10343 int ecode2 = 0 ;
10344 PyObject * obj0 = 0 ;
10345 PyObject * obj1 = 0 ;
10346 char * kwnames[] = {
10347 (char *) "self",(char *) "index", NULL
10348 };
10349
10350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10352 if (!SWIG_IsOK(res1)) {
10353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10354 }
10355 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10356 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10357 if (!SWIG_IsOK(ecode2)) {
10358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10359 }
10360 arg2 = static_cast< unsigned int >(val2);
10361 {
10362 PyThreadState* __tstate = wxPyBeginAllowThreads();
10363 result = (bool)(arg1)->IsChecked(arg2);
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 {
10368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10369 }
10370 return resultobj;
10371 fail:
10372 return NULL;
10373 }
10374
10375
10376 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj = 0;
10378 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10379 unsigned int arg2 ;
10380 int arg3 = (int) true ;
10381 void *argp1 = 0 ;
10382 int res1 = 0 ;
10383 unsigned int val2 ;
10384 int ecode2 = 0 ;
10385 int val3 ;
10386 int ecode3 = 0 ;
10387 PyObject * obj0 = 0 ;
10388 PyObject * obj1 = 0 ;
10389 PyObject * obj2 = 0 ;
10390 char * kwnames[] = {
10391 (char *) "self",(char *) "index",(char *) "check", NULL
10392 };
10393
10394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10396 if (!SWIG_IsOK(res1)) {
10397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10398 }
10399 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10400 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10401 if (!SWIG_IsOK(ecode2)) {
10402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10403 }
10404 arg2 = static_cast< unsigned int >(val2);
10405 if (obj2) {
10406 ecode3 = SWIG_AsVal_int(obj2, &val3);
10407 if (!SWIG_IsOK(ecode3)) {
10408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10409 }
10410 arg3 = static_cast< int >(val3);
10411 }
10412 {
10413 PyThreadState* __tstate = wxPyBeginAllowThreads();
10414 (arg1)->Check(arg2,arg3);
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 resultobj = SWIG_Py_Void();
10419 return resultobj;
10420 fail:
10421 return NULL;
10422 }
10423
10424
10425 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10426 PyObject *resultobj = 0;
10427 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10428 int result;
10429 void *argp1 = 0 ;
10430 int res1 = 0 ;
10431 PyObject *swig_obj[1] ;
10432
10433 if (!args) SWIG_fail;
10434 swig_obj[0] = args;
10435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10436 if (!SWIG_IsOK(res1)) {
10437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10438 }
10439 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 result = (int)(arg1)->GetItemHeight();
10443 wxPyEndAllowThreads(__tstate);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 resultobj = SWIG_From_int(static_cast< int >(result));
10447 return resultobj;
10448 fail:
10449 return NULL;
10450 }
10451
10452
10453 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10454 PyObject *obj;
10455 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10456 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10457 return SWIG_Py_Void();
10458 }
10459
10460 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10461 return SWIG_Python_InitShadowInstance(args);
10462 }
10463
10464 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10465 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10466 return 1;
10467 }
10468
10469
10470 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10471 PyObject *pyobj = 0;
10472
10473 {
10474 #if wxUSE_UNICODE
10475 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10476 #else
10477 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10478 #endif
10479 }
10480 return pyobj;
10481 }
10482
10483
10484 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10485 PyObject *resultobj = 0;
10486 wxColour const &arg1_defvalue = wxNullColour ;
10487 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10488 wxColour const &arg2_defvalue = wxNullColour ;
10489 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10490 wxFont const &arg3_defvalue = wxNullFont ;
10491 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10492 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10493 wxTextAttr *result = 0 ;
10494 wxColour temp1 ;
10495 wxColour temp2 ;
10496 void *argp3 = 0 ;
10497 int res3 = 0 ;
10498 int val4 ;
10499 int ecode4 = 0 ;
10500 PyObject * obj0 = 0 ;
10501 PyObject * obj1 = 0 ;
10502 PyObject * obj2 = 0 ;
10503 PyObject * obj3 = 0 ;
10504 char * kwnames[] = {
10505 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10506 };
10507
10508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10509 if (obj0) {
10510 {
10511 arg1 = &temp1;
10512 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10513 }
10514 }
10515 if (obj1) {
10516 {
10517 arg2 = &temp2;
10518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10519 }
10520 }
10521 if (obj2) {
10522 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10523 if (!SWIG_IsOK(res3)) {
10524 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10525 }
10526 if (!argp3) {
10527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10528 }
10529 arg3 = reinterpret_cast< wxFont * >(argp3);
10530 }
10531 if (obj3) {
10532 ecode4 = SWIG_AsVal_int(obj3, &val4);
10533 if (!SWIG_IsOK(ecode4)) {
10534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10535 }
10536 arg4 = static_cast< wxTextAttrAlignment >(val4);
10537 }
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10541 wxPyEndAllowThreads(__tstate);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10545 return resultobj;
10546 fail:
10547 return NULL;
10548 }
10549
10550
10551 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10552 PyObject *resultobj = 0;
10553 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10554 void *argp1 = 0 ;
10555 int res1 = 0 ;
10556 PyObject *swig_obj[1] ;
10557
10558 if (!args) SWIG_fail;
10559 swig_obj[0] = args;
10560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10561 if (!SWIG_IsOK(res1)) {
10562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10563 }
10564 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 delete arg1;
10568
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 resultobj = SWIG_Py_Void();
10573 return resultobj;
10574 fail:
10575 return NULL;
10576 }
10577
10578
10579 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10580 PyObject *resultobj = 0;
10581 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10582 void *argp1 = 0 ;
10583 int res1 = 0 ;
10584 PyObject *swig_obj[1] ;
10585
10586 if (!args) SWIG_fail;
10587 swig_obj[0] = args;
10588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10589 if (!SWIG_IsOK(res1)) {
10590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10591 }
10592 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 (arg1)->Init();
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 resultobj = SWIG_Py_Void();
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj = 0;
10608 wxTextAttr *arg1 = 0 ;
10609 wxTextAttr *arg2 = 0 ;
10610 wxTextAttr result;
10611 void *argp1 = 0 ;
10612 int res1 = 0 ;
10613 void *argp2 = 0 ;
10614 int res2 = 0 ;
10615 PyObject * obj0 = 0 ;
10616 PyObject * obj1 = 0 ;
10617 char * kwnames[] = {
10618 (char *) "base",(char *) "overlay", NULL
10619 };
10620
10621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10623 if (!SWIG_IsOK(res1)) {
10624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10625 }
10626 if (!argp1) {
10627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10628 }
10629 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10631 if (!SWIG_IsOK(res2)) {
10632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10633 }
10634 if (!argp2) {
10635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10636 }
10637 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10645 return resultobj;
10646 fail:
10647 return NULL;
10648 }
10649
10650
10651 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj = 0;
10653 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10654 wxColour *arg2 = 0 ;
10655 void *argp1 = 0 ;
10656 int res1 = 0 ;
10657 wxColour temp2 ;
10658 PyObject * obj0 = 0 ;
10659 PyObject * obj1 = 0 ;
10660 char * kwnames[] = {
10661 (char *) "self",(char *) "colText", NULL
10662 };
10663
10664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10666 if (!SWIG_IsOK(res1)) {
10667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10668 }
10669 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10670 {
10671 arg2 = &temp2;
10672 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10673 }
10674 {
10675 PyThreadState* __tstate = wxPyBeginAllowThreads();
10676 (arg1)->SetTextColour((wxColour const &)*arg2);
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 resultobj = SWIG_Py_Void();
10681 return resultobj;
10682 fail:
10683 return NULL;
10684 }
10685
10686
10687 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj = 0;
10689 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10690 wxColour *arg2 = 0 ;
10691 void *argp1 = 0 ;
10692 int res1 = 0 ;
10693 wxColour temp2 ;
10694 PyObject * obj0 = 0 ;
10695 PyObject * obj1 = 0 ;
10696 char * kwnames[] = {
10697 (char *) "self",(char *) "colBack", NULL
10698 };
10699
10700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10702 if (!SWIG_IsOK(res1)) {
10703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10704 }
10705 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10706 {
10707 arg2 = &temp2;
10708 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10709 }
10710 {
10711 PyThreadState* __tstate = wxPyBeginAllowThreads();
10712 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10713 wxPyEndAllowThreads(__tstate);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 resultobj = SWIG_Py_Void();
10717 return resultobj;
10718 fail:
10719 return NULL;
10720 }
10721
10722
10723 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10724 PyObject *resultobj = 0;
10725 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10726 wxFont *arg2 = 0 ;
10727 long arg3 = (long) wxTEXT_ATTR_FONT ;
10728 void *argp1 = 0 ;
10729 int res1 = 0 ;
10730 void *argp2 = 0 ;
10731 int res2 = 0 ;
10732 long val3 ;
10733 int ecode3 = 0 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 char * kwnames[] = {
10738 (char *) "self",(char *) "font",(char *) "flags", NULL
10739 };
10740
10741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10743 if (!SWIG_IsOK(res1)) {
10744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10745 }
10746 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10748 if (!SWIG_IsOK(res2)) {
10749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10750 }
10751 if (!argp2) {
10752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10753 }
10754 arg2 = reinterpret_cast< wxFont * >(argp2);
10755 if (obj2) {
10756 ecode3 = SWIG_AsVal_long(obj2, &val3);
10757 if (!SWIG_IsOK(ecode3)) {
10758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10759 }
10760 arg3 = static_cast< long >(val3);
10761 }
10762 {
10763 PyThreadState* __tstate = wxPyBeginAllowThreads();
10764 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 }
10768 resultobj = SWIG_Py_Void();
10769 return resultobj;
10770 fail:
10771 return NULL;
10772 }
10773
10774
10775 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10776 PyObject *resultobj = 0;
10777 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10778 wxTextAttrAlignment arg2 ;
10779 void *argp1 = 0 ;
10780 int res1 = 0 ;
10781 int val2 ;
10782 int ecode2 = 0 ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char * kwnames[] = {
10786 (char *) "self",(char *) "alignment", NULL
10787 };
10788
10789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",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_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10793 }
10794 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10795 ecode2 = SWIG_AsVal_int(obj1, &val2);
10796 if (!SWIG_IsOK(ecode2)) {
10797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10798 }
10799 arg2 = static_cast< wxTextAttrAlignment >(val2);
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 (arg1)->SetAlignment(arg2);
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 resultobj = SWIG_Py_Void();
10807 return resultobj;
10808 fail:
10809 return NULL;
10810 }
10811
10812
10813 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj = 0;
10815 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10816 wxArrayInt *arg2 = 0 ;
10817 void *argp1 = 0 ;
10818 int res1 = 0 ;
10819 bool temp2 = false ;
10820 PyObject * obj0 = 0 ;
10821 PyObject * obj1 = 0 ;
10822 char * kwnames[] = {
10823 (char *) "self",(char *) "tabs", NULL
10824 };
10825
10826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10830 }
10831 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10832 {
10833 if (! PySequence_Check(obj1)) {
10834 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10835 SWIG_fail;
10836 }
10837 arg2 = new wxArrayInt;
10838 temp2 = true;
10839 int i, len=PySequence_Length(obj1);
10840 for (i=0; i<len; i++) {
10841 PyObject* item = PySequence_GetItem(obj1, i);
10842 PyObject* number = PyNumber_Int(item);
10843 if (!number) {
10844 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10845 SWIG_fail;
10846 }
10847 arg2->Add(PyInt_AS_LONG(number));
10848 Py_DECREF(item);
10849 Py_DECREF(number);
10850 }
10851 }
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 resultobj = SWIG_Py_Void();
10859 {
10860 if (temp2) delete arg2;
10861 }
10862 return resultobj;
10863 fail:
10864 {
10865 if (temp2) delete arg2;
10866 }
10867 return NULL;
10868 }
10869
10870
10871 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10872 PyObject *resultobj = 0;
10873 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10874 int arg2 ;
10875 int arg3 = (int) 0 ;
10876 void *argp1 = 0 ;
10877 int res1 = 0 ;
10878 int val2 ;
10879 int ecode2 = 0 ;
10880 int val3 ;
10881 int ecode3 = 0 ;
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
10884 PyObject * obj2 = 0 ;
10885 char * kwnames[] = {
10886 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10887 };
10888
10889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10893 }
10894 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10895 ecode2 = SWIG_AsVal_int(obj1, &val2);
10896 if (!SWIG_IsOK(ecode2)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10898 }
10899 arg2 = static_cast< int >(val2);
10900 if (obj2) {
10901 ecode3 = SWIG_AsVal_int(obj2, &val3);
10902 if (!SWIG_IsOK(ecode3)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10904 }
10905 arg3 = static_cast< int >(val3);
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 (arg1)->SetLeftIndent(arg2,arg3);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 resultobj = SWIG_Py_Void();
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10923 int arg2 ;
10924 void *argp1 = 0 ;
10925 int res1 = 0 ;
10926 int val2 ;
10927 int ecode2 = 0 ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "indent", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10938 }
10939 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10940 ecode2 = SWIG_AsVal_int(obj1, &val2);
10941 if (!SWIG_IsOK(ecode2)) {
10942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10943 }
10944 arg2 = static_cast< int >(val2);
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 (arg1)->SetRightIndent(arg2);
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 resultobj = SWIG_Py_Void();
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj = 0;
10960 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10961 long arg2 ;
10962 void *argp1 = 0 ;
10963 int res1 = 0 ;
10964 long val2 ;
10965 int ecode2 = 0 ;
10966 PyObject * obj0 = 0 ;
10967 PyObject * obj1 = 0 ;
10968 char * kwnames[] = {
10969 (char *) "self",(char *) "flags", NULL
10970 };
10971
10972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10976 }
10977 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10978 ecode2 = SWIG_AsVal_long(obj1, &val2);
10979 if (!SWIG_IsOK(ecode2)) {
10980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10981 }
10982 arg2 = static_cast< long >(val2);
10983 {
10984 PyThreadState* __tstate = wxPyBeginAllowThreads();
10985 (arg1)->SetFlags(arg2);
10986 wxPyEndAllowThreads(__tstate);
10987 if (PyErr_Occurred()) SWIG_fail;
10988 }
10989 resultobj = SWIG_Py_Void();
10990 return resultobj;
10991 fail:
10992 return NULL;
10993 }
10994
10995
10996 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10997 PyObject *resultobj = 0;
10998 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10999 bool result;
11000 void *argp1 = 0 ;
11001 int res1 = 0 ;
11002 PyObject *swig_obj[1] ;
11003
11004 if (!args) SWIG_fail;
11005 swig_obj[0] = args;
11006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11007 if (!SWIG_IsOK(res1)) {
11008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11009 }
11010 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11011 {
11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
11013 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 {
11018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11019 }
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11027 PyObject *resultobj = 0;
11028 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11029 bool result;
11030 void *argp1 = 0 ;
11031 int res1 = 0 ;
11032 PyObject *swig_obj[1] ;
11033
11034 if (!args) SWIG_fail;
11035 swig_obj[0] = args;
11036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11037 if (!SWIG_IsOK(res1)) {
11038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11039 }
11040 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 {
11048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11049 }
11050 return resultobj;
11051 fail:
11052 return NULL;
11053 }
11054
11055
11056 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11057 PyObject *resultobj = 0;
11058 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11059 bool result;
11060 void *argp1 = 0 ;
11061 int res1 = 0 ;
11062 PyObject *swig_obj[1] ;
11063
11064 if (!args) SWIG_fail;
11065 swig_obj[0] = args;
11066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11069 }
11070 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11087 PyObject *resultobj = 0;
11088 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11089 bool result;
11090 void *argp1 = 0 ;
11091 int res1 = 0 ;
11092 PyObject *swig_obj[1] ;
11093
11094 if (!args) SWIG_fail;
11095 swig_obj[0] = args;
11096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11097 if (!SWIG_IsOK(res1)) {
11098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11099 }
11100 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11101 {
11102 PyThreadState* __tstate = wxPyBeginAllowThreads();
11103 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11109 }
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 PyObject *resultobj = 0;
11118 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11119 bool result;
11120 void *argp1 = 0 ;
11121 int res1 = 0 ;
11122 PyObject *swig_obj[1] ;
11123
11124 if (!args) SWIG_fail;
11125 swig_obj[0] = args;
11126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11129 }
11130 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
11137 {
11138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11139 }
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11147 PyObject *resultobj = 0;
11148 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11149 bool result;
11150 void *argp1 = 0 ;
11151 int res1 = 0 ;
11152 PyObject *swig_obj[1] ;
11153
11154 if (!args) SWIG_fail;
11155 swig_obj[0] = args;
11156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11157 if (!SWIG_IsOK(res1)) {
11158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11159 }
11160 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 {
11168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11169 }
11170 return resultobj;
11171 fail:
11172 return NULL;
11173 }
11174
11175
11176 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11177 PyObject *resultobj = 0;
11178 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11179 bool result;
11180 void *argp1 = 0 ;
11181 int res1 = 0 ;
11182 PyObject *swig_obj[1] ;
11183
11184 if (!args) SWIG_fail;
11185 swig_obj[0] = args;
11186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11187 if (!SWIG_IsOK(res1)) {
11188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11189 }
11190 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
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_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11207 PyObject *resultobj = 0;
11208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11209 long arg2 ;
11210 bool result;
11211 void *argp1 = 0 ;
11212 int res1 = 0 ;
11213 long val2 ;
11214 int ecode2 = 0 ;
11215 PyObject * obj0 = 0 ;
11216 PyObject * obj1 = 0 ;
11217 char * kwnames[] = {
11218 (char *) "self",(char *) "flag", NULL
11219 };
11220
11221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11223 if (!SWIG_IsOK(res1)) {
11224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11225 }
11226 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11227 ecode2 = SWIG_AsVal_long(obj1, &val2);
11228 if (!SWIG_IsOK(ecode2)) {
11229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11230 }
11231 arg2 = static_cast< long >(val2);
11232 {
11233 PyThreadState* __tstate = wxPyBeginAllowThreads();
11234 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 {
11239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11240 }
11241 return resultobj;
11242 fail:
11243 return NULL;
11244 }
11245
11246
11247 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11248 PyObject *resultobj = 0;
11249 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11250 wxColour *result = 0 ;
11251 void *argp1 = 0 ;
11252 int res1 = 0 ;
11253 PyObject *swig_obj[1] ;
11254
11255 if (!args) SWIG_fail;
11256 swig_obj[0] = args;
11257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11258 if (!SWIG_IsOK(res1)) {
11259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11260 }
11261 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11262 {
11263 PyThreadState* __tstate = wxPyBeginAllowThreads();
11264 {
11265 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11266 result = (wxColour *) &_result_ref;
11267 }
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11279 PyObject *resultobj = 0;
11280 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11281 wxColour *result = 0 ;
11282 void *argp1 = 0 ;
11283 int res1 = 0 ;
11284 PyObject *swig_obj[1] ;
11285
11286 if (!args) SWIG_fail;
11287 swig_obj[0] = args;
11288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11289 if (!SWIG_IsOK(res1)) {
11290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11291 }
11292 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 {
11296 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11297 result = (wxColour *) &_result_ref;
11298 }
11299 wxPyEndAllowThreads(__tstate);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 }
11302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11303 return resultobj;
11304 fail:
11305 return NULL;
11306 }
11307
11308
11309 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11310 PyObject *resultobj = 0;
11311 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11312 wxFont *result = 0 ;
11313 void *argp1 = 0 ;
11314 int res1 = 0 ;
11315 PyObject *swig_obj[1] ;
11316
11317 if (!args) SWIG_fail;
11318 swig_obj[0] = args;
11319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11320 if (!SWIG_IsOK(res1)) {
11321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11322 }
11323 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11324 {
11325 PyThreadState* __tstate = wxPyBeginAllowThreads();
11326 {
11327 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11328 result = (wxFont *) &_result_ref;
11329 }
11330 wxPyEndAllowThreads(__tstate);
11331 if (PyErr_Occurred()) SWIG_fail;
11332 }
11333 {
11334 wxFont* resultptr = new wxFont(*result);
11335 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11336 }
11337 return resultobj;
11338 fail:
11339 return NULL;
11340 }
11341
11342
11343 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11344 PyObject *resultobj = 0;
11345 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11346 wxTextAttrAlignment result;
11347 void *argp1 = 0 ;
11348 int res1 = 0 ;
11349 PyObject *swig_obj[1] ;
11350
11351 if (!args) SWIG_fail;
11352 swig_obj[0] = args;
11353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11354 if (!SWIG_IsOK(res1)) {
11355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11356 }
11357 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11358 {
11359 PyThreadState* __tstate = wxPyBeginAllowThreads();
11360 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
11364 resultobj = SWIG_From_int(static_cast< int >(result));
11365 return resultobj;
11366 fail:
11367 return NULL;
11368 }
11369
11370
11371 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11372 PyObject *resultobj = 0;
11373 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11374 wxArrayInt *result = 0 ;
11375 void *argp1 = 0 ;
11376 int res1 = 0 ;
11377 PyObject *swig_obj[1] ;
11378
11379 if (!args) SWIG_fail;
11380 swig_obj[0] = args;
11381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11382 if (!SWIG_IsOK(res1)) {
11383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11384 }
11385 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11386 {
11387 PyThreadState* __tstate = wxPyBeginAllowThreads();
11388 {
11389 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11390 result = (wxArrayInt *) &_result_ref;
11391 }
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 {
11396 resultobj = wxArrayInt2PyList_helper(*result);
11397 }
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11405 PyObject *resultobj = 0;
11406 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11407 long result;
11408 void *argp1 = 0 ;
11409 int res1 = 0 ;
11410 PyObject *swig_obj[1] ;
11411
11412 if (!args) SWIG_fail;
11413 swig_obj[0] = args;
11414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11415 if (!SWIG_IsOK(res1)) {
11416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11417 }
11418 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 resultobj = SWIG_From_long(static_cast< long >(result));
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11433 PyObject *resultobj = 0;
11434 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11435 long result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 PyObject *swig_obj[1] ;
11439
11440 if (!args) SWIG_fail;
11441 swig_obj[0] = args;
11442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11443 if (!SWIG_IsOK(res1)) {
11444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11445 }
11446 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 resultobj = SWIG_From_long(static_cast< long >(result));
11454 return resultobj;
11455 fail:
11456 return NULL;
11457 }
11458
11459
11460 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11461 PyObject *resultobj = 0;
11462 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11463 long result;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 PyObject *swig_obj[1] ;
11467
11468 if (!args) SWIG_fail;
11469 swig_obj[0] = args;
11470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11471 if (!SWIG_IsOK(res1)) {
11472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11473 }
11474 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 resultobj = SWIG_From_long(static_cast< long >(result));
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 PyObject *resultobj = 0;
11490 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11491 long result;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 PyObject *swig_obj[1] ;
11495
11496 if (!args) SWIG_fail;
11497 swig_obj[0] = args;
11498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11499 if (!SWIG_IsOK(res1)) {
11500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11501 }
11502 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 resultobj = SWIG_From_long(static_cast< long >(result));
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11517 PyObject *resultobj = 0;
11518 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11519 bool result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 PyObject *swig_obj[1] ;
11523
11524 if (!args) SWIG_fail;
11525 swig_obj[0] = args;
11526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11527 if (!SWIG_IsOK(res1)) {
11528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11529 }
11530 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 {
11538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11539 }
11540 return resultobj;
11541 fail:
11542 return NULL;
11543 }
11544
11545
11546 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11547 PyObject *resultobj = 0;
11548 wxTextAttr *arg1 = 0 ;
11549 wxTextAttr *arg2 = 0 ;
11550 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11551 wxTextAttr result;
11552 void *argp1 = 0 ;
11553 int res1 = 0 ;
11554 void *argp2 = 0 ;
11555 int res2 = 0 ;
11556 void *argp3 = 0 ;
11557 int res3 = 0 ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 PyObject * obj2 = 0 ;
11561 char * kwnames[] = {
11562 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11563 };
11564
11565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11567 if (!SWIG_IsOK(res1)) {
11568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11569 }
11570 if (!argp1) {
11571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11572 }
11573 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11575 if (!SWIG_IsOK(res2)) {
11576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11577 }
11578 if (!argp2) {
11579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11580 }
11581 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11582 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11583 if (!SWIG_IsOK(res3)) {
11584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11585 }
11586 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11594 return resultobj;
11595 fail:
11596 return NULL;
11597 }
11598
11599
11600 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11601 PyObject *obj;
11602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11603 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11604 return SWIG_Py_Void();
11605 }
11606
11607 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11608 return SWIG_Python_InitShadowInstance(args);
11609 }
11610
11611 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj = 0;
11613 wxWindow *arg1 = (wxWindow *) 0 ;
11614 int arg2 = (int) -1 ;
11615 wxString const &arg3_defvalue = wxPyEmptyString ;
11616 wxString *arg3 = (wxString *) &arg3_defvalue ;
11617 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11618 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11619 wxSize const &arg5_defvalue = wxDefaultSize ;
11620 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11621 long arg6 = (long) 0 ;
11622 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11623 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11624 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11625 wxString *arg8 = (wxString *) &arg8_defvalue ;
11626 wxTextCtrl *result = 0 ;
11627 void *argp1 = 0 ;
11628 int res1 = 0 ;
11629 int val2 ;
11630 int ecode2 = 0 ;
11631 bool temp3 = false ;
11632 wxPoint temp4 ;
11633 wxSize temp5 ;
11634 long val6 ;
11635 int ecode6 = 0 ;
11636 void *argp7 = 0 ;
11637 int res7 = 0 ;
11638 bool temp8 = false ;
11639 PyObject * obj0 = 0 ;
11640 PyObject * obj1 = 0 ;
11641 PyObject * obj2 = 0 ;
11642 PyObject * obj3 = 0 ;
11643 PyObject * obj4 = 0 ;
11644 PyObject * obj5 = 0 ;
11645 PyObject * obj6 = 0 ;
11646 PyObject * obj7 = 0 ;
11647 char * kwnames[] = {
11648 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11649 };
11650
11651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11653 if (!SWIG_IsOK(res1)) {
11654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11655 }
11656 arg1 = reinterpret_cast< wxWindow * >(argp1);
11657 if (obj1) {
11658 ecode2 = SWIG_AsVal_int(obj1, &val2);
11659 if (!SWIG_IsOK(ecode2)) {
11660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11661 }
11662 arg2 = static_cast< int >(val2);
11663 }
11664 if (obj2) {
11665 {
11666 arg3 = wxString_in_helper(obj2);
11667 if (arg3 == NULL) SWIG_fail;
11668 temp3 = true;
11669 }
11670 }
11671 if (obj3) {
11672 {
11673 arg4 = &temp4;
11674 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11675 }
11676 }
11677 if (obj4) {
11678 {
11679 arg5 = &temp5;
11680 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11681 }
11682 }
11683 if (obj5) {
11684 ecode6 = SWIG_AsVal_long(obj5, &val6);
11685 if (!SWIG_IsOK(ecode6)) {
11686 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11687 }
11688 arg6 = static_cast< long >(val6);
11689 }
11690 if (obj6) {
11691 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11692 if (!SWIG_IsOK(res7)) {
11693 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11694 }
11695 if (!argp7) {
11696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11697 }
11698 arg7 = reinterpret_cast< wxValidator * >(argp7);
11699 }
11700 if (obj7) {
11701 {
11702 arg8 = wxString_in_helper(obj7);
11703 if (arg8 == NULL) SWIG_fail;
11704 temp8 = true;
11705 }
11706 }
11707 {
11708 if (!wxPyCheckForApp()) SWIG_fail;
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11715 {
11716 if (temp3)
11717 delete arg3;
11718 }
11719 {
11720 if (temp8)
11721 delete arg8;
11722 }
11723 return resultobj;
11724 fail:
11725 {
11726 if (temp3)
11727 delete arg3;
11728 }
11729 {
11730 if (temp8)
11731 delete arg8;
11732 }
11733 return NULL;
11734 }
11735
11736
11737 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11738 PyObject *resultobj = 0;
11739 wxTextCtrl *result = 0 ;
11740
11741 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11742 {
11743 if (!wxPyCheckForApp()) SWIG_fail;
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 result = (wxTextCtrl *)new wxTextCtrl();
11746 wxPyEndAllowThreads(__tstate);
11747 if (PyErr_Occurred()) SWIG_fail;
11748 }
11749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj = 0;
11758 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11759 wxWindow *arg2 = (wxWindow *) 0 ;
11760 int arg3 = (int) -1 ;
11761 wxString const &arg4_defvalue = wxPyEmptyString ;
11762 wxString *arg4 = (wxString *) &arg4_defvalue ;
11763 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11764 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11765 wxSize const &arg6_defvalue = wxDefaultSize ;
11766 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11767 long arg7 = (long) 0 ;
11768 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11769 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11770 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11771 wxString *arg9 = (wxString *) &arg9_defvalue ;
11772 bool result;
11773 void *argp1 = 0 ;
11774 int res1 = 0 ;
11775 void *argp2 = 0 ;
11776 int res2 = 0 ;
11777 int val3 ;
11778 int ecode3 = 0 ;
11779 bool temp4 = false ;
11780 wxPoint temp5 ;
11781 wxSize temp6 ;
11782 long val7 ;
11783 int ecode7 = 0 ;
11784 void *argp8 = 0 ;
11785 int res8 = 0 ;
11786 bool temp9 = false ;
11787 PyObject * obj0 = 0 ;
11788 PyObject * obj1 = 0 ;
11789 PyObject * obj2 = 0 ;
11790 PyObject * obj3 = 0 ;
11791 PyObject * obj4 = 0 ;
11792 PyObject * obj5 = 0 ;
11793 PyObject * obj6 = 0 ;
11794 PyObject * obj7 = 0 ;
11795 PyObject * obj8 = 0 ;
11796 char * kwnames[] = {
11797 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11798 };
11799
11800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11802 if (!SWIG_IsOK(res1)) {
11803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11804 }
11805 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11807 if (!SWIG_IsOK(res2)) {
11808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11809 }
11810 arg2 = reinterpret_cast< wxWindow * >(argp2);
11811 if (obj2) {
11812 ecode3 = SWIG_AsVal_int(obj2, &val3);
11813 if (!SWIG_IsOK(ecode3)) {
11814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11815 }
11816 arg3 = static_cast< int >(val3);
11817 }
11818 if (obj3) {
11819 {
11820 arg4 = wxString_in_helper(obj3);
11821 if (arg4 == NULL) SWIG_fail;
11822 temp4 = true;
11823 }
11824 }
11825 if (obj4) {
11826 {
11827 arg5 = &temp5;
11828 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11829 }
11830 }
11831 if (obj5) {
11832 {
11833 arg6 = &temp6;
11834 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11835 }
11836 }
11837 if (obj6) {
11838 ecode7 = SWIG_AsVal_long(obj6, &val7);
11839 if (!SWIG_IsOK(ecode7)) {
11840 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11841 }
11842 arg7 = static_cast< long >(val7);
11843 }
11844 if (obj7) {
11845 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11846 if (!SWIG_IsOK(res8)) {
11847 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11848 }
11849 if (!argp8) {
11850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11851 }
11852 arg8 = reinterpret_cast< wxValidator * >(argp8);
11853 }
11854 if (obj8) {
11855 {
11856 arg9 = wxString_in_helper(obj8);
11857 if (arg9 == NULL) SWIG_fail;
11858 temp9 = true;
11859 }
11860 }
11861 {
11862 PyThreadState* __tstate = wxPyBeginAllowThreads();
11863 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11864 wxPyEndAllowThreads(__tstate);
11865 if (PyErr_Occurred()) SWIG_fail;
11866 }
11867 {
11868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11869 }
11870 {
11871 if (temp4)
11872 delete arg4;
11873 }
11874 {
11875 if (temp9)
11876 delete arg9;
11877 }
11878 return resultobj;
11879 fail:
11880 {
11881 if (temp4)
11882 delete arg4;
11883 }
11884 {
11885 if (temp9)
11886 delete arg9;
11887 }
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11893 PyObject *resultobj = 0;
11894 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11895 wxString result;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 PyObject *swig_obj[1] ;
11899
11900 if (!args) SWIG_fail;
11901 swig_obj[0] = args;
11902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11903 if (!SWIG_IsOK(res1)) {
11904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11905 }
11906 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11907 {
11908 PyThreadState* __tstate = wxPyBeginAllowThreads();
11909 result = ((wxTextCtrl const *)arg1)->GetValue();
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 {
11914 #if wxUSE_UNICODE
11915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11916 #else
11917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11918 #endif
11919 }
11920 return resultobj;
11921 fail:
11922 return NULL;
11923 }
11924
11925
11926 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11927 PyObject *resultobj = 0;
11928 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11929 wxString *arg2 = 0 ;
11930 void *argp1 = 0 ;
11931 int res1 = 0 ;
11932 bool temp2 = false ;
11933 PyObject * obj0 = 0 ;
11934 PyObject * obj1 = 0 ;
11935 char * kwnames[] = {
11936 (char *) "self",(char *) "value", NULL
11937 };
11938
11939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11941 if (!SWIG_IsOK(res1)) {
11942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11943 }
11944 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11945 {
11946 arg2 = wxString_in_helper(obj1);
11947 if (arg2 == NULL) SWIG_fail;
11948 temp2 = true;
11949 }
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 (arg1)->SetValue((wxString const &)*arg2);
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 resultobj = SWIG_Py_Void();
11957 {
11958 if (temp2)
11959 delete arg2;
11960 }
11961 return resultobj;
11962 fail:
11963 {
11964 if (temp2)
11965 delete arg2;
11966 }
11967 return NULL;
11968 }
11969
11970
11971 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11972 PyObject *resultobj = 0;
11973 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11974 bool result;
11975 void *argp1 = 0 ;
11976 int res1 = 0 ;
11977 PyObject *swig_obj[1] ;
11978
11979 if (!args) SWIG_fail;
11980 swig_obj[0] = args;
11981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11982 if (!SWIG_IsOK(res1)) {
11983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11984 }
11985 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11986 {
11987 PyThreadState* __tstate = wxPyBeginAllowThreads();
11988 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 {
11993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11994 }
11995 return resultobj;
11996 fail:
11997 return NULL;
11998 }
11999
12000
12001 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12002 PyObject *resultobj = 0;
12003 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12004 wxString *arg2 = 0 ;
12005 void *argp1 = 0 ;
12006 int res1 = 0 ;
12007 bool temp2 = false ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 char * kwnames[] = {
12011 (char *) "self",(char *) "value", NULL
12012 };
12013
12014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12018 }
12019 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12020 {
12021 arg2 = wxString_in_helper(obj1);
12022 if (arg2 == NULL) SWIG_fail;
12023 temp2 = true;
12024 }
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 (arg1)->ChangeValue((wxString const &)*arg2);
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 resultobj = SWIG_Py_Void();
12032 {
12033 if (temp2)
12034 delete arg2;
12035 }
12036 return resultobj;
12037 fail:
12038 {
12039 if (temp2)
12040 delete arg2;
12041 }
12042 return NULL;
12043 }
12044
12045
12046 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12047 PyObject *resultobj = 0;
12048 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12049 long arg2 ;
12050 long arg3 ;
12051 wxString result;
12052 void *argp1 = 0 ;
12053 int res1 = 0 ;
12054 long val2 ;
12055 int ecode2 = 0 ;
12056 long val3 ;
12057 int ecode3 = 0 ;
12058 PyObject * obj0 = 0 ;
12059 PyObject * obj1 = 0 ;
12060 PyObject * obj2 = 0 ;
12061 char * kwnames[] = {
12062 (char *) "self",(char *) "from",(char *) "to", NULL
12063 };
12064
12065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12069 }
12070 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12071 ecode2 = SWIG_AsVal_long(obj1, &val2);
12072 if (!SWIG_IsOK(ecode2)) {
12073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12074 }
12075 arg2 = static_cast< long >(val2);
12076 ecode3 = SWIG_AsVal_long(obj2, &val3);
12077 if (!SWIG_IsOK(ecode3)) {
12078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12079 }
12080 arg3 = static_cast< long >(val3);
12081 {
12082 PyThreadState* __tstate = wxPyBeginAllowThreads();
12083 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 {
12088 #if wxUSE_UNICODE
12089 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12090 #else
12091 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12092 #endif
12093 }
12094 return resultobj;
12095 fail:
12096 return NULL;
12097 }
12098
12099
12100 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12101 PyObject *resultobj = 0;
12102 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12103 long arg2 ;
12104 int result;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 long val2 ;
12108 int ecode2 = 0 ;
12109 PyObject * obj0 = 0 ;
12110 PyObject * obj1 = 0 ;
12111 char * kwnames[] = {
12112 (char *) "self",(char *) "lineNo", NULL
12113 };
12114
12115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12121 ecode2 = SWIG_AsVal_long(obj1, &val2);
12122 if (!SWIG_IsOK(ecode2)) {
12123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12124 }
12125 arg2 = static_cast< long >(val2);
12126 {
12127 PyThreadState* __tstate = wxPyBeginAllowThreads();
12128 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 resultobj = SWIG_From_int(static_cast< int >(result));
12133 return resultobj;
12134 fail:
12135 return NULL;
12136 }
12137
12138
12139 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12140 PyObject *resultobj = 0;
12141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12142 long arg2 ;
12143 wxString result;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 long val2 ;
12147 int ecode2 = 0 ;
12148 PyObject * obj0 = 0 ;
12149 PyObject * obj1 = 0 ;
12150 char * kwnames[] = {
12151 (char *) "self",(char *) "lineNo", NULL
12152 };
12153
12154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12156 if (!SWIG_IsOK(res1)) {
12157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12158 }
12159 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12160 ecode2 = SWIG_AsVal_long(obj1, &val2);
12161 if (!SWIG_IsOK(ecode2)) {
12162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12163 }
12164 arg2 = static_cast< long >(val2);
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 {
12172 #if wxUSE_UNICODE
12173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12174 #else
12175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12176 #endif
12177 }
12178 return resultobj;
12179 fail:
12180 return NULL;
12181 }
12182
12183
12184 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12185 PyObject *resultobj = 0;
12186 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12187 int result;
12188 void *argp1 = 0 ;
12189 int res1 = 0 ;
12190 PyObject *swig_obj[1] ;
12191
12192 if (!args) SWIG_fail;
12193 swig_obj[0] = args;
12194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12195 if (!SWIG_IsOK(res1)) {
12196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12197 }
12198 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12199 {
12200 PyThreadState* __tstate = wxPyBeginAllowThreads();
12201 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12202 wxPyEndAllowThreads(__tstate);
12203 if (PyErr_Occurred()) SWIG_fail;
12204 }
12205 resultobj = SWIG_From_int(static_cast< int >(result));
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12213 PyObject *resultobj = 0;
12214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12215 bool result;
12216 void *argp1 = 0 ;
12217 int res1 = 0 ;
12218 PyObject *swig_obj[1] ;
12219
12220 if (!args) SWIG_fail;
12221 swig_obj[0] = args;
12222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12223 if (!SWIG_IsOK(res1)) {
12224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12225 }
12226 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12230 wxPyEndAllowThreads(__tstate);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 {
12234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12235 }
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12243 PyObject *resultobj = 0;
12244 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12245 bool result;
12246 void *argp1 = 0 ;
12247 int res1 = 0 ;
12248 PyObject *swig_obj[1] ;
12249
12250 if (!args) SWIG_fail;
12251 swig_obj[0] = args;
12252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12253 if (!SWIG_IsOK(res1)) {
12254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12255 }
12256 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 {
12264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12265 }
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12273 PyObject *resultobj = 0;
12274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12275 bool result;
12276 void *argp1 = 0 ;
12277 int res1 = 0 ;
12278 PyObject *swig_obj[1] ;
12279
12280 if (!args) SWIG_fail;
12281 swig_obj[0] = args;
12282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12285 }
12286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 {
12294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12295 }
12296 return resultobj;
12297 fail:
12298 return NULL;
12299 }
12300
12301
12302 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12303 PyObject *resultobj = 0;
12304 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12305 bool result;
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_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12315 }
12316 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 {
12324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12325 }
12326 return resultobj;
12327 fail:
12328 return NULL;
12329 }
12330
12331
12332 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 PyObject *resultobj = 0;
12334 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12335 long *arg2 = (long *) 0 ;
12336 long *arg3 = (long *) 0 ;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 long temp2 ;
12340 int res2 = SWIG_TMPOBJ ;
12341 long temp3 ;
12342 int res3 = SWIG_TMPOBJ ;
12343 PyObject *swig_obj[1] ;
12344
12345 arg2 = &temp2;
12346 arg3 = &temp3;
12347 if (!args) SWIG_fail;
12348 swig_obj[0] = args;
12349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12350 if (!SWIG_IsOK(res1)) {
12351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12352 }
12353 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12354 {
12355 PyThreadState* __tstate = wxPyBeginAllowThreads();
12356 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12357 wxPyEndAllowThreads(__tstate);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 resultobj = SWIG_Py_Void();
12361 if (SWIG_IsTmpObj(res2)) {
12362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12363 } else {
12364 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12366 }
12367 if (SWIG_IsTmpObj(res3)) {
12368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12369 } else {
12370 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12372 }
12373 return resultobj;
12374 fail:
12375 return NULL;
12376 }
12377
12378
12379 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12380 PyObject *resultobj = 0;
12381 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12382 wxString result;
12383 void *argp1 = 0 ;
12384 int res1 = 0 ;
12385 PyObject *swig_obj[1] ;
12386
12387 if (!args) SWIG_fail;
12388 swig_obj[0] = args;
12389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12392 }
12393 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 {
12401 #if wxUSE_UNICODE
12402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12403 #else
12404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12405 #endif
12406 }
12407 return resultobj;
12408 fail:
12409 return NULL;
12410 }
12411
12412
12413 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12414 PyObject *resultobj = 0;
12415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 PyObject *swig_obj[1] ;
12419
12420 if (!args) SWIG_fail;
12421 swig_obj[0] = args;
12422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12425 }
12426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 (arg1)->Clear();
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_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 long arg2 ;
12444 long arg3 ;
12445 wxString *arg4 = 0 ;
12446 void *argp1 = 0 ;
12447 int res1 = 0 ;
12448 long val2 ;
12449 int ecode2 = 0 ;
12450 long val3 ;
12451 int ecode3 = 0 ;
12452 bool temp4 = false ;
12453 PyObject * obj0 = 0 ;
12454 PyObject * obj1 = 0 ;
12455 PyObject * obj2 = 0 ;
12456 PyObject * obj3 = 0 ;
12457 char * kwnames[] = {
12458 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12459 };
12460
12461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12463 if (!SWIG_IsOK(res1)) {
12464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12465 }
12466 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12467 ecode2 = SWIG_AsVal_long(obj1, &val2);
12468 if (!SWIG_IsOK(ecode2)) {
12469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12470 }
12471 arg2 = static_cast< long >(val2);
12472 ecode3 = SWIG_AsVal_long(obj2, &val3);
12473 if (!SWIG_IsOK(ecode3)) {
12474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12475 }
12476 arg3 = static_cast< long >(val3);
12477 {
12478 arg4 = wxString_in_helper(obj3);
12479 if (arg4 == NULL) SWIG_fail;
12480 temp4 = true;
12481 }
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 resultobj = SWIG_Py_Void();
12489 {
12490 if (temp4)
12491 delete arg4;
12492 }
12493 return resultobj;
12494 fail:
12495 {
12496 if (temp4)
12497 delete arg4;
12498 }
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj = 0;
12505 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12506 long arg2 ;
12507 long arg3 ;
12508 void *argp1 = 0 ;
12509 int res1 = 0 ;
12510 long val2 ;
12511 int ecode2 = 0 ;
12512 long val3 ;
12513 int ecode3 = 0 ;
12514 PyObject * obj0 = 0 ;
12515 PyObject * obj1 = 0 ;
12516 PyObject * obj2 = 0 ;
12517 char * kwnames[] = {
12518 (char *) "self",(char *) "from",(char *) "to", NULL
12519 };
12520
12521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12523 if (!SWIG_IsOK(res1)) {
12524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12525 }
12526 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12527 ecode2 = SWIG_AsVal_long(obj1, &val2);
12528 if (!SWIG_IsOK(ecode2)) {
12529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12530 }
12531 arg2 = static_cast< long >(val2);
12532 ecode3 = SWIG_AsVal_long(obj2, &val3);
12533 if (!SWIG_IsOK(ecode3)) {
12534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12535 }
12536 arg3 = static_cast< long >(val3);
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->Remove(arg2,arg3);
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
12543 resultobj = SWIG_Py_Void();
12544 return resultobj;
12545 fail:
12546 return NULL;
12547 }
12548
12549
12550 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12551 PyObject *resultobj = 0;
12552 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12553 wxString *arg2 = 0 ;
12554 int arg3 = (int) wxTEXT_TYPE_ANY ;
12555 bool result;
12556 void *argp1 = 0 ;
12557 int res1 = 0 ;
12558 bool temp2 = false ;
12559 int val3 ;
12560 int ecode3 = 0 ;
12561 PyObject * obj0 = 0 ;
12562 PyObject * obj1 = 0 ;
12563 PyObject * obj2 = 0 ;
12564 char * kwnames[] = {
12565 (char *) "self",(char *) "file",(char *) "fileType", NULL
12566 };
12567
12568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12570 if (!SWIG_IsOK(res1)) {
12571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12572 }
12573 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12574 {
12575 arg2 = wxString_in_helper(obj1);
12576 if (arg2 == NULL) SWIG_fail;
12577 temp2 = true;
12578 }
12579 if (obj2) {
12580 ecode3 = SWIG_AsVal_int(obj2, &val3);
12581 if (!SWIG_IsOK(ecode3)) {
12582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12583 }
12584 arg3 = static_cast< int >(val3);
12585 }
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 {
12593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12594 }
12595 {
12596 if (temp2)
12597 delete arg2;
12598 }
12599 return resultobj;
12600 fail:
12601 {
12602 if (temp2)
12603 delete arg2;
12604 }
12605 return NULL;
12606 }
12607
12608
12609 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj = 0;
12611 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12612 wxString const &arg2_defvalue = wxPyEmptyString ;
12613 wxString *arg2 = (wxString *) &arg2_defvalue ;
12614 int arg3 = (int) wxTEXT_TYPE_ANY ;
12615 bool result;
12616 void *argp1 = 0 ;
12617 int res1 = 0 ;
12618 bool temp2 = false ;
12619 int val3 ;
12620 int ecode3 = 0 ;
12621 PyObject * obj0 = 0 ;
12622 PyObject * obj1 = 0 ;
12623 PyObject * obj2 = 0 ;
12624 char * kwnames[] = {
12625 (char *) "self",(char *) "file",(char *) "fileType", NULL
12626 };
12627
12628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12630 if (!SWIG_IsOK(res1)) {
12631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12632 }
12633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12634 if (obj1) {
12635 {
12636 arg2 = wxString_in_helper(obj1);
12637 if (arg2 == NULL) SWIG_fail;
12638 temp2 = true;
12639 }
12640 }
12641 if (obj2) {
12642 ecode3 = SWIG_AsVal_int(obj2, &val3);
12643 if (!SWIG_IsOK(ecode3)) {
12644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12645 }
12646 arg3 = static_cast< int >(val3);
12647 }
12648 {
12649 PyThreadState* __tstate = wxPyBeginAllowThreads();
12650 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12651 wxPyEndAllowThreads(__tstate);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 }
12654 {
12655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12656 }
12657 {
12658 if (temp2)
12659 delete arg2;
12660 }
12661 return resultobj;
12662 fail:
12663 {
12664 if (temp2)
12665 delete arg2;
12666 }
12667 return NULL;
12668 }
12669
12670
12671 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12672 PyObject *resultobj = 0;
12673 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12674 void *argp1 = 0 ;
12675 int res1 = 0 ;
12676 PyObject *swig_obj[1] ;
12677
12678 if (!args) SWIG_fail;
12679 swig_obj[0] = args;
12680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12681 if (!SWIG_IsOK(res1)) {
12682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12683 }
12684 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 (arg1)->MarkDirty();
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 resultobj = SWIG_Py_Void();
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12699 PyObject *resultobj = 0;
12700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12701 void *argp1 = 0 ;
12702 int res1 = 0 ;
12703 PyObject *swig_obj[1] ;
12704
12705 if (!args) SWIG_fail;
12706 swig_obj[0] = args;
12707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12708 if (!SWIG_IsOK(res1)) {
12709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12710 }
12711 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 (arg1)->DiscardEdits();
12715 wxPyEndAllowThreads(__tstate);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 }
12718 resultobj = SWIG_Py_Void();
12719 return resultobj;
12720 fail:
12721 return NULL;
12722 }
12723
12724
12725 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12726 PyObject *resultobj = 0;
12727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12728 bool arg2 ;
12729 void *argp1 = 0 ;
12730 int res1 = 0 ;
12731 bool val2 ;
12732 int ecode2 = 0 ;
12733 PyObject * obj0 = 0 ;
12734 PyObject * obj1 = 0 ;
12735 char * kwnames[] = {
12736 (char *) "self",(char *) "modified", NULL
12737 };
12738
12739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12741 if (!SWIG_IsOK(res1)) {
12742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12743 }
12744 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12745 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12746 if (!SWIG_IsOK(ecode2)) {
12747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12748 }
12749 arg2 = static_cast< bool >(val2);
12750 {
12751 PyThreadState* __tstate = wxPyBeginAllowThreads();
12752 (arg1)->SetModified(arg2);
12753 wxPyEndAllowThreads(__tstate);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 resultobj = SWIG_Py_Void();
12757 return resultobj;
12758 fail:
12759 return NULL;
12760 }
12761
12762
12763 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj = 0;
12765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12766 unsigned long arg2 ;
12767 void *argp1 = 0 ;
12768 int res1 = 0 ;
12769 unsigned long val2 ;
12770 int ecode2 = 0 ;
12771 PyObject * obj0 = 0 ;
12772 PyObject * obj1 = 0 ;
12773 char * kwnames[] = {
12774 (char *) "self",(char *) "len", NULL
12775 };
12776
12777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12779 if (!SWIG_IsOK(res1)) {
12780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12781 }
12782 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12783 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12784 if (!SWIG_IsOK(ecode2)) {
12785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12786 }
12787 arg2 = static_cast< unsigned long >(val2);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 (arg1)->SetMaxLength(arg2);
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 resultobj = SWIG_Py_Void();
12795 return resultobj;
12796 fail:
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12802 PyObject *resultobj = 0;
12803 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12804 wxString *arg2 = 0 ;
12805 void *argp1 = 0 ;
12806 int res1 = 0 ;
12807 bool temp2 = false ;
12808 PyObject * obj0 = 0 ;
12809 PyObject * obj1 = 0 ;
12810 char * kwnames[] = {
12811 (char *) "self",(char *) "text", NULL
12812 };
12813
12814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12816 if (!SWIG_IsOK(res1)) {
12817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12818 }
12819 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12820 {
12821 arg2 = wxString_in_helper(obj1);
12822 if (arg2 == NULL) SWIG_fail;
12823 temp2 = true;
12824 }
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 (arg1)->WriteText((wxString const &)*arg2);
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = SWIG_Py_Void();
12832 {
12833 if (temp2)
12834 delete arg2;
12835 }
12836 return resultobj;
12837 fail:
12838 {
12839 if (temp2)
12840 delete arg2;
12841 }
12842 return NULL;
12843 }
12844
12845
12846 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12847 PyObject *resultobj = 0;
12848 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12849 wxString *arg2 = 0 ;
12850 void *argp1 = 0 ;
12851 int res1 = 0 ;
12852 bool temp2 = false ;
12853 PyObject * obj0 = 0 ;
12854 PyObject * obj1 = 0 ;
12855 char * kwnames[] = {
12856 (char *) "self",(char *) "text", NULL
12857 };
12858
12859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12861 if (!SWIG_IsOK(res1)) {
12862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12863 }
12864 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12865 {
12866 arg2 = wxString_in_helper(obj1);
12867 if (arg2 == NULL) SWIG_fail;
12868 temp2 = true;
12869 }
12870 {
12871 PyThreadState* __tstate = wxPyBeginAllowThreads();
12872 (arg1)->AppendText((wxString const &)*arg2);
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 resultobj = SWIG_Py_Void();
12877 {
12878 if (temp2)
12879 delete arg2;
12880 }
12881 return resultobj;
12882 fail:
12883 {
12884 if (temp2)
12885 delete arg2;
12886 }
12887 return NULL;
12888 }
12889
12890
12891 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12892 PyObject *resultobj = 0;
12893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12894 wxKeyEvent *arg2 = 0 ;
12895 bool result;
12896 void *argp1 = 0 ;
12897 int res1 = 0 ;
12898 void *argp2 = 0 ;
12899 int res2 = 0 ;
12900 PyObject * obj0 = 0 ;
12901 PyObject * obj1 = 0 ;
12902 char * kwnames[] = {
12903 (char *) "self",(char *) "event", NULL
12904 };
12905
12906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12908 if (!SWIG_IsOK(res1)) {
12909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12910 }
12911 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12913 if (!SWIG_IsOK(res2)) {
12914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12915 }
12916 if (!argp2) {
12917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12918 }
12919 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
12922 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 {
12927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12928 }
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj = 0;
12937 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12938 long arg2 ;
12939 long arg3 ;
12940 wxTextAttr *arg4 = 0 ;
12941 bool result;
12942 void *argp1 = 0 ;
12943 int res1 = 0 ;
12944 long val2 ;
12945 int ecode2 = 0 ;
12946 long val3 ;
12947 int ecode3 = 0 ;
12948 void *argp4 = 0 ;
12949 int res4 = 0 ;
12950 PyObject * obj0 = 0 ;
12951 PyObject * obj1 = 0 ;
12952 PyObject * obj2 = 0 ;
12953 PyObject * obj3 = 0 ;
12954 char * kwnames[] = {
12955 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12956 };
12957
12958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12962 }
12963 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12964 ecode2 = SWIG_AsVal_long(obj1, &val2);
12965 if (!SWIG_IsOK(ecode2)) {
12966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12967 }
12968 arg2 = static_cast< long >(val2);
12969 ecode3 = SWIG_AsVal_long(obj2, &val3);
12970 if (!SWIG_IsOK(ecode3)) {
12971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12972 }
12973 arg3 = static_cast< long >(val3);
12974 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12975 if (!SWIG_IsOK(res4)) {
12976 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12977 }
12978 if (!argp4) {
12979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12980 }
12981 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12982 {
12983 PyThreadState* __tstate = wxPyBeginAllowThreads();
12984 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 {
12989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12990 }
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj = 0;
12999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13000 long arg2 ;
13001 wxTextAttr *arg3 = 0 ;
13002 bool result;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 long val2 ;
13006 int ecode2 = 0 ;
13007 void *argp3 = 0 ;
13008 int res3 = 0 ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 PyObject * obj2 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "position",(char *) "style", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13020 }
13021 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13022 ecode2 = SWIG_AsVal_long(obj1, &val2);
13023 if (!SWIG_IsOK(ecode2)) {
13024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13025 }
13026 arg2 = static_cast< long >(val2);
13027 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13028 if (!SWIG_IsOK(res3)) {
13029 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13030 }
13031 if (!argp3) {
13032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13033 }
13034 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13035 {
13036 PyThreadState* __tstate = wxPyBeginAllowThreads();
13037 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13038 wxPyEndAllowThreads(__tstate);
13039 if (PyErr_Occurred()) SWIG_fail;
13040 }
13041 {
13042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13043 }
13044 return resultobj;
13045 fail:
13046 return NULL;
13047 }
13048
13049
13050 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13051 PyObject *resultobj = 0;
13052 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13053 wxTextAttr *arg2 = 0 ;
13054 bool result;
13055 void *argp1 = 0 ;
13056 int res1 = 0 ;
13057 void *argp2 = 0 ;
13058 int res2 = 0 ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "self",(char *) "style", NULL
13063 };
13064
13065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13067 if (!SWIG_IsOK(res1)) {
13068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13069 }
13070 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13072 if (!SWIG_IsOK(res2)) {
13073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13074 }
13075 if (!argp2) {
13076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13077 }
13078 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13082 wxPyEndAllowThreads(__tstate);
13083 if (PyErr_Occurred()) SWIG_fail;
13084 }
13085 {
13086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13087 }
13088 return resultobj;
13089 fail:
13090 return NULL;
13091 }
13092
13093
13094 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13095 PyObject *resultobj = 0;
13096 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13097 wxTextAttr *result = 0 ;
13098 void *argp1 = 0 ;
13099 int res1 = 0 ;
13100 PyObject *swig_obj[1] ;
13101
13102 if (!args) SWIG_fail;
13103 swig_obj[0] = args;
13104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13105 if (!SWIG_IsOK(res1)) {
13106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13107 }
13108 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 {
13112 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13113 result = (wxTextAttr *) &_result_ref;
13114 }
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13119 return resultobj;
13120 fail:
13121 return NULL;
13122 }
13123
13124
13125 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13126 PyObject *resultobj = 0;
13127 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13128 long arg2 ;
13129 long arg3 ;
13130 long result;
13131 void *argp1 = 0 ;
13132 int res1 = 0 ;
13133 long val2 ;
13134 int ecode2 = 0 ;
13135 long val3 ;
13136 int ecode3 = 0 ;
13137 PyObject * obj0 = 0 ;
13138 PyObject * obj1 = 0 ;
13139 PyObject * obj2 = 0 ;
13140 char * kwnames[] = {
13141 (char *) "self",(char *) "x",(char *) "y", NULL
13142 };
13143
13144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13146 if (!SWIG_IsOK(res1)) {
13147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13148 }
13149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13150 ecode2 = SWIG_AsVal_long(obj1, &val2);
13151 if (!SWIG_IsOK(ecode2)) {
13152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13153 }
13154 arg2 = static_cast< long >(val2);
13155 ecode3 = SWIG_AsVal_long(obj2, &val3);
13156 if (!SWIG_IsOK(ecode3)) {
13157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13158 }
13159 arg3 = static_cast< long >(val3);
13160 {
13161 PyThreadState* __tstate = wxPyBeginAllowThreads();
13162 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 resultobj = SWIG_From_long(static_cast< long >(result));
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj = 0;
13175 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13176 long arg2 ;
13177 long *arg3 = (long *) 0 ;
13178 long *arg4 = (long *) 0 ;
13179 void *argp1 = 0 ;
13180 int res1 = 0 ;
13181 long val2 ;
13182 int ecode2 = 0 ;
13183 long temp3 ;
13184 int res3 = SWIG_TMPOBJ ;
13185 long temp4 ;
13186 int res4 = SWIG_TMPOBJ ;
13187 PyObject * obj0 = 0 ;
13188 PyObject * obj1 = 0 ;
13189 char * kwnames[] = {
13190 (char *) "self",(char *) "pos", NULL
13191 };
13192
13193 arg3 = &temp3;
13194 arg4 = &temp4;
13195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13197 if (!SWIG_IsOK(res1)) {
13198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13199 }
13200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13201 ecode2 = SWIG_AsVal_long(obj1, &val2);
13202 if (!SWIG_IsOK(ecode2)) {
13203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13204 }
13205 arg2 = static_cast< long >(val2);
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 resultobj = SWIG_Py_Void();
13213 if (SWIG_IsTmpObj(res3)) {
13214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13215 } else {
13216 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13218 }
13219 if (SWIG_IsTmpObj(res4)) {
13220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13221 } else {
13222 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13224 }
13225 return resultobj;
13226 fail:
13227 return NULL;
13228 }
13229
13230
13231 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13232 PyObject *resultobj = 0;
13233 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13234 long arg2 ;
13235 void *argp1 = 0 ;
13236 int res1 = 0 ;
13237 long val2 ;
13238 int ecode2 = 0 ;
13239 PyObject * obj0 = 0 ;
13240 PyObject * obj1 = 0 ;
13241 char * kwnames[] = {
13242 (char *) "self",(char *) "pos", NULL
13243 };
13244
13245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13247 if (!SWIG_IsOK(res1)) {
13248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13249 }
13250 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13251 ecode2 = SWIG_AsVal_long(obj1, &val2);
13252 if (!SWIG_IsOK(ecode2)) {
13253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13254 }
13255 arg2 = static_cast< long >(val2);
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 (arg1)->ShowPosition(arg2);
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 resultobj = SWIG_Py_Void();
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj = 0;
13271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13272 wxPoint *arg2 = 0 ;
13273 long *arg3 = (long *) 0 ;
13274 long *arg4 = (long *) 0 ;
13275 wxTextCtrlHitTestResult result;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 wxPoint temp2 ;
13279 long temp3 ;
13280 int res3 = SWIG_TMPOBJ ;
13281 long temp4 ;
13282 int res4 = SWIG_TMPOBJ ;
13283 PyObject * obj0 = 0 ;
13284 PyObject * obj1 = 0 ;
13285 char * kwnames[] = {
13286 (char *) "self",(char *) "pt", NULL
13287 };
13288
13289 arg3 = &temp3;
13290 arg4 = &temp4;
13291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13293 if (!SWIG_IsOK(res1)) {
13294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13295 }
13296 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13297 {
13298 arg2 = &temp2;
13299 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13300 }
13301 {
13302 PyThreadState* __tstate = wxPyBeginAllowThreads();
13303 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13304 wxPyEndAllowThreads(__tstate);
13305 if (PyErr_Occurred()) SWIG_fail;
13306 }
13307 resultobj = SWIG_From_int(static_cast< int >(result));
13308 if (SWIG_IsTmpObj(res3)) {
13309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13310 } else {
13311 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13313 }
13314 if (SWIG_IsTmpObj(res4)) {
13315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13316 } else {
13317 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13319 }
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13327 PyObject *resultobj = 0;
13328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13329 wxPoint *arg2 = 0 ;
13330 long *arg3 = (long *) 0 ;
13331 wxTextCtrlHitTestResult result;
13332 void *argp1 = 0 ;
13333 int res1 = 0 ;
13334 wxPoint temp2 ;
13335 long temp3 ;
13336 int res3 = SWIG_TMPOBJ ;
13337 PyObject * obj0 = 0 ;
13338 PyObject * obj1 = 0 ;
13339 char * kwnames[] = {
13340 (char *) "self",(char *) "pt", NULL
13341 };
13342
13343 arg3 = &temp3;
13344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13346 if (!SWIG_IsOK(res1)) {
13347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13348 }
13349 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13350 {
13351 arg2 = &temp2;
13352 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13353 }
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 resultobj = SWIG_From_int(static_cast< int >(result));
13361 if (SWIG_IsTmpObj(res3)) {
13362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13363 } else {
13364 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13366 }
13367 return resultobj;
13368 fail:
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13374 PyObject *resultobj = 0;
13375 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13376 void *argp1 = 0 ;
13377 int res1 = 0 ;
13378 PyObject *swig_obj[1] ;
13379
13380 if (!args) SWIG_fail;
13381 swig_obj[0] = args;
13382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13383 if (!SWIG_IsOK(res1)) {
13384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13385 }
13386 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 (arg1)->Copy();
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 resultobj = SWIG_Py_Void();
13394 return resultobj;
13395 fail:
13396 return NULL;
13397 }
13398
13399
13400 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13401 PyObject *resultobj = 0;
13402 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13403 void *argp1 = 0 ;
13404 int res1 = 0 ;
13405 PyObject *swig_obj[1] ;
13406
13407 if (!args) SWIG_fail;
13408 swig_obj[0] = args;
13409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13410 if (!SWIG_IsOK(res1)) {
13411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13412 }
13413 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
13416 (arg1)->Cut();
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 resultobj = SWIG_Py_Void();
13421 return resultobj;
13422 fail:
13423 return NULL;
13424 }
13425
13426
13427 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13428 PyObject *resultobj = 0;
13429 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13430 void *argp1 = 0 ;
13431 int res1 = 0 ;
13432 PyObject *swig_obj[1] ;
13433
13434 if (!args) SWIG_fail;
13435 swig_obj[0] = args;
13436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13437 if (!SWIG_IsOK(res1)) {
13438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13439 }
13440 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 (arg1)->Paste();
13444 wxPyEndAllowThreads(__tstate);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 }
13447 resultobj = SWIG_Py_Void();
13448 return resultobj;
13449 fail:
13450 return NULL;
13451 }
13452
13453
13454 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13455 PyObject *resultobj = 0;
13456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13457 bool result;
13458 void *argp1 = 0 ;
13459 int res1 = 0 ;
13460 PyObject *swig_obj[1] ;
13461
13462 if (!args) SWIG_fail;
13463 swig_obj[0] = args;
13464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13465 if (!SWIG_IsOK(res1)) {
13466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13467 }
13468 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 {
13476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13477 }
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13485 PyObject *resultobj = 0;
13486 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13487 bool result;
13488 void *argp1 = 0 ;
13489 int res1 = 0 ;
13490 PyObject *swig_obj[1] ;
13491
13492 if (!args) SWIG_fail;
13493 swig_obj[0] = args;
13494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13495 if (!SWIG_IsOK(res1)) {
13496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13497 }
13498 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13502 wxPyEndAllowThreads(__tstate);
13503 if (PyErr_Occurred()) SWIG_fail;
13504 }
13505 {
13506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13507 }
13508 return resultobj;
13509 fail:
13510 return NULL;
13511 }
13512
13513
13514 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13515 PyObject *resultobj = 0;
13516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13517 bool result;
13518 void *argp1 = 0 ;
13519 int res1 = 0 ;
13520 PyObject *swig_obj[1] ;
13521
13522 if (!args) SWIG_fail;
13523 swig_obj[0] = args;
13524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13525 if (!SWIG_IsOK(res1)) {
13526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13527 }
13528 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13529 {
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 {
13536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13537 }
13538 return resultobj;
13539 fail:
13540 return NULL;
13541 }
13542
13543
13544 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13545 PyObject *resultobj = 0;
13546 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13547 void *argp1 = 0 ;
13548 int res1 = 0 ;
13549 PyObject *swig_obj[1] ;
13550
13551 if (!args) SWIG_fail;
13552 swig_obj[0] = args;
13553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13554 if (!SWIG_IsOK(res1)) {
13555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13556 }
13557 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13558 {
13559 PyThreadState* __tstate = wxPyBeginAllowThreads();
13560 (arg1)->Undo();
13561 wxPyEndAllowThreads(__tstate);
13562 if (PyErr_Occurred()) SWIG_fail;
13563 }
13564 resultobj = SWIG_Py_Void();
13565 return resultobj;
13566 fail:
13567 return NULL;
13568 }
13569
13570
13571 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13572 PyObject *resultobj = 0;
13573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13574 void *argp1 = 0 ;
13575 int res1 = 0 ;
13576 PyObject *swig_obj[1] ;
13577
13578 if (!args) SWIG_fail;
13579 swig_obj[0] = args;
13580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13581 if (!SWIG_IsOK(res1)) {
13582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13583 }
13584 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 (arg1)->Redo();
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 resultobj = SWIG_Py_Void();
13592 return resultobj;
13593 fail:
13594 return NULL;
13595 }
13596
13597
13598 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13599 PyObject *resultobj = 0;
13600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13601 bool result;
13602 void *argp1 = 0 ;
13603 int res1 = 0 ;
13604 PyObject *swig_obj[1] ;
13605
13606 if (!args) SWIG_fail;
13607 swig_obj[0] = args;
13608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13609 if (!SWIG_IsOK(res1)) {
13610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13611 }
13612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 {
13620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13621 }
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13629 PyObject *resultobj = 0;
13630 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13631 bool result;
13632 void *argp1 = 0 ;
13633 int res1 = 0 ;
13634 PyObject *swig_obj[1] ;
13635
13636 if (!args) SWIG_fail;
13637 swig_obj[0] = args;
13638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13639 if (!SWIG_IsOK(res1)) {
13640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13641 }
13642 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13643 {
13644 PyThreadState* __tstate = wxPyBeginAllowThreads();
13645 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13651 }
13652 return resultobj;
13653 fail:
13654 return NULL;
13655 }
13656
13657
13658 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13659 PyObject *resultobj = 0;
13660 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13661 long arg2 ;
13662 void *argp1 = 0 ;
13663 int res1 = 0 ;
13664 long val2 ;
13665 int ecode2 = 0 ;
13666 PyObject * obj0 = 0 ;
13667 PyObject * obj1 = 0 ;
13668 char * kwnames[] = {
13669 (char *) "self",(char *) "pos", NULL
13670 };
13671
13672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13674 if (!SWIG_IsOK(res1)) {
13675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13676 }
13677 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13678 ecode2 = SWIG_AsVal_long(obj1, &val2);
13679 if (!SWIG_IsOK(ecode2)) {
13680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13681 }
13682 arg2 = static_cast< long >(val2);
13683 {
13684 PyThreadState* __tstate = wxPyBeginAllowThreads();
13685 (arg1)->SetInsertionPoint(arg2);
13686 wxPyEndAllowThreads(__tstate);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 }
13689 resultobj = SWIG_Py_Void();
13690 return resultobj;
13691 fail:
13692 return NULL;
13693 }
13694
13695
13696 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13697 PyObject *resultobj = 0;
13698 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13699 void *argp1 = 0 ;
13700 int res1 = 0 ;
13701 PyObject *swig_obj[1] ;
13702
13703 if (!args) SWIG_fail;
13704 swig_obj[0] = args;
13705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13706 if (!SWIG_IsOK(res1)) {
13707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13708 }
13709 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 (arg1)->SetInsertionPointEnd();
13713 wxPyEndAllowThreads(__tstate);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 resultobj = SWIG_Py_Void();
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13724 PyObject *resultobj = 0;
13725 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13726 long result;
13727 void *argp1 = 0 ;
13728 int res1 = 0 ;
13729 PyObject *swig_obj[1] ;
13730
13731 if (!args) SWIG_fail;
13732 swig_obj[0] = args;
13733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13734 if (!SWIG_IsOK(res1)) {
13735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13736 }
13737 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13741 wxPyEndAllowThreads(__tstate);
13742 if (PyErr_Occurred()) SWIG_fail;
13743 }
13744 resultobj = SWIG_From_long(static_cast< long >(result));
13745 return resultobj;
13746 fail:
13747 return NULL;
13748 }
13749
13750
13751 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13752 PyObject *resultobj = 0;
13753 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13754 long result;
13755 void *argp1 = 0 ;
13756 int res1 = 0 ;
13757 PyObject *swig_obj[1] ;
13758
13759 if (!args) SWIG_fail;
13760 swig_obj[0] = args;
13761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13762 if (!SWIG_IsOK(res1)) {
13763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13764 }
13765 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13769 wxPyEndAllowThreads(__tstate);
13770 if (PyErr_Occurred()) SWIG_fail;
13771 }
13772 resultobj = SWIG_From_long(static_cast< long >(result));
13773 return resultobj;
13774 fail:
13775 return NULL;
13776 }
13777
13778
13779 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13780 PyObject *resultobj = 0;
13781 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13782 long arg2 ;
13783 long arg3 ;
13784 void *argp1 = 0 ;
13785 int res1 = 0 ;
13786 long val2 ;
13787 int ecode2 = 0 ;
13788 long val3 ;
13789 int ecode3 = 0 ;
13790 PyObject * obj0 = 0 ;
13791 PyObject * obj1 = 0 ;
13792 PyObject * obj2 = 0 ;
13793 char * kwnames[] = {
13794 (char *) "self",(char *) "from",(char *) "to", NULL
13795 };
13796
13797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13799 if (!SWIG_IsOK(res1)) {
13800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13801 }
13802 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13803 ecode2 = SWIG_AsVal_long(obj1, &val2);
13804 if (!SWIG_IsOK(ecode2)) {
13805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13806 }
13807 arg2 = static_cast< long >(val2);
13808 ecode3 = SWIG_AsVal_long(obj2, &val3);
13809 if (!SWIG_IsOK(ecode3)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13811 }
13812 arg3 = static_cast< long >(val3);
13813 {
13814 PyThreadState* __tstate = wxPyBeginAllowThreads();
13815 (arg1)->SetSelection(arg2,arg3);
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 resultobj = SWIG_Py_Void();
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13827 PyObject *resultobj = 0;
13828 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 PyObject *swig_obj[1] ;
13832
13833 if (!args) SWIG_fail;
13834 swig_obj[0] = args;
13835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13836 if (!SWIG_IsOK(res1)) {
13837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13838 }
13839 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 (arg1)->SelectAll();
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_Py_Void();
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13854 PyObject *resultobj = 0;
13855 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13856 bool arg2 ;
13857 void *argp1 = 0 ;
13858 int res1 = 0 ;
13859 bool val2 ;
13860 int ecode2 = 0 ;
13861 PyObject * obj0 = 0 ;
13862 PyObject * obj1 = 0 ;
13863 char * kwnames[] = {
13864 (char *) "self",(char *) "editable", NULL
13865 };
13866
13867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13869 if (!SWIG_IsOK(res1)) {
13870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13871 }
13872 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13873 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13874 if (!SWIG_IsOK(ecode2)) {
13875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13876 }
13877 arg2 = static_cast< bool >(val2);
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 (arg1)->SetEditable(arg2);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_Py_Void();
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13892 PyObject *resultobj = 0;
13893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13894 void *argp1 = 0 ;
13895 int res1 = 0 ;
13896 PyObject *swig_obj[1] ;
13897
13898 if (!args) SWIG_fail;
13899 swig_obj[0] = args;
13900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13901 if (!SWIG_IsOK(res1)) {
13902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13903 }
13904 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13905 {
13906 PyThreadState* __tstate = wxPyBeginAllowThreads();
13907 (arg1)->SendTextUpdatedEvent();
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 resultobj = SWIG_Py_Void();
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13919 PyObject *resultobj = 0;
13920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13921 bool arg2 = (bool) true ;
13922 bool result;
13923 void *argp1 = 0 ;
13924 int res1 = 0 ;
13925 bool val2 ;
13926 int ecode2 = 0 ;
13927 PyObject * obj0 = 0 ;
13928 PyObject * obj1 = 0 ;
13929 char * kwnames[] = {
13930 (char *) "self",(char *) "show", NULL
13931 };
13932
13933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13935 if (!SWIG_IsOK(res1)) {
13936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13937 }
13938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13939 if (obj1) {
13940 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13941 if (!SWIG_IsOK(ecode2)) {
13942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13943 }
13944 arg2 = static_cast< bool >(val2);
13945 }
13946 {
13947 PyThreadState* __tstate = wxPyBeginAllowThreads();
13948 result = (bool)(arg1)->ShowNativeCaret(arg2);
13949 wxPyEndAllowThreads(__tstate);
13950 if (PyErr_Occurred()) SWIG_fail;
13951 }
13952 {
13953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13954 }
13955 return resultobj;
13956 fail:
13957 return NULL;
13958 }
13959
13960
13961 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13962 PyObject *resultobj = 0;
13963 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13964 bool result;
13965 void *argp1 = 0 ;
13966 int res1 = 0 ;
13967 PyObject *swig_obj[1] ;
13968
13969 if (!args) SWIG_fail;
13970 swig_obj[0] = args;
13971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13972 if (!SWIG_IsOK(res1)) {
13973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13974 }
13975 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13976 {
13977 PyThreadState* __tstate = wxPyBeginAllowThreads();
13978 result = (bool)(arg1)->HideNativeCaret();
13979 wxPyEndAllowThreads(__tstate);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 }
13982 {
13983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13984 }
13985 return resultobj;
13986 fail:
13987 return NULL;
13988 }
13989
13990
13991 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13992 PyObject *resultobj = 0;
13993 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13994 wxString *arg2 = 0 ;
13995 void *argp1 = 0 ;
13996 int res1 = 0 ;
13997 bool temp2 = false ;
13998 PyObject * obj0 = 0 ;
13999 PyObject * obj1 = 0 ;
14000 char * kwnames[] = {
14001 (char *) "self",(char *) "text", NULL
14002 };
14003
14004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14006 if (!SWIG_IsOK(res1)) {
14007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14008 }
14009 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14010 {
14011 arg2 = wxString_in_helper(obj1);
14012 if (arg2 == NULL) SWIG_fail;
14013 temp2 = true;
14014 }
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14018 wxPyEndAllowThreads(__tstate);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 }
14021 resultobj = SWIG_Py_Void();
14022 {
14023 if (temp2)
14024 delete arg2;
14025 }
14026 return resultobj;
14027 fail:
14028 {
14029 if (temp2)
14030 delete arg2;
14031 }
14032 return NULL;
14033 }
14034
14035
14036 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj = 0;
14038 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14039 long arg2 ;
14040 long arg3 ;
14041 wxString result;
14042 void *argp1 = 0 ;
14043 int res1 = 0 ;
14044 long val2 ;
14045 int ecode2 = 0 ;
14046 long val3 ;
14047 int ecode3 = 0 ;
14048 PyObject * obj0 = 0 ;
14049 PyObject * obj1 = 0 ;
14050 PyObject * obj2 = 0 ;
14051 char * kwnames[] = {
14052 (char *) "self",(char *) "from",(char *) "to", NULL
14053 };
14054
14055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14057 if (!SWIG_IsOK(res1)) {
14058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14059 }
14060 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14061 ecode2 = SWIG_AsVal_long(obj1, &val2);
14062 if (!SWIG_IsOK(ecode2)) {
14063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14064 }
14065 arg2 = static_cast< long >(val2);
14066 ecode3 = SWIG_AsVal_long(obj2, &val3);
14067 if (!SWIG_IsOK(ecode3)) {
14068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14069 }
14070 arg3 = static_cast< long >(val3);
14071 {
14072 PyThreadState* __tstate = wxPyBeginAllowThreads();
14073 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 {
14078 #if wxUSE_UNICODE
14079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14080 #else
14081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14082 #endif
14083 }
14084 return resultobj;
14085 fail:
14086 return NULL;
14087 }
14088
14089
14090 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14091 PyObject *resultobj = 0;
14092 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14093 SwigValueWrapper<wxVisualAttributes > result;
14094 int val1 ;
14095 int ecode1 = 0 ;
14096 PyObject * obj0 = 0 ;
14097 char * kwnames[] = {
14098 (char *) "variant", NULL
14099 };
14100
14101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14102 if (obj0) {
14103 ecode1 = SWIG_AsVal_int(obj0, &val1);
14104 if (!SWIG_IsOK(ecode1)) {
14105 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14106 }
14107 arg1 = static_cast< wxWindowVariant >(val1);
14108 }
14109 {
14110 if (!wxPyCheckForApp()) SWIG_fail;
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
14116 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14117 return resultobj;
14118 fail:
14119 return NULL;
14120 }
14121
14122
14123 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14124 PyObject *obj;
14125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14126 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14127 return SWIG_Py_Void();
14128 }
14129
14130 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14131 return SWIG_Python_InitShadowInstance(args);
14132 }
14133
14134 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14135 PyObject *resultobj = 0;
14136 int arg1 ;
14137 wxMouseEvent *arg2 = 0 ;
14138 long arg3 ;
14139 long arg4 ;
14140 wxTextUrlEvent *result = 0 ;
14141 int val1 ;
14142 int ecode1 = 0 ;
14143 void *argp2 = 0 ;
14144 int res2 = 0 ;
14145 long val3 ;
14146 int ecode3 = 0 ;
14147 long val4 ;
14148 int ecode4 = 0 ;
14149 PyObject * obj0 = 0 ;
14150 PyObject * obj1 = 0 ;
14151 PyObject * obj2 = 0 ;
14152 PyObject * obj3 = 0 ;
14153 char * kwnames[] = {
14154 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14155 };
14156
14157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14158 ecode1 = SWIG_AsVal_int(obj0, &val1);
14159 if (!SWIG_IsOK(ecode1)) {
14160 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14161 }
14162 arg1 = static_cast< int >(val1);
14163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14164 if (!SWIG_IsOK(res2)) {
14165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14166 }
14167 if (!argp2) {
14168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14169 }
14170 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14171 ecode3 = SWIG_AsVal_long(obj2, &val3);
14172 if (!SWIG_IsOK(ecode3)) {
14173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14174 }
14175 arg3 = static_cast< long >(val3);
14176 ecode4 = SWIG_AsVal_long(obj3, &val4);
14177 if (!SWIG_IsOK(ecode4)) {
14178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14179 }
14180 arg4 = static_cast< long >(val4);
14181 {
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14188 return resultobj;
14189 fail:
14190 return NULL;
14191 }
14192
14193
14194 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14195 PyObject *resultobj = 0;
14196 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14197 wxMouseEvent *result = 0 ;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 PyObject *swig_obj[1] ;
14201
14202 if (!args) SWIG_fail;
14203 swig_obj[0] = args;
14204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14205 if (!SWIG_IsOK(res1)) {
14206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14207 }
14208 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14209 {
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 {
14212 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14213 result = (wxMouseEvent *) &_result_ref;
14214 }
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14226 PyObject *resultobj = 0;
14227 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14228 long result;
14229 void *argp1 = 0 ;
14230 int res1 = 0 ;
14231 PyObject *swig_obj[1] ;
14232
14233 if (!args) SWIG_fail;
14234 swig_obj[0] = args;
14235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14236 if (!SWIG_IsOK(res1)) {
14237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14238 }
14239 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14243 wxPyEndAllowThreads(__tstate);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 resultobj = SWIG_From_long(static_cast< long >(result));
14247 return resultobj;
14248 fail:
14249 return NULL;
14250 }
14251
14252
14253 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14254 PyObject *resultobj = 0;
14255 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14256 long result;
14257 void *argp1 = 0 ;
14258 int res1 = 0 ;
14259 PyObject *swig_obj[1] ;
14260
14261 if (!args) SWIG_fail;
14262 swig_obj[0] = args;
14263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14264 if (!SWIG_IsOK(res1)) {
14265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14266 }
14267 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14268 {
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
14274 resultobj = SWIG_From_long(static_cast< long >(result));
14275 return resultobj;
14276 fail:
14277 return NULL;
14278 }
14279
14280
14281 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14282 PyObject *obj;
14283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14284 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14285 return SWIG_Py_Void();
14286 }
14287
14288 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14289 return SWIG_Python_InitShadowInstance(args);
14290 }
14291
14292 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14293 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14294 return 1;
14295 }
14296
14297
14298 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14299 PyObject *pyobj = 0;
14300
14301 {
14302 #if wxUSE_UNICODE
14303 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14304 #else
14305 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14306 #endif
14307 }
14308 return pyobj;
14309 }
14310
14311
14312 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj = 0;
14314 wxWindow *arg1 = (wxWindow *) 0 ;
14315 int arg2 = (int) -1 ;
14316 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14317 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14318 wxSize const &arg4_defvalue = wxDefaultSize ;
14319 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14320 long arg5 = (long) wxSB_HORIZONTAL ;
14321 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14322 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14323 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14324 wxString *arg7 = (wxString *) &arg7_defvalue ;
14325 wxScrollBar *result = 0 ;
14326 void *argp1 = 0 ;
14327 int res1 = 0 ;
14328 int val2 ;
14329 int ecode2 = 0 ;
14330 wxPoint temp3 ;
14331 wxSize temp4 ;
14332 long val5 ;
14333 int ecode5 = 0 ;
14334 void *argp6 = 0 ;
14335 int res6 = 0 ;
14336 bool temp7 = false ;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 PyObject * obj2 = 0 ;
14340 PyObject * obj3 = 0 ;
14341 PyObject * obj4 = 0 ;
14342 PyObject * obj5 = 0 ;
14343 PyObject * obj6 = 0 ;
14344 char * kwnames[] = {
14345 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14346 };
14347
14348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14350 if (!SWIG_IsOK(res1)) {
14351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14352 }
14353 arg1 = reinterpret_cast< wxWindow * >(argp1);
14354 if (obj1) {
14355 ecode2 = SWIG_AsVal_int(obj1, &val2);
14356 if (!SWIG_IsOK(ecode2)) {
14357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14358 }
14359 arg2 = static_cast< int >(val2);
14360 }
14361 if (obj2) {
14362 {
14363 arg3 = &temp3;
14364 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14365 }
14366 }
14367 if (obj3) {
14368 {
14369 arg4 = &temp4;
14370 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14371 }
14372 }
14373 if (obj4) {
14374 ecode5 = SWIG_AsVal_long(obj4, &val5);
14375 if (!SWIG_IsOK(ecode5)) {
14376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14377 }
14378 arg5 = static_cast< long >(val5);
14379 }
14380 if (obj5) {
14381 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14382 if (!SWIG_IsOK(res6)) {
14383 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14384 }
14385 if (!argp6) {
14386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14387 }
14388 arg6 = reinterpret_cast< wxValidator * >(argp6);
14389 }
14390 if (obj6) {
14391 {
14392 arg7 = wxString_in_helper(obj6);
14393 if (arg7 == NULL) SWIG_fail;
14394 temp7 = true;
14395 }
14396 }
14397 {
14398 if (!wxPyCheckForApp()) SWIG_fail;
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14405 {
14406 if (temp7)
14407 delete arg7;
14408 }
14409 return resultobj;
14410 fail:
14411 {
14412 if (temp7)
14413 delete arg7;
14414 }
14415 return NULL;
14416 }
14417
14418
14419 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14420 PyObject *resultobj = 0;
14421 wxScrollBar *result = 0 ;
14422
14423 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14424 {
14425 if (!wxPyCheckForApp()) SWIG_fail;
14426 PyThreadState* __tstate = wxPyBeginAllowThreads();
14427 result = (wxScrollBar *)new wxScrollBar();
14428 wxPyEndAllowThreads(__tstate);
14429 if (PyErr_Occurred()) SWIG_fail;
14430 }
14431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14432 return resultobj;
14433 fail:
14434 return NULL;
14435 }
14436
14437
14438 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14439 PyObject *resultobj = 0;
14440 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14441 wxWindow *arg2 = (wxWindow *) 0 ;
14442 int arg3 = (int) -1 ;
14443 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14444 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14445 wxSize const &arg5_defvalue = wxDefaultSize ;
14446 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14447 long arg6 = (long) wxSB_HORIZONTAL ;
14448 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14449 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14450 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14451 wxString *arg8 = (wxString *) &arg8_defvalue ;
14452 bool result;
14453 void *argp1 = 0 ;
14454 int res1 = 0 ;
14455 void *argp2 = 0 ;
14456 int res2 = 0 ;
14457 int val3 ;
14458 int ecode3 = 0 ;
14459 wxPoint temp4 ;
14460 wxSize temp5 ;
14461 long val6 ;
14462 int ecode6 = 0 ;
14463 void *argp7 = 0 ;
14464 int res7 = 0 ;
14465 bool temp8 = false ;
14466 PyObject * obj0 = 0 ;
14467 PyObject * obj1 = 0 ;
14468 PyObject * obj2 = 0 ;
14469 PyObject * obj3 = 0 ;
14470 PyObject * obj4 = 0 ;
14471 PyObject * obj5 = 0 ;
14472 PyObject * obj6 = 0 ;
14473 PyObject * obj7 = 0 ;
14474 char * kwnames[] = {
14475 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14476 };
14477
14478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14480 if (!SWIG_IsOK(res1)) {
14481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14482 }
14483 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14485 if (!SWIG_IsOK(res2)) {
14486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14487 }
14488 arg2 = reinterpret_cast< wxWindow * >(argp2);
14489 if (obj2) {
14490 ecode3 = SWIG_AsVal_int(obj2, &val3);
14491 if (!SWIG_IsOK(ecode3)) {
14492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14493 }
14494 arg3 = static_cast< int >(val3);
14495 }
14496 if (obj3) {
14497 {
14498 arg4 = &temp4;
14499 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14500 }
14501 }
14502 if (obj4) {
14503 {
14504 arg5 = &temp5;
14505 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14506 }
14507 }
14508 if (obj5) {
14509 ecode6 = SWIG_AsVal_long(obj5, &val6);
14510 if (!SWIG_IsOK(ecode6)) {
14511 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14512 }
14513 arg6 = static_cast< long >(val6);
14514 }
14515 if (obj6) {
14516 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14517 if (!SWIG_IsOK(res7)) {
14518 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14519 }
14520 if (!argp7) {
14521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14522 }
14523 arg7 = reinterpret_cast< wxValidator * >(argp7);
14524 }
14525 if (obj7) {
14526 {
14527 arg8 = wxString_in_helper(obj7);
14528 if (arg8 == NULL) SWIG_fail;
14529 temp8 = true;
14530 }
14531 }
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14535 wxPyEndAllowThreads(__tstate);
14536 if (PyErr_Occurred()) SWIG_fail;
14537 }
14538 {
14539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14540 }
14541 {
14542 if (temp8)
14543 delete arg8;
14544 }
14545 return resultobj;
14546 fail:
14547 {
14548 if (temp8)
14549 delete arg8;
14550 }
14551 return NULL;
14552 }
14553
14554
14555 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14556 PyObject *resultobj = 0;
14557 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14558 int result;
14559 void *argp1 = 0 ;
14560 int res1 = 0 ;
14561 PyObject *swig_obj[1] ;
14562
14563 if (!args) SWIG_fail;
14564 swig_obj[0] = args;
14565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14566 if (!SWIG_IsOK(res1)) {
14567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14568 }
14569 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 resultobj = SWIG_From_int(static_cast< int >(result));
14577 return resultobj;
14578 fail:
14579 return NULL;
14580 }
14581
14582
14583 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14584 PyObject *resultobj = 0;
14585 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14586 int result;
14587 void *argp1 = 0 ;
14588 int res1 = 0 ;
14589 PyObject *swig_obj[1] ;
14590
14591 if (!args) SWIG_fail;
14592 swig_obj[0] = args;
14593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14594 if (!SWIG_IsOK(res1)) {
14595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14596 }
14597 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 resultobj = SWIG_From_int(static_cast< int >(result));
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14612 PyObject *resultobj = 0;
14613 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14614 int result;
14615 void *argp1 = 0 ;
14616 int res1 = 0 ;
14617 PyObject *swig_obj[1] ;
14618
14619 if (!args) SWIG_fail;
14620 swig_obj[0] = args;
14621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14622 if (!SWIG_IsOK(res1)) {
14623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14624 }
14625 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14629 wxPyEndAllowThreads(__tstate);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 }
14632 resultobj = SWIG_From_int(static_cast< int >(result));
14633 return resultobj;
14634 fail:
14635 return NULL;
14636 }
14637
14638
14639 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14640 PyObject *resultobj = 0;
14641 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14642 int result;
14643 void *argp1 = 0 ;
14644 int res1 = 0 ;
14645 PyObject *swig_obj[1] ;
14646
14647 if (!args) SWIG_fail;
14648 swig_obj[0] = args;
14649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14650 if (!SWIG_IsOK(res1)) {
14651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14652 }
14653 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 result = (int)((wxScrollBar const *)arg1)->GetRange();
14657 wxPyEndAllowThreads(__tstate);
14658 if (PyErr_Occurred()) SWIG_fail;
14659 }
14660 resultobj = SWIG_From_int(static_cast< int >(result));
14661 return resultobj;
14662 fail:
14663 return NULL;
14664 }
14665
14666
14667 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14668 PyObject *resultobj = 0;
14669 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14670 bool result;
14671 void *argp1 = 0 ;
14672 int res1 = 0 ;
14673 PyObject *swig_obj[1] ;
14674
14675 if (!args) SWIG_fail;
14676 swig_obj[0] = args;
14677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14678 if (!SWIG_IsOK(res1)) {
14679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14680 }
14681 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 {
14689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14690 }
14691 return resultobj;
14692 fail:
14693 return NULL;
14694 }
14695
14696
14697 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14698 PyObject *resultobj = 0;
14699 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14700 int arg2 ;
14701 void *argp1 = 0 ;
14702 int res1 = 0 ;
14703 int val2 ;
14704 int ecode2 = 0 ;
14705 PyObject * obj0 = 0 ;
14706 PyObject * obj1 = 0 ;
14707 char * kwnames[] = {
14708 (char *) "self",(char *) "viewStart", NULL
14709 };
14710
14711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14713 if (!SWIG_IsOK(res1)) {
14714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14715 }
14716 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14717 ecode2 = SWIG_AsVal_int(obj1, &val2);
14718 if (!SWIG_IsOK(ecode2)) {
14719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14720 }
14721 arg2 = static_cast< int >(val2);
14722 {
14723 PyThreadState* __tstate = wxPyBeginAllowThreads();
14724 (arg1)->SetThumbPosition(arg2);
14725 wxPyEndAllowThreads(__tstate);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 resultobj = SWIG_Py_Void();
14729 return resultobj;
14730 fail:
14731 return NULL;
14732 }
14733
14734
14735 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14736 PyObject *resultobj = 0;
14737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14738 SwigValueWrapper<wxVisualAttributes > result;
14739 int val1 ;
14740 int ecode1 = 0 ;
14741 PyObject * obj0 = 0 ;
14742 char * kwnames[] = {
14743 (char *) "variant", NULL
14744 };
14745
14746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14747 if (obj0) {
14748 ecode1 = SWIG_AsVal_int(obj0, &val1);
14749 if (!SWIG_IsOK(ecode1)) {
14750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14751 }
14752 arg1 = static_cast< wxWindowVariant >(val1);
14753 }
14754 {
14755 if (!wxPyCheckForApp()) SWIG_fail;
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14762 return resultobj;
14763 fail:
14764 return NULL;
14765 }
14766
14767
14768 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14769 PyObject *obj;
14770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14771 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14772 return SWIG_Py_Void();
14773 }
14774
14775 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14776 return SWIG_Python_InitShadowInstance(args);
14777 }
14778
14779 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14780 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14781 return 1;
14782 }
14783
14784
14785 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14786 PyObject *pyobj = 0;
14787
14788 {
14789 #if wxUSE_UNICODE
14790 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14791 #else
14792 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14793 #endif
14794 }
14795 return pyobj;
14796 }
14797
14798
14799 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14800 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14801 return 1;
14802 }
14803
14804
14805 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14806 PyObject *pyobj = 0;
14807
14808 {
14809 #if wxUSE_UNICODE
14810 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14811 #else
14812 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14813 #endif
14814 }
14815 return pyobj;
14816 }
14817
14818
14819 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14820 PyObject *resultobj = 0;
14821 wxWindow *arg1 = (wxWindow *) 0 ;
14822 int arg2 = (int) -1 ;
14823 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14824 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14825 wxSize const &arg4_defvalue = wxDefaultSize ;
14826 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14827 long arg5 = (long) wxSP_HORIZONTAL ;
14828 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14829 wxString *arg6 = (wxString *) &arg6_defvalue ;
14830 wxSpinButton *result = 0 ;
14831 void *argp1 = 0 ;
14832 int res1 = 0 ;
14833 int val2 ;
14834 int ecode2 = 0 ;
14835 wxPoint temp3 ;
14836 wxSize temp4 ;
14837 long val5 ;
14838 int ecode5 = 0 ;
14839 bool temp6 = false ;
14840 PyObject * obj0 = 0 ;
14841 PyObject * obj1 = 0 ;
14842 PyObject * obj2 = 0 ;
14843 PyObject * obj3 = 0 ;
14844 PyObject * obj4 = 0 ;
14845 PyObject * obj5 = 0 ;
14846 char * kwnames[] = {
14847 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14848 };
14849
14850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14852 if (!SWIG_IsOK(res1)) {
14853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14854 }
14855 arg1 = reinterpret_cast< wxWindow * >(argp1);
14856 if (obj1) {
14857 ecode2 = SWIG_AsVal_int(obj1, &val2);
14858 if (!SWIG_IsOK(ecode2)) {
14859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14860 }
14861 arg2 = static_cast< int >(val2);
14862 }
14863 if (obj2) {
14864 {
14865 arg3 = &temp3;
14866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14867 }
14868 }
14869 if (obj3) {
14870 {
14871 arg4 = &temp4;
14872 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14873 }
14874 }
14875 if (obj4) {
14876 ecode5 = SWIG_AsVal_long(obj4, &val5);
14877 if (!SWIG_IsOK(ecode5)) {
14878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14879 }
14880 arg5 = static_cast< long >(val5);
14881 }
14882 if (obj5) {
14883 {
14884 arg6 = wxString_in_helper(obj5);
14885 if (arg6 == NULL) SWIG_fail;
14886 temp6 = true;
14887 }
14888 }
14889 {
14890 if (!wxPyCheckForApp()) SWIG_fail;
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14897 {
14898 if (temp6)
14899 delete arg6;
14900 }
14901 return resultobj;
14902 fail:
14903 {
14904 if (temp6)
14905 delete arg6;
14906 }
14907 return NULL;
14908 }
14909
14910
14911 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14912 PyObject *resultobj = 0;
14913 wxSpinButton *result = 0 ;
14914
14915 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14916 {
14917 if (!wxPyCheckForApp()) SWIG_fail;
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (wxSpinButton *)new wxSpinButton();
14920 wxPyEndAllowThreads(__tstate);
14921 if (PyErr_Occurred()) SWIG_fail;
14922 }
14923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14924 return resultobj;
14925 fail:
14926 return NULL;
14927 }
14928
14929
14930 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14931 PyObject *resultobj = 0;
14932 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14933 wxWindow *arg2 = (wxWindow *) 0 ;
14934 int arg3 = (int) -1 ;
14935 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14936 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14937 wxSize const &arg5_defvalue = wxDefaultSize ;
14938 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14939 long arg6 = (long) wxSP_HORIZONTAL ;
14940 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14941 wxString *arg7 = (wxString *) &arg7_defvalue ;
14942 bool result;
14943 void *argp1 = 0 ;
14944 int res1 = 0 ;
14945 void *argp2 = 0 ;
14946 int res2 = 0 ;
14947 int val3 ;
14948 int ecode3 = 0 ;
14949 wxPoint temp4 ;
14950 wxSize temp5 ;
14951 long val6 ;
14952 int ecode6 = 0 ;
14953 bool temp7 = false ;
14954 PyObject * obj0 = 0 ;
14955 PyObject * obj1 = 0 ;
14956 PyObject * obj2 = 0 ;
14957 PyObject * obj3 = 0 ;
14958 PyObject * obj4 = 0 ;
14959 PyObject * obj5 = 0 ;
14960 PyObject * obj6 = 0 ;
14961 char * kwnames[] = {
14962 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14963 };
14964
14965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14969 }
14970 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14971 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14972 if (!SWIG_IsOK(res2)) {
14973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14974 }
14975 arg2 = reinterpret_cast< wxWindow * >(argp2);
14976 if (obj2) {
14977 ecode3 = SWIG_AsVal_int(obj2, &val3);
14978 if (!SWIG_IsOK(ecode3)) {
14979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14980 }
14981 arg3 = static_cast< int >(val3);
14982 }
14983 if (obj3) {
14984 {
14985 arg4 = &temp4;
14986 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14987 }
14988 }
14989 if (obj4) {
14990 {
14991 arg5 = &temp5;
14992 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14993 }
14994 }
14995 if (obj5) {
14996 ecode6 = SWIG_AsVal_long(obj5, &val6);
14997 if (!SWIG_IsOK(ecode6)) {
14998 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14999 }
15000 arg6 = static_cast< long >(val6);
15001 }
15002 if (obj6) {
15003 {
15004 arg7 = wxString_in_helper(obj6);
15005 if (arg7 == NULL) SWIG_fail;
15006 temp7 = true;
15007 }
15008 }
15009 {
15010 PyThreadState* __tstate = wxPyBeginAllowThreads();
15011 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15012 wxPyEndAllowThreads(__tstate);
15013 if (PyErr_Occurred()) SWIG_fail;
15014 }
15015 {
15016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15017 }
15018 {
15019 if (temp7)
15020 delete arg7;
15021 }
15022 return resultobj;
15023 fail:
15024 {
15025 if (temp7)
15026 delete arg7;
15027 }
15028 return NULL;
15029 }
15030
15031
15032 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15033 PyObject *resultobj = 0;
15034 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15035 int result;
15036 void *argp1 = 0 ;
15037 int res1 = 0 ;
15038 PyObject *swig_obj[1] ;
15039
15040 if (!args) SWIG_fail;
15041 swig_obj[0] = args;
15042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15043 if (!SWIG_IsOK(res1)) {
15044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15045 }
15046 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15047 {
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
15049 result = (int)((wxSpinButton const *)arg1)->GetValue();
15050 wxPyEndAllowThreads(__tstate);
15051 if (PyErr_Occurred()) SWIG_fail;
15052 }
15053 resultobj = SWIG_From_int(static_cast< int >(result));
15054 return resultobj;
15055 fail:
15056 return NULL;
15057 }
15058
15059
15060 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15061 PyObject *resultobj = 0;
15062 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15063 int result;
15064 void *argp1 = 0 ;
15065 int res1 = 0 ;
15066 PyObject *swig_obj[1] ;
15067
15068 if (!args) SWIG_fail;
15069 swig_obj[0] = args;
15070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15071 if (!SWIG_IsOK(res1)) {
15072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15073 }
15074 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15075 {
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 result = (int)((wxSpinButton const *)arg1)->GetMin();
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 resultobj = SWIG_From_int(static_cast< int >(result));
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15089 PyObject *resultobj = 0;
15090 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15091 int result;
15092 void *argp1 = 0 ;
15093 int res1 = 0 ;
15094 PyObject *swig_obj[1] ;
15095
15096 if (!args) SWIG_fail;
15097 swig_obj[0] = args;
15098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15099 if (!SWIG_IsOK(res1)) {
15100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15101 }
15102 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 result = (int)((wxSpinButton const *)arg1)->GetMax();
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
15109 resultobj = SWIG_From_int(static_cast< int >(result));
15110 return resultobj;
15111 fail:
15112 return NULL;
15113 }
15114
15115
15116 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj = 0;
15118 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15119 int arg2 ;
15120 void *argp1 = 0 ;
15121 int res1 = 0 ;
15122 int val2 ;
15123 int ecode2 = 0 ;
15124 PyObject * obj0 = 0 ;
15125 PyObject * obj1 = 0 ;
15126 char * kwnames[] = {
15127 (char *) "self",(char *) "val", NULL
15128 };
15129
15130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15132 if (!SWIG_IsOK(res1)) {
15133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15134 }
15135 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15136 ecode2 = SWIG_AsVal_int(obj1, &val2);
15137 if (!SWIG_IsOK(ecode2)) {
15138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15139 }
15140 arg2 = static_cast< int >(val2);
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
15143 (arg1)->SetValue(arg2);
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 resultobj = SWIG_Py_Void();
15148 return resultobj;
15149 fail:
15150 return NULL;
15151 }
15152
15153
15154 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15155 PyObject *resultobj = 0;
15156 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15157 int arg2 ;
15158 void *argp1 = 0 ;
15159 int res1 = 0 ;
15160 int val2 ;
15161 int ecode2 = 0 ;
15162 PyObject * obj0 = 0 ;
15163 PyObject * obj1 = 0 ;
15164 char * kwnames[] = {
15165 (char *) "self",(char *) "minVal", NULL
15166 };
15167
15168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15170 if (!SWIG_IsOK(res1)) {
15171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15172 }
15173 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15174 ecode2 = SWIG_AsVal_int(obj1, &val2);
15175 if (!SWIG_IsOK(ecode2)) {
15176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15177 }
15178 arg2 = static_cast< int >(val2);
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
15181 (arg1)->SetMin(arg2);
15182 wxPyEndAllowThreads(__tstate);
15183 if (PyErr_Occurred()) SWIG_fail;
15184 }
15185 resultobj = SWIG_Py_Void();
15186 return resultobj;
15187 fail:
15188 return NULL;
15189 }
15190
15191
15192 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15193 PyObject *resultobj = 0;
15194 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15195 int arg2 ;
15196 void *argp1 = 0 ;
15197 int res1 = 0 ;
15198 int val2 ;
15199 int ecode2 = 0 ;
15200 PyObject * obj0 = 0 ;
15201 PyObject * obj1 = 0 ;
15202 char * kwnames[] = {
15203 (char *) "self",(char *) "maxVal", NULL
15204 };
15205
15206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15208 if (!SWIG_IsOK(res1)) {
15209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15210 }
15211 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15212 ecode2 = SWIG_AsVal_int(obj1, &val2);
15213 if (!SWIG_IsOK(ecode2)) {
15214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15215 }
15216 arg2 = static_cast< int >(val2);
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 (arg1)->SetMax(arg2);
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 resultobj = SWIG_Py_Void();
15224 return resultobj;
15225 fail:
15226 return NULL;
15227 }
15228
15229
15230 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15231 PyObject *resultobj = 0;
15232 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15233 int arg2 ;
15234 int arg3 ;
15235 void *argp1 = 0 ;
15236 int res1 = 0 ;
15237 int val2 ;
15238 int ecode2 = 0 ;
15239 int val3 ;
15240 int ecode3 = 0 ;
15241 PyObject * obj0 = 0 ;
15242 PyObject * obj1 = 0 ;
15243 PyObject * obj2 = 0 ;
15244 char * kwnames[] = {
15245 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15246 };
15247
15248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15250 if (!SWIG_IsOK(res1)) {
15251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15252 }
15253 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15254 ecode2 = SWIG_AsVal_int(obj1, &val2);
15255 if (!SWIG_IsOK(ecode2)) {
15256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15257 }
15258 arg2 = static_cast< int >(val2);
15259 ecode3 = SWIG_AsVal_int(obj2, &val3);
15260 if (!SWIG_IsOK(ecode3)) {
15261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15262 }
15263 arg3 = static_cast< int >(val3);
15264 {
15265 PyThreadState* __tstate = wxPyBeginAllowThreads();
15266 (arg1)->SetRange(arg2,arg3);
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 resultobj = SWIG_Py_Void();
15271 return resultobj;
15272 fail:
15273 return NULL;
15274 }
15275
15276
15277 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15278 PyObject *resultobj = 0;
15279 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15280 bool result;
15281 void *argp1 = 0 ;
15282 int res1 = 0 ;
15283 PyObject *swig_obj[1] ;
15284
15285 if (!args) SWIG_fail;
15286 swig_obj[0] = args;
15287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15288 if (!SWIG_IsOK(res1)) {
15289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15290 }
15291 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 {
15299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15300 }
15301 return resultobj;
15302 fail:
15303 return NULL;
15304 }
15305
15306
15307 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15308 PyObject *resultobj = 0;
15309 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15310 SwigValueWrapper<wxVisualAttributes > result;
15311 int val1 ;
15312 int ecode1 = 0 ;
15313 PyObject * obj0 = 0 ;
15314 char * kwnames[] = {
15315 (char *) "variant", NULL
15316 };
15317
15318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15319 if (obj0) {
15320 ecode1 = SWIG_AsVal_int(obj0, &val1);
15321 if (!SWIG_IsOK(ecode1)) {
15322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15323 }
15324 arg1 = static_cast< wxWindowVariant >(val1);
15325 }
15326 {
15327 if (!wxPyCheckForApp()) SWIG_fail;
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15334 return resultobj;
15335 fail:
15336 return NULL;
15337 }
15338
15339
15340 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15341 PyObject *obj;
15342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15343 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15344 return SWIG_Py_Void();
15345 }
15346
15347 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15348 return SWIG_Python_InitShadowInstance(args);
15349 }
15350
15351 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15352 PyObject *resultobj = 0;
15353 wxWindow *arg1 = (wxWindow *) 0 ;
15354 int arg2 = (int) -1 ;
15355 wxString const &arg3_defvalue = wxPyEmptyString ;
15356 wxString *arg3 = (wxString *) &arg3_defvalue ;
15357 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15358 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15359 wxSize const &arg5_defvalue = wxDefaultSize ;
15360 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15361 long arg6 = (long) wxSP_ARROW_KEYS ;
15362 int arg7 = (int) 0 ;
15363 int arg8 = (int) 100 ;
15364 int arg9 = (int) 0 ;
15365 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15366 wxString *arg10 = (wxString *) &arg10_defvalue ;
15367 wxSpinCtrl *result = 0 ;
15368 void *argp1 = 0 ;
15369 int res1 = 0 ;
15370 int val2 ;
15371 int ecode2 = 0 ;
15372 bool temp3 = false ;
15373 wxPoint temp4 ;
15374 wxSize temp5 ;
15375 long val6 ;
15376 int ecode6 = 0 ;
15377 int val7 ;
15378 int ecode7 = 0 ;
15379 int val8 ;
15380 int ecode8 = 0 ;
15381 int val9 ;
15382 int ecode9 = 0 ;
15383 bool temp10 = false ;
15384 PyObject * obj0 = 0 ;
15385 PyObject * obj1 = 0 ;
15386 PyObject * obj2 = 0 ;
15387 PyObject * obj3 = 0 ;
15388 PyObject * obj4 = 0 ;
15389 PyObject * obj5 = 0 ;
15390 PyObject * obj6 = 0 ;
15391 PyObject * obj7 = 0 ;
15392 PyObject * obj8 = 0 ;
15393 PyObject * obj9 = 0 ;
15394 char * kwnames[] = {
15395 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15396 };
15397
15398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15400 if (!SWIG_IsOK(res1)) {
15401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15402 }
15403 arg1 = reinterpret_cast< wxWindow * >(argp1);
15404 if (obj1) {
15405 ecode2 = SWIG_AsVal_int(obj1, &val2);
15406 if (!SWIG_IsOK(ecode2)) {
15407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15408 }
15409 arg2 = static_cast< int >(val2);
15410 }
15411 if (obj2) {
15412 {
15413 arg3 = wxString_in_helper(obj2);
15414 if (arg3 == NULL) SWIG_fail;
15415 temp3 = true;
15416 }
15417 }
15418 if (obj3) {
15419 {
15420 arg4 = &temp4;
15421 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15422 }
15423 }
15424 if (obj4) {
15425 {
15426 arg5 = &temp5;
15427 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15428 }
15429 }
15430 if (obj5) {
15431 ecode6 = SWIG_AsVal_long(obj5, &val6);
15432 if (!SWIG_IsOK(ecode6)) {
15433 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15434 }
15435 arg6 = static_cast< long >(val6);
15436 }
15437 if (obj6) {
15438 ecode7 = SWIG_AsVal_int(obj6, &val7);
15439 if (!SWIG_IsOK(ecode7)) {
15440 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15441 }
15442 arg7 = static_cast< int >(val7);
15443 }
15444 if (obj7) {
15445 ecode8 = SWIG_AsVal_int(obj7, &val8);
15446 if (!SWIG_IsOK(ecode8)) {
15447 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15448 }
15449 arg8 = static_cast< int >(val8);
15450 }
15451 if (obj8) {
15452 ecode9 = SWIG_AsVal_int(obj8, &val9);
15453 if (!SWIG_IsOK(ecode9)) {
15454 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15455 }
15456 arg9 = static_cast< int >(val9);
15457 }
15458 if (obj9) {
15459 {
15460 arg10 = wxString_in_helper(obj9);
15461 if (arg10 == NULL) SWIG_fail;
15462 temp10 = true;
15463 }
15464 }
15465 {
15466 if (!wxPyCheckForApp()) SWIG_fail;
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15469 wxPyEndAllowThreads(__tstate);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15473 {
15474 if (temp3)
15475 delete arg3;
15476 }
15477 {
15478 if (temp10)
15479 delete arg10;
15480 }
15481 return resultobj;
15482 fail:
15483 {
15484 if (temp3)
15485 delete arg3;
15486 }
15487 {
15488 if (temp10)
15489 delete arg10;
15490 }
15491 return NULL;
15492 }
15493
15494
15495 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15496 PyObject *resultobj = 0;
15497 wxSpinCtrl *result = 0 ;
15498
15499 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15500 {
15501 if (!wxPyCheckForApp()) SWIG_fail;
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 result = (wxSpinCtrl *)new wxSpinCtrl();
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj = 0;
15516 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15517 wxWindow *arg2 = (wxWindow *) 0 ;
15518 int arg3 = (int) -1 ;
15519 wxString const &arg4_defvalue = wxPyEmptyString ;
15520 wxString *arg4 = (wxString *) &arg4_defvalue ;
15521 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15522 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15523 wxSize const &arg6_defvalue = wxDefaultSize ;
15524 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15525 long arg7 = (long) wxSP_ARROW_KEYS ;
15526 int arg8 = (int) 0 ;
15527 int arg9 = (int) 100 ;
15528 int arg10 = (int) 0 ;
15529 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15530 wxString *arg11 = (wxString *) &arg11_defvalue ;
15531 bool result;
15532 void *argp1 = 0 ;
15533 int res1 = 0 ;
15534 void *argp2 = 0 ;
15535 int res2 = 0 ;
15536 int val3 ;
15537 int ecode3 = 0 ;
15538 bool temp4 = false ;
15539 wxPoint temp5 ;
15540 wxSize temp6 ;
15541 long val7 ;
15542 int ecode7 = 0 ;
15543 int val8 ;
15544 int ecode8 = 0 ;
15545 int val9 ;
15546 int ecode9 = 0 ;
15547 int val10 ;
15548 int ecode10 = 0 ;
15549 bool temp11 = false ;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552 PyObject * obj2 = 0 ;
15553 PyObject * obj3 = 0 ;
15554 PyObject * obj4 = 0 ;
15555 PyObject * obj5 = 0 ;
15556 PyObject * obj6 = 0 ;
15557 PyObject * obj7 = 0 ;
15558 PyObject * obj8 = 0 ;
15559 PyObject * obj9 = 0 ;
15560 PyObject * obj10 = 0 ;
15561 char * kwnames[] = {
15562 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15563 };
15564
15565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) 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_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15569 }
15570 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15571 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15572 if (!SWIG_IsOK(res2)) {
15573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15574 }
15575 arg2 = reinterpret_cast< wxWindow * >(argp2);
15576 if (obj2) {
15577 ecode3 = SWIG_AsVal_int(obj2, &val3);
15578 if (!SWIG_IsOK(ecode3)) {
15579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15580 }
15581 arg3 = static_cast< int >(val3);
15582 }
15583 if (obj3) {
15584 {
15585 arg4 = wxString_in_helper(obj3);
15586 if (arg4 == NULL) SWIG_fail;
15587 temp4 = true;
15588 }
15589 }
15590 if (obj4) {
15591 {
15592 arg5 = &temp5;
15593 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15594 }
15595 }
15596 if (obj5) {
15597 {
15598 arg6 = &temp6;
15599 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15600 }
15601 }
15602 if (obj6) {
15603 ecode7 = SWIG_AsVal_long(obj6, &val7);
15604 if (!SWIG_IsOK(ecode7)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15606 }
15607 arg7 = static_cast< long >(val7);
15608 }
15609 if (obj7) {
15610 ecode8 = SWIG_AsVal_int(obj7, &val8);
15611 if (!SWIG_IsOK(ecode8)) {
15612 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15613 }
15614 arg8 = static_cast< int >(val8);
15615 }
15616 if (obj8) {
15617 ecode9 = SWIG_AsVal_int(obj8, &val9);
15618 if (!SWIG_IsOK(ecode9)) {
15619 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15620 }
15621 arg9 = static_cast< int >(val9);
15622 }
15623 if (obj9) {
15624 ecode10 = SWIG_AsVal_int(obj9, &val10);
15625 if (!SWIG_IsOK(ecode10)) {
15626 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15627 }
15628 arg10 = static_cast< int >(val10);
15629 }
15630 if (obj10) {
15631 {
15632 arg11 = wxString_in_helper(obj10);
15633 if (arg11 == NULL) SWIG_fail;
15634 temp11 = true;
15635 }
15636 }
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 {
15644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15645 }
15646 {
15647 if (temp4)
15648 delete arg4;
15649 }
15650 {
15651 if (temp11)
15652 delete arg11;
15653 }
15654 return resultobj;
15655 fail:
15656 {
15657 if (temp4)
15658 delete arg4;
15659 }
15660 {
15661 if (temp11)
15662 delete arg11;
15663 }
15664 return NULL;
15665 }
15666
15667
15668 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15669 PyObject *resultobj = 0;
15670 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15671 int result;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 PyObject *swig_obj[1] ;
15675
15676 if (!args) SWIG_fail;
15677 swig_obj[0] = args;
15678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15679 if (!SWIG_IsOK(res1)) {
15680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15681 }
15682 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15683 {
15684 PyThreadState* __tstate = wxPyBeginAllowThreads();
15685 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15686 wxPyEndAllowThreads(__tstate);
15687 if (PyErr_Occurred()) SWIG_fail;
15688 }
15689 resultobj = SWIG_From_int(static_cast< int >(result));
15690 return resultobj;
15691 fail:
15692 return NULL;
15693 }
15694
15695
15696 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15697 PyObject *resultobj = 0;
15698 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15699 int arg2 ;
15700 void *argp1 = 0 ;
15701 int res1 = 0 ;
15702 int val2 ;
15703 int ecode2 = 0 ;
15704 PyObject * obj0 = 0 ;
15705 PyObject * obj1 = 0 ;
15706 char * kwnames[] = {
15707 (char *) "self",(char *) "value", NULL
15708 };
15709
15710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15712 if (!SWIG_IsOK(res1)) {
15713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15714 }
15715 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15716 ecode2 = SWIG_AsVal_int(obj1, &val2);
15717 if (!SWIG_IsOK(ecode2)) {
15718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15719 }
15720 arg2 = static_cast< int >(val2);
15721 {
15722 PyThreadState* __tstate = wxPyBeginAllowThreads();
15723 (arg1)->SetValue(arg2);
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 resultobj = SWIG_Py_Void();
15728 return resultobj;
15729 fail:
15730 return NULL;
15731 }
15732
15733
15734 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15735 PyObject *resultobj = 0;
15736 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15737 wxString *arg2 = 0 ;
15738 void *argp1 = 0 ;
15739 int res1 = 0 ;
15740 bool temp2 = false ;
15741 PyObject * obj0 = 0 ;
15742 PyObject * obj1 = 0 ;
15743 char * kwnames[] = {
15744 (char *) "self",(char *) "text", NULL
15745 };
15746
15747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15749 if (!SWIG_IsOK(res1)) {
15750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15751 }
15752 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15753 {
15754 arg2 = wxString_in_helper(obj1);
15755 if (arg2 == NULL) SWIG_fail;
15756 temp2 = true;
15757 }
15758 {
15759 PyThreadState* __tstate = wxPyBeginAllowThreads();
15760 (arg1)->SetValue((wxString const &)*arg2);
15761 wxPyEndAllowThreads(__tstate);
15762 if (PyErr_Occurred()) SWIG_fail;
15763 }
15764 resultobj = SWIG_Py_Void();
15765 {
15766 if (temp2)
15767 delete arg2;
15768 }
15769 return resultobj;
15770 fail:
15771 {
15772 if (temp2)
15773 delete arg2;
15774 }
15775 return NULL;
15776 }
15777
15778
15779 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15780 PyObject *resultobj = 0;
15781 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15782 int arg2 ;
15783 int arg3 ;
15784 void *argp1 = 0 ;
15785 int res1 = 0 ;
15786 int val2 ;
15787 int ecode2 = 0 ;
15788 int val3 ;
15789 int ecode3 = 0 ;
15790 PyObject * obj0 = 0 ;
15791 PyObject * obj1 = 0 ;
15792 PyObject * obj2 = 0 ;
15793 char * kwnames[] = {
15794 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15795 };
15796
15797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15799 if (!SWIG_IsOK(res1)) {
15800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15801 }
15802 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15803 ecode2 = SWIG_AsVal_int(obj1, &val2);
15804 if (!SWIG_IsOK(ecode2)) {
15805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15806 }
15807 arg2 = static_cast< int >(val2);
15808 ecode3 = SWIG_AsVal_int(obj2, &val3);
15809 if (!SWIG_IsOK(ecode3)) {
15810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15811 }
15812 arg3 = static_cast< int >(val3);
15813 {
15814 PyThreadState* __tstate = wxPyBeginAllowThreads();
15815 (arg1)->SetRange(arg2,arg3);
15816 wxPyEndAllowThreads(__tstate);
15817 if (PyErr_Occurred()) SWIG_fail;
15818 }
15819 resultobj = SWIG_Py_Void();
15820 return resultobj;
15821 fail:
15822 return NULL;
15823 }
15824
15825
15826 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15827 PyObject *resultobj = 0;
15828 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15829 int result;
15830 void *argp1 = 0 ;
15831 int res1 = 0 ;
15832 PyObject *swig_obj[1] ;
15833
15834 if (!args) SWIG_fail;
15835 swig_obj[0] = args;
15836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15837 if (!SWIG_IsOK(res1)) {
15838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15839 }
15840 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15841 {
15842 PyThreadState* __tstate = wxPyBeginAllowThreads();
15843 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 resultobj = SWIG_From_int(static_cast< int >(result));
15848 return resultobj;
15849 fail:
15850 return NULL;
15851 }
15852
15853
15854 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15855 PyObject *resultobj = 0;
15856 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15857 int result;
15858 void *argp1 = 0 ;
15859 int res1 = 0 ;
15860 PyObject *swig_obj[1] ;
15861
15862 if (!args) SWIG_fail;
15863 swig_obj[0] = args;
15864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15865 if (!SWIG_IsOK(res1)) {
15866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15867 }
15868 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15869 {
15870 PyThreadState* __tstate = wxPyBeginAllowThreads();
15871 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 resultobj = SWIG_From_int(static_cast< int >(result));
15876 return resultobj;
15877 fail:
15878 return NULL;
15879 }
15880
15881
15882 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15883 PyObject *resultobj = 0;
15884 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15885 long arg2 ;
15886 long arg3 ;
15887 void *argp1 = 0 ;
15888 int res1 = 0 ;
15889 long val2 ;
15890 int ecode2 = 0 ;
15891 long val3 ;
15892 int ecode3 = 0 ;
15893 PyObject * obj0 = 0 ;
15894 PyObject * obj1 = 0 ;
15895 PyObject * obj2 = 0 ;
15896 char * kwnames[] = {
15897 (char *) "self",(char *) "from",(char *) "to", NULL
15898 };
15899
15900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15902 if (!SWIG_IsOK(res1)) {
15903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15904 }
15905 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15906 ecode2 = SWIG_AsVal_long(obj1, &val2);
15907 if (!SWIG_IsOK(ecode2)) {
15908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15909 }
15910 arg2 = static_cast< long >(val2);
15911 ecode3 = SWIG_AsVal_long(obj2, &val3);
15912 if (!SWIG_IsOK(ecode3)) {
15913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15914 }
15915 arg3 = static_cast< long >(val3);
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 (arg1)->SetSelection(arg2,arg3);
15919 wxPyEndAllowThreads(__tstate);
15920 if (PyErr_Occurred()) SWIG_fail;
15921 }
15922 resultobj = SWIG_Py_Void();
15923 return resultobj;
15924 fail:
15925 return NULL;
15926 }
15927
15928
15929 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15930 PyObject *resultobj = 0;
15931 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15932 SwigValueWrapper<wxVisualAttributes > result;
15933 int val1 ;
15934 int ecode1 = 0 ;
15935 PyObject * obj0 = 0 ;
15936 char * kwnames[] = {
15937 (char *) "variant", NULL
15938 };
15939
15940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15941 if (obj0) {
15942 ecode1 = SWIG_AsVal_int(obj0, &val1);
15943 if (!SWIG_IsOK(ecode1)) {
15944 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15945 }
15946 arg1 = static_cast< wxWindowVariant >(val1);
15947 }
15948 {
15949 if (!wxPyCheckForApp()) SWIG_fail;
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15952 wxPyEndAllowThreads(__tstate);
15953 if (PyErr_Occurred()) SWIG_fail;
15954 }
15955 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15956 return resultobj;
15957 fail:
15958 return NULL;
15959 }
15960
15961
15962 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15963 PyObject *obj;
15964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15965 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15966 return SWIG_Py_Void();
15967 }
15968
15969 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15970 return SWIG_Python_InitShadowInstance(args);
15971 }
15972
15973 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15974 PyObject *resultobj = 0;
15975 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15976 int arg2 = (int) 0 ;
15977 wxSpinEvent *result = 0 ;
15978 int val1 ;
15979 int ecode1 = 0 ;
15980 int val2 ;
15981 int ecode2 = 0 ;
15982 PyObject * obj0 = 0 ;
15983 PyObject * obj1 = 0 ;
15984 char * kwnames[] = {
15985 (char *) "commandType",(char *) "winid", NULL
15986 };
15987
15988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15989 if (obj0) {
15990 ecode1 = SWIG_AsVal_int(obj0, &val1);
15991 if (!SWIG_IsOK(ecode1)) {
15992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15993 }
15994 arg1 = static_cast< wxEventType >(val1);
15995 }
15996 if (obj1) {
15997 ecode2 = SWIG_AsVal_int(obj1, &val2);
15998 if (!SWIG_IsOK(ecode2)) {
15999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16000 }
16001 arg2 = static_cast< int >(val2);
16002 }
16003 {
16004 PyThreadState* __tstate = wxPyBeginAllowThreads();
16005 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16006 wxPyEndAllowThreads(__tstate);
16007 if (PyErr_Occurred()) SWIG_fail;
16008 }
16009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16010 return resultobj;
16011 fail:
16012 return NULL;
16013 }
16014
16015
16016 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16017 PyObject *resultobj = 0;
16018 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16019 int result;
16020 void *argp1 = 0 ;
16021 int res1 = 0 ;
16022 PyObject *swig_obj[1] ;
16023
16024 if (!args) SWIG_fail;
16025 swig_obj[0] = args;
16026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16027 if (!SWIG_IsOK(res1)) {
16028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16029 }
16030 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16034 wxPyEndAllowThreads(__tstate);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 resultobj = SWIG_From_int(static_cast< int >(result));
16038 return resultobj;
16039 fail:
16040 return NULL;
16041 }
16042
16043
16044 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16045 PyObject *resultobj = 0;
16046 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16047 int arg2 ;
16048 void *argp1 = 0 ;
16049 int res1 = 0 ;
16050 int val2 ;
16051 int ecode2 = 0 ;
16052 PyObject * obj0 = 0 ;
16053 PyObject * obj1 = 0 ;
16054 char * kwnames[] = {
16055 (char *) "self",(char *) "pos", NULL
16056 };
16057
16058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16060 if (!SWIG_IsOK(res1)) {
16061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16062 }
16063 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16064 ecode2 = SWIG_AsVal_int(obj1, &val2);
16065 if (!SWIG_IsOK(ecode2)) {
16066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16067 }
16068 arg2 = static_cast< int >(val2);
16069 {
16070 PyThreadState* __tstate = wxPyBeginAllowThreads();
16071 (arg1)->SetPosition(arg2);
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 resultobj = SWIG_Py_Void();
16076 return resultobj;
16077 fail:
16078 return NULL;
16079 }
16080
16081
16082 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16083 PyObject *obj;
16084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16085 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16086 return SWIG_Py_Void();
16087 }
16088
16089 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16090 return SWIG_Python_InitShadowInstance(args);
16091 }
16092
16093 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16094 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16095 return 1;
16096 }
16097
16098
16099 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16100 PyObject *pyobj = 0;
16101
16102 {
16103 #if wxUSE_UNICODE
16104 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16105 #else
16106 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16107 #endif
16108 }
16109 return pyobj;
16110 }
16111
16112
16113 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16114 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16115 return 1;
16116 }
16117
16118
16119 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16120 PyObject *pyobj = 0;
16121
16122 {
16123 #if wxUSE_UNICODE
16124 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16125 #else
16126 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16127 #endif
16128 }
16129 return pyobj;
16130 }
16131
16132
16133 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16134 PyObject *resultobj = 0;
16135 wxWindow *arg1 = (wxWindow *) 0 ;
16136 int arg2 = (int) -1 ;
16137 wxString const &arg3_defvalue = wxPyEmptyString ;
16138 wxString *arg3 = (wxString *) &arg3_defvalue ;
16139 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16140 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16141 wxSize const &arg5_defvalue = wxDefaultSize ;
16142 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16143 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16144 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16145 int arg7 = (int) 0 ;
16146 long arg8 = (long) wxRA_HORIZONTAL ;
16147 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16148 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16149 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16150 wxString *arg10 = (wxString *) &arg10_defvalue ;
16151 wxRadioBox *result = 0 ;
16152 void *argp1 = 0 ;
16153 int res1 = 0 ;
16154 int val2 ;
16155 int ecode2 = 0 ;
16156 bool temp3 = false ;
16157 wxPoint temp4 ;
16158 wxSize temp5 ;
16159 bool temp6 = false ;
16160 int val7 ;
16161 int ecode7 = 0 ;
16162 long val8 ;
16163 int ecode8 = 0 ;
16164 void *argp9 = 0 ;
16165 int res9 = 0 ;
16166 bool temp10 = false ;
16167 PyObject * obj0 = 0 ;
16168 PyObject * obj1 = 0 ;
16169 PyObject * obj2 = 0 ;
16170 PyObject * obj3 = 0 ;
16171 PyObject * obj4 = 0 ;
16172 PyObject * obj5 = 0 ;
16173 PyObject * obj6 = 0 ;
16174 PyObject * obj7 = 0 ;
16175 PyObject * obj8 = 0 ;
16176 PyObject * obj9 = 0 ;
16177 char * kwnames[] = {
16178 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16179 };
16180
16181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16183 if (!SWIG_IsOK(res1)) {
16184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16185 }
16186 arg1 = reinterpret_cast< wxWindow * >(argp1);
16187 if (obj1) {
16188 ecode2 = SWIG_AsVal_int(obj1, &val2);
16189 if (!SWIG_IsOK(ecode2)) {
16190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16191 }
16192 arg2 = static_cast< int >(val2);
16193 }
16194 if (obj2) {
16195 {
16196 arg3 = wxString_in_helper(obj2);
16197 if (arg3 == NULL) SWIG_fail;
16198 temp3 = true;
16199 }
16200 }
16201 if (obj3) {
16202 {
16203 arg4 = &temp4;
16204 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16205 }
16206 }
16207 if (obj4) {
16208 {
16209 arg5 = &temp5;
16210 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16211 }
16212 }
16213 if (obj5) {
16214 {
16215 if (! PySequence_Check(obj5)) {
16216 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16217 SWIG_fail;
16218 }
16219 arg6 = new wxArrayString;
16220 temp6 = true;
16221 int i, len=PySequence_Length(obj5);
16222 for (i=0; i<len; i++) {
16223 PyObject* item = PySequence_GetItem(obj5, i);
16224 wxString* s = wxString_in_helper(item);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 arg6->Add(*s);
16227 delete s;
16228 Py_DECREF(item);
16229 }
16230 }
16231 }
16232 if (obj6) {
16233 ecode7 = SWIG_AsVal_int(obj6, &val7);
16234 if (!SWIG_IsOK(ecode7)) {
16235 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16236 }
16237 arg7 = static_cast< int >(val7);
16238 }
16239 if (obj7) {
16240 ecode8 = SWIG_AsVal_long(obj7, &val8);
16241 if (!SWIG_IsOK(ecode8)) {
16242 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16243 }
16244 arg8 = static_cast< long >(val8);
16245 }
16246 if (obj8) {
16247 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16248 if (!SWIG_IsOK(res9)) {
16249 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16250 }
16251 if (!argp9) {
16252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16253 }
16254 arg9 = reinterpret_cast< wxValidator * >(argp9);
16255 }
16256 if (obj9) {
16257 {
16258 arg10 = wxString_in_helper(obj9);
16259 if (arg10 == NULL) SWIG_fail;
16260 temp10 = true;
16261 }
16262 }
16263 {
16264 if (!wxPyCheckForApp()) SWIG_fail;
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 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);
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16271 {
16272 if (temp3)
16273 delete arg3;
16274 }
16275 {
16276 if (temp6) delete arg6;
16277 }
16278 {
16279 if (temp10)
16280 delete arg10;
16281 }
16282 return resultobj;
16283 fail:
16284 {
16285 if (temp3)
16286 delete arg3;
16287 }
16288 {
16289 if (temp6) delete arg6;
16290 }
16291 {
16292 if (temp10)
16293 delete arg10;
16294 }
16295 return NULL;
16296 }
16297
16298
16299 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16300 PyObject *resultobj = 0;
16301 wxRadioBox *result = 0 ;
16302
16303 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16304 {
16305 if (!wxPyCheckForApp()) SWIG_fail;
16306 PyThreadState* __tstate = wxPyBeginAllowThreads();
16307 result = (wxRadioBox *)new wxRadioBox();
16308 wxPyEndAllowThreads(__tstate);
16309 if (PyErr_Occurred()) SWIG_fail;
16310 }
16311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16312 return resultobj;
16313 fail:
16314 return NULL;
16315 }
16316
16317
16318 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16319 PyObject *resultobj = 0;
16320 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16321 wxWindow *arg2 = (wxWindow *) 0 ;
16322 int arg3 = (int) -1 ;
16323 wxString const &arg4_defvalue = wxPyEmptyString ;
16324 wxString *arg4 = (wxString *) &arg4_defvalue ;
16325 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16326 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16327 wxSize const &arg6_defvalue = wxDefaultSize ;
16328 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16329 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16330 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16331 int arg8 = (int) 0 ;
16332 long arg9 = (long) wxRA_HORIZONTAL ;
16333 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16334 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16335 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16336 wxString *arg11 = (wxString *) &arg11_defvalue ;
16337 bool result;
16338 void *argp1 = 0 ;
16339 int res1 = 0 ;
16340 void *argp2 = 0 ;
16341 int res2 = 0 ;
16342 int val3 ;
16343 int ecode3 = 0 ;
16344 bool temp4 = false ;
16345 wxPoint temp5 ;
16346 wxSize temp6 ;
16347 bool temp7 = false ;
16348 int val8 ;
16349 int ecode8 = 0 ;
16350 long val9 ;
16351 int ecode9 = 0 ;
16352 void *argp10 = 0 ;
16353 int res10 = 0 ;
16354 bool temp11 = false ;
16355 PyObject * obj0 = 0 ;
16356 PyObject * obj1 = 0 ;
16357 PyObject * obj2 = 0 ;
16358 PyObject * obj3 = 0 ;
16359 PyObject * obj4 = 0 ;
16360 PyObject * obj5 = 0 ;
16361 PyObject * obj6 = 0 ;
16362 PyObject * obj7 = 0 ;
16363 PyObject * obj8 = 0 ;
16364 PyObject * obj9 = 0 ;
16365 PyObject * obj10 = 0 ;
16366 char * kwnames[] = {
16367 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16368 };
16369
16370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16372 if (!SWIG_IsOK(res1)) {
16373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16374 }
16375 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16376 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16377 if (!SWIG_IsOK(res2)) {
16378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16379 }
16380 arg2 = reinterpret_cast< wxWindow * >(argp2);
16381 if (obj2) {
16382 ecode3 = SWIG_AsVal_int(obj2, &val3);
16383 if (!SWIG_IsOK(ecode3)) {
16384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16385 }
16386 arg3 = static_cast< int >(val3);
16387 }
16388 if (obj3) {
16389 {
16390 arg4 = wxString_in_helper(obj3);
16391 if (arg4 == NULL) SWIG_fail;
16392 temp4 = true;
16393 }
16394 }
16395 if (obj4) {
16396 {
16397 arg5 = &temp5;
16398 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16399 }
16400 }
16401 if (obj5) {
16402 {
16403 arg6 = &temp6;
16404 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16405 }
16406 }
16407 if (obj6) {
16408 {
16409 if (! PySequence_Check(obj6)) {
16410 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16411 SWIG_fail;
16412 }
16413 arg7 = new wxArrayString;
16414 temp7 = true;
16415 int i, len=PySequence_Length(obj6);
16416 for (i=0; i<len; i++) {
16417 PyObject* item = PySequence_GetItem(obj6, i);
16418 wxString* s = wxString_in_helper(item);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 arg7->Add(*s);
16421 delete s;
16422 Py_DECREF(item);
16423 }
16424 }
16425 }
16426 if (obj7) {
16427 ecode8 = SWIG_AsVal_int(obj7, &val8);
16428 if (!SWIG_IsOK(ecode8)) {
16429 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16430 }
16431 arg8 = static_cast< int >(val8);
16432 }
16433 if (obj8) {
16434 ecode9 = SWIG_AsVal_long(obj8, &val9);
16435 if (!SWIG_IsOK(ecode9)) {
16436 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16437 }
16438 arg9 = static_cast< long >(val9);
16439 }
16440 if (obj9) {
16441 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16442 if (!SWIG_IsOK(res10)) {
16443 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16444 }
16445 if (!argp10) {
16446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16447 }
16448 arg10 = reinterpret_cast< wxValidator * >(argp10);
16449 }
16450 if (obj10) {
16451 {
16452 arg11 = wxString_in_helper(obj10);
16453 if (arg11 == NULL) SWIG_fail;
16454 temp11 = true;
16455 }
16456 }
16457 {
16458 PyThreadState* __tstate = wxPyBeginAllowThreads();
16459 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);
16460 wxPyEndAllowThreads(__tstate);
16461 if (PyErr_Occurred()) SWIG_fail;
16462 }
16463 {
16464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16465 }
16466 {
16467 if (temp4)
16468 delete arg4;
16469 }
16470 {
16471 if (temp7) delete arg7;
16472 }
16473 {
16474 if (temp11)
16475 delete arg11;
16476 }
16477 return resultobj;
16478 fail:
16479 {
16480 if (temp4)
16481 delete arg4;
16482 }
16483 {
16484 if (temp7) delete arg7;
16485 }
16486 {
16487 if (temp11)
16488 delete arg11;
16489 }
16490 return NULL;
16491 }
16492
16493
16494 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16495 PyObject *resultobj = 0;
16496 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16497 int arg2 ;
16498 void *argp1 = 0 ;
16499 int res1 = 0 ;
16500 int val2 ;
16501 int ecode2 = 0 ;
16502 PyObject * obj0 = 0 ;
16503 PyObject * obj1 = 0 ;
16504 char * kwnames[] = {
16505 (char *) "self",(char *) "n", NULL
16506 };
16507
16508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16510 if (!SWIG_IsOK(res1)) {
16511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16512 }
16513 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16514 ecode2 = SWIG_AsVal_int(obj1, &val2);
16515 if (!SWIG_IsOK(ecode2)) {
16516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16517 }
16518 arg2 = static_cast< int >(val2);
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 (arg1)->SetSelection(arg2);
16522 wxPyEndAllowThreads(__tstate);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 resultobj = SWIG_Py_Void();
16526 return resultobj;
16527 fail:
16528 return NULL;
16529 }
16530
16531
16532 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16533 PyObject *resultobj = 0;
16534 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16535 int result;
16536 void *argp1 = 0 ;
16537 int res1 = 0 ;
16538 PyObject *swig_obj[1] ;
16539
16540 if (!args) SWIG_fail;
16541 swig_obj[0] = args;
16542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16543 if (!SWIG_IsOK(res1)) {
16544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16545 }
16546 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16550 wxPyEndAllowThreads(__tstate);
16551 if (PyErr_Occurred()) SWIG_fail;
16552 }
16553 resultobj = SWIG_From_int(static_cast< int >(result));
16554 return resultobj;
16555 fail:
16556 return NULL;
16557 }
16558
16559
16560 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16561 PyObject *resultobj = 0;
16562 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16563 wxString result;
16564 void *argp1 = 0 ;
16565 int res1 = 0 ;
16566 PyObject *swig_obj[1] ;
16567
16568 if (!args) SWIG_fail;
16569 swig_obj[0] = args;
16570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16571 if (!SWIG_IsOK(res1)) {
16572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16573 }
16574 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 {
16582 #if wxUSE_UNICODE
16583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16584 #else
16585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16586 #endif
16587 }
16588 return resultobj;
16589 fail:
16590 return NULL;
16591 }
16592
16593
16594 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj = 0;
16596 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16597 wxString *arg2 = 0 ;
16598 bool result;
16599 void *argp1 = 0 ;
16600 int res1 = 0 ;
16601 bool temp2 = false ;
16602 PyObject * obj0 = 0 ;
16603 PyObject * obj1 = 0 ;
16604 char * kwnames[] = {
16605 (char *) "self",(char *) "s", NULL
16606 };
16607
16608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16610 if (!SWIG_IsOK(res1)) {
16611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16612 }
16613 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16614 {
16615 arg2 = wxString_in_helper(obj1);
16616 if (arg2 == NULL) SWIG_fail;
16617 temp2 = true;
16618 }
16619 {
16620 PyThreadState* __tstate = wxPyBeginAllowThreads();
16621 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 {
16626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16627 }
16628 {
16629 if (temp2)
16630 delete arg2;
16631 }
16632 return resultobj;
16633 fail:
16634 {
16635 if (temp2)
16636 delete arg2;
16637 }
16638 return NULL;
16639 }
16640
16641
16642 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16643 PyObject *resultobj = 0;
16644 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16645 size_t result;
16646 void *argp1 = 0 ;
16647 int res1 = 0 ;
16648 PyObject *swig_obj[1] ;
16649
16650 if (!args) SWIG_fail;
16651 swig_obj[0] = args;
16652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16653 if (!SWIG_IsOK(res1)) {
16654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16655 }
16656 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16657 {
16658 PyThreadState* __tstate = wxPyBeginAllowThreads();
16659 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16660 wxPyEndAllowThreads(__tstate);
16661 if (PyErr_Occurred()) SWIG_fail;
16662 }
16663 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16664 return resultobj;
16665 fail:
16666 return NULL;
16667 }
16668
16669
16670 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16671 PyObject *resultobj = 0;
16672 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16673 wxString *arg2 = 0 ;
16674 int result;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 bool temp2 = false ;
16678 PyObject * obj0 = 0 ;
16679 PyObject * obj1 = 0 ;
16680 char * kwnames[] = {
16681 (char *) "self",(char *) "s", NULL
16682 };
16683
16684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16686 if (!SWIG_IsOK(res1)) {
16687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16688 }
16689 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16690 {
16691 arg2 = wxString_in_helper(obj1);
16692 if (arg2 == NULL) SWIG_fail;
16693 temp2 = true;
16694 }
16695 {
16696 PyThreadState* __tstate = wxPyBeginAllowThreads();
16697 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16698 wxPyEndAllowThreads(__tstate);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 }
16701 resultobj = SWIG_From_int(static_cast< int >(result));
16702 {
16703 if (temp2)
16704 delete arg2;
16705 }
16706 return resultobj;
16707 fail:
16708 {
16709 if (temp2)
16710 delete arg2;
16711 }
16712 return NULL;
16713 }
16714
16715
16716 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16717 PyObject *resultobj = 0;
16718 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16719 int arg2 ;
16720 wxString result;
16721 void *argp1 = 0 ;
16722 int res1 = 0 ;
16723 int val2 ;
16724 int ecode2 = 0 ;
16725 PyObject * obj0 = 0 ;
16726 PyObject * obj1 = 0 ;
16727 char * kwnames[] = {
16728 (char *) "self",(char *) "n", NULL
16729 };
16730
16731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16733 if (!SWIG_IsOK(res1)) {
16734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16735 }
16736 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16737 ecode2 = SWIG_AsVal_int(obj1, &val2);
16738 if (!SWIG_IsOK(ecode2)) {
16739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16740 }
16741 arg2 = static_cast< int >(val2);
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 {
16749 #if wxUSE_UNICODE
16750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16751 #else
16752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16753 #endif
16754 }
16755 return resultobj;
16756 fail:
16757 return NULL;
16758 }
16759
16760
16761 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16762 PyObject *resultobj = 0;
16763 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16764 int arg2 ;
16765 wxString *arg3 = 0 ;
16766 void *argp1 = 0 ;
16767 int res1 = 0 ;
16768 int val2 ;
16769 int ecode2 = 0 ;
16770 bool temp3 = false ;
16771 PyObject * obj0 = 0 ;
16772 PyObject * obj1 = 0 ;
16773 PyObject * obj2 = 0 ;
16774 char * kwnames[] = {
16775 (char *) "self",(char *) "n",(char *) "label", NULL
16776 };
16777
16778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16780 if (!SWIG_IsOK(res1)) {
16781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16782 }
16783 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16784 ecode2 = SWIG_AsVal_int(obj1, &val2);
16785 if (!SWIG_IsOK(ecode2)) {
16786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16787 }
16788 arg2 = static_cast< int >(val2);
16789 {
16790 arg3 = wxString_in_helper(obj2);
16791 if (arg3 == NULL) SWIG_fail;
16792 temp3 = true;
16793 }
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 (arg1)->SetString(arg2,(wxString const &)*arg3);
16797 wxPyEndAllowThreads(__tstate);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 }
16800 resultobj = SWIG_Py_Void();
16801 {
16802 if (temp3)
16803 delete arg3;
16804 }
16805 return resultobj;
16806 fail:
16807 {
16808 if (temp3)
16809 delete arg3;
16810 }
16811 return NULL;
16812 }
16813
16814
16815 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj = 0;
16817 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16818 unsigned int arg2 ;
16819 bool arg3 = (bool) true ;
16820 void *argp1 = 0 ;
16821 int res1 = 0 ;
16822 unsigned int val2 ;
16823 int ecode2 = 0 ;
16824 bool val3 ;
16825 int ecode3 = 0 ;
16826 PyObject * obj0 = 0 ;
16827 PyObject * obj1 = 0 ;
16828 PyObject * obj2 = 0 ;
16829 char * kwnames[] = {
16830 (char *) "self",(char *) "n",(char *) "enable", NULL
16831 };
16832
16833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16835 if (!SWIG_IsOK(res1)) {
16836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16837 }
16838 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16839 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16840 if (!SWIG_IsOK(ecode2)) {
16841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16842 }
16843 arg2 = static_cast< unsigned int >(val2);
16844 if (obj2) {
16845 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16846 if (!SWIG_IsOK(ecode3)) {
16847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16848 }
16849 arg3 = static_cast< bool >(val3);
16850 }
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 (arg1)->Enable(arg2,arg3);
16854 wxPyEndAllowThreads(__tstate);
16855 if (PyErr_Occurred()) SWIG_fail;
16856 }
16857 resultobj = SWIG_Py_Void();
16858 return resultobj;
16859 fail:
16860 return NULL;
16861 }
16862
16863
16864 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16865 PyObject *resultobj = 0;
16866 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16867 unsigned int arg2 ;
16868 bool arg3 = (bool) true ;
16869 void *argp1 = 0 ;
16870 int res1 = 0 ;
16871 unsigned int val2 ;
16872 int ecode2 = 0 ;
16873 bool val3 ;
16874 int ecode3 = 0 ;
16875 PyObject * obj0 = 0 ;
16876 PyObject * obj1 = 0 ;
16877 PyObject * obj2 = 0 ;
16878 char * kwnames[] = {
16879 (char *) "self",(char *) "n",(char *) "show", NULL
16880 };
16881
16882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16884 if (!SWIG_IsOK(res1)) {
16885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16886 }
16887 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16888 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16889 if (!SWIG_IsOK(ecode2)) {
16890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16891 }
16892 arg2 = static_cast< unsigned int >(val2);
16893 if (obj2) {
16894 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16895 if (!SWIG_IsOK(ecode3)) {
16896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16897 }
16898 arg3 = static_cast< bool >(val3);
16899 }
16900 {
16901 PyThreadState* __tstate = wxPyBeginAllowThreads();
16902 (arg1)->Show(arg2,arg3);
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 resultobj = SWIG_Py_Void();
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj = 0;
16915 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16916 unsigned int arg2 ;
16917 bool result;
16918 void *argp1 = 0 ;
16919 int res1 = 0 ;
16920 unsigned int val2 ;
16921 int ecode2 = 0 ;
16922 PyObject * obj0 = 0 ;
16923 PyObject * obj1 = 0 ;
16924 char * kwnames[] = {
16925 (char *) "self",(char *) "n", NULL
16926 };
16927
16928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16930 if (!SWIG_IsOK(res1)) {
16931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16932 }
16933 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16934 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16935 if (!SWIG_IsOK(ecode2)) {
16936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16937 }
16938 arg2 = static_cast< unsigned int >(val2);
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16942 wxPyEndAllowThreads(__tstate);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 {
16946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16947 }
16948 return resultobj;
16949 fail:
16950 return NULL;
16951 }
16952
16953
16954 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16957 unsigned int arg2 ;
16958 bool result;
16959 void *argp1 = 0 ;
16960 int res1 = 0 ;
16961 unsigned int val2 ;
16962 int ecode2 = 0 ;
16963 PyObject * obj0 = 0 ;
16964 PyObject * obj1 = 0 ;
16965 char * kwnames[] = {
16966 (char *) "self",(char *) "n", NULL
16967 };
16968
16969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16971 if (!SWIG_IsOK(res1)) {
16972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16973 }
16974 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16975 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16976 if (!SWIG_IsOK(ecode2)) {
16977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16978 }
16979 arg2 = static_cast< unsigned int >(val2);
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 {
16987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16988 }
16989 return resultobj;
16990 fail:
16991 return NULL;
16992 }
16993
16994
16995 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16996 PyObject *resultobj = 0;
16997 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16998 unsigned int result;
16999 void *argp1 = 0 ;
17000 int res1 = 0 ;
17001 PyObject *swig_obj[1] ;
17002
17003 if (!args) SWIG_fail;
17004 swig_obj[0] = args;
17005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17006 if (!SWIG_IsOK(res1)) {
17007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17008 }
17009 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17010 {
17011 PyThreadState* __tstate = wxPyBeginAllowThreads();
17012 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17017 return resultobj;
17018 fail:
17019 return NULL;
17020 }
17021
17022
17023 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17024 PyObject *resultobj = 0;
17025 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17026 unsigned int result;
17027 void *argp1 = 0 ;
17028 int res1 = 0 ;
17029 PyObject *swig_obj[1] ;
17030
17031 if (!args) SWIG_fail;
17032 swig_obj[0] = args;
17033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17034 if (!SWIG_IsOK(res1)) {
17035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17036 }
17037 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17041 wxPyEndAllowThreads(__tstate);
17042 if (PyErr_Occurred()) SWIG_fail;
17043 }
17044 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17045 return resultobj;
17046 fail:
17047 return NULL;
17048 }
17049
17050
17051 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17052 PyObject *resultobj = 0;
17053 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17054 int arg2 ;
17055 wxDirection arg3 ;
17056 long arg4 ;
17057 int result;
17058 void *argp1 = 0 ;
17059 int res1 = 0 ;
17060 int val2 ;
17061 int ecode2 = 0 ;
17062 int val3 ;
17063 int ecode3 = 0 ;
17064 long val4 ;
17065 int ecode4 = 0 ;
17066 PyObject * obj0 = 0 ;
17067 PyObject * obj1 = 0 ;
17068 PyObject * obj2 = 0 ;
17069 PyObject * obj3 = 0 ;
17070 char * kwnames[] = {
17071 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17072 };
17073
17074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17076 if (!SWIG_IsOK(res1)) {
17077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17078 }
17079 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17080 ecode2 = SWIG_AsVal_int(obj1, &val2);
17081 if (!SWIG_IsOK(ecode2)) {
17082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17083 }
17084 arg2 = static_cast< int >(val2);
17085 ecode3 = SWIG_AsVal_int(obj2, &val3);
17086 if (!SWIG_IsOK(ecode3)) {
17087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17088 }
17089 arg3 = static_cast< wxDirection >(val3);
17090 ecode4 = SWIG_AsVal_long(obj3, &val4);
17091 if (!SWIG_IsOK(ecode4)) {
17092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17093 }
17094 arg4 = static_cast< long >(val4);
17095 {
17096 PyThreadState* __tstate = wxPyBeginAllowThreads();
17097 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17098 wxPyEndAllowThreads(__tstate);
17099 if (PyErr_Occurred()) SWIG_fail;
17100 }
17101 resultobj = SWIG_From_int(static_cast< int >(result));
17102 return resultobj;
17103 fail:
17104 return NULL;
17105 }
17106
17107
17108 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17109 PyObject *resultobj = 0;
17110 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17111 unsigned int arg2 ;
17112 wxString *arg3 = 0 ;
17113 void *argp1 = 0 ;
17114 int res1 = 0 ;
17115 unsigned int val2 ;
17116 int ecode2 = 0 ;
17117 bool temp3 = false ;
17118 PyObject * obj0 = 0 ;
17119 PyObject * obj1 = 0 ;
17120 PyObject * obj2 = 0 ;
17121 char * kwnames[] = {
17122 (char *) "self",(char *) "item",(char *) "text", NULL
17123 };
17124
17125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17127 if (!SWIG_IsOK(res1)) {
17128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17129 }
17130 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17131 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17132 if (!SWIG_IsOK(ecode2)) {
17133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17134 }
17135 arg2 = static_cast< unsigned int >(val2);
17136 {
17137 arg3 = wxString_in_helper(obj2);
17138 if (arg3 == NULL) SWIG_fail;
17139 temp3 = true;
17140 }
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17144 wxPyEndAllowThreads(__tstate);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 }
17147 resultobj = SWIG_Py_Void();
17148 {
17149 if (temp3)
17150 delete arg3;
17151 }
17152 return resultobj;
17153 fail:
17154 {
17155 if (temp3)
17156 delete arg3;
17157 }
17158 return NULL;
17159 }
17160
17161
17162 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17163 PyObject *resultobj = 0;
17164 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17165 unsigned int arg2 ;
17166 wxToolTip *result = 0 ;
17167 void *argp1 = 0 ;
17168 int res1 = 0 ;
17169 unsigned int val2 ;
17170 int ecode2 = 0 ;
17171 PyObject * obj0 = 0 ;
17172 PyObject * obj1 = 0 ;
17173 char * kwnames[] = {
17174 (char *) "self",(char *) "item", NULL
17175 };
17176
17177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17179 if (!SWIG_IsOK(res1)) {
17180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17181 }
17182 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17183 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17184 if (!SWIG_IsOK(ecode2)) {
17185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17186 }
17187 arg2 = static_cast< unsigned int >(val2);
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 {
17195 resultobj = wxPyMake_wxObject(result, (bool)0);
17196 }
17197 return resultobj;
17198 fail:
17199 return NULL;
17200 }
17201
17202
17203 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj = 0;
17205 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17206 unsigned int arg2 ;
17207 wxString *arg3 = 0 ;
17208 void *argp1 = 0 ;
17209 int res1 = 0 ;
17210 unsigned int val2 ;
17211 int ecode2 = 0 ;
17212 bool temp3 = false ;
17213 PyObject * obj0 = 0 ;
17214 PyObject * obj1 = 0 ;
17215 PyObject * obj2 = 0 ;
17216 char * kwnames[] = {
17217 (char *) "self",(char *) "n",(char *) "helpText", NULL
17218 };
17219
17220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17222 if (!SWIG_IsOK(res1)) {
17223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17224 }
17225 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17226 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17227 if (!SWIG_IsOK(ecode2)) {
17228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17229 }
17230 arg2 = static_cast< unsigned int >(val2);
17231 {
17232 arg3 = wxString_in_helper(obj2);
17233 if (arg3 == NULL) SWIG_fail;
17234 temp3 = true;
17235 }
17236 {
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17239 wxPyEndAllowThreads(__tstate);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 }
17242 resultobj = SWIG_Py_Void();
17243 {
17244 if (temp3)
17245 delete arg3;
17246 }
17247 return resultobj;
17248 fail:
17249 {
17250 if (temp3)
17251 delete arg3;
17252 }
17253 return NULL;
17254 }
17255
17256
17257 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj = 0;
17259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17260 unsigned int arg2 ;
17261 wxString result;
17262 void *argp1 = 0 ;
17263 int res1 = 0 ;
17264 unsigned int val2 ;
17265 int ecode2 = 0 ;
17266 PyObject * obj0 = 0 ;
17267 PyObject * obj1 = 0 ;
17268 char * kwnames[] = {
17269 (char *) "self",(char *) "n", NULL
17270 };
17271
17272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17274 if (!SWIG_IsOK(res1)) {
17275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17276 }
17277 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17278 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17279 if (!SWIG_IsOK(ecode2)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17281 }
17282 arg2 = static_cast< unsigned int >(val2);
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17286 wxPyEndAllowThreads(__tstate);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 {
17290 #if wxUSE_UNICODE
17291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17292 #else
17293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17294 #endif
17295 }
17296 return resultobj;
17297 fail:
17298 return NULL;
17299 }
17300
17301
17302 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj = 0;
17304 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17305 SwigValueWrapper<wxVisualAttributes > result;
17306 int val1 ;
17307 int ecode1 = 0 ;
17308 PyObject * obj0 = 0 ;
17309 char * kwnames[] = {
17310 (char *) "variant", NULL
17311 };
17312
17313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17314 if (obj0) {
17315 ecode1 = SWIG_AsVal_int(obj0, &val1);
17316 if (!SWIG_IsOK(ecode1)) {
17317 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17318 }
17319 arg1 = static_cast< wxWindowVariant >(val1);
17320 }
17321 {
17322 if (!wxPyCheckForApp()) SWIG_fail;
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17329 return resultobj;
17330 fail:
17331 return NULL;
17332 }
17333
17334
17335 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17336 PyObject *obj;
17337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17338 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17339 return SWIG_Py_Void();
17340 }
17341
17342 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17343 return SWIG_Python_InitShadowInstance(args);
17344 }
17345
17346 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17347 PyObject *resultobj = 0;
17348 wxWindow *arg1 = (wxWindow *) 0 ;
17349 int arg2 = (int) -1 ;
17350 wxString const &arg3_defvalue = wxPyEmptyString ;
17351 wxString *arg3 = (wxString *) &arg3_defvalue ;
17352 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17353 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17354 wxSize const &arg5_defvalue = wxDefaultSize ;
17355 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17356 long arg6 = (long) 0 ;
17357 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17358 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17359 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17360 wxString *arg8 = (wxString *) &arg8_defvalue ;
17361 wxRadioButton *result = 0 ;
17362 void *argp1 = 0 ;
17363 int res1 = 0 ;
17364 int val2 ;
17365 int ecode2 = 0 ;
17366 bool temp3 = false ;
17367 wxPoint temp4 ;
17368 wxSize temp5 ;
17369 long val6 ;
17370 int ecode6 = 0 ;
17371 void *argp7 = 0 ;
17372 int res7 = 0 ;
17373 bool temp8 = false ;
17374 PyObject * obj0 = 0 ;
17375 PyObject * obj1 = 0 ;
17376 PyObject * obj2 = 0 ;
17377 PyObject * obj3 = 0 ;
17378 PyObject * obj4 = 0 ;
17379 PyObject * obj5 = 0 ;
17380 PyObject * obj6 = 0 ;
17381 PyObject * obj7 = 0 ;
17382 char * kwnames[] = {
17383 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17384 };
17385
17386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17388 if (!SWIG_IsOK(res1)) {
17389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17390 }
17391 arg1 = reinterpret_cast< wxWindow * >(argp1);
17392 if (obj1) {
17393 ecode2 = SWIG_AsVal_int(obj1, &val2);
17394 if (!SWIG_IsOK(ecode2)) {
17395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17396 }
17397 arg2 = static_cast< int >(val2);
17398 }
17399 if (obj2) {
17400 {
17401 arg3 = wxString_in_helper(obj2);
17402 if (arg3 == NULL) SWIG_fail;
17403 temp3 = true;
17404 }
17405 }
17406 if (obj3) {
17407 {
17408 arg4 = &temp4;
17409 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17410 }
17411 }
17412 if (obj4) {
17413 {
17414 arg5 = &temp5;
17415 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17416 }
17417 }
17418 if (obj5) {
17419 ecode6 = SWIG_AsVal_long(obj5, &val6);
17420 if (!SWIG_IsOK(ecode6)) {
17421 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17422 }
17423 arg6 = static_cast< long >(val6);
17424 }
17425 if (obj6) {
17426 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17427 if (!SWIG_IsOK(res7)) {
17428 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17429 }
17430 if (!argp7) {
17431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17432 }
17433 arg7 = reinterpret_cast< wxValidator * >(argp7);
17434 }
17435 if (obj7) {
17436 {
17437 arg8 = wxString_in_helper(obj7);
17438 if (arg8 == NULL) SWIG_fail;
17439 temp8 = true;
17440 }
17441 }
17442 {
17443 if (!wxPyCheckForApp()) SWIG_fail;
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17446 wxPyEndAllowThreads(__tstate);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 }
17449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17450 {
17451 if (temp3)
17452 delete arg3;
17453 }
17454 {
17455 if (temp8)
17456 delete arg8;
17457 }
17458 return resultobj;
17459 fail:
17460 {
17461 if (temp3)
17462 delete arg3;
17463 }
17464 {
17465 if (temp8)
17466 delete arg8;
17467 }
17468 return NULL;
17469 }
17470
17471
17472 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17473 PyObject *resultobj = 0;
17474 wxRadioButton *result = 0 ;
17475
17476 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17477 {
17478 if (!wxPyCheckForApp()) SWIG_fail;
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 result = (wxRadioButton *)new wxRadioButton();
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17485 return resultobj;
17486 fail:
17487 return NULL;
17488 }
17489
17490
17491 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj = 0;
17493 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17494 wxWindow *arg2 = (wxWindow *) 0 ;
17495 int arg3 = (int) -1 ;
17496 wxString const &arg4_defvalue = wxPyEmptyString ;
17497 wxString *arg4 = (wxString *) &arg4_defvalue ;
17498 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17499 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17500 wxSize const &arg6_defvalue = wxDefaultSize ;
17501 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17502 long arg7 = (long) 0 ;
17503 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17504 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17505 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17506 wxString *arg9 = (wxString *) &arg9_defvalue ;
17507 bool result;
17508 void *argp1 = 0 ;
17509 int res1 = 0 ;
17510 void *argp2 = 0 ;
17511 int res2 = 0 ;
17512 int val3 ;
17513 int ecode3 = 0 ;
17514 bool temp4 = false ;
17515 wxPoint temp5 ;
17516 wxSize temp6 ;
17517 long val7 ;
17518 int ecode7 = 0 ;
17519 void *argp8 = 0 ;
17520 int res8 = 0 ;
17521 bool temp9 = false ;
17522 PyObject * obj0 = 0 ;
17523 PyObject * obj1 = 0 ;
17524 PyObject * obj2 = 0 ;
17525 PyObject * obj3 = 0 ;
17526 PyObject * obj4 = 0 ;
17527 PyObject * obj5 = 0 ;
17528 PyObject * obj6 = 0 ;
17529 PyObject * obj7 = 0 ;
17530 PyObject * obj8 = 0 ;
17531 char * kwnames[] = {
17532 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17533 };
17534
17535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17537 if (!SWIG_IsOK(res1)) {
17538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17539 }
17540 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17542 if (!SWIG_IsOK(res2)) {
17543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17544 }
17545 arg2 = reinterpret_cast< wxWindow * >(argp2);
17546 if (obj2) {
17547 ecode3 = SWIG_AsVal_int(obj2, &val3);
17548 if (!SWIG_IsOK(ecode3)) {
17549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17550 }
17551 arg3 = static_cast< int >(val3);
17552 }
17553 if (obj3) {
17554 {
17555 arg4 = wxString_in_helper(obj3);
17556 if (arg4 == NULL) SWIG_fail;
17557 temp4 = true;
17558 }
17559 }
17560 if (obj4) {
17561 {
17562 arg5 = &temp5;
17563 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17564 }
17565 }
17566 if (obj5) {
17567 {
17568 arg6 = &temp6;
17569 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17570 }
17571 }
17572 if (obj6) {
17573 ecode7 = SWIG_AsVal_long(obj6, &val7);
17574 if (!SWIG_IsOK(ecode7)) {
17575 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17576 }
17577 arg7 = static_cast< long >(val7);
17578 }
17579 if (obj7) {
17580 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17581 if (!SWIG_IsOK(res8)) {
17582 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17583 }
17584 if (!argp8) {
17585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17586 }
17587 arg8 = reinterpret_cast< wxValidator * >(argp8);
17588 }
17589 if (obj8) {
17590 {
17591 arg9 = wxString_in_helper(obj8);
17592 if (arg9 == NULL) SWIG_fail;
17593 temp9 = true;
17594 }
17595 }
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 {
17603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17604 }
17605 {
17606 if (temp4)
17607 delete arg4;
17608 }
17609 {
17610 if (temp9)
17611 delete arg9;
17612 }
17613 return resultobj;
17614 fail:
17615 {
17616 if (temp4)
17617 delete arg4;
17618 }
17619 {
17620 if (temp9)
17621 delete arg9;
17622 }
17623 return NULL;
17624 }
17625
17626
17627 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17628 PyObject *resultobj = 0;
17629 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17630 bool result;
17631 void *argp1 = 0 ;
17632 int res1 = 0 ;
17633 PyObject *swig_obj[1] ;
17634
17635 if (!args) SWIG_fail;
17636 swig_obj[0] = args;
17637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17638 if (!SWIG_IsOK(res1)) {
17639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17640 }
17641 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17642 {
17643 PyThreadState* __tstate = wxPyBeginAllowThreads();
17644 result = (bool)(arg1)->GetValue();
17645 wxPyEndAllowThreads(__tstate);
17646 if (PyErr_Occurred()) SWIG_fail;
17647 }
17648 {
17649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17650 }
17651 return resultobj;
17652 fail:
17653 return NULL;
17654 }
17655
17656
17657 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj = 0;
17659 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17660 bool arg2 ;
17661 void *argp1 = 0 ;
17662 int res1 = 0 ;
17663 bool val2 ;
17664 int ecode2 = 0 ;
17665 PyObject * obj0 = 0 ;
17666 PyObject * obj1 = 0 ;
17667 char * kwnames[] = {
17668 (char *) "self",(char *) "value", NULL
17669 };
17670
17671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17673 if (!SWIG_IsOK(res1)) {
17674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17675 }
17676 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17677 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17678 if (!SWIG_IsOK(ecode2)) {
17679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17680 }
17681 arg2 = static_cast< bool >(val2);
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 (arg1)->SetValue(arg2);
17685 wxPyEndAllowThreads(__tstate);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 resultobj = SWIG_Py_Void();
17689 return resultobj;
17690 fail:
17691 return NULL;
17692 }
17693
17694
17695 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17696 PyObject *resultobj = 0;
17697 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17698 SwigValueWrapper<wxVisualAttributes > result;
17699 int val1 ;
17700 int ecode1 = 0 ;
17701 PyObject * obj0 = 0 ;
17702 char * kwnames[] = {
17703 (char *) "variant", NULL
17704 };
17705
17706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17707 if (obj0) {
17708 ecode1 = SWIG_AsVal_int(obj0, &val1);
17709 if (!SWIG_IsOK(ecode1)) {
17710 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17711 }
17712 arg1 = static_cast< wxWindowVariant >(val1);
17713 }
17714 {
17715 if (!wxPyCheckForApp()) SWIG_fail;
17716 PyThreadState* __tstate = wxPyBeginAllowThreads();
17717 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
17721 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17722 return resultobj;
17723 fail:
17724 return NULL;
17725 }
17726
17727
17728 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17729 PyObject *obj;
17730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17731 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17732 return SWIG_Py_Void();
17733 }
17734
17735 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17736 return SWIG_Python_InitShadowInstance(args);
17737 }
17738
17739 SWIGINTERN int SliderNameStr_set(PyObject *) {
17740 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17741 return 1;
17742 }
17743
17744
17745 SWIGINTERN PyObject *SliderNameStr_get(void) {
17746 PyObject *pyobj = 0;
17747
17748 {
17749 #if wxUSE_UNICODE
17750 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17751 #else
17752 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17753 #endif
17754 }
17755 return pyobj;
17756 }
17757
17758
17759 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj = 0;
17761 wxWindow *arg1 = (wxWindow *) 0 ;
17762 int arg2 = (int) -1 ;
17763 int arg3 = (int) 0 ;
17764 int arg4 = (int) 0 ;
17765 int arg5 = (int) 100 ;
17766 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17767 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17768 wxSize const &arg7_defvalue = wxDefaultSize ;
17769 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17770 long arg8 = (long) wxSL_HORIZONTAL ;
17771 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17772 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17773 wxString const &arg10_defvalue = wxPySliderNameStr ;
17774 wxString *arg10 = (wxString *) &arg10_defvalue ;
17775 wxSlider *result = 0 ;
17776 void *argp1 = 0 ;
17777 int res1 = 0 ;
17778 int val2 ;
17779 int ecode2 = 0 ;
17780 int val3 ;
17781 int ecode3 = 0 ;
17782 int val4 ;
17783 int ecode4 = 0 ;
17784 int val5 ;
17785 int ecode5 = 0 ;
17786 wxPoint temp6 ;
17787 wxSize temp7 ;
17788 long val8 ;
17789 int ecode8 = 0 ;
17790 void *argp9 = 0 ;
17791 int res9 = 0 ;
17792 bool temp10 = false ;
17793 PyObject * obj0 = 0 ;
17794 PyObject * obj1 = 0 ;
17795 PyObject * obj2 = 0 ;
17796 PyObject * obj3 = 0 ;
17797 PyObject * obj4 = 0 ;
17798 PyObject * obj5 = 0 ;
17799 PyObject * obj6 = 0 ;
17800 PyObject * obj7 = 0 ;
17801 PyObject * obj8 = 0 ;
17802 PyObject * obj9 = 0 ;
17803 char * kwnames[] = {
17804 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17805 };
17806
17807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17809 if (!SWIG_IsOK(res1)) {
17810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17811 }
17812 arg1 = reinterpret_cast< wxWindow * >(argp1);
17813 if (obj1) {
17814 ecode2 = SWIG_AsVal_int(obj1, &val2);
17815 if (!SWIG_IsOK(ecode2)) {
17816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17817 }
17818 arg2 = static_cast< int >(val2);
17819 }
17820 if (obj2) {
17821 ecode3 = SWIG_AsVal_int(obj2, &val3);
17822 if (!SWIG_IsOK(ecode3)) {
17823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17824 }
17825 arg3 = static_cast< int >(val3);
17826 }
17827 if (obj3) {
17828 ecode4 = SWIG_AsVal_int(obj3, &val4);
17829 if (!SWIG_IsOK(ecode4)) {
17830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17831 }
17832 arg4 = static_cast< int >(val4);
17833 }
17834 if (obj4) {
17835 ecode5 = SWIG_AsVal_int(obj4, &val5);
17836 if (!SWIG_IsOK(ecode5)) {
17837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17838 }
17839 arg5 = static_cast< int >(val5);
17840 }
17841 if (obj5) {
17842 {
17843 arg6 = &temp6;
17844 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17845 }
17846 }
17847 if (obj6) {
17848 {
17849 arg7 = &temp7;
17850 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17851 }
17852 }
17853 if (obj7) {
17854 ecode8 = SWIG_AsVal_long(obj7, &val8);
17855 if (!SWIG_IsOK(ecode8)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17857 }
17858 arg8 = static_cast< long >(val8);
17859 }
17860 if (obj8) {
17861 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17862 if (!SWIG_IsOK(res9)) {
17863 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17864 }
17865 if (!argp9) {
17866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17867 }
17868 arg9 = reinterpret_cast< wxValidator * >(argp9);
17869 }
17870 if (obj9) {
17871 {
17872 arg10 = wxString_in_helper(obj9);
17873 if (arg10 == NULL) SWIG_fail;
17874 temp10 = true;
17875 }
17876 }
17877 {
17878 if (!wxPyCheckForApp()) SWIG_fail;
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17885 {
17886 if (temp10)
17887 delete arg10;
17888 }
17889 return resultobj;
17890 fail:
17891 {
17892 if (temp10)
17893 delete arg10;
17894 }
17895 return NULL;
17896 }
17897
17898
17899 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17900 PyObject *resultobj = 0;
17901 wxSlider *result = 0 ;
17902
17903 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17904 {
17905 if (!wxPyCheckForApp()) SWIG_fail;
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 result = (wxSlider *)new wxSlider();
17908 wxPyEndAllowThreads(__tstate);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 }
17911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj = 0;
17920 wxSlider *arg1 = (wxSlider *) 0 ;
17921 wxWindow *arg2 = (wxWindow *) 0 ;
17922 int arg3 = (int) -1 ;
17923 int arg4 = (int) 0 ;
17924 int arg5 = (int) 0 ;
17925 int arg6 = (int) 100 ;
17926 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17927 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17928 wxSize const &arg8_defvalue = wxDefaultSize ;
17929 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17930 long arg9 = (long) wxSL_HORIZONTAL ;
17931 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17932 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17933 wxString const &arg11_defvalue = wxPySliderNameStr ;
17934 wxString *arg11 = (wxString *) &arg11_defvalue ;
17935 bool result;
17936 void *argp1 = 0 ;
17937 int res1 = 0 ;
17938 void *argp2 = 0 ;
17939 int res2 = 0 ;
17940 int val3 ;
17941 int ecode3 = 0 ;
17942 int val4 ;
17943 int ecode4 = 0 ;
17944 int val5 ;
17945 int ecode5 = 0 ;
17946 int val6 ;
17947 int ecode6 = 0 ;
17948 wxPoint temp7 ;
17949 wxSize temp8 ;
17950 long val9 ;
17951 int ecode9 = 0 ;
17952 void *argp10 = 0 ;
17953 int res10 = 0 ;
17954 bool temp11 = false ;
17955 PyObject * obj0 = 0 ;
17956 PyObject * obj1 = 0 ;
17957 PyObject * obj2 = 0 ;
17958 PyObject * obj3 = 0 ;
17959 PyObject * obj4 = 0 ;
17960 PyObject * obj5 = 0 ;
17961 PyObject * obj6 = 0 ;
17962 PyObject * obj7 = 0 ;
17963 PyObject * obj8 = 0 ;
17964 PyObject * obj9 = 0 ;
17965 PyObject * obj10 = 0 ;
17966 char * kwnames[] = {
17967 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17968 };
17969
17970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17972 if (!SWIG_IsOK(res1)) {
17973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17974 }
17975 arg1 = reinterpret_cast< wxSlider * >(argp1);
17976 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17977 if (!SWIG_IsOK(res2)) {
17978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17979 }
17980 arg2 = reinterpret_cast< wxWindow * >(argp2);
17981 if (obj2) {
17982 ecode3 = SWIG_AsVal_int(obj2, &val3);
17983 if (!SWIG_IsOK(ecode3)) {
17984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17985 }
17986 arg3 = static_cast< int >(val3);
17987 }
17988 if (obj3) {
17989 ecode4 = SWIG_AsVal_int(obj3, &val4);
17990 if (!SWIG_IsOK(ecode4)) {
17991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17992 }
17993 arg4 = static_cast< int >(val4);
17994 }
17995 if (obj4) {
17996 ecode5 = SWIG_AsVal_int(obj4, &val5);
17997 if (!SWIG_IsOK(ecode5)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17999 }
18000 arg5 = static_cast< int >(val5);
18001 }
18002 if (obj5) {
18003 ecode6 = SWIG_AsVal_int(obj5, &val6);
18004 if (!SWIG_IsOK(ecode6)) {
18005 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18006 }
18007 arg6 = static_cast< int >(val6);
18008 }
18009 if (obj6) {
18010 {
18011 arg7 = &temp7;
18012 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18013 }
18014 }
18015 if (obj7) {
18016 {
18017 arg8 = &temp8;
18018 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18019 }
18020 }
18021 if (obj8) {
18022 ecode9 = SWIG_AsVal_long(obj8, &val9);
18023 if (!SWIG_IsOK(ecode9)) {
18024 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18025 }
18026 arg9 = static_cast< long >(val9);
18027 }
18028 if (obj9) {
18029 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18030 if (!SWIG_IsOK(res10)) {
18031 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18032 }
18033 if (!argp10) {
18034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18035 }
18036 arg10 = reinterpret_cast< wxValidator * >(argp10);
18037 }
18038 if (obj10) {
18039 {
18040 arg11 = wxString_in_helper(obj10);
18041 if (arg11 == NULL) SWIG_fail;
18042 temp11 = true;
18043 }
18044 }
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 {
18052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18053 }
18054 {
18055 if (temp11)
18056 delete arg11;
18057 }
18058 return resultobj;
18059 fail:
18060 {
18061 if (temp11)
18062 delete arg11;
18063 }
18064 return NULL;
18065 }
18066
18067
18068 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18069 PyObject *resultobj = 0;
18070 wxSlider *arg1 = (wxSlider *) 0 ;
18071 int result;
18072 void *argp1 = 0 ;
18073 int res1 = 0 ;
18074 PyObject *swig_obj[1] ;
18075
18076 if (!args) SWIG_fail;
18077 swig_obj[0] = args;
18078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18079 if (!SWIG_IsOK(res1)) {
18080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18081 }
18082 arg1 = reinterpret_cast< wxSlider * >(argp1);
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 result = (int)((wxSlider const *)arg1)->GetValue();
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 resultobj = SWIG_From_int(static_cast< int >(result));
18090 return resultobj;
18091 fail:
18092 return NULL;
18093 }
18094
18095
18096 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj = 0;
18098 wxSlider *arg1 = (wxSlider *) 0 ;
18099 int arg2 ;
18100 void *argp1 = 0 ;
18101 int res1 = 0 ;
18102 int val2 ;
18103 int ecode2 = 0 ;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 char * kwnames[] = {
18107 (char *) "self",(char *) "value", NULL
18108 };
18109
18110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18112 if (!SWIG_IsOK(res1)) {
18113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18114 }
18115 arg1 = reinterpret_cast< wxSlider * >(argp1);
18116 ecode2 = SWIG_AsVal_int(obj1, &val2);
18117 if (!SWIG_IsOK(ecode2)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18119 }
18120 arg2 = static_cast< int >(val2);
18121 {
18122 PyThreadState* __tstate = wxPyBeginAllowThreads();
18123 (arg1)->SetValue(arg2);
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_Py_Void();
18128 return resultobj;
18129 fail:
18130 return NULL;
18131 }
18132
18133
18134 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj = 0;
18136 wxSlider *arg1 = (wxSlider *) 0 ;
18137 int arg2 ;
18138 int arg3 ;
18139 void *argp1 = 0 ;
18140 int res1 = 0 ;
18141 int val2 ;
18142 int ecode2 = 0 ;
18143 int val3 ;
18144 int ecode3 = 0 ;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 PyObject * obj2 = 0 ;
18148 char * kwnames[] = {
18149 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18150 };
18151
18152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18154 if (!SWIG_IsOK(res1)) {
18155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18156 }
18157 arg1 = reinterpret_cast< wxSlider * >(argp1);
18158 ecode2 = SWIG_AsVal_int(obj1, &val2);
18159 if (!SWIG_IsOK(ecode2)) {
18160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18161 }
18162 arg2 = static_cast< int >(val2);
18163 ecode3 = SWIG_AsVal_int(obj2, &val3);
18164 if (!SWIG_IsOK(ecode3)) {
18165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18166 }
18167 arg3 = static_cast< int >(val3);
18168 {
18169 PyThreadState* __tstate = wxPyBeginAllowThreads();
18170 (arg1)->SetRange(arg2,arg3);
18171 wxPyEndAllowThreads(__tstate);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 }
18174 resultobj = SWIG_Py_Void();
18175 return resultobj;
18176 fail:
18177 return NULL;
18178 }
18179
18180
18181 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18182 PyObject *resultobj = 0;
18183 wxSlider *arg1 = (wxSlider *) 0 ;
18184 int result;
18185 void *argp1 = 0 ;
18186 int res1 = 0 ;
18187 PyObject *swig_obj[1] ;
18188
18189 if (!args) SWIG_fail;
18190 swig_obj[0] = args;
18191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18192 if (!SWIG_IsOK(res1)) {
18193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18194 }
18195 arg1 = reinterpret_cast< wxSlider * >(argp1);
18196 {
18197 PyThreadState* __tstate = wxPyBeginAllowThreads();
18198 result = (int)((wxSlider const *)arg1)->GetMin();
18199 wxPyEndAllowThreads(__tstate);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 }
18202 resultobj = SWIG_From_int(static_cast< int >(result));
18203 return resultobj;
18204 fail:
18205 return NULL;
18206 }
18207
18208
18209 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18210 PyObject *resultobj = 0;
18211 wxSlider *arg1 = (wxSlider *) 0 ;
18212 int result;
18213 void *argp1 = 0 ;
18214 int res1 = 0 ;
18215 PyObject *swig_obj[1] ;
18216
18217 if (!args) SWIG_fail;
18218 swig_obj[0] = args;
18219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18220 if (!SWIG_IsOK(res1)) {
18221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18222 }
18223 arg1 = reinterpret_cast< wxSlider * >(argp1);
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 result = (int)((wxSlider const *)arg1)->GetMax();
18227 wxPyEndAllowThreads(__tstate);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 }
18230 resultobj = SWIG_From_int(static_cast< int >(result));
18231 return resultobj;
18232 fail:
18233 return NULL;
18234 }
18235
18236
18237 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18238 PyObject *resultobj = 0;
18239 wxSlider *arg1 = (wxSlider *) 0 ;
18240 int arg2 ;
18241 void *argp1 = 0 ;
18242 int res1 = 0 ;
18243 int val2 ;
18244 int ecode2 = 0 ;
18245 PyObject * obj0 = 0 ;
18246 PyObject * obj1 = 0 ;
18247 char * kwnames[] = {
18248 (char *) "self",(char *) "minValue", NULL
18249 };
18250
18251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18253 if (!SWIG_IsOK(res1)) {
18254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18255 }
18256 arg1 = reinterpret_cast< wxSlider * >(argp1);
18257 ecode2 = SWIG_AsVal_int(obj1, &val2);
18258 if (!SWIG_IsOK(ecode2)) {
18259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18260 }
18261 arg2 = static_cast< int >(val2);
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 (arg1)->SetMin(arg2);
18265 wxPyEndAllowThreads(__tstate);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 resultobj = SWIG_Py_Void();
18269 return resultobj;
18270 fail:
18271 return NULL;
18272 }
18273
18274
18275 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18276 PyObject *resultobj = 0;
18277 wxSlider *arg1 = (wxSlider *) 0 ;
18278 int arg2 ;
18279 void *argp1 = 0 ;
18280 int res1 = 0 ;
18281 int val2 ;
18282 int ecode2 = 0 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char * kwnames[] = {
18286 (char *) "self",(char *) "maxValue", NULL
18287 };
18288
18289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18291 if (!SWIG_IsOK(res1)) {
18292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18293 }
18294 arg1 = reinterpret_cast< wxSlider * >(argp1);
18295 ecode2 = SWIG_AsVal_int(obj1, &val2);
18296 if (!SWIG_IsOK(ecode2)) {
18297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18298 }
18299 arg2 = static_cast< int >(val2);
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 (arg1)->SetMax(arg2);
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_Py_Void();
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj = 0;
18315 wxSlider *arg1 = (wxSlider *) 0 ;
18316 int arg2 ;
18317 void *argp1 = 0 ;
18318 int res1 = 0 ;
18319 int val2 ;
18320 int ecode2 = 0 ;
18321 PyObject * obj0 = 0 ;
18322 PyObject * obj1 = 0 ;
18323 char * kwnames[] = {
18324 (char *) "self",(char *) "lineSize", NULL
18325 };
18326
18327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18329 if (!SWIG_IsOK(res1)) {
18330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18331 }
18332 arg1 = reinterpret_cast< wxSlider * >(argp1);
18333 ecode2 = SWIG_AsVal_int(obj1, &val2);
18334 if (!SWIG_IsOK(ecode2)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18336 }
18337 arg2 = static_cast< int >(val2);
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 (arg1)->SetLineSize(arg2);
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 resultobj = SWIG_Py_Void();
18345 return resultobj;
18346 fail:
18347 return NULL;
18348 }
18349
18350
18351 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18352 PyObject *resultobj = 0;
18353 wxSlider *arg1 = (wxSlider *) 0 ;
18354 int arg2 ;
18355 void *argp1 = 0 ;
18356 int res1 = 0 ;
18357 int val2 ;
18358 int ecode2 = 0 ;
18359 PyObject * obj0 = 0 ;
18360 PyObject * obj1 = 0 ;
18361 char * kwnames[] = {
18362 (char *) "self",(char *) "pageSize", NULL
18363 };
18364
18365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18367 if (!SWIG_IsOK(res1)) {
18368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18369 }
18370 arg1 = reinterpret_cast< wxSlider * >(argp1);
18371 ecode2 = SWIG_AsVal_int(obj1, &val2);
18372 if (!SWIG_IsOK(ecode2)) {
18373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18374 }
18375 arg2 = static_cast< int >(val2);
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 (arg1)->SetPageSize(arg2);
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 resultobj = SWIG_Py_Void();
18383 return resultobj;
18384 fail:
18385 return NULL;
18386 }
18387
18388
18389 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18390 PyObject *resultobj = 0;
18391 wxSlider *arg1 = (wxSlider *) 0 ;
18392 int result;
18393 void *argp1 = 0 ;
18394 int res1 = 0 ;
18395 PyObject *swig_obj[1] ;
18396
18397 if (!args) SWIG_fail;
18398 swig_obj[0] = args;
18399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18400 if (!SWIG_IsOK(res1)) {
18401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18402 }
18403 arg1 = reinterpret_cast< wxSlider * >(argp1);
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 result = (int)((wxSlider const *)arg1)->GetLineSize();
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_From_int(static_cast< int >(result));
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18418 PyObject *resultobj = 0;
18419 wxSlider *arg1 = (wxSlider *) 0 ;
18420 int result;
18421 void *argp1 = 0 ;
18422 int res1 = 0 ;
18423 PyObject *swig_obj[1] ;
18424
18425 if (!args) SWIG_fail;
18426 swig_obj[0] = args;
18427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18428 if (!SWIG_IsOK(res1)) {
18429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18430 }
18431 arg1 = reinterpret_cast< wxSlider * >(argp1);
18432 {
18433 PyThreadState* __tstate = wxPyBeginAllowThreads();
18434 result = (int)((wxSlider const *)arg1)->GetPageSize();
18435 wxPyEndAllowThreads(__tstate);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 resultobj = SWIG_From_int(static_cast< int >(result));
18439 return resultobj;
18440 fail:
18441 return NULL;
18442 }
18443
18444
18445 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18446 PyObject *resultobj = 0;
18447 wxSlider *arg1 = (wxSlider *) 0 ;
18448 int arg2 ;
18449 void *argp1 = 0 ;
18450 int res1 = 0 ;
18451 int val2 ;
18452 int ecode2 = 0 ;
18453 PyObject * obj0 = 0 ;
18454 PyObject * obj1 = 0 ;
18455 char * kwnames[] = {
18456 (char *) "self",(char *) "lenPixels", NULL
18457 };
18458
18459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18461 if (!SWIG_IsOK(res1)) {
18462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18463 }
18464 arg1 = reinterpret_cast< wxSlider * >(argp1);
18465 ecode2 = SWIG_AsVal_int(obj1, &val2);
18466 if (!SWIG_IsOK(ecode2)) {
18467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18468 }
18469 arg2 = static_cast< int >(val2);
18470 {
18471 PyThreadState* __tstate = wxPyBeginAllowThreads();
18472 (arg1)->SetThumbLength(arg2);
18473 wxPyEndAllowThreads(__tstate);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 }
18476 resultobj = SWIG_Py_Void();
18477 return resultobj;
18478 fail:
18479 return NULL;
18480 }
18481
18482
18483 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18484 PyObject *resultobj = 0;
18485 wxSlider *arg1 = (wxSlider *) 0 ;
18486 int result;
18487 void *argp1 = 0 ;
18488 int res1 = 0 ;
18489 PyObject *swig_obj[1] ;
18490
18491 if (!args) SWIG_fail;
18492 swig_obj[0] = args;
18493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18494 if (!SWIG_IsOK(res1)) {
18495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18496 }
18497 arg1 = reinterpret_cast< wxSlider * >(argp1);
18498 {
18499 PyThreadState* __tstate = wxPyBeginAllowThreads();
18500 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 resultobj = SWIG_From_int(static_cast< int >(result));
18505 return resultobj;
18506 fail:
18507 return NULL;
18508 }
18509
18510
18511 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18512 PyObject *resultobj = 0;
18513 wxSlider *arg1 = (wxSlider *) 0 ;
18514 int arg2 ;
18515 int arg3 = (int) 1 ;
18516 void *argp1 = 0 ;
18517 int res1 = 0 ;
18518 int val2 ;
18519 int ecode2 = 0 ;
18520 int val3 ;
18521 int ecode3 = 0 ;
18522 PyObject * obj0 = 0 ;
18523 PyObject * obj1 = 0 ;
18524 PyObject * obj2 = 0 ;
18525 char * kwnames[] = {
18526 (char *) "self",(char *) "n",(char *) "pos", NULL
18527 };
18528
18529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18531 if (!SWIG_IsOK(res1)) {
18532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18533 }
18534 arg1 = reinterpret_cast< wxSlider * >(argp1);
18535 ecode2 = SWIG_AsVal_int(obj1, &val2);
18536 if (!SWIG_IsOK(ecode2)) {
18537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18538 }
18539 arg2 = static_cast< int >(val2);
18540 if (obj2) {
18541 ecode3 = SWIG_AsVal_int(obj2, &val3);
18542 if (!SWIG_IsOK(ecode3)) {
18543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18544 }
18545 arg3 = static_cast< int >(val3);
18546 }
18547 {
18548 PyThreadState* __tstate = wxPyBeginAllowThreads();
18549 (arg1)->SetTickFreq(arg2,arg3);
18550 wxPyEndAllowThreads(__tstate);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 resultobj = SWIG_Py_Void();
18554 return resultobj;
18555 fail:
18556 return NULL;
18557 }
18558
18559
18560 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18561 PyObject *resultobj = 0;
18562 wxSlider *arg1 = (wxSlider *) 0 ;
18563 int result;
18564 void *argp1 = 0 ;
18565 int res1 = 0 ;
18566 PyObject *swig_obj[1] ;
18567
18568 if (!args) SWIG_fail;
18569 swig_obj[0] = args;
18570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18571 if (!SWIG_IsOK(res1)) {
18572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18573 }
18574 arg1 = reinterpret_cast< wxSlider * >(argp1);
18575 {
18576 PyThreadState* __tstate = wxPyBeginAllowThreads();
18577 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 resultobj = SWIG_From_int(static_cast< int >(result));
18582 return resultobj;
18583 fail:
18584 return NULL;
18585 }
18586
18587
18588 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18589 PyObject *resultobj = 0;
18590 wxSlider *arg1 = (wxSlider *) 0 ;
18591 void *argp1 = 0 ;
18592 int res1 = 0 ;
18593 PyObject *swig_obj[1] ;
18594
18595 if (!args) SWIG_fail;
18596 swig_obj[0] = args;
18597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18600 }
18601 arg1 = reinterpret_cast< wxSlider * >(argp1);
18602 {
18603 PyThreadState* __tstate = wxPyBeginAllowThreads();
18604 (arg1)->ClearTicks();
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 resultobj = SWIG_Py_Void();
18609 return resultobj;
18610 fail:
18611 return NULL;
18612 }
18613
18614
18615 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18616 PyObject *resultobj = 0;
18617 wxSlider *arg1 = (wxSlider *) 0 ;
18618 int arg2 ;
18619 void *argp1 = 0 ;
18620 int res1 = 0 ;
18621 int val2 ;
18622 int ecode2 = 0 ;
18623 PyObject * obj0 = 0 ;
18624 PyObject * obj1 = 0 ;
18625 char * kwnames[] = {
18626 (char *) "self",(char *) "tickPos", NULL
18627 };
18628
18629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18631 if (!SWIG_IsOK(res1)) {
18632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18633 }
18634 arg1 = reinterpret_cast< wxSlider * >(argp1);
18635 ecode2 = SWIG_AsVal_int(obj1, &val2);
18636 if (!SWIG_IsOK(ecode2)) {
18637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18638 }
18639 arg2 = static_cast< int >(val2);
18640 {
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 (arg1)->SetTick(arg2);
18643 wxPyEndAllowThreads(__tstate);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 resultobj = SWIG_Py_Void();
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18654 PyObject *resultobj = 0;
18655 wxSlider *arg1 = (wxSlider *) 0 ;
18656 void *argp1 = 0 ;
18657 int res1 = 0 ;
18658 PyObject *swig_obj[1] ;
18659
18660 if (!args) SWIG_fail;
18661 swig_obj[0] = args;
18662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18663 if (!SWIG_IsOK(res1)) {
18664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18665 }
18666 arg1 = reinterpret_cast< wxSlider * >(argp1);
18667 {
18668 PyThreadState* __tstate = wxPyBeginAllowThreads();
18669 (arg1)->ClearSel();
18670 wxPyEndAllowThreads(__tstate);
18671 if (PyErr_Occurred()) SWIG_fail;
18672 }
18673 resultobj = SWIG_Py_Void();
18674 return resultobj;
18675 fail:
18676 return NULL;
18677 }
18678
18679
18680 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18681 PyObject *resultobj = 0;
18682 wxSlider *arg1 = (wxSlider *) 0 ;
18683 int result;
18684 void *argp1 = 0 ;
18685 int res1 = 0 ;
18686 PyObject *swig_obj[1] ;
18687
18688 if (!args) SWIG_fail;
18689 swig_obj[0] = args;
18690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18691 if (!SWIG_IsOK(res1)) {
18692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18693 }
18694 arg1 = reinterpret_cast< wxSlider * >(argp1);
18695 {
18696 PyThreadState* __tstate = wxPyBeginAllowThreads();
18697 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 resultobj = SWIG_From_int(static_cast< int >(result));
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18709 PyObject *resultobj = 0;
18710 wxSlider *arg1 = (wxSlider *) 0 ;
18711 int result;
18712 void *argp1 = 0 ;
18713 int res1 = 0 ;
18714 PyObject *swig_obj[1] ;
18715
18716 if (!args) SWIG_fail;
18717 swig_obj[0] = args;
18718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18719 if (!SWIG_IsOK(res1)) {
18720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18721 }
18722 arg1 = reinterpret_cast< wxSlider * >(argp1);
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = (int)((wxSlider const *)arg1)->GetSelStart();
18726 wxPyEndAllowThreads(__tstate);
18727 if (PyErr_Occurred()) SWIG_fail;
18728 }
18729 resultobj = SWIG_From_int(static_cast< int >(result));
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = 0;
18738 wxSlider *arg1 = (wxSlider *) 0 ;
18739 int arg2 ;
18740 int arg3 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 int val2 ;
18744 int ecode2 = 0 ;
18745 int val3 ;
18746 int ecode3 = 0 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 char * kwnames[] = {
18751 (char *) "self",(char *) "min",(char *) "max", NULL
18752 };
18753
18754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18756 if (!SWIG_IsOK(res1)) {
18757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18758 }
18759 arg1 = reinterpret_cast< wxSlider * >(argp1);
18760 ecode2 = SWIG_AsVal_int(obj1, &val2);
18761 if (!SWIG_IsOK(ecode2)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18763 }
18764 arg2 = static_cast< int >(val2);
18765 ecode3 = SWIG_AsVal_int(obj2, &val3);
18766 if (!SWIG_IsOK(ecode3)) {
18767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18768 }
18769 arg3 = static_cast< int >(val3);
18770 {
18771 PyThreadState* __tstate = wxPyBeginAllowThreads();
18772 (arg1)->SetSelection(arg2,arg3);
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 resultobj = SWIG_Py_Void();
18777 return resultobj;
18778 fail:
18779 return NULL;
18780 }
18781
18782
18783 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18784 PyObject *resultobj = 0;
18785 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18786 SwigValueWrapper<wxVisualAttributes > result;
18787 int val1 ;
18788 int ecode1 = 0 ;
18789 PyObject * obj0 = 0 ;
18790 char * kwnames[] = {
18791 (char *) "variant", NULL
18792 };
18793
18794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18795 if (obj0) {
18796 ecode1 = SWIG_AsVal_int(obj0, &val1);
18797 if (!SWIG_IsOK(ecode1)) {
18798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18799 }
18800 arg1 = static_cast< wxWindowVariant >(val1);
18801 }
18802 {
18803 if (!wxPyCheckForApp()) SWIG_fail;
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 result = wxSlider::GetClassDefaultAttributes(arg1);
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18810 return resultobj;
18811 fail:
18812 return NULL;
18813 }
18814
18815
18816 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18817 PyObject *obj;
18818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18819 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18820 return SWIG_Py_Void();
18821 }
18822
18823 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18824 return SWIG_Python_InitShadowInstance(args);
18825 }
18826
18827 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18828 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18829 return 1;
18830 }
18831
18832
18833 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18834 PyObject *pyobj = 0;
18835
18836 {
18837 #if wxUSE_UNICODE
18838 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18839 #else
18840 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18841 #endif
18842 }
18843 return pyobj;
18844 }
18845
18846
18847 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18848 PyObject *resultobj = 0;
18849 wxWindow *arg1 = (wxWindow *) 0 ;
18850 int arg2 = (int) -1 ;
18851 wxString const &arg3_defvalue = wxPyEmptyString ;
18852 wxString *arg3 = (wxString *) &arg3_defvalue ;
18853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18855 wxSize const &arg5_defvalue = wxDefaultSize ;
18856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18857 long arg6 = (long) 0 ;
18858 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18859 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18860 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18861 wxString *arg8 = (wxString *) &arg8_defvalue ;
18862 wxToggleButton *result = 0 ;
18863 void *argp1 = 0 ;
18864 int res1 = 0 ;
18865 int val2 ;
18866 int ecode2 = 0 ;
18867 bool temp3 = false ;
18868 wxPoint temp4 ;
18869 wxSize temp5 ;
18870 long val6 ;
18871 int ecode6 = 0 ;
18872 void *argp7 = 0 ;
18873 int res7 = 0 ;
18874 bool temp8 = false ;
18875 PyObject * obj0 = 0 ;
18876 PyObject * obj1 = 0 ;
18877 PyObject * obj2 = 0 ;
18878 PyObject * obj3 = 0 ;
18879 PyObject * obj4 = 0 ;
18880 PyObject * obj5 = 0 ;
18881 PyObject * obj6 = 0 ;
18882 PyObject * obj7 = 0 ;
18883 char * kwnames[] = {
18884 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18885 };
18886
18887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18889 if (!SWIG_IsOK(res1)) {
18890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18891 }
18892 arg1 = reinterpret_cast< wxWindow * >(argp1);
18893 if (obj1) {
18894 ecode2 = SWIG_AsVal_int(obj1, &val2);
18895 if (!SWIG_IsOK(ecode2)) {
18896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18897 }
18898 arg2 = static_cast< int >(val2);
18899 }
18900 if (obj2) {
18901 {
18902 arg3 = wxString_in_helper(obj2);
18903 if (arg3 == NULL) SWIG_fail;
18904 temp3 = true;
18905 }
18906 }
18907 if (obj3) {
18908 {
18909 arg4 = &temp4;
18910 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18911 }
18912 }
18913 if (obj4) {
18914 {
18915 arg5 = &temp5;
18916 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18917 }
18918 }
18919 if (obj5) {
18920 ecode6 = SWIG_AsVal_long(obj5, &val6);
18921 if (!SWIG_IsOK(ecode6)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18923 }
18924 arg6 = static_cast< long >(val6);
18925 }
18926 if (obj6) {
18927 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18928 if (!SWIG_IsOK(res7)) {
18929 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18930 }
18931 if (!argp7) {
18932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18933 }
18934 arg7 = reinterpret_cast< wxValidator * >(argp7);
18935 }
18936 if (obj7) {
18937 {
18938 arg8 = wxString_in_helper(obj7);
18939 if (arg8 == NULL) SWIG_fail;
18940 temp8 = true;
18941 }
18942 }
18943 {
18944 if (!wxPyCheckForApp()) SWIG_fail;
18945 PyThreadState* __tstate = wxPyBeginAllowThreads();
18946 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18947 wxPyEndAllowThreads(__tstate);
18948 if (PyErr_Occurred()) SWIG_fail;
18949 }
18950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18951 {
18952 if (temp3)
18953 delete arg3;
18954 }
18955 {
18956 if (temp8)
18957 delete arg8;
18958 }
18959 return resultobj;
18960 fail:
18961 {
18962 if (temp3)
18963 delete arg3;
18964 }
18965 {
18966 if (temp8)
18967 delete arg8;
18968 }
18969 return NULL;
18970 }
18971
18972
18973 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18974 PyObject *resultobj = 0;
18975 wxToggleButton *result = 0 ;
18976
18977 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18978 {
18979 if (!wxPyCheckForApp()) SWIG_fail;
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 result = (wxToggleButton *)new wxToggleButton();
18982 wxPyEndAllowThreads(__tstate);
18983 if (PyErr_Occurred()) SWIG_fail;
18984 }
18985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18986 return resultobj;
18987 fail:
18988 return NULL;
18989 }
18990
18991
18992 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18993 PyObject *resultobj = 0;
18994 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18995 wxWindow *arg2 = (wxWindow *) 0 ;
18996 int arg3 = (int) -1 ;
18997 wxString const &arg4_defvalue = wxPyEmptyString ;
18998 wxString *arg4 = (wxString *) &arg4_defvalue ;
18999 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19000 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19001 wxSize const &arg6_defvalue = wxDefaultSize ;
19002 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19003 long arg7 = (long) 0 ;
19004 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19005 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19006 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19007 wxString *arg9 = (wxString *) &arg9_defvalue ;
19008 bool result;
19009 void *argp1 = 0 ;
19010 int res1 = 0 ;
19011 void *argp2 = 0 ;
19012 int res2 = 0 ;
19013 int val3 ;
19014 int ecode3 = 0 ;
19015 bool temp4 = false ;
19016 wxPoint temp5 ;
19017 wxSize temp6 ;
19018 long val7 ;
19019 int ecode7 = 0 ;
19020 void *argp8 = 0 ;
19021 int res8 = 0 ;
19022 bool temp9 = false ;
19023 PyObject * obj0 = 0 ;
19024 PyObject * obj1 = 0 ;
19025 PyObject * obj2 = 0 ;
19026 PyObject * obj3 = 0 ;
19027 PyObject * obj4 = 0 ;
19028 PyObject * obj5 = 0 ;
19029 PyObject * obj6 = 0 ;
19030 PyObject * obj7 = 0 ;
19031 PyObject * obj8 = 0 ;
19032 char * kwnames[] = {
19033 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19034 };
19035
19036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19038 if (!SWIG_IsOK(res1)) {
19039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19040 }
19041 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19043 if (!SWIG_IsOK(res2)) {
19044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19045 }
19046 arg2 = reinterpret_cast< wxWindow * >(argp2);
19047 if (obj2) {
19048 ecode3 = SWIG_AsVal_int(obj2, &val3);
19049 if (!SWIG_IsOK(ecode3)) {
19050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19051 }
19052 arg3 = static_cast< int >(val3);
19053 }
19054 if (obj3) {
19055 {
19056 arg4 = wxString_in_helper(obj3);
19057 if (arg4 == NULL) SWIG_fail;
19058 temp4 = true;
19059 }
19060 }
19061 if (obj4) {
19062 {
19063 arg5 = &temp5;
19064 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19065 }
19066 }
19067 if (obj5) {
19068 {
19069 arg6 = &temp6;
19070 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19071 }
19072 }
19073 if (obj6) {
19074 ecode7 = SWIG_AsVal_long(obj6, &val7);
19075 if (!SWIG_IsOK(ecode7)) {
19076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19077 }
19078 arg7 = static_cast< long >(val7);
19079 }
19080 if (obj7) {
19081 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19082 if (!SWIG_IsOK(res8)) {
19083 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19084 }
19085 if (!argp8) {
19086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19087 }
19088 arg8 = reinterpret_cast< wxValidator * >(argp8);
19089 }
19090 if (obj8) {
19091 {
19092 arg9 = wxString_in_helper(obj8);
19093 if (arg9 == NULL) SWIG_fail;
19094 temp9 = true;
19095 }
19096 }
19097 {
19098 PyThreadState* __tstate = wxPyBeginAllowThreads();
19099 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19100 wxPyEndAllowThreads(__tstate);
19101 if (PyErr_Occurred()) SWIG_fail;
19102 }
19103 {
19104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19105 }
19106 {
19107 if (temp4)
19108 delete arg4;
19109 }
19110 {
19111 if (temp9)
19112 delete arg9;
19113 }
19114 return resultobj;
19115 fail:
19116 {
19117 if (temp4)
19118 delete arg4;
19119 }
19120 {
19121 if (temp9)
19122 delete arg9;
19123 }
19124 return NULL;
19125 }
19126
19127
19128 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj = 0;
19130 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19131 bool arg2 ;
19132 void *argp1 = 0 ;
19133 int res1 = 0 ;
19134 bool val2 ;
19135 int ecode2 = 0 ;
19136 PyObject * obj0 = 0 ;
19137 PyObject * obj1 = 0 ;
19138 char * kwnames[] = {
19139 (char *) "self",(char *) "value", NULL
19140 };
19141
19142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19144 if (!SWIG_IsOK(res1)) {
19145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19146 }
19147 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19148 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19149 if (!SWIG_IsOK(ecode2)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19151 }
19152 arg2 = static_cast< bool >(val2);
19153 {
19154 PyThreadState* __tstate = wxPyBeginAllowThreads();
19155 (arg1)->SetValue(arg2);
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 resultobj = SWIG_Py_Void();
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19167 PyObject *resultobj = 0;
19168 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19169 bool result;
19170 void *argp1 = 0 ;
19171 int res1 = 0 ;
19172 PyObject *swig_obj[1] ;
19173
19174 if (!args) SWIG_fail;
19175 swig_obj[0] = args;
19176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19177 if (!SWIG_IsOK(res1)) {
19178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19179 }
19180 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19184 wxPyEndAllowThreads(__tstate);
19185 if (PyErr_Occurred()) SWIG_fail;
19186 }
19187 {
19188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19189 }
19190 return resultobj;
19191 fail:
19192 return NULL;
19193 }
19194
19195
19196 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19197 PyObject *resultobj = 0;
19198 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19199 SwigValueWrapper<wxVisualAttributes > result;
19200 int val1 ;
19201 int ecode1 = 0 ;
19202 PyObject * obj0 = 0 ;
19203 char * kwnames[] = {
19204 (char *) "variant", NULL
19205 };
19206
19207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19208 if (obj0) {
19209 ecode1 = SWIG_AsVal_int(obj0, &val1);
19210 if (!SWIG_IsOK(ecode1)) {
19211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19212 }
19213 arg1 = static_cast< wxWindowVariant >(val1);
19214 }
19215 {
19216 if (!wxPyCheckForApp()) SWIG_fail;
19217 PyThreadState* __tstate = wxPyBeginAllowThreads();
19218 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19223 return resultobj;
19224 fail:
19225 return NULL;
19226 }
19227
19228
19229 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19230 PyObject *obj;
19231 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19232 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19233 return SWIG_Py_Void();
19234 }
19235
19236 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19237 return SWIG_Python_InitShadowInstance(args);
19238 }
19239
19240 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19241 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19242 return 1;
19243 }
19244
19245
19246 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19247 PyObject *pyobj = 0;
19248
19249 {
19250 #if wxUSE_UNICODE
19251 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19252 #else
19253 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19254 #endif
19255 }
19256 return pyobj;
19257 }
19258
19259
19260 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19261 PyObject *resultobj = 0;
19262 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19263 size_t result;
19264 void *argp1 = 0 ;
19265 int res1 = 0 ;
19266 PyObject *swig_obj[1] ;
19267
19268 if (!args) SWIG_fail;
19269 swig_obj[0] = args;
19270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19271 if (!SWIG_IsOK(res1)) {
19272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19273 }
19274 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19282 return resultobj;
19283 fail:
19284 return NULL;
19285 }
19286
19287
19288 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj = 0;
19290 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19291 size_t arg2 ;
19292 wxWindow *result = 0 ;
19293 void *argp1 = 0 ;
19294 int res1 = 0 ;
19295 size_t val2 ;
19296 int ecode2 = 0 ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 char * kwnames[] = {
19300 (char *) "self",(char *) "n", NULL
19301 };
19302
19303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19305 if (!SWIG_IsOK(res1)) {
19306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19307 }
19308 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19309 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19310 if (!SWIG_IsOK(ecode2)) {
19311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19312 }
19313 arg2 = static_cast< size_t >(val2);
19314 {
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 result = (wxWindow *)(arg1)->GetPage(arg2);
19317 wxPyEndAllowThreads(__tstate);
19318 if (PyErr_Occurred()) SWIG_fail;
19319 }
19320 {
19321 resultobj = wxPyMake_wxObject(result, 0);
19322 }
19323 return resultobj;
19324 fail:
19325 return NULL;
19326 }
19327
19328
19329 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19330 PyObject *resultobj = 0;
19331 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19332 wxWindow *result = 0 ;
19333 void *argp1 = 0 ;
19334 int res1 = 0 ;
19335 PyObject *swig_obj[1] ;
19336
19337 if (!args) SWIG_fail;
19338 swig_obj[0] = args;
19339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19340 if (!SWIG_IsOK(res1)) {
19341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19342 }
19343 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 {
19351 resultobj = wxPyMake_wxObject(result, 0);
19352 }
19353 return resultobj;
19354 fail:
19355 return NULL;
19356 }
19357
19358
19359 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19360 PyObject *resultobj = 0;
19361 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19362 int result;
19363 void *argp1 = 0 ;
19364 int res1 = 0 ;
19365 PyObject *swig_obj[1] ;
19366
19367 if (!args) SWIG_fail;
19368 swig_obj[0] = args;
19369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19370 if (!SWIG_IsOK(res1)) {
19371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19372 }
19373 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19374 {
19375 PyThreadState* __tstate = wxPyBeginAllowThreads();
19376 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19377 wxPyEndAllowThreads(__tstate);
19378 if (PyErr_Occurred()) SWIG_fail;
19379 }
19380 resultobj = SWIG_From_int(static_cast< int >(result));
19381 return resultobj;
19382 fail:
19383 return NULL;
19384 }
19385
19386
19387 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19388 PyObject *resultobj = 0;
19389 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19390 size_t arg2 ;
19391 wxString *arg3 = 0 ;
19392 bool result;
19393 void *argp1 = 0 ;
19394 int res1 = 0 ;
19395 size_t val2 ;
19396 int ecode2 = 0 ;
19397 bool temp3 = false ;
19398 PyObject * obj0 = 0 ;
19399 PyObject * obj1 = 0 ;
19400 PyObject * obj2 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "n",(char *) "strText", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19409 }
19410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19411 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19412 if (!SWIG_IsOK(ecode2)) {
19413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19414 }
19415 arg2 = static_cast< size_t >(val2);
19416 {
19417 arg3 = wxString_in_helper(obj2);
19418 if (arg3 == NULL) SWIG_fail;
19419 temp3 = true;
19420 }
19421 {
19422 PyThreadState* __tstate = wxPyBeginAllowThreads();
19423 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19424 wxPyEndAllowThreads(__tstate);
19425 if (PyErr_Occurred()) SWIG_fail;
19426 }
19427 {
19428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19429 }
19430 {
19431 if (temp3)
19432 delete arg3;
19433 }
19434 return resultobj;
19435 fail:
19436 {
19437 if (temp3)
19438 delete arg3;
19439 }
19440 return NULL;
19441 }
19442
19443
19444 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj = 0;
19446 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19447 size_t arg2 ;
19448 wxString result;
19449 void *argp1 = 0 ;
19450 int res1 = 0 ;
19451 size_t val2 ;
19452 int ecode2 = 0 ;
19453 PyObject * obj0 = 0 ;
19454 PyObject * obj1 = 0 ;
19455 char * kwnames[] = {
19456 (char *) "self",(char *) "n", NULL
19457 };
19458
19459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19461 if (!SWIG_IsOK(res1)) {
19462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19463 }
19464 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19465 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19466 if (!SWIG_IsOK(ecode2)) {
19467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19468 }
19469 arg2 = static_cast< size_t >(val2);
19470 {
19471 PyThreadState* __tstate = wxPyBeginAllowThreads();
19472 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19473 wxPyEndAllowThreads(__tstate);
19474 if (PyErr_Occurred()) SWIG_fail;
19475 }
19476 {
19477 #if wxUSE_UNICODE
19478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19479 #else
19480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19481 #endif
19482 }
19483 return resultobj;
19484 fail:
19485 return NULL;
19486 }
19487
19488
19489 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19490 PyObject *resultobj = 0;
19491 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19492 wxImageList *arg2 = (wxImageList *) 0 ;
19493 void *argp1 = 0 ;
19494 int res1 = 0 ;
19495 void *argp2 = 0 ;
19496 int res2 = 0 ;
19497 PyObject * obj0 = 0 ;
19498 PyObject * obj1 = 0 ;
19499 char * kwnames[] = {
19500 (char *) "self",(char *) "imageList", NULL
19501 };
19502
19503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19505 if (!SWIG_IsOK(res1)) {
19506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19507 }
19508 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19509 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19510 if (!SWIG_IsOK(res2)) {
19511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19512 }
19513 arg2 = reinterpret_cast< wxImageList * >(argp2);
19514 {
19515 PyThreadState* __tstate = wxPyBeginAllowThreads();
19516 (arg1)->SetImageList(arg2);
19517 wxPyEndAllowThreads(__tstate);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 resultobj = SWIG_Py_Void();
19521 return resultobj;
19522 fail:
19523 return NULL;
19524 }
19525
19526
19527 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19528 PyObject *resultobj = 0;
19529 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19530 wxImageList *arg2 = (wxImageList *) 0 ;
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 int res2 = 0 ;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 char * kwnames[] = {
19537 (char *) "self",(char *) "imageList", NULL
19538 };
19539
19540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19542 if (!SWIG_IsOK(res1)) {
19543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19544 }
19545 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19546 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19547 if (!SWIG_IsOK(res2)) {
19548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19549 }
19550 {
19551 PyThreadState* __tstate = wxPyBeginAllowThreads();
19552 (arg1)->AssignImageList(arg2);
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 resultobj = SWIG_Py_Void();
19557 return resultobj;
19558 fail:
19559 return NULL;
19560 }
19561
19562
19563 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19564 PyObject *resultobj = 0;
19565 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19566 wxImageList *result = 0 ;
19567 void *argp1 = 0 ;
19568 int res1 = 0 ;
19569 PyObject *swig_obj[1] ;
19570
19571 if (!args) SWIG_fail;
19572 swig_obj[0] = args;
19573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19574 if (!SWIG_IsOK(res1)) {
19575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19576 }
19577 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 {
19585 resultobj = wxPyMake_wxObject(result, (bool)0);
19586 }
19587 return resultobj;
19588 fail:
19589 return NULL;
19590 }
19591
19592
19593 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19594 PyObject *resultobj = 0;
19595 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19596 size_t arg2 ;
19597 int result;
19598 void *argp1 = 0 ;
19599 int res1 = 0 ;
19600 size_t val2 ;
19601 int ecode2 = 0 ;
19602 PyObject * obj0 = 0 ;
19603 PyObject * obj1 = 0 ;
19604 char * kwnames[] = {
19605 (char *) "self",(char *) "n", NULL
19606 };
19607
19608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19610 if (!SWIG_IsOK(res1)) {
19611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19612 }
19613 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19614 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19615 if (!SWIG_IsOK(ecode2)) {
19616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19617 }
19618 arg2 = static_cast< size_t >(val2);
19619 {
19620 PyThreadState* __tstate = wxPyBeginAllowThreads();
19621 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19622 wxPyEndAllowThreads(__tstate);
19623 if (PyErr_Occurred()) SWIG_fail;
19624 }
19625 resultobj = SWIG_From_int(static_cast< int >(result));
19626 return resultobj;
19627 fail:
19628 return NULL;
19629 }
19630
19631
19632 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19633 PyObject *resultobj = 0;
19634 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19635 size_t arg2 ;
19636 int arg3 ;
19637 bool result;
19638 void *argp1 = 0 ;
19639 int res1 = 0 ;
19640 size_t val2 ;
19641 int ecode2 = 0 ;
19642 int val3 ;
19643 int ecode3 = 0 ;
19644 PyObject * obj0 = 0 ;
19645 PyObject * obj1 = 0 ;
19646 PyObject * obj2 = 0 ;
19647 char * kwnames[] = {
19648 (char *) "self",(char *) "n",(char *) "imageId", NULL
19649 };
19650
19651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19653 if (!SWIG_IsOK(res1)) {
19654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19655 }
19656 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19657 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19658 if (!SWIG_IsOK(ecode2)) {
19659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19660 }
19661 arg2 = static_cast< size_t >(val2);
19662 ecode3 = SWIG_AsVal_int(obj2, &val3);
19663 if (!SWIG_IsOK(ecode3)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19665 }
19666 arg3 = static_cast< int >(val3);
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19670 wxPyEndAllowThreads(__tstate);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 {
19674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19675 }
19676 return resultobj;
19677 fail:
19678 return NULL;
19679 }
19680
19681
19682 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19683 PyObject *resultobj = 0;
19684 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19685 wxSize *arg2 = 0 ;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 wxSize temp2 ;
19689 PyObject * obj0 = 0 ;
19690 PyObject * obj1 = 0 ;
19691 char * kwnames[] = {
19692 (char *) "self",(char *) "size", NULL
19693 };
19694
19695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19697 if (!SWIG_IsOK(res1)) {
19698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19699 }
19700 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19701 {
19702 arg2 = &temp2;
19703 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19704 }
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 (arg1)->SetPageSize((wxSize const &)*arg2);
19708 wxPyEndAllowThreads(__tstate);
19709 if (PyErr_Occurred()) SWIG_fail;
19710 }
19711 resultobj = SWIG_Py_Void();
19712 return resultobj;
19713 fail:
19714 return NULL;
19715 }
19716
19717
19718 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj = 0;
19720 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19721 wxSize *arg2 = 0 ;
19722 wxSize result;
19723 void *argp1 = 0 ;
19724 int res1 = 0 ;
19725 wxSize temp2 ;
19726 PyObject * obj0 = 0 ;
19727 PyObject * obj1 = 0 ;
19728 char * kwnames[] = {
19729 (char *) "self",(char *) "sizePage", NULL
19730 };
19731
19732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19734 if (!SWIG_IsOK(res1)) {
19735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19736 }
19737 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19738 {
19739 arg2 = &temp2;
19740 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19741 }
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19749 return resultobj;
19750 fail:
19751 return NULL;
19752 }
19753
19754
19755 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19756 PyObject *resultobj = 0;
19757 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19758 unsigned int result;
19759 void *argp1 = 0 ;
19760 int res1 = 0 ;
19761 PyObject *swig_obj[1] ;
19762
19763 if (!args) SWIG_fail;
19764 swig_obj[0] = args;
19765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19766 if (!SWIG_IsOK(res1)) {
19767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19768 }
19769 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19770 {
19771 PyThreadState* __tstate = wxPyBeginAllowThreads();
19772 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj = 0;
19785 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19786 unsigned int arg2 ;
19787 void *argp1 = 0 ;
19788 int res1 = 0 ;
19789 unsigned int val2 ;
19790 int ecode2 = 0 ;
19791 PyObject * obj0 = 0 ;
19792 PyObject * obj1 = 0 ;
19793 char * kwnames[] = {
19794 (char *) "self",(char *) "internalBorder", NULL
19795 };
19796
19797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19799 if (!SWIG_IsOK(res1)) {
19800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19801 }
19802 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19803 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19804 if (!SWIG_IsOK(ecode2)) {
19805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19806 }
19807 arg2 = static_cast< unsigned int >(val2);
19808 {
19809 PyThreadState* __tstate = wxPyBeginAllowThreads();
19810 (arg1)->SetInternalBorder(arg2);
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 resultobj = SWIG_Py_Void();
19815 return resultobj;
19816 fail:
19817 return NULL;
19818 }
19819
19820
19821 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19822 PyObject *resultobj = 0;
19823 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19824 bool result;
19825 void *argp1 = 0 ;
19826 int res1 = 0 ;
19827 PyObject *swig_obj[1] ;
19828
19829 if (!args) SWIG_fail;
19830 swig_obj[0] = args;
19831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19832 if (!SWIG_IsOK(res1)) {
19833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19834 }
19835 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19836 {
19837 PyThreadState* __tstate = wxPyBeginAllowThreads();
19838 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 {
19843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19844 }
19845 return resultobj;
19846 fail:
19847 return NULL;
19848 }
19849
19850
19851 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19852 PyObject *resultobj = 0;
19853 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19854 int arg2 ;
19855 void *argp1 = 0 ;
19856 int res1 = 0 ;
19857 int val2 ;
19858 int ecode2 = 0 ;
19859 PyObject * obj0 = 0 ;
19860 PyObject * obj1 = 0 ;
19861 char * kwnames[] = {
19862 (char *) "self",(char *) "margin", NULL
19863 };
19864
19865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19867 if (!SWIG_IsOK(res1)) {
19868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19869 }
19870 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19871 ecode2 = SWIG_AsVal_int(obj1, &val2);
19872 if (!SWIG_IsOK(ecode2)) {
19873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19874 }
19875 arg2 = static_cast< int >(val2);
19876 {
19877 PyThreadState* __tstate = wxPyBeginAllowThreads();
19878 (arg1)->SetControlMargin(arg2);
19879 wxPyEndAllowThreads(__tstate);
19880 if (PyErr_Occurred()) SWIG_fail;
19881 }
19882 resultobj = SWIG_Py_Void();
19883 return resultobj;
19884 fail:
19885 return NULL;
19886 }
19887
19888
19889 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19890 PyObject *resultobj = 0;
19891 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19892 int result;
19893 void *argp1 = 0 ;
19894 int res1 = 0 ;
19895 PyObject *swig_obj[1] ;
19896
19897 if (!args) SWIG_fail;
19898 swig_obj[0] = args;
19899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19900 if (!SWIG_IsOK(res1)) {
19901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19902 }
19903 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19904 {
19905 PyThreadState* __tstate = wxPyBeginAllowThreads();
19906 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19907 wxPyEndAllowThreads(__tstate);
19908 if (PyErr_Occurred()) SWIG_fail;
19909 }
19910 resultobj = SWIG_From_int(static_cast< int >(result));
19911 return resultobj;
19912 fail:
19913 return NULL;
19914 }
19915
19916
19917 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19918 PyObject *resultobj = 0;
19919 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19920 bool arg2 ;
19921 void *argp1 = 0 ;
19922 int res1 = 0 ;
19923 bool val2 ;
19924 int ecode2 = 0 ;
19925 PyObject * obj0 = 0 ;
19926 PyObject * obj1 = 0 ;
19927 char * kwnames[] = {
19928 (char *) "self",(char *) "fit", NULL
19929 };
19930
19931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19933 if (!SWIG_IsOK(res1)) {
19934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19935 }
19936 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19937 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19938 if (!SWIG_IsOK(ecode2)) {
19939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19940 }
19941 arg2 = static_cast< bool >(val2);
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 (arg1)->SetFitToCurrentPage(arg2);
19945 wxPyEndAllowThreads(__tstate);
19946 if (PyErr_Occurred()) SWIG_fail;
19947 }
19948 resultobj = SWIG_Py_Void();
19949 return resultobj;
19950 fail:
19951 return NULL;
19952 }
19953
19954
19955 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19956 PyObject *resultobj = 0;
19957 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19958 bool result;
19959 void *argp1 = 0 ;
19960 int res1 = 0 ;
19961 PyObject *swig_obj[1] ;
19962
19963 if (!args) SWIG_fail;
19964 swig_obj[0] = args;
19965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19966 if (!SWIG_IsOK(res1)) {
19967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19968 }
19969 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19970 {
19971 PyThreadState* __tstate = wxPyBeginAllowThreads();
19972 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19973 wxPyEndAllowThreads(__tstate);
19974 if (PyErr_Occurred()) SWIG_fail;
19975 }
19976 {
19977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19978 }
19979 return resultobj;
19980 fail:
19981 return NULL;
19982 }
19983
19984
19985 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19986 PyObject *resultobj = 0;
19987 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19988 wxSizer *result = 0 ;
19989 void *argp1 = 0 ;
19990 int res1 = 0 ;
19991 PyObject *swig_obj[1] ;
19992
19993 if (!args) SWIG_fail;
19994 swig_obj[0] = args;
19995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19996 if (!SWIG_IsOK(res1)) {
19997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19998 }
19999 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20000 {
20001 PyThreadState* __tstate = wxPyBeginAllowThreads();
20002 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20003 wxPyEndAllowThreads(__tstate);
20004 if (PyErr_Occurred()) SWIG_fail;
20005 }
20006 {
20007 resultobj = wxPyMake_wxObject(result, (bool)0);
20008 }
20009 return resultobj;
20010 fail:
20011 return NULL;
20012 }
20013
20014
20015 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj = 0;
20017 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20018 size_t arg2 ;
20019 bool result;
20020 void *argp1 = 0 ;
20021 int res1 = 0 ;
20022 size_t val2 ;
20023 int ecode2 = 0 ;
20024 PyObject * obj0 = 0 ;
20025 PyObject * obj1 = 0 ;
20026 char * kwnames[] = {
20027 (char *) "self",(char *) "n", NULL
20028 };
20029
20030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20032 if (!SWIG_IsOK(res1)) {
20033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20034 }
20035 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20036 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20037 if (!SWIG_IsOK(ecode2)) {
20038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20039 }
20040 arg2 = static_cast< size_t >(val2);
20041 {
20042 PyThreadState* __tstate = wxPyBeginAllowThreads();
20043 result = (bool)(arg1)->DeletePage(arg2);
20044 wxPyEndAllowThreads(__tstate);
20045 if (PyErr_Occurred()) SWIG_fail;
20046 }
20047 {
20048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20049 }
20050 return resultobj;
20051 fail:
20052 return NULL;
20053 }
20054
20055
20056 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20057 PyObject *resultobj = 0;
20058 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20059 size_t arg2 ;
20060 bool result;
20061 void *argp1 = 0 ;
20062 int res1 = 0 ;
20063 size_t val2 ;
20064 int ecode2 = 0 ;
20065 PyObject * obj0 = 0 ;
20066 PyObject * obj1 = 0 ;
20067 char * kwnames[] = {
20068 (char *) "self",(char *) "n", NULL
20069 };
20070
20071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20073 if (!SWIG_IsOK(res1)) {
20074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20075 }
20076 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20077 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20078 if (!SWIG_IsOK(ecode2)) {
20079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20080 }
20081 arg2 = static_cast< size_t >(val2);
20082 {
20083 PyThreadState* __tstate = wxPyBeginAllowThreads();
20084 result = (bool)(arg1)->RemovePage(arg2);
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 {
20089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20090 }
20091 return resultobj;
20092 fail:
20093 return NULL;
20094 }
20095
20096
20097 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20098 PyObject *resultobj = 0;
20099 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20100 bool result;
20101 void *argp1 = 0 ;
20102 int res1 = 0 ;
20103 PyObject *swig_obj[1] ;
20104
20105 if (!args) SWIG_fail;
20106 swig_obj[0] = args;
20107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20108 if (!SWIG_IsOK(res1)) {
20109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20110 }
20111 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20112 {
20113 PyThreadState* __tstate = wxPyBeginAllowThreads();
20114 result = (bool)(arg1)->DeleteAllPages();
20115 wxPyEndAllowThreads(__tstate);
20116 if (PyErr_Occurred()) SWIG_fail;
20117 }
20118 {
20119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20120 }
20121 return resultobj;
20122 fail:
20123 return NULL;
20124 }
20125
20126
20127 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20128 PyObject *resultobj = 0;
20129 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20130 wxWindow *arg2 = (wxWindow *) 0 ;
20131 wxString *arg3 = 0 ;
20132 bool arg4 = (bool) false ;
20133 int arg5 = (int) -1 ;
20134 bool result;
20135 void *argp1 = 0 ;
20136 int res1 = 0 ;
20137 void *argp2 = 0 ;
20138 int res2 = 0 ;
20139 bool temp3 = false ;
20140 bool val4 ;
20141 int ecode4 = 0 ;
20142 int val5 ;
20143 int ecode5 = 0 ;
20144 PyObject * obj0 = 0 ;
20145 PyObject * obj1 = 0 ;
20146 PyObject * obj2 = 0 ;
20147 PyObject * obj3 = 0 ;
20148 PyObject * obj4 = 0 ;
20149 char * kwnames[] = {
20150 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20151 };
20152
20153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20155 if (!SWIG_IsOK(res1)) {
20156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20157 }
20158 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20159 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20160 if (!SWIG_IsOK(res2)) {
20161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20162 }
20163 arg2 = reinterpret_cast< wxWindow * >(argp2);
20164 {
20165 arg3 = wxString_in_helper(obj2);
20166 if (arg3 == NULL) SWIG_fail;
20167 temp3 = true;
20168 }
20169 if (obj3) {
20170 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20171 if (!SWIG_IsOK(ecode4)) {
20172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20173 }
20174 arg4 = static_cast< bool >(val4);
20175 }
20176 if (obj4) {
20177 ecode5 = SWIG_AsVal_int(obj4, &val5);
20178 if (!SWIG_IsOK(ecode5)) {
20179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20180 }
20181 arg5 = static_cast< int >(val5);
20182 }
20183 {
20184 PyThreadState* __tstate = wxPyBeginAllowThreads();
20185 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20186 wxPyEndAllowThreads(__tstate);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 {
20190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20191 }
20192 {
20193 if (temp3)
20194 delete arg3;
20195 }
20196 return resultobj;
20197 fail:
20198 {
20199 if (temp3)
20200 delete arg3;
20201 }
20202 return NULL;
20203 }
20204
20205
20206 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20207 PyObject *resultobj = 0;
20208 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20209 size_t arg2 ;
20210 wxWindow *arg3 = (wxWindow *) 0 ;
20211 wxString *arg4 = 0 ;
20212 bool arg5 = (bool) false ;
20213 int arg6 = (int) -1 ;
20214 bool result;
20215 void *argp1 = 0 ;
20216 int res1 = 0 ;
20217 size_t val2 ;
20218 int ecode2 = 0 ;
20219 void *argp3 = 0 ;
20220 int res3 = 0 ;
20221 bool temp4 = false ;
20222 bool val5 ;
20223 int ecode5 = 0 ;
20224 int val6 ;
20225 int ecode6 = 0 ;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228 PyObject * obj2 = 0 ;
20229 PyObject * obj3 = 0 ;
20230 PyObject * obj4 = 0 ;
20231 PyObject * obj5 = 0 ;
20232 char * kwnames[] = {
20233 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20234 };
20235
20236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20240 }
20241 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20242 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20243 if (!SWIG_IsOK(ecode2)) {
20244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20245 }
20246 arg2 = static_cast< size_t >(val2);
20247 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20248 if (!SWIG_IsOK(res3)) {
20249 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20250 }
20251 arg3 = reinterpret_cast< wxWindow * >(argp3);
20252 {
20253 arg4 = wxString_in_helper(obj3);
20254 if (arg4 == NULL) SWIG_fail;
20255 temp4 = true;
20256 }
20257 if (obj4) {
20258 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20259 if (!SWIG_IsOK(ecode5)) {
20260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20261 }
20262 arg5 = static_cast< bool >(val5);
20263 }
20264 if (obj5) {
20265 ecode6 = SWIG_AsVal_int(obj5, &val6);
20266 if (!SWIG_IsOK(ecode6)) {
20267 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20268 }
20269 arg6 = static_cast< int >(val6);
20270 }
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20274 wxPyEndAllowThreads(__tstate);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 {
20278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20279 }
20280 {
20281 if (temp4)
20282 delete arg4;
20283 }
20284 return resultobj;
20285 fail:
20286 {
20287 if (temp4)
20288 delete arg4;
20289 }
20290 return NULL;
20291 }
20292
20293
20294 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20295 PyObject *resultobj = 0;
20296 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20297 size_t arg2 ;
20298 int result;
20299 void *argp1 = 0 ;
20300 int res1 = 0 ;
20301 size_t val2 ;
20302 int ecode2 = 0 ;
20303 PyObject * obj0 = 0 ;
20304 PyObject * obj1 = 0 ;
20305 char * kwnames[] = {
20306 (char *) "self",(char *) "n", NULL
20307 };
20308
20309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20311 if (!SWIG_IsOK(res1)) {
20312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20313 }
20314 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20315 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20316 if (!SWIG_IsOK(ecode2)) {
20317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20318 }
20319 arg2 = static_cast< size_t >(val2);
20320 {
20321 PyThreadState* __tstate = wxPyBeginAllowThreads();
20322 result = (int)(arg1)->SetSelection(arg2);
20323 wxPyEndAllowThreads(__tstate);
20324 if (PyErr_Occurred()) SWIG_fail;
20325 }
20326 resultobj = SWIG_From_int(static_cast< int >(result));
20327 return resultobj;
20328 fail:
20329 return NULL;
20330 }
20331
20332
20333 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20334 PyObject *resultobj = 0;
20335 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20336 size_t arg2 ;
20337 int result;
20338 void *argp1 = 0 ;
20339 int res1 = 0 ;
20340 size_t val2 ;
20341 int ecode2 = 0 ;
20342 PyObject * obj0 = 0 ;
20343 PyObject * obj1 = 0 ;
20344 char * kwnames[] = {
20345 (char *) "self",(char *) "n", NULL
20346 };
20347
20348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20350 if (!SWIG_IsOK(res1)) {
20351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20352 }
20353 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20354 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20355 if (!SWIG_IsOK(ecode2)) {
20356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20357 }
20358 arg2 = static_cast< size_t >(val2);
20359 {
20360 PyThreadState* __tstate = wxPyBeginAllowThreads();
20361 result = (int)(arg1)->ChangeSelection(arg2);
20362 wxPyEndAllowThreads(__tstate);
20363 if (PyErr_Occurred()) SWIG_fail;
20364 }
20365 resultobj = SWIG_From_int(static_cast< int >(result));
20366 return resultobj;
20367 fail:
20368 return NULL;
20369 }
20370
20371
20372 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20373 PyObject *resultobj = 0;
20374 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20375 bool arg2 = (bool) true ;
20376 void *argp1 = 0 ;
20377 int res1 = 0 ;
20378 bool val2 ;
20379 int ecode2 = 0 ;
20380 PyObject * obj0 = 0 ;
20381 PyObject * obj1 = 0 ;
20382 char * kwnames[] = {
20383 (char *) "self",(char *) "forward", NULL
20384 };
20385
20386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20388 if (!SWIG_IsOK(res1)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20390 }
20391 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20392 if (obj1) {
20393 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20394 if (!SWIG_IsOK(ecode2)) {
20395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20396 }
20397 arg2 = static_cast< bool >(val2);
20398 }
20399 {
20400 PyThreadState* __tstate = wxPyBeginAllowThreads();
20401 (arg1)->AdvanceSelection(arg2);
20402 wxPyEndAllowThreads(__tstate);
20403 if (PyErr_Occurred()) SWIG_fail;
20404 }
20405 resultobj = SWIG_Py_Void();
20406 return resultobj;
20407 fail:
20408 return NULL;
20409 }
20410
20411
20412 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20413 PyObject *resultobj = 0;
20414 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20415 wxPoint *arg2 = 0 ;
20416 long *arg3 = (long *) 0 ;
20417 int result;
20418 void *argp1 = 0 ;
20419 int res1 = 0 ;
20420 wxPoint temp2 ;
20421 long temp3 ;
20422 int res3 = SWIG_TMPOBJ ;
20423 PyObject * obj0 = 0 ;
20424 PyObject * obj1 = 0 ;
20425 char * kwnames[] = {
20426 (char *) "self",(char *) "pt", NULL
20427 };
20428
20429 arg3 = &temp3;
20430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20432 if (!SWIG_IsOK(res1)) {
20433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20434 }
20435 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20436 {
20437 arg2 = &temp2;
20438 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20439 }
20440 {
20441 PyThreadState* __tstate = wxPyBeginAllowThreads();
20442 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20443 wxPyEndAllowThreads(__tstate);
20444 if (PyErr_Occurred()) SWIG_fail;
20445 }
20446 resultobj = SWIG_From_int(static_cast< int >(result));
20447 if (SWIG_IsTmpObj(res3)) {
20448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20449 } else {
20450 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20451 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20452 }
20453 return resultobj;
20454 fail:
20455 return NULL;
20456 }
20457
20458
20459 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20460 PyObject *resultobj = 0;
20461 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20462 SwigValueWrapper<wxVisualAttributes > result;
20463 int val1 ;
20464 int ecode1 = 0 ;
20465 PyObject * obj0 = 0 ;
20466 char * kwnames[] = {
20467 (char *) "variant", NULL
20468 };
20469
20470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20471 if (obj0) {
20472 ecode1 = SWIG_AsVal_int(obj0, &val1);
20473 if (!SWIG_IsOK(ecode1)) {
20474 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20475 }
20476 arg1 = static_cast< wxWindowVariant >(val1);
20477 }
20478 {
20479 if (!wxPyCheckForApp()) SWIG_fail;
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20482 wxPyEndAllowThreads(__tstate);
20483 if (PyErr_Occurred()) SWIG_fail;
20484 }
20485 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20486 return resultobj;
20487 fail:
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20493 PyObject *obj;
20494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20495 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20496 return SWIG_Py_Void();
20497 }
20498
20499 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20500 PyObject *resultobj = 0;
20501 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20502 int arg2 = (int) 0 ;
20503 int arg3 = (int) -1 ;
20504 int arg4 = (int) -1 ;
20505 wxBookCtrlBaseEvent *result = 0 ;
20506 int val1 ;
20507 int ecode1 = 0 ;
20508 int val2 ;
20509 int ecode2 = 0 ;
20510 int val3 ;
20511 int ecode3 = 0 ;
20512 int val4 ;
20513 int ecode4 = 0 ;
20514 PyObject * obj0 = 0 ;
20515 PyObject * obj1 = 0 ;
20516 PyObject * obj2 = 0 ;
20517 PyObject * obj3 = 0 ;
20518 char * kwnames[] = {
20519 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20520 };
20521
20522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20523 if (obj0) {
20524 ecode1 = SWIG_AsVal_int(obj0, &val1);
20525 if (!SWIG_IsOK(ecode1)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20527 }
20528 arg1 = static_cast< wxEventType >(val1);
20529 }
20530 if (obj1) {
20531 ecode2 = SWIG_AsVal_int(obj1, &val2);
20532 if (!SWIG_IsOK(ecode2)) {
20533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20534 }
20535 arg2 = static_cast< int >(val2);
20536 }
20537 if (obj2) {
20538 ecode3 = SWIG_AsVal_int(obj2, &val3);
20539 if (!SWIG_IsOK(ecode3)) {
20540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20541 }
20542 arg3 = static_cast< int >(val3);
20543 }
20544 if (obj3) {
20545 ecode4 = SWIG_AsVal_int(obj3, &val4);
20546 if (!SWIG_IsOK(ecode4)) {
20547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20548 }
20549 arg4 = static_cast< int >(val4);
20550 }
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20554 wxPyEndAllowThreads(__tstate);
20555 if (PyErr_Occurred()) SWIG_fail;
20556 }
20557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20558 return resultobj;
20559 fail:
20560 return NULL;
20561 }
20562
20563
20564 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20565 PyObject *resultobj = 0;
20566 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20567 int result;
20568 void *argp1 = 0 ;
20569 int res1 = 0 ;
20570 PyObject *swig_obj[1] ;
20571
20572 if (!args) SWIG_fail;
20573 swig_obj[0] = args;
20574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20577 }
20578 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 resultobj = SWIG_From_int(static_cast< int >(result));
20586 return resultobj;
20587 fail:
20588 return NULL;
20589 }
20590
20591
20592 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20593 PyObject *resultobj = 0;
20594 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20595 int arg2 ;
20596 void *argp1 = 0 ;
20597 int res1 = 0 ;
20598 int val2 ;
20599 int ecode2 = 0 ;
20600 PyObject * obj0 = 0 ;
20601 PyObject * obj1 = 0 ;
20602 char * kwnames[] = {
20603 (char *) "self",(char *) "nSel", NULL
20604 };
20605
20606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20608 if (!SWIG_IsOK(res1)) {
20609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20610 }
20611 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20612 ecode2 = SWIG_AsVal_int(obj1, &val2);
20613 if (!SWIG_IsOK(ecode2)) {
20614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20615 }
20616 arg2 = static_cast< int >(val2);
20617 {
20618 PyThreadState* __tstate = wxPyBeginAllowThreads();
20619 (arg1)->SetSelection(arg2);
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 resultobj = SWIG_Py_Void();
20624 return resultobj;
20625 fail:
20626 return NULL;
20627 }
20628
20629
20630 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20631 PyObject *resultobj = 0;
20632 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20633 int result;
20634 void *argp1 = 0 ;
20635 int res1 = 0 ;
20636 PyObject *swig_obj[1] ;
20637
20638 if (!args) SWIG_fail;
20639 swig_obj[0] = args;
20640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20641 if (!SWIG_IsOK(res1)) {
20642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20643 }
20644 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20648 wxPyEndAllowThreads(__tstate);
20649 if (PyErr_Occurred()) SWIG_fail;
20650 }
20651 resultobj = SWIG_From_int(static_cast< int >(result));
20652 return resultobj;
20653 fail:
20654 return NULL;
20655 }
20656
20657
20658 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20659 PyObject *resultobj = 0;
20660 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20661 int arg2 ;
20662 void *argp1 = 0 ;
20663 int res1 = 0 ;
20664 int val2 ;
20665 int ecode2 = 0 ;
20666 PyObject * obj0 = 0 ;
20667 PyObject * obj1 = 0 ;
20668 char * kwnames[] = {
20669 (char *) "self",(char *) "nOldSel", NULL
20670 };
20671
20672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20674 if (!SWIG_IsOK(res1)) {
20675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20676 }
20677 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20678 ecode2 = SWIG_AsVal_int(obj1, &val2);
20679 if (!SWIG_IsOK(ecode2)) {
20680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20681 }
20682 arg2 = static_cast< int >(val2);
20683 {
20684 PyThreadState* __tstate = wxPyBeginAllowThreads();
20685 (arg1)->SetOldSelection(arg2);
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 resultobj = SWIG_Py_Void();
20690 return resultobj;
20691 fail:
20692 return NULL;
20693 }
20694
20695
20696 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20697 PyObject *obj;
20698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20699 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20700 return SWIG_Py_Void();
20701 }
20702
20703 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20704 return SWIG_Python_InitShadowInstance(args);
20705 }
20706
20707 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20708 PyObject *resultobj = 0;
20709 wxWindow *arg1 = (wxWindow *) 0 ;
20710 int arg2 = (int) -1 ;
20711 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20712 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20713 wxSize const &arg4_defvalue = wxDefaultSize ;
20714 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20715 long arg5 = (long) 0 ;
20716 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20717 wxString *arg6 = (wxString *) &arg6_defvalue ;
20718 wxNotebook *result = 0 ;
20719 void *argp1 = 0 ;
20720 int res1 = 0 ;
20721 int val2 ;
20722 int ecode2 = 0 ;
20723 wxPoint temp3 ;
20724 wxSize temp4 ;
20725 long val5 ;
20726 int ecode5 = 0 ;
20727 bool temp6 = false ;
20728 PyObject * obj0 = 0 ;
20729 PyObject * obj1 = 0 ;
20730 PyObject * obj2 = 0 ;
20731 PyObject * obj3 = 0 ;
20732 PyObject * obj4 = 0 ;
20733 PyObject * obj5 = 0 ;
20734 char * kwnames[] = {
20735 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20736 };
20737
20738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20740 if (!SWIG_IsOK(res1)) {
20741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20742 }
20743 arg1 = reinterpret_cast< wxWindow * >(argp1);
20744 if (obj1) {
20745 ecode2 = SWIG_AsVal_int(obj1, &val2);
20746 if (!SWIG_IsOK(ecode2)) {
20747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20748 }
20749 arg2 = static_cast< int >(val2);
20750 }
20751 if (obj2) {
20752 {
20753 arg3 = &temp3;
20754 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20755 }
20756 }
20757 if (obj3) {
20758 {
20759 arg4 = &temp4;
20760 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20761 }
20762 }
20763 if (obj4) {
20764 ecode5 = SWIG_AsVal_long(obj4, &val5);
20765 if (!SWIG_IsOK(ecode5)) {
20766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20767 }
20768 arg5 = static_cast< long >(val5);
20769 }
20770 if (obj5) {
20771 {
20772 arg6 = wxString_in_helper(obj5);
20773 if (arg6 == NULL) SWIG_fail;
20774 temp6 = true;
20775 }
20776 }
20777 {
20778 if (!wxPyCheckForApp()) SWIG_fail;
20779 PyThreadState* __tstate = wxPyBeginAllowThreads();
20780 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20781 wxPyEndAllowThreads(__tstate);
20782 if (PyErr_Occurred()) SWIG_fail;
20783 }
20784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20785 {
20786 if (temp6)
20787 delete arg6;
20788 }
20789 return resultobj;
20790 fail:
20791 {
20792 if (temp6)
20793 delete arg6;
20794 }
20795 return NULL;
20796 }
20797
20798
20799 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20800 PyObject *resultobj = 0;
20801 wxNotebook *result = 0 ;
20802
20803 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20804 {
20805 if (!wxPyCheckForApp()) SWIG_fail;
20806 PyThreadState* __tstate = wxPyBeginAllowThreads();
20807 result = (wxNotebook *)new wxNotebook();
20808 wxPyEndAllowThreads(__tstate);
20809 if (PyErr_Occurred()) SWIG_fail;
20810 }
20811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20812 return resultobj;
20813 fail:
20814 return NULL;
20815 }
20816
20817
20818 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20819 PyObject *resultobj = 0;
20820 wxNotebook *arg1 = (wxNotebook *) 0 ;
20821 wxWindow *arg2 = (wxWindow *) 0 ;
20822 int arg3 = (int) -1 ;
20823 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20824 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20825 wxSize const &arg5_defvalue = wxDefaultSize ;
20826 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20827 long arg6 = (long) 0 ;
20828 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20829 wxString *arg7 = (wxString *) &arg7_defvalue ;
20830 bool result;
20831 void *argp1 = 0 ;
20832 int res1 = 0 ;
20833 void *argp2 = 0 ;
20834 int res2 = 0 ;
20835 int val3 ;
20836 int ecode3 = 0 ;
20837 wxPoint temp4 ;
20838 wxSize temp5 ;
20839 long val6 ;
20840 int ecode6 = 0 ;
20841 bool temp7 = false ;
20842 PyObject * obj0 = 0 ;
20843 PyObject * obj1 = 0 ;
20844 PyObject * obj2 = 0 ;
20845 PyObject * obj3 = 0 ;
20846 PyObject * obj4 = 0 ;
20847 PyObject * obj5 = 0 ;
20848 PyObject * obj6 = 0 ;
20849 char * kwnames[] = {
20850 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20851 };
20852
20853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20855 if (!SWIG_IsOK(res1)) {
20856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20857 }
20858 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20860 if (!SWIG_IsOK(res2)) {
20861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20862 }
20863 arg2 = reinterpret_cast< wxWindow * >(argp2);
20864 if (obj2) {
20865 ecode3 = SWIG_AsVal_int(obj2, &val3);
20866 if (!SWIG_IsOK(ecode3)) {
20867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20868 }
20869 arg3 = static_cast< int >(val3);
20870 }
20871 if (obj3) {
20872 {
20873 arg4 = &temp4;
20874 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20875 }
20876 }
20877 if (obj4) {
20878 {
20879 arg5 = &temp5;
20880 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20881 }
20882 }
20883 if (obj5) {
20884 ecode6 = SWIG_AsVal_long(obj5, &val6);
20885 if (!SWIG_IsOK(ecode6)) {
20886 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20887 }
20888 arg6 = static_cast< long >(val6);
20889 }
20890 if (obj6) {
20891 {
20892 arg7 = wxString_in_helper(obj6);
20893 if (arg7 == NULL) SWIG_fail;
20894 temp7 = true;
20895 }
20896 }
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 {
20904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20905 }
20906 {
20907 if (temp7)
20908 delete arg7;
20909 }
20910 return resultobj;
20911 fail:
20912 {
20913 if (temp7)
20914 delete arg7;
20915 }
20916 return NULL;
20917 }
20918
20919
20920 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20921 PyObject *resultobj = 0;
20922 wxNotebook *arg1 = (wxNotebook *) 0 ;
20923 int result;
20924 void *argp1 = 0 ;
20925 int res1 = 0 ;
20926 PyObject *swig_obj[1] ;
20927
20928 if (!args) SWIG_fail;
20929 swig_obj[0] = args;
20930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20931 if (!SWIG_IsOK(res1)) {
20932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20933 }
20934 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20935 {
20936 PyThreadState* __tstate = wxPyBeginAllowThreads();
20937 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20938 wxPyEndAllowThreads(__tstate);
20939 if (PyErr_Occurred()) SWIG_fail;
20940 }
20941 resultobj = SWIG_From_int(static_cast< int >(result));
20942 return resultobj;
20943 fail:
20944 return NULL;
20945 }
20946
20947
20948 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20949 PyObject *resultobj = 0;
20950 wxNotebook *arg1 = (wxNotebook *) 0 ;
20951 wxSize *arg2 = 0 ;
20952 void *argp1 = 0 ;
20953 int res1 = 0 ;
20954 wxSize temp2 ;
20955 PyObject * obj0 = 0 ;
20956 PyObject * obj1 = 0 ;
20957 char * kwnames[] = {
20958 (char *) "self",(char *) "padding", NULL
20959 };
20960
20961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20963 if (!SWIG_IsOK(res1)) {
20964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20965 }
20966 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20967 {
20968 arg2 = &temp2;
20969 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20970 }
20971 {
20972 PyThreadState* __tstate = wxPyBeginAllowThreads();
20973 (arg1)->SetPadding((wxSize const &)*arg2);
20974 wxPyEndAllowThreads(__tstate);
20975 if (PyErr_Occurred()) SWIG_fail;
20976 }
20977 resultobj = SWIG_Py_Void();
20978 return resultobj;
20979 fail:
20980 return NULL;
20981 }
20982
20983
20984 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20985 PyObject *resultobj = 0;
20986 wxNotebook *arg1 = (wxNotebook *) 0 ;
20987 wxSize *arg2 = 0 ;
20988 void *argp1 = 0 ;
20989 int res1 = 0 ;
20990 wxSize temp2 ;
20991 PyObject * obj0 = 0 ;
20992 PyObject * obj1 = 0 ;
20993 char * kwnames[] = {
20994 (char *) "self",(char *) "sz", NULL
20995 };
20996
20997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20999 if (!SWIG_IsOK(res1)) {
21000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21001 }
21002 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21003 {
21004 arg2 = &temp2;
21005 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21006 }
21007 {
21008 PyThreadState* __tstate = wxPyBeginAllowThreads();
21009 (arg1)->SetTabSize((wxSize const &)*arg2);
21010 wxPyEndAllowThreads(__tstate);
21011 if (PyErr_Occurred()) SWIG_fail;
21012 }
21013 resultobj = SWIG_Py_Void();
21014 return resultobj;
21015 fail:
21016 return NULL;
21017 }
21018
21019
21020 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21021 PyObject *resultobj = 0;
21022 wxNotebook *arg1 = (wxNotebook *) 0 ;
21023 wxColour result;
21024 void *argp1 = 0 ;
21025 int res1 = 0 ;
21026 PyObject *swig_obj[1] ;
21027
21028 if (!args) SWIG_fail;
21029 swig_obj[0] = args;
21030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21031 if (!SWIG_IsOK(res1)) {
21032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21033 }
21034 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21035 {
21036 PyThreadState* __tstate = wxPyBeginAllowThreads();
21037 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21038 wxPyEndAllowThreads(__tstate);
21039 if (PyErr_Occurred()) SWIG_fail;
21040 }
21041 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21042 return resultobj;
21043 fail:
21044 return NULL;
21045 }
21046
21047
21048 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21049 PyObject *resultobj = 0;
21050 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21051 SwigValueWrapper<wxVisualAttributes > result;
21052 int val1 ;
21053 int ecode1 = 0 ;
21054 PyObject * obj0 = 0 ;
21055 char * kwnames[] = {
21056 (char *) "variant", NULL
21057 };
21058
21059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21060 if (obj0) {
21061 ecode1 = SWIG_AsVal_int(obj0, &val1);
21062 if (!SWIG_IsOK(ecode1)) {
21063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21064 }
21065 arg1 = static_cast< wxWindowVariant >(val1);
21066 }
21067 {
21068 if (!wxPyCheckForApp()) SWIG_fail;
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = wxNotebook::GetClassDefaultAttributes(arg1);
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21075 return resultobj;
21076 fail:
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxNotebook *arg1 = (wxNotebook *) 0 ;
21084 int arg2 ;
21085 bool result;
21086 void *argp1 = 0 ;
21087 int res1 = 0 ;
21088 int val2 ;
21089 int ecode2 = 0 ;
21090 PyObject * obj0 = 0 ;
21091 PyObject * obj1 = 0 ;
21092 char * kwnames[] = {
21093 (char *) "self",(char *) "nPage", NULL
21094 };
21095
21096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21098 if (!SWIG_IsOK(res1)) {
21099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21100 }
21101 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21102 ecode2 = SWIG_AsVal_int(obj1, &val2);
21103 if (!SWIG_IsOK(ecode2)) {
21104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21105 }
21106 arg2 = static_cast< int >(val2);
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21110 wxPyEndAllowThreads(__tstate);
21111 if (PyErr_Occurred()) SWIG_fail;
21112 }
21113 {
21114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21115 }
21116 return resultobj;
21117 fail:
21118 return NULL;
21119 }
21120
21121
21122 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21123 PyObject *resultobj = 0;
21124 wxNotebook *arg1 = (wxNotebook *) 0 ;
21125 int arg2 ;
21126 int arg3 = (int) -1 ;
21127 void *argp1 = 0 ;
21128 int res1 = 0 ;
21129 int val2 ;
21130 int ecode2 = 0 ;
21131 int val3 ;
21132 int ecode3 = 0 ;
21133 PyObject * obj0 = 0 ;
21134 PyObject * obj1 = 0 ;
21135 PyObject * obj2 = 0 ;
21136 char * kwnames[] = {
21137 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21138 };
21139
21140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21142 if (!SWIG_IsOK(res1)) {
21143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21144 }
21145 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21146 ecode2 = SWIG_AsVal_int(obj1, &val2);
21147 if (!SWIG_IsOK(ecode2)) {
21148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21149 }
21150 arg2 = static_cast< int >(val2);
21151 if (obj2) {
21152 ecode3 = SWIG_AsVal_int(obj2, &val3);
21153 if (!SWIG_IsOK(ecode3)) {
21154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21155 }
21156 arg3 = static_cast< int >(val3);
21157 }
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 (arg1)->SendPageChangedEvent(arg2,arg3);
21161 wxPyEndAllowThreads(__tstate);
21162 if (PyErr_Occurred()) SWIG_fail;
21163 }
21164 resultobj = SWIG_Py_Void();
21165 return resultobj;
21166 fail:
21167 return NULL;
21168 }
21169
21170
21171 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21172 PyObject *obj;
21173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21174 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21175 return SWIG_Py_Void();
21176 }
21177
21178 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21179 return SWIG_Python_InitShadowInstance(args);
21180 }
21181
21182 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21183 PyObject *resultobj = 0;
21184 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21185 int arg2 = (int) 0 ;
21186 int arg3 = (int) -1 ;
21187 int arg4 = (int) -1 ;
21188 wxNotebookEvent *result = 0 ;
21189 int val1 ;
21190 int ecode1 = 0 ;
21191 int val2 ;
21192 int ecode2 = 0 ;
21193 int val3 ;
21194 int ecode3 = 0 ;
21195 int val4 ;
21196 int ecode4 = 0 ;
21197 PyObject * obj0 = 0 ;
21198 PyObject * obj1 = 0 ;
21199 PyObject * obj2 = 0 ;
21200 PyObject * obj3 = 0 ;
21201 char * kwnames[] = {
21202 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21203 };
21204
21205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21206 if (obj0) {
21207 ecode1 = SWIG_AsVal_int(obj0, &val1);
21208 if (!SWIG_IsOK(ecode1)) {
21209 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21210 }
21211 arg1 = static_cast< wxEventType >(val1);
21212 }
21213 if (obj1) {
21214 ecode2 = SWIG_AsVal_int(obj1, &val2);
21215 if (!SWIG_IsOK(ecode2)) {
21216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21217 }
21218 arg2 = static_cast< int >(val2);
21219 }
21220 if (obj2) {
21221 ecode3 = SWIG_AsVal_int(obj2, &val3);
21222 if (!SWIG_IsOK(ecode3)) {
21223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21224 }
21225 arg3 = static_cast< int >(val3);
21226 }
21227 if (obj3) {
21228 ecode4 = SWIG_AsVal_int(obj3, &val4);
21229 if (!SWIG_IsOK(ecode4)) {
21230 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21231 }
21232 arg4 = static_cast< int >(val4);
21233 }
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21241 return resultobj;
21242 fail:
21243 return NULL;
21244 }
21245
21246
21247 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21248 PyObject *obj;
21249 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21250 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21251 return SWIG_Py_Void();
21252 }
21253
21254 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21255 return SWIG_Python_InitShadowInstance(args);
21256 }
21257
21258 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21259 PyObject *resultobj = 0;
21260 wxWindow *arg1 = (wxWindow *) 0 ;
21261 int arg2 = (int) -1 ;
21262 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21263 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21264 wxSize const &arg4_defvalue = wxDefaultSize ;
21265 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21266 long arg5 = (long) 0 ;
21267 wxString const &arg6_defvalue = wxPyEmptyString ;
21268 wxString *arg6 = (wxString *) &arg6_defvalue ;
21269 wxListbook *result = 0 ;
21270 void *argp1 = 0 ;
21271 int res1 = 0 ;
21272 int val2 ;
21273 int ecode2 = 0 ;
21274 wxPoint temp3 ;
21275 wxSize temp4 ;
21276 long val5 ;
21277 int ecode5 = 0 ;
21278 bool temp6 = false ;
21279 PyObject * obj0 = 0 ;
21280 PyObject * obj1 = 0 ;
21281 PyObject * obj2 = 0 ;
21282 PyObject * obj3 = 0 ;
21283 PyObject * obj4 = 0 ;
21284 PyObject * obj5 = 0 ;
21285 char * kwnames[] = {
21286 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21287 };
21288
21289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21291 if (!SWIG_IsOK(res1)) {
21292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21293 }
21294 arg1 = reinterpret_cast< wxWindow * >(argp1);
21295 if (obj1) {
21296 ecode2 = SWIG_AsVal_int(obj1, &val2);
21297 if (!SWIG_IsOK(ecode2)) {
21298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21299 }
21300 arg2 = static_cast< int >(val2);
21301 }
21302 if (obj2) {
21303 {
21304 arg3 = &temp3;
21305 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21306 }
21307 }
21308 if (obj3) {
21309 {
21310 arg4 = &temp4;
21311 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21312 }
21313 }
21314 if (obj4) {
21315 ecode5 = SWIG_AsVal_long(obj4, &val5);
21316 if (!SWIG_IsOK(ecode5)) {
21317 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21318 }
21319 arg5 = static_cast< long >(val5);
21320 }
21321 if (obj5) {
21322 {
21323 arg6 = wxString_in_helper(obj5);
21324 if (arg6 == NULL) SWIG_fail;
21325 temp6 = true;
21326 }
21327 }
21328 {
21329 if (!wxPyCheckForApp()) SWIG_fail;
21330 PyThreadState* __tstate = wxPyBeginAllowThreads();
21331 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21332 wxPyEndAllowThreads(__tstate);
21333 if (PyErr_Occurred()) SWIG_fail;
21334 }
21335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21336 {
21337 if (temp6)
21338 delete arg6;
21339 }
21340 return resultobj;
21341 fail:
21342 {
21343 if (temp6)
21344 delete arg6;
21345 }
21346 return NULL;
21347 }
21348
21349
21350 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21351 PyObject *resultobj = 0;
21352 wxListbook *result = 0 ;
21353
21354 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21355 {
21356 if (!wxPyCheckForApp()) SWIG_fail;
21357 PyThreadState* __tstate = wxPyBeginAllowThreads();
21358 result = (wxListbook *)new wxListbook();
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21363 return resultobj;
21364 fail:
21365 return NULL;
21366 }
21367
21368
21369 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21370 PyObject *resultobj = 0;
21371 wxListbook *arg1 = (wxListbook *) 0 ;
21372 wxWindow *arg2 = (wxWindow *) 0 ;
21373 int arg3 = (int) -1 ;
21374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21376 wxSize const &arg5_defvalue = wxDefaultSize ;
21377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21378 long arg6 = (long) 0 ;
21379 wxString const &arg7_defvalue = wxPyEmptyString ;
21380 wxString *arg7 = (wxString *) &arg7_defvalue ;
21381 bool result;
21382 void *argp1 = 0 ;
21383 int res1 = 0 ;
21384 void *argp2 = 0 ;
21385 int res2 = 0 ;
21386 int val3 ;
21387 int ecode3 = 0 ;
21388 wxPoint temp4 ;
21389 wxSize temp5 ;
21390 long val6 ;
21391 int ecode6 = 0 ;
21392 bool temp7 = false ;
21393 PyObject * obj0 = 0 ;
21394 PyObject * obj1 = 0 ;
21395 PyObject * obj2 = 0 ;
21396 PyObject * obj3 = 0 ;
21397 PyObject * obj4 = 0 ;
21398 PyObject * obj5 = 0 ;
21399 PyObject * obj6 = 0 ;
21400 char * kwnames[] = {
21401 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21402 };
21403
21404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21406 if (!SWIG_IsOK(res1)) {
21407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21408 }
21409 arg1 = reinterpret_cast< wxListbook * >(argp1);
21410 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21411 if (!SWIG_IsOK(res2)) {
21412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21413 }
21414 arg2 = reinterpret_cast< wxWindow * >(argp2);
21415 if (obj2) {
21416 ecode3 = SWIG_AsVal_int(obj2, &val3);
21417 if (!SWIG_IsOK(ecode3)) {
21418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21419 }
21420 arg3 = static_cast< int >(val3);
21421 }
21422 if (obj3) {
21423 {
21424 arg4 = &temp4;
21425 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21426 }
21427 }
21428 if (obj4) {
21429 {
21430 arg5 = &temp5;
21431 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21432 }
21433 }
21434 if (obj5) {
21435 ecode6 = SWIG_AsVal_long(obj5, &val6);
21436 if (!SWIG_IsOK(ecode6)) {
21437 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21438 }
21439 arg6 = static_cast< long >(val6);
21440 }
21441 if (obj6) {
21442 {
21443 arg7 = wxString_in_helper(obj6);
21444 if (arg7 == NULL) SWIG_fail;
21445 temp7 = true;
21446 }
21447 }
21448 {
21449 PyThreadState* __tstate = wxPyBeginAllowThreads();
21450 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 {
21455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21456 }
21457 {
21458 if (temp7)
21459 delete arg7;
21460 }
21461 return resultobj;
21462 fail:
21463 {
21464 if (temp7)
21465 delete arg7;
21466 }
21467 return NULL;
21468 }
21469
21470
21471 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21472 PyObject *resultobj = 0;
21473 wxListbook *arg1 = (wxListbook *) 0 ;
21474 wxListView *result = 0 ;
21475 void *argp1 = 0 ;
21476 int res1 = 0 ;
21477 PyObject *swig_obj[1] ;
21478
21479 if (!args) SWIG_fail;
21480 swig_obj[0] = args;
21481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21482 if (!SWIG_IsOK(res1)) {
21483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21484 }
21485 arg1 = reinterpret_cast< wxListbook * >(argp1);
21486 {
21487 PyThreadState* __tstate = wxPyBeginAllowThreads();
21488 result = (wxListView *)(arg1)->GetListView();
21489 wxPyEndAllowThreads(__tstate);
21490 if (PyErr_Occurred()) SWIG_fail;
21491 }
21492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21493 return resultobj;
21494 fail:
21495 return NULL;
21496 }
21497
21498
21499 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21500 PyObject *obj;
21501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21502 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21503 return SWIG_Py_Void();
21504 }
21505
21506 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21507 return SWIG_Python_InitShadowInstance(args);
21508 }
21509
21510 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21511 PyObject *resultobj = 0;
21512 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21513 int arg2 = (int) 0 ;
21514 int arg3 = (int) -1 ;
21515 int arg4 = (int) -1 ;
21516 wxListbookEvent *result = 0 ;
21517 int val1 ;
21518 int ecode1 = 0 ;
21519 int val2 ;
21520 int ecode2 = 0 ;
21521 int val3 ;
21522 int ecode3 = 0 ;
21523 int val4 ;
21524 int ecode4 = 0 ;
21525 PyObject * obj0 = 0 ;
21526 PyObject * obj1 = 0 ;
21527 PyObject * obj2 = 0 ;
21528 PyObject * obj3 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21534 if (obj0) {
21535 ecode1 = SWIG_AsVal_int(obj0, &val1);
21536 if (!SWIG_IsOK(ecode1)) {
21537 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21538 }
21539 arg1 = static_cast< wxEventType >(val1);
21540 }
21541 if (obj1) {
21542 ecode2 = SWIG_AsVal_int(obj1, &val2);
21543 if (!SWIG_IsOK(ecode2)) {
21544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21545 }
21546 arg2 = static_cast< int >(val2);
21547 }
21548 if (obj2) {
21549 ecode3 = SWIG_AsVal_int(obj2, &val3);
21550 if (!SWIG_IsOK(ecode3)) {
21551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21552 }
21553 arg3 = static_cast< int >(val3);
21554 }
21555 if (obj3) {
21556 ecode4 = SWIG_AsVal_int(obj3, &val4);
21557 if (!SWIG_IsOK(ecode4)) {
21558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21559 }
21560 arg4 = static_cast< int >(val4);
21561 }
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21565 wxPyEndAllowThreads(__tstate);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21569 return resultobj;
21570 fail:
21571 return NULL;
21572 }
21573
21574
21575 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21576 PyObject *obj;
21577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21578 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21579 return SWIG_Py_Void();
21580 }
21581
21582 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21583 return SWIG_Python_InitShadowInstance(args);
21584 }
21585
21586 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj = 0;
21588 wxWindow *arg1 = (wxWindow *) 0 ;
21589 int arg2 ;
21590 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21591 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21592 wxSize const &arg4_defvalue = wxDefaultSize ;
21593 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21594 long arg5 = (long) 0 ;
21595 wxString const &arg6_defvalue = wxPyEmptyString ;
21596 wxString *arg6 = (wxString *) &arg6_defvalue ;
21597 wxChoicebook *result = 0 ;
21598 void *argp1 = 0 ;
21599 int res1 = 0 ;
21600 int val2 ;
21601 int ecode2 = 0 ;
21602 wxPoint temp3 ;
21603 wxSize temp4 ;
21604 long val5 ;
21605 int ecode5 = 0 ;
21606 bool temp6 = false ;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 PyObject * obj2 = 0 ;
21610 PyObject * obj3 = 0 ;
21611 PyObject * obj4 = 0 ;
21612 PyObject * obj5 = 0 ;
21613 char * kwnames[] = {
21614 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21615 };
21616
21617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21619 if (!SWIG_IsOK(res1)) {
21620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21621 }
21622 arg1 = reinterpret_cast< wxWindow * >(argp1);
21623 ecode2 = SWIG_AsVal_int(obj1, &val2);
21624 if (!SWIG_IsOK(ecode2)) {
21625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21626 }
21627 arg2 = static_cast< int >(val2);
21628 if (obj2) {
21629 {
21630 arg3 = &temp3;
21631 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21632 }
21633 }
21634 if (obj3) {
21635 {
21636 arg4 = &temp4;
21637 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21638 }
21639 }
21640 if (obj4) {
21641 ecode5 = SWIG_AsVal_long(obj4, &val5);
21642 if (!SWIG_IsOK(ecode5)) {
21643 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21644 }
21645 arg5 = static_cast< long >(val5);
21646 }
21647 if (obj5) {
21648 {
21649 arg6 = wxString_in_helper(obj5);
21650 if (arg6 == NULL) SWIG_fail;
21651 temp6 = true;
21652 }
21653 }
21654 {
21655 if (!wxPyCheckForApp()) SWIG_fail;
21656 PyThreadState* __tstate = wxPyBeginAllowThreads();
21657 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21658 wxPyEndAllowThreads(__tstate);
21659 if (PyErr_Occurred()) SWIG_fail;
21660 }
21661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21662 {
21663 if (temp6)
21664 delete arg6;
21665 }
21666 return resultobj;
21667 fail:
21668 {
21669 if (temp6)
21670 delete arg6;
21671 }
21672 return NULL;
21673 }
21674
21675
21676 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21677 PyObject *resultobj = 0;
21678 wxChoicebook *result = 0 ;
21679
21680 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21681 {
21682 if (!wxPyCheckForApp()) SWIG_fail;
21683 PyThreadState* __tstate = wxPyBeginAllowThreads();
21684 result = (wxChoicebook *)new wxChoicebook();
21685 wxPyEndAllowThreads(__tstate);
21686 if (PyErr_Occurred()) SWIG_fail;
21687 }
21688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21689 return resultobj;
21690 fail:
21691 return NULL;
21692 }
21693
21694
21695 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21696 PyObject *resultobj = 0;
21697 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21698 wxWindow *arg2 = (wxWindow *) 0 ;
21699 int arg3 ;
21700 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21701 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21702 wxSize const &arg5_defvalue = wxDefaultSize ;
21703 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21704 long arg6 = (long) 0 ;
21705 wxString const &arg7_defvalue = wxPyEmptyString ;
21706 wxString *arg7 = (wxString *) &arg7_defvalue ;
21707 bool result;
21708 void *argp1 = 0 ;
21709 int res1 = 0 ;
21710 void *argp2 = 0 ;
21711 int res2 = 0 ;
21712 int val3 ;
21713 int ecode3 = 0 ;
21714 wxPoint temp4 ;
21715 wxSize temp5 ;
21716 long val6 ;
21717 int ecode6 = 0 ;
21718 bool temp7 = false ;
21719 PyObject * obj0 = 0 ;
21720 PyObject * obj1 = 0 ;
21721 PyObject * obj2 = 0 ;
21722 PyObject * obj3 = 0 ;
21723 PyObject * obj4 = 0 ;
21724 PyObject * obj5 = 0 ;
21725 PyObject * obj6 = 0 ;
21726 char * kwnames[] = {
21727 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21728 };
21729
21730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21732 if (!SWIG_IsOK(res1)) {
21733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21734 }
21735 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21737 if (!SWIG_IsOK(res2)) {
21738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21739 }
21740 arg2 = reinterpret_cast< wxWindow * >(argp2);
21741 ecode3 = SWIG_AsVal_int(obj2, &val3);
21742 if (!SWIG_IsOK(ecode3)) {
21743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21744 }
21745 arg3 = static_cast< int >(val3);
21746 if (obj3) {
21747 {
21748 arg4 = &temp4;
21749 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21750 }
21751 }
21752 if (obj4) {
21753 {
21754 arg5 = &temp5;
21755 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21756 }
21757 }
21758 if (obj5) {
21759 ecode6 = SWIG_AsVal_long(obj5, &val6);
21760 if (!SWIG_IsOK(ecode6)) {
21761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21762 }
21763 arg6 = static_cast< long >(val6);
21764 }
21765 if (obj6) {
21766 {
21767 arg7 = wxString_in_helper(obj6);
21768 if (arg7 == NULL) SWIG_fail;
21769 temp7 = true;
21770 }
21771 }
21772 {
21773 PyThreadState* __tstate = wxPyBeginAllowThreads();
21774 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21775 wxPyEndAllowThreads(__tstate);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 {
21779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21780 }
21781 {
21782 if (temp7)
21783 delete arg7;
21784 }
21785 return resultobj;
21786 fail:
21787 {
21788 if (temp7)
21789 delete arg7;
21790 }
21791 return NULL;
21792 }
21793
21794
21795 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21796 PyObject *resultobj = 0;
21797 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21798 wxChoice *result = 0 ;
21799 void *argp1 = 0 ;
21800 int res1 = 0 ;
21801 PyObject *swig_obj[1] ;
21802
21803 if (!args) SWIG_fail;
21804 swig_obj[0] = args;
21805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21806 if (!SWIG_IsOK(res1)) {
21807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21808 }
21809 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21813 wxPyEndAllowThreads(__tstate);
21814 if (PyErr_Occurred()) SWIG_fail;
21815 }
21816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21817 return resultobj;
21818 fail:
21819 return NULL;
21820 }
21821
21822
21823 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21824 PyObject *obj;
21825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21826 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21827 return SWIG_Py_Void();
21828 }
21829
21830 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21831 return SWIG_Python_InitShadowInstance(args);
21832 }
21833
21834 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = 0;
21836 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21837 int arg2 = (int) 0 ;
21838 int arg3 = (int) -1 ;
21839 int arg4 = (int) -1 ;
21840 wxChoicebookEvent *result = 0 ;
21841 int val1 ;
21842 int ecode1 = 0 ;
21843 int val2 ;
21844 int ecode2 = 0 ;
21845 int val3 ;
21846 int ecode3 = 0 ;
21847 int val4 ;
21848 int ecode4 = 0 ;
21849 PyObject * obj0 = 0 ;
21850 PyObject * obj1 = 0 ;
21851 PyObject * obj2 = 0 ;
21852 PyObject * obj3 = 0 ;
21853 char * kwnames[] = {
21854 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21855 };
21856
21857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21858 if (obj0) {
21859 ecode1 = SWIG_AsVal_int(obj0, &val1);
21860 if (!SWIG_IsOK(ecode1)) {
21861 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21862 }
21863 arg1 = static_cast< wxEventType >(val1);
21864 }
21865 if (obj1) {
21866 ecode2 = SWIG_AsVal_int(obj1, &val2);
21867 if (!SWIG_IsOK(ecode2)) {
21868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21869 }
21870 arg2 = static_cast< int >(val2);
21871 }
21872 if (obj2) {
21873 ecode3 = SWIG_AsVal_int(obj2, &val3);
21874 if (!SWIG_IsOK(ecode3)) {
21875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21876 }
21877 arg3 = static_cast< int >(val3);
21878 }
21879 if (obj3) {
21880 ecode4 = SWIG_AsVal_int(obj3, &val4);
21881 if (!SWIG_IsOK(ecode4)) {
21882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21883 }
21884 arg4 = static_cast< int >(val4);
21885 }
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21893 return resultobj;
21894 fail:
21895 return NULL;
21896 }
21897
21898
21899 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21900 PyObject *obj;
21901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21902 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21903 return SWIG_Py_Void();
21904 }
21905
21906 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21907 return SWIG_Python_InitShadowInstance(args);
21908 }
21909
21910 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj = 0;
21912 wxWindow *arg1 = (wxWindow *) 0 ;
21913 int arg2 ;
21914 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21915 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21916 wxSize const &arg4_defvalue = wxDefaultSize ;
21917 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21918 long arg5 = (long) wxBK_DEFAULT ;
21919 wxString const &arg6_defvalue = wxPyEmptyString ;
21920 wxString *arg6 = (wxString *) &arg6_defvalue ;
21921 wxTreebook *result = 0 ;
21922 void *argp1 = 0 ;
21923 int res1 = 0 ;
21924 int val2 ;
21925 int ecode2 = 0 ;
21926 wxPoint temp3 ;
21927 wxSize temp4 ;
21928 long val5 ;
21929 int ecode5 = 0 ;
21930 bool temp6 = false ;
21931 PyObject * obj0 = 0 ;
21932 PyObject * obj1 = 0 ;
21933 PyObject * obj2 = 0 ;
21934 PyObject * obj3 = 0 ;
21935 PyObject * obj4 = 0 ;
21936 PyObject * obj5 = 0 ;
21937 char * kwnames[] = {
21938 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21939 };
21940
21941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21943 if (!SWIG_IsOK(res1)) {
21944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21945 }
21946 arg1 = reinterpret_cast< wxWindow * >(argp1);
21947 ecode2 = SWIG_AsVal_int(obj1, &val2);
21948 if (!SWIG_IsOK(ecode2)) {
21949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21950 }
21951 arg2 = static_cast< int >(val2);
21952 if (obj2) {
21953 {
21954 arg3 = &temp3;
21955 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21956 }
21957 }
21958 if (obj3) {
21959 {
21960 arg4 = &temp4;
21961 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21962 }
21963 }
21964 if (obj4) {
21965 ecode5 = SWIG_AsVal_long(obj4, &val5);
21966 if (!SWIG_IsOK(ecode5)) {
21967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21968 }
21969 arg5 = static_cast< long >(val5);
21970 }
21971 if (obj5) {
21972 {
21973 arg6 = wxString_in_helper(obj5);
21974 if (arg6 == NULL) SWIG_fail;
21975 temp6 = true;
21976 }
21977 }
21978 {
21979 if (!wxPyCheckForApp()) SWIG_fail;
21980 PyThreadState* __tstate = wxPyBeginAllowThreads();
21981 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21982 wxPyEndAllowThreads(__tstate);
21983 if (PyErr_Occurred()) SWIG_fail;
21984 }
21985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21986 {
21987 if (temp6)
21988 delete arg6;
21989 }
21990 return resultobj;
21991 fail:
21992 {
21993 if (temp6)
21994 delete arg6;
21995 }
21996 return NULL;
21997 }
21998
21999
22000 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22001 PyObject *resultobj = 0;
22002 wxTreebook *result = 0 ;
22003
22004 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22005 {
22006 if (!wxPyCheckForApp()) SWIG_fail;
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
22008 result = (wxTreebook *)new wxTreebook();
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22013 return resultobj;
22014 fail:
22015 return NULL;
22016 }
22017
22018
22019 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj = 0;
22021 wxTreebook *arg1 = (wxTreebook *) 0 ;
22022 wxWindow *arg2 = (wxWindow *) 0 ;
22023 int arg3 ;
22024 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22025 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22026 wxSize const &arg5_defvalue = wxDefaultSize ;
22027 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22028 long arg6 = (long) wxBK_DEFAULT ;
22029 wxString const &arg7_defvalue = wxPyEmptyString ;
22030 wxString *arg7 = (wxString *) &arg7_defvalue ;
22031 bool result;
22032 void *argp1 = 0 ;
22033 int res1 = 0 ;
22034 void *argp2 = 0 ;
22035 int res2 = 0 ;
22036 int val3 ;
22037 int ecode3 = 0 ;
22038 wxPoint temp4 ;
22039 wxSize temp5 ;
22040 long val6 ;
22041 int ecode6 = 0 ;
22042 bool temp7 = false ;
22043 PyObject * obj0 = 0 ;
22044 PyObject * obj1 = 0 ;
22045 PyObject * obj2 = 0 ;
22046 PyObject * obj3 = 0 ;
22047 PyObject * obj4 = 0 ;
22048 PyObject * obj5 = 0 ;
22049 PyObject * obj6 = 0 ;
22050 char * kwnames[] = {
22051 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22052 };
22053
22054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22056 if (!SWIG_IsOK(res1)) {
22057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22058 }
22059 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22060 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22061 if (!SWIG_IsOK(res2)) {
22062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22063 }
22064 arg2 = reinterpret_cast< wxWindow * >(argp2);
22065 ecode3 = SWIG_AsVal_int(obj2, &val3);
22066 if (!SWIG_IsOK(ecode3)) {
22067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22068 }
22069 arg3 = static_cast< int >(val3);
22070 if (obj3) {
22071 {
22072 arg4 = &temp4;
22073 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22074 }
22075 }
22076 if (obj4) {
22077 {
22078 arg5 = &temp5;
22079 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22080 }
22081 }
22082 if (obj5) {
22083 ecode6 = SWIG_AsVal_long(obj5, &val6);
22084 if (!SWIG_IsOK(ecode6)) {
22085 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22086 }
22087 arg6 = static_cast< long >(val6);
22088 }
22089 if (obj6) {
22090 {
22091 arg7 = wxString_in_helper(obj6);
22092 if (arg7 == NULL) SWIG_fail;
22093 temp7 = true;
22094 }
22095 }
22096 {
22097 PyThreadState* __tstate = wxPyBeginAllowThreads();
22098 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22099 wxPyEndAllowThreads(__tstate);
22100 if (PyErr_Occurred()) SWIG_fail;
22101 }
22102 {
22103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22104 }
22105 {
22106 if (temp7)
22107 delete arg7;
22108 }
22109 return resultobj;
22110 fail:
22111 {
22112 if (temp7)
22113 delete arg7;
22114 }
22115 return NULL;
22116 }
22117
22118
22119 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22120 PyObject *resultobj = 0;
22121 wxTreebook *arg1 = (wxTreebook *) 0 ;
22122 size_t arg2 ;
22123 wxWindow *arg3 = (wxWindow *) 0 ;
22124 wxString *arg4 = 0 ;
22125 bool arg5 = (bool) false ;
22126 int arg6 = (int) wxNOT_FOUND ;
22127 bool result;
22128 void *argp1 = 0 ;
22129 int res1 = 0 ;
22130 size_t val2 ;
22131 int ecode2 = 0 ;
22132 void *argp3 = 0 ;
22133 int res3 = 0 ;
22134 bool temp4 = false ;
22135 bool val5 ;
22136 int ecode5 = 0 ;
22137 int val6 ;
22138 int ecode6 = 0 ;
22139 PyObject * obj0 = 0 ;
22140 PyObject * obj1 = 0 ;
22141 PyObject * obj2 = 0 ;
22142 PyObject * obj3 = 0 ;
22143 PyObject * obj4 = 0 ;
22144 PyObject * obj5 = 0 ;
22145 char * kwnames[] = {
22146 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22147 };
22148
22149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22151 if (!SWIG_IsOK(res1)) {
22152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22153 }
22154 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22155 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22156 if (!SWIG_IsOK(ecode2)) {
22157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22158 }
22159 arg2 = static_cast< size_t >(val2);
22160 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22161 if (!SWIG_IsOK(res3)) {
22162 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22163 }
22164 arg3 = reinterpret_cast< wxWindow * >(argp3);
22165 {
22166 arg4 = wxString_in_helper(obj3);
22167 if (arg4 == NULL) SWIG_fail;
22168 temp4 = true;
22169 }
22170 if (obj4) {
22171 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22172 if (!SWIG_IsOK(ecode5)) {
22173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22174 }
22175 arg5 = static_cast< bool >(val5);
22176 }
22177 if (obj5) {
22178 ecode6 = SWIG_AsVal_int(obj5, &val6);
22179 if (!SWIG_IsOK(ecode6)) {
22180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22181 }
22182 arg6 = static_cast< int >(val6);
22183 }
22184 {
22185 PyThreadState* __tstate = wxPyBeginAllowThreads();
22186 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 {
22191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22192 }
22193 {
22194 if (temp4)
22195 delete arg4;
22196 }
22197 return resultobj;
22198 fail:
22199 {
22200 if (temp4)
22201 delete arg4;
22202 }
22203 return NULL;
22204 }
22205
22206
22207 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22208 PyObject *resultobj = 0;
22209 wxTreebook *arg1 = (wxTreebook *) 0 ;
22210 wxWindow *arg2 = (wxWindow *) 0 ;
22211 wxString *arg3 = 0 ;
22212 bool arg4 = (bool) false ;
22213 int arg5 = (int) wxNOT_FOUND ;
22214 bool result;
22215 void *argp1 = 0 ;
22216 int res1 = 0 ;
22217 void *argp2 = 0 ;
22218 int res2 = 0 ;
22219 bool temp3 = false ;
22220 bool val4 ;
22221 int ecode4 = 0 ;
22222 int val5 ;
22223 int ecode5 = 0 ;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 PyObject * obj2 = 0 ;
22227 PyObject * obj3 = 0 ;
22228 PyObject * obj4 = 0 ;
22229 char * kwnames[] = {
22230 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22231 };
22232
22233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22235 if (!SWIG_IsOK(res1)) {
22236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22237 }
22238 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22240 if (!SWIG_IsOK(res2)) {
22241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22242 }
22243 arg2 = reinterpret_cast< wxWindow * >(argp2);
22244 {
22245 arg3 = wxString_in_helper(obj2);
22246 if (arg3 == NULL) SWIG_fail;
22247 temp3 = true;
22248 }
22249 if (obj3) {
22250 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22251 if (!SWIG_IsOK(ecode4)) {
22252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22253 }
22254 arg4 = static_cast< bool >(val4);
22255 }
22256 if (obj4) {
22257 ecode5 = SWIG_AsVal_int(obj4, &val5);
22258 if (!SWIG_IsOK(ecode5)) {
22259 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22260 }
22261 arg5 = static_cast< int >(val5);
22262 }
22263 {
22264 PyThreadState* __tstate = wxPyBeginAllowThreads();
22265 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22266 wxPyEndAllowThreads(__tstate);
22267 if (PyErr_Occurred()) SWIG_fail;
22268 }
22269 {
22270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22271 }
22272 {
22273 if (temp3)
22274 delete arg3;
22275 }
22276 return resultobj;
22277 fail:
22278 {
22279 if (temp3)
22280 delete arg3;
22281 }
22282 return NULL;
22283 }
22284
22285
22286 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj = 0;
22288 wxTreebook *arg1 = (wxTreebook *) 0 ;
22289 size_t arg2 ;
22290 bool result;
22291 void *argp1 = 0 ;
22292 int res1 = 0 ;
22293 size_t val2 ;
22294 int ecode2 = 0 ;
22295 PyObject * obj0 = 0 ;
22296 PyObject * obj1 = 0 ;
22297 char * kwnames[] = {
22298 (char *) "self",(char *) "pos", NULL
22299 };
22300
22301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22303 if (!SWIG_IsOK(res1)) {
22304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22305 }
22306 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22307 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22308 if (!SWIG_IsOK(ecode2)) {
22309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22310 }
22311 arg2 = static_cast< size_t >(val2);
22312 {
22313 PyThreadState* __tstate = wxPyBeginAllowThreads();
22314 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 {
22319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22320 }
22321 return resultobj;
22322 fail:
22323 return NULL;
22324 }
22325
22326
22327 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj = 0;
22329 wxTreebook *arg1 = (wxTreebook *) 0 ;
22330 size_t arg2 ;
22331 bool arg3 = (bool) true ;
22332 bool result;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 size_t val2 ;
22336 int ecode2 = 0 ;
22337 bool val3 ;
22338 int ecode3 = 0 ;
22339 PyObject * obj0 = 0 ;
22340 PyObject * obj1 = 0 ;
22341 PyObject * obj2 = 0 ;
22342 char * kwnames[] = {
22343 (char *) "self",(char *) "pos",(char *) "expand", NULL
22344 };
22345
22346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22348 if (!SWIG_IsOK(res1)) {
22349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22350 }
22351 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22352 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22353 if (!SWIG_IsOK(ecode2)) {
22354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22355 }
22356 arg2 = static_cast< size_t >(val2);
22357 if (obj2) {
22358 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22359 if (!SWIG_IsOK(ecode3)) {
22360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22361 }
22362 arg3 = static_cast< bool >(val3);
22363 }
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 {
22371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22372 }
22373 return resultobj;
22374 fail:
22375 return NULL;
22376 }
22377
22378
22379 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22380 PyObject *resultobj = 0;
22381 wxTreebook *arg1 = (wxTreebook *) 0 ;
22382 size_t arg2 ;
22383 bool result;
22384 void *argp1 = 0 ;
22385 int res1 = 0 ;
22386 size_t val2 ;
22387 int ecode2 = 0 ;
22388 PyObject * obj0 = 0 ;
22389 PyObject * obj1 = 0 ;
22390 char * kwnames[] = {
22391 (char *) "self",(char *) "pos", NULL
22392 };
22393
22394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22396 if (!SWIG_IsOK(res1)) {
22397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22398 }
22399 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22400 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22401 if (!SWIG_IsOK(ecode2)) {
22402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22403 }
22404 arg2 = static_cast< size_t >(val2);
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 result = (bool)(arg1)->CollapseNode(arg2);
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 {
22412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22413 }
22414 return resultobj;
22415 fail:
22416 return NULL;
22417 }
22418
22419
22420 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22421 PyObject *resultobj = 0;
22422 wxTreebook *arg1 = (wxTreebook *) 0 ;
22423 size_t arg2 ;
22424 int result;
22425 void *argp1 = 0 ;
22426 int res1 = 0 ;
22427 size_t val2 ;
22428 int ecode2 = 0 ;
22429 PyObject * obj0 = 0 ;
22430 PyObject * obj1 = 0 ;
22431 char * kwnames[] = {
22432 (char *) "self",(char *) "pos", NULL
22433 };
22434
22435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22437 if (!SWIG_IsOK(res1)) {
22438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22439 }
22440 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22441 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22442 if (!SWIG_IsOK(ecode2)) {
22443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22444 }
22445 arg2 = static_cast< size_t >(val2);
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 resultobj = SWIG_From_int(static_cast< int >(result));
22453 return resultobj;
22454 fail:
22455 return NULL;
22456 }
22457
22458
22459 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22460 PyObject *resultobj = 0;
22461 wxTreebook *arg1 = (wxTreebook *) 0 ;
22462 wxPyTreeCtrl *result = 0 ;
22463 void *argp1 = 0 ;
22464 int res1 = 0 ;
22465 PyObject *swig_obj[1] ;
22466
22467 if (!args) SWIG_fail;
22468 swig_obj[0] = args;
22469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22470 if (!SWIG_IsOK(res1)) {
22471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22472 }
22473 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
22476 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 {
22481 resultobj = wxPyMake_wxObject(result, (bool)0);
22482 }
22483 return resultobj;
22484 fail:
22485 return NULL;
22486 }
22487
22488
22489 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22490 PyObject *obj;
22491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22492 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22493 return SWIG_Py_Void();
22494 }
22495
22496 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22497 return SWIG_Python_InitShadowInstance(args);
22498 }
22499
22500 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22501 PyObject *resultobj = 0;
22502 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22503 int arg2 = (int) 0 ;
22504 int arg3 = (int) wxNOT_FOUND ;
22505 int arg4 = (int) wxNOT_FOUND ;
22506 wxTreebookEvent *result = 0 ;
22507 int val1 ;
22508 int ecode1 = 0 ;
22509 int val2 ;
22510 int ecode2 = 0 ;
22511 int val3 ;
22512 int ecode3 = 0 ;
22513 int val4 ;
22514 int ecode4 = 0 ;
22515 PyObject * obj0 = 0 ;
22516 PyObject * obj1 = 0 ;
22517 PyObject * obj2 = 0 ;
22518 PyObject * obj3 = 0 ;
22519 char * kwnames[] = {
22520 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22521 };
22522
22523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22524 if (obj0) {
22525 ecode1 = SWIG_AsVal_int(obj0, &val1);
22526 if (!SWIG_IsOK(ecode1)) {
22527 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22528 }
22529 arg1 = static_cast< wxEventType >(val1);
22530 }
22531 if (obj1) {
22532 ecode2 = SWIG_AsVal_int(obj1, &val2);
22533 if (!SWIG_IsOK(ecode2)) {
22534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22535 }
22536 arg2 = static_cast< int >(val2);
22537 }
22538 if (obj2) {
22539 ecode3 = SWIG_AsVal_int(obj2, &val3);
22540 if (!SWIG_IsOK(ecode3)) {
22541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22542 }
22543 arg3 = static_cast< int >(val3);
22544 }
22545 if (obj3) {
22546 ecode4 = SWIG_AsVal_int(obj3, &val4);
22547 if (!SWIG_IsOK(ecode4)) {
22548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22549 }
22550 arg4 = static_cast< int >(val4);
22551 }
22552 {
22553 PyThreadState* __tstate = wxPyBeginAllowThreads();
22554 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22555 wxPyEndAllowThreads(__tstate);
22556 if (PyErr_Occurred()) SWIG_fail;
22557 }
22558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22559 return resultobj;
22560 fail:
22561 return NULL;
22562 }
22563
22564
22565 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22566 PyObject *obj;
22567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22568 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22569 return SWIG_Py_Void();
22570 }
22571
22572 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22573 return SWIG_Python_InitShadowInstance(args);
22574 }
22575
22576 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22577 PyObject *resultobj = 0;
22578 wxWindow *arg1 = (wxWindow *) 0 ;
22579 int arg2 ;
22580 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22581 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22582 wxSize const &arg4_defvalue = wxDefaultSize ;
22583 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22584 long arg5 = (long) wxBK_DEFAULT ;
22585 wxString const &arg6_defvalue = wxPyEmptyString ;
22586 wxString *arg6 = (wxString *) &arg6_defvalue ;
22587 wxToolbook *result = 0 ;
22588 void *argp1 = 0 ;
22589 int res1 = 0 ;
22590 int val2 ;
22591 int ecode2 = 0 ;
22592 wxPoint temp3 ;
22593 wxSize temp4 ;
22594 long val5 ;
22595 int ecode5 = 0 ;
22596 bool temp6 = false ;
22597 PyObject * obj0 = 0 ;
22598 PyObject * obj1 = 0 ;
22599 PyObject * obj2 = 0 ;
22600 PyObject * obj3 = 0 ;
22601 PyObject * obj4 = 0 ;
22602 PyObject * obj5 = 0 ;
22603 char * kwnames[] = {
22604 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22605 };
22606
22607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22609 if (!SWIG_IsOK(res1)) {
22610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22611 }
22612 arg1 = reinterpret_cast< wxWindow * >(argp1);
22613 ecode2 = SWIG_AsVal_int(obj1, &val2);
22614 if (!SWIG_IsOK(ecode2)) {
22615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22616 }
22617 arg2 = static_cast< int >(val2);
22618 if (obj2) {
22619 {
22620 arg3 = &temp3;
22621 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22622 }
22623 }
22624 if (obj3) {
22625 {
22626 arg4 = &temp4;
22627 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22628 }
22629 }
22630 if (obj4) {
22631 ecode5 = SWIG_AsVal_long(obj4, &val5);
22632 if (!SWIG_IsOK(ecode5)) {
22633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22634 }
22635 arg5 = static_cast< long >(val5);
22636 }
22637 if (obj5) {
22638 {
22639 arg6 = wxString_in_helper(obj5);
22640 if (arg6 == NULL) SWIG_fail;
22641 temp6 = true;
22642 }
22643 }
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22647 wxPyEndAllowThreads(__tstate);
22648 if (PyErr_Occurred()) SWIG_fail;
22649 }
22650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22651 {
22652 if (temp6)
22653 delete arg6;
22654 }
22655 return resultobj;
22656 fail:
22657 {
22658 if (temp6)
22659 delete arg6;
22660 }
22661 return NULL;
22662 }
22663
22664
22665 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22666 PyObject *resultobj = 0;
22667 wxToolbook *result = 0 ;
22668
22669 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 result = (wxToolbook *)new wxToolbook();
22673 wxPyEndAllowThreads(__tstate);
22674 if (PyErr_Occurred()) SWIG_fail;
22675 }
22676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22677 return resultobj;
22678 fail:
22679 return NULL;
22680 }
22681
22682
22683 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22684 PyObject *resultobj = 0;
22685 wxToolbook *arg1 = (wxToolbook *) 0 ;
22686 wxWindow *arg2 = (wxWindow *) 0 ;
22687 int arg3 ;
22688 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22689 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22690 wxSize const &arg5_defvalue = wxDefaultSize ;
22691 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22692 long arg6 = (long) 0 ;
22693 wxString const &arg7_defvalue = wxEmptyString ;
22694 wxString *arg7 = (wxString *) &arg7_defvalue ;
22695 bool result;
22696 void *argp1 = 0 ;
22697 int res1 = 0 ;
22698 void *argp2 = 0 ;
22699 int res2 = 0 ;
22700 int val3 ;
22701 int ecode3 = 0 ;
22702 wxPoint temp4 ;
22703 wxSize temp5 ;
22704 long val6 ;
22705 int ecode6 = 0 ;
22706 bool temp7 = false ;
22707 PyObject * obj0 = 0 ;
22708 PyObject * obj1 = 0 ;
22709 PyObject * obj2 = 0 ;
22710 PyObject * obj3 = 0 ;
22711 PyObject * obj4 = 0 ;
22712 PyObject * obj5 = 0 ;
22713 PyObject * obj6 = 0 ;
22714 char * kwnames[] = {
22715 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22716 };
22717
22718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22720 if (!SWIG_IsOK(res1)) {
22721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22722 }
22723 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22725 if (!SWIG_IsOK(res2)) {
22726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22727 }
22728 arg2 = reinterpret_cast< wxWindow * >(argp2);
22729 ecode3 = SWIG_AsVal_int(obj2, &val3);
22730 if (!SWIG_IsOK(ecode3)) {
22731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22732 }
22733 arg3 = static_cast< int >(val3);
22734 if (obj3) {
22735 {
22736 arg4 = &temp4;
22737 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22738 }
22739 }
22740 if (obj4) {
22741 {
22742 arg5 = &temp5;
22743 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22744 }
22745 }
22746 if (obj5) {
22747 ecode6 = SWIG_AsVal_long(obj5, &val6);
22748 if (!SWIG_IsOK(ecode6)) {
22749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22750 }
22751 arg6 = static_cast< long >(val6);
22752 }
22753 if (obj6) {
22754 {
22755 arg7 = wxString_in_helper(obj6);
22756 if (arg7 == NULL) SWIG_fail;
22757 temp7 = true;
22758 }
22759 }
22760 {
22761 PyThreadState* __tstate = wxPyBeginAllowThreads();
22762 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22763 wxPyEndAllowThreads(__tstate);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 }
22766 {
22767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22768 }
22769 {
22770 if (temp7)
22771 delete arg7;
22772 }
22773 return resultobj;
22774 fail:
22775 {
22776 if (temp7)
22777 delete arg7;
22778 }
22779 return NULL;
22780 }
22781
22782
22783 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22784 PyObject *resultobj = 0;
22785 wxToolbook *arg1 = (wxToolbook *) 0 ;
22786 wxToolBarBase *result = 0 ;
22787 void *argp1 = 0 ;
22788 int res1 = 0 ;
22789 PyObject *swig_obj[1] ;
22790
22791 if (!args) SWIG_fail;
22792 swig_obj[0] = args;
22793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22794 if (!SWIG_IsOK(res1)) {
22795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22796 }
22797 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22798 {
22799 PyThreadState* __tstate = wxPyBeginAllowThreads();
22800 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22801 wxPyEndAllowThreads(__tstate);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 }
22804 {
22805 resultobj = wxPyMake_wxObject(result, (bool)0);
22806 }
22807 return resultobj;
22808 fail:
22809 return NULL;
22810 }
22811
22812
22813 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22814 PyObject *resultobj = 0;
22815 wxToolbook *arg1 = (wxToolbook *) 0 ;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 PyObject *swig_obj[1] ;
22819
22820 if (!args) SWIG_fail;
22821 swig_obj[0] = args;
22822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22825 }
22826 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 (arg1)->Realize();
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 resultobj = SWIG_Py_Void();
22834 return resultobj;
22835 fail:
22836 return NULL;
22837 }
22838
22839
22840 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22841 PyObject *obj;
22842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22843 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22844 return SWIG_Py_Void();
22845 }
22846
22847 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22848 return SWIG_Python_InitShadowInstance(args);
22849 }
22850
22851 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22854 int arg2 = (int) 0 ;
22855 int arg3 = (int) wxNOT_FOUND ;
22856 int arg4 = (int) wxNOT_FOUND ;
22857 wxToolbookEvent *result = 0 ;
22858 int val1 ;
22859 int ecode1 = 0 ;
22860 int val2 ;
22861 int ecode2 = 0 ;
22862 int val3 ;
22863 int ecode3 = 0 ;
22864 int val4 ;
22865 int ecode4 = 0 ;
22866 PyObject * obj0 = 0 ;
22867 PyObject * obj1 = 0 ;
22868 PyObject * obj2 = 0 ;
22869 PyObject * obj3 = 0 ;
22870 char * kwnames[] = {
22871 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22872 };
22873
22874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22875 if (obj0) {
22876 ecode1 = SWIG_AsVal_int(obj0, &val1);
22877 if (!SWIG_IsOK(ecode1)) {
22878 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22879 }
22880 arg1 = static_cast< wxEventType >(val1);
22881 }
22882 if (obj1) {
22883 ecode2 = SWIG_AsVal_int(obj1, &val2);
22884 if (!SWIG_IsOK(ecode2)) {
22885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22886 }
22887 arg2 = static_cast< int >(val2);
22888 }
22889 if (obj2) {
22890 ecode3 = SWIG_AsVal_int(obj2, &val3);
22891 if (!SWIG_IsOK(ecode3)) {
22892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22893 }
22894 arg3 = static_cast< int >(val3);
22895 }
22896 if (obj3) {
22897 ecode4 = SWIG_AsVal_int(obj3, &val4);
22898 if (!SWIG_IsOK(ecode4)) {
22899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22900 }
22901 arg4 = static_cast< int >(val4);
22902 }
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22910 return resultobj;
22911 fail:
22912 return NULL;
22913 }
22914
22915
22916 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22917 PyObject *obj;
22918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22919 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22920 return SWIG_Py_Void();
22921 }
22922
22923 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22924 return SWIG_Python_InitShadowInstance(args);
22925 }
22926
22927 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22928 PyObject *resultobj = 0;
22929 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22930 int result;
22931 void *argp1 = 0 ;
22932 int res1 = 0 ;
22933 PyObject *swig_obj[1] ;
22934
22935 if (!args) SWIG_fail;
22936 swig_obj[0] = args;
22937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22938 if (!SWIG_IsOK(res1)) {
22939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22940 }
22941 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22942 {
22943 PyThreadState* __tstate = wxPyBeginAllowThreads();
22944 result = (int)(arg1)->GetId();
22945 wxPyEndAllowThreads(__tstate);
22946 if (PyErr_Occurred()) SWIG_fail;
22947 }
22948 resultobj = SWIG_From_int(static_cast< int >(result));
22949 return resultobj;
22950 fail:
22951 return NULL;
22952 }
22953
22954
22955 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22956 PyObject *resultobj = 0;
22957 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22958 wxControl *result = 0 ;
22959 void *argp1 = 0 ;
22960 int res1 = 0 ;
22961 PyObject *swig_obj[1] ;
22962
22963 if (!args) SWIG_fail;
22964 swig_obj[0] = args;
22965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22966 if (!SWIG_IsOK(res1)) {
22967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22968 }
22969 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22970 {
22971 PyThreadState* __tstate = wxPyBeginAllowThreads();
22972 result = (wxControl *)(arg1)->GetControl();
22973 wxPyEndAllowThreads(__tstate);
22974 if (PyErr_Occurred()) SWIG_fail;
22975 }
22976 {
22977 resultobj = wxPyMake_wxObject(result, 0);
22978 }
22979 return resultobj;
22980 fail:
22981 return NULL;
22982 }
22983
22984
22985 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22986 PyObject *resultobj = 0;
22987 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22988 wxToolBarBase *result = 0 ;
22989 void *argp1 = 0 ;
22990 int res1 = 0 ;
22991 PyObject *swig_obj[1] ;
22992
22993 if (!args) SWIG_fail;
22994 swig_obj[0] = args;
22995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22996 if (!SWIG_IsOK(res1)) {
22997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22998 }
22999 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23000 {
23001 PyThreadState* __tstate = wxPyBeginAllowThreads();
23002 result = (wxToolBarBase *)(arg1)->GetToolBar();
23003 wxPyEndAllowThreads(__tstate);
23004 if (PyErr_Occurred()) SWIG_fail;
23005 }
23006 {
23007 resultobj = wxPyMake_wxObject(result, (bool)0);
23008 }
23009 return resultobj;
23010 fail:
23011 return NULL;
23012 }
23013
23014
23015 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23016 PyObject *resultobj = 0;
23017 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23018 int result;
23019 void *argp1 = 0 ;
23020 int res1 = 0 ;
23021 PyObject *swig_obj[1] ;
23022
23023 if (!args) SWIG_fail;
23024 swig_obj[0] = args;
23025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23026 if (!SWIG_IsOK(res1)) {
23027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23028 }
23029 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23030 {
23031 PyThreadState* __tstate = wxPyBeginAllowThreads();
23032 result = (int)(arg1)->IsButton();
23033 wxPyEndAllowThreads(__tstate);
23034 if (PyErr_Occurred()) SWIG_fail;
23035 }
23036 resultobj = SWIG_From_int(static_cast< int >(result));
23037 return resultobj;
23038 fail:
23039 return NULL;
23040 }
23041
23042
23043 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23044 PyObject *resultobj = 0;
23045 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23046 int result;
23047 void *argp1 = 0 ;
23048 int res1 = 0 ;
23049 PyObject *swig_obj[1] ;
23050
23051 if (!args) SWIG_fail;
23052 swig_obj[0] = args;
23053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23054 if (!SWIG_IsOK(res1)) {
23055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23056 }
23057 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23058 {
23059 PyThreadState* __tstate = wxPyBeginAllowThreads();
23060 result = (int)(arg1)->IsControl();
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 resultobj = SWIG_From_int(static_cast< int >(result));
23065 return resultobj;
23066 fail:
23067 return NULL;
23068 }
23069
23070
23071 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23072 PyObject *resultobj = 0;
23073 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23074 int result;
23075 void *argp1 = 0 ;
23076 int res1 = 0 ;
23077 PyObject *swig_obj[1] ;
23078
23079 if (!args) SWIG_fail;
23080 swig_obj[0] = args;
23081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23082 if (!SWIG_IsOK(res1)) {
23083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23084 }
23085 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 result = (int)(arg1)->IsSeparator();
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 resultobj = SWIG_From_int(static_cast< int >(result));
23093 return resultobj;
23094 fail:
23095 return NULL;
23096 }
23097
23098
23099 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23100 PyObject *resultobj = 0;
23101 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23102 int result;
23103 void *argp1 = 0 ;
23104 int res1 = 0 ;
23105 PyObject *swig_obj[1] ;
23106
23107 if (!args) SWIG_fail;
23108 swig_obj[0] = args;
23109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23110 if (!SWIG_IsOK(res1)) {
23111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23112 }
23113 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23114 {
23115 PyThreadState* __tstate = wxPyBeginAllowThreads();
23116 result = (int)(arg1)->GetStyle();
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 resultobj = SWIG_From_int(static_cast< int >(result));
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23128 PyObject *resultobj = 0;
23129 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23130 wxItemKind result;
23131 void *argp1 = 0 ;
23132 int res1 = 0 ;
23133 PyObject *swig_obj[1] ;
23134
23135 if (!args) SWIG_fail;
23136 swig_obj[0] = args;
23137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23138 if (!SWIG_IsOK(res1)) {
23139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23140 }
23141 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23142 {
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 result = (wxItemKind)(arg1)->GetKind();
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_From_int(static_cast< int >(result));
23149 return resultobj;
23150 fail:
23151 return NULL;
23152 }
23153
23154
23155 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23156 PyObject *resultobj = 0;
23157 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23158 bool result;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 PyObject *swig_obj[1] ;
23162
23163 if (!args) SWIG_fail;
23164 swig_obj[0] = args;
23165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23168 }
23169 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23170 {
23171 PyThreadState* __tstate = wxPyBeginAllowThreads();
23172 result = (bool)(arg1)->IsEnabled();
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 {
23177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23178 }
23179 return resultobj;
23180 fail:
23181 return NULL;
23182 }
23183
23184
23185 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23186 PyObject *resultobj = 0;
23187 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23188 bool result;
23189 void *argp1 = 0 ;
23190 int res1 = 0 ;
23191 PyObject *swig_obj[1] ;
23192
23193 if (!args) SWIG_fail;
23194 swig_obj[0] = args;
23195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23196 if (!SWIG_IsOK(res1)) {
23197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23198 }
23199 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 result = (bool)(arg1)->IsToggled();
23203 wxPyEndAllowThreads(__tstate);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 }
23206 {
23207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23208 }
23209 return resultobj;
23210 fail:
23211 return NULL;
23212 }
23213
23214
23215 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23216 PyObject *resultobj = 0;
23217 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23218 bool result;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 PyObject *swig_obj[1] ;
23222
23223 if (!args) SWIG_fail;
23224 swig_obj[0] = args;
23225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23228 }
23229 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23230 {
23231 PyThreadState* __tstate = wxPyBeginAllowThreads();
23232 result = (bool)(arg1)->CanBeToggled();
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 {
23237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23238 }
23239 return resultobj;
23240 fail:
23241 return NULL;
23242 }
23243
23244
23245 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23246 PyObject *resultobj = 0;
23247 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23248 wxBitmap *result = 0 ;
23249 void *argp1 = 0 ;
23250 int res1 = 0 ;
23251 PyObject *swig_obj[1] ;
23252
23253 if (!args) SWIG_fail;
23254 swig_obj[0] = args;
23255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23258 }
23259 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 {
23263 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23264 result = (wxBitmap *) &_result_ref;
23265 }
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 {
23270 wxBitmap* resultptr = new wxBitmap(*result);
23271 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23272 }
23273 return resultobj;
23274 fail:
23275 return NULL;
23276 }
23277
23278
23279 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23280 PyObject *resultobj = 0;
23281 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23282 wxBitmap *result = 0 ;
23283 void *argp1 = 0 ;
23284 int res1 = 0 ;
23285 PyObject *swig_obj[1] ;
23286
23287 if (!args) SWIG_fail;
23288 swig_obj[0] = args;
23289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23290 if (!SWIG_IsOK(res1)) {
23291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23292 }
23293 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23294 {
23295 PyThreadState* __tstate = wxPyBeginAllowThreads();
23296 {
23297 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23298 result = (wxBitmap *) &_result_ref;
23299 }
23300 wxPyEndAllowThreads(__tstate);
23301 if (PyErr_Occurred()) SWIG_fail;
23302 }
23303 {
23304 wxBitmap* resultptr = new wxBitmap(*result);
23305 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23306 }
23307 return resultobj;
23308 fail:
23309 return NULL;
23310 }
23311
23312
23313 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23314 PyObject *resultobj = 0;
23315 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23316 wxBitmap result;
23317 void *argp1 = 0 ;
23318 int res1 = 0 ;
23319 PyObject *swig_obj[1] ;
23320
23321 if (!args) SWIG_fail;
23322 swig_obj[0] = args;
23323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23324 if (!SWIG_IsOK(res1)) {
23325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23326 }
23327 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23328 {
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 result = (arg1)->GetBitmap();
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23335 return resultobj;
23336 fail:
23337 return NULL;
23338 }
23339
23340
23341 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342 PyObject *resultobj = 0;
23343 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23344 wxString result;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 PyObject *swig_obj[1] ;
23348
23349 if (!args) SWIG_fail;
23350 swig_obj[0] = args;
23351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23352 if (!SWIG_IsOK(res1)) {
23353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23354 }
23355 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23356 {
23357 PyThreadState* __tstate = wxPyBeginAllowThreads();
23358 result = (arg1)->GetLabel();
23359 wxPyEndAllowThreads(__tstate);
23360 if (PyErr_Occurred()) SWIG_fail;
23361 }
23362 {
23363 #if wxUSE_UNICODE
23364 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23365 #else
23366 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23367 #endif
23368 }
23369 return resultobj;
23370 fail:
23371 return NULL;
23372 }
23373
23374
23375 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23376 PyObject *resultobj = 0;
23377 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23378 wxString result;
23379 void *argp1 = 0 ;
23380 int res1 = 0 ;
23381 PyObject *swig_obj[1] ;
23382
23383 if (!args) SWIG_fail;
23384 swig_obj[0] = args;
23385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23386 if (!SWIG_IsOK(res1)) {
23387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23388 }
23389 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23390 {
23391 PyThreadState* __tstate = wxPyBeginAllowThreads();
23392 result = (arg1)->GetShortHelp();
23393 wxPyEndAllowThreads(__tstate);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 }
23396 {
23397 #if wxUSE_UNICODE
23398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23399 #else
23400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23401 #endif
23402 }
23403 return resultobj;
23404 fail:
23405 return NULL;
23406 }
23407
23408
23409 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23410 PyObject *resultobj = 0;
23411 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23412 wxString result;
23413 void *argp1 = 0 ;
23414 int res1 = 0 ;
23415 PyObject *swig_obj[1] ;
23416
23417 if (!args) SWIG_fail;
23418 swig_obj[0] = args;
23419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23420 if (!SWIG_IsOK(res1)) {
23421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23422 }
23423 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23424 {
23425 PyThreadState* __tstate = wxPyBeginAllowThreads();
23426 result = (arg1)->GetLongHelp();
23427 wxPyEndAllowThreads(__tstate);
23428 if (PyErr_Occurred()) SWIG_fail;
23429 }
23430 {
23431 #if wxUSE_UNICODE
23432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23433 #else
23434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23435 #endif
23436 }
23437 return resultobj;
23438 fail:
23439 return NULL;
23440 }
23441
23442
23443 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23444 PyObject *resultobj = 0;
23445 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23446 bool arg2 ;
23447 bool result;
23448 void *argp1 = 0 ;
23449 int res1 = 0 ;
23450 bool val2 ;
23451 int ecode2 = 0 ;
23452 PyObject * obj0 = 0 ;
23453 PyObject * obj1 = 0 ;
23454 char * kwnames[] = {
23455 (char *) "self",(char *) "enable", NULL
23456 };
23457
23458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23460 if (!SWIG_IsOK(res1)) {
23461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23462 }
23463 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23464 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23465 if (!SWIG_IsOK(ecode2)) {
23466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23467 }
23468 arg2 = static_cast< bool >(val2);
23469 {
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 result = (bool)(arg1)->Enable(arg2);
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 {
23476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23477 }
23478 return resultobj;
23479 fail:
23480 return NULL;
23481 }
23482
23483
23484 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23485 PyObject *resultobj = 0;
23486 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23487 void *argp1 = 0 ;
23488 int res1 = 0 ;
23489 PyObject *swig_obj[1] ;
23490
23491 if (!args) SWIG_fail;
23492 swig_obj[0] = args;
23493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23494 if (!SWIG_IsOK(res1)) {
23495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23496 }
23497 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23498 {
23499 PyThreadState* __tstate = wxPyBeginAllowThreads();
23500 (arg1)->Toggle();
23501 wxPyEndAllowThreads(__tstate);
23502 if (PyErr_Occurred()) SWIG_fail;
23503 }
23504 resultobj = SWIG_Py_Void();
23505 return resultobj;
23506 fail:
23507 return NULL;
23508 }
23509
23510
23511 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23512 PyObject *resultobj = 0;
23513 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23514 bool arg2 ;
23515 bool result;
23516 void *argp1 = 0 ;
23517 int res1 = 0 ;
23518 bool val2 ;
23519 int ecode2 = 0 ;
23520 PyObject * obj0 = 0 ;
23521 PyObject * obj1 = 0 ;
23522 char * kwnames[] = {
23523 (char *) "self",(char *) "toggle", NULL
23524 };
23525
23526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23528 if (!SWIG_IsOK(res1)) {
23529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23530 }
23531 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23532 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23533 if (!SWIG_IsOK(ecode2)) {
23534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23535 }
23536 arg2 = static_cast< bool >(val2);
23537 {
23538 PyThreadState* __tstate = wxPyBeginAllowThreads();
23539 result = (bool)(arg1)->SetToggle(arg2);
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 {
23544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23545 }
23546 return resultobj;
23547 fail:
23548 return NULL;
23549 }
23550
23551
23552 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23553 PyObject *resultobj = 0;
23554 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23555 wxString *arg2 = 0 ;
23556 bool result;
23557 void *argp1 = 0 ;
23558 int res1 = 0 ;
23559 bool temp2 = false ;
23560 PyObject * obj0 = 0 ;
23561 PyObject * obj1 = 0 ;
23562 char * kwnames[] = {
23563 (char *) "self",(char *) "help", NULL
23564 };
23565
23566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23568 if (!SWIG_IsOK(res1)) {
23569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23570 }
23571 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23572 {
23573 arg2 = wxString_in_helper(obj1);
23574 if (arg2 == NULL) SWIG_fail;
23575 temp2 = true;
23576 }
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 {
23584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23585 }
23586 {
23587 if (temp2)
23588 delete arg2;
23589 }
23590 return resultobj;
23591 fail:
23592 {
23593 if (temp2)
23594 delete arg2;
23595 }
23596 return NULL;
23597 }
23598
23599
23600 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23601 PyObject *resultobj = 0;
23602 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23603 wxString *arg2 = 0 ;
23604 bool result;
23605 void *argp1 = 0 ;
23606 int res1 = 0 ;
23607 bool temp2 = false ;
23608 PyObject * obj0 = 0 ;
23609 PyObject * obj1 = 0 ;
23610 char * kwnames[] = {
23611 (char *) "self",(char *) "help", NULL
23612 };
23613
23614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23618 }
23619 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23620 {
23621 arg2 = wxString_in_helper(obj1);
23622 if (arg2 == NULL) SWIG_fail;
23623 temp2 = true;
23624 }
23625 {
23626 PyThreadState* __tstate = wxPyBeginAllowThreads();
23627 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23628 wxPyEndAllowThreads(__tstate);
23629 if (PyErr_Occurred()) SWIG_fail;
23630 }
23631 {
23632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23633 }
23634 {
23635 if (temp2)
23636 delete arg2;
23637 }
23638 return resultobj;
23639 fail:
23640 {
23641 if (temp2)
23642 delete arg2;
23643 }
23644 return NULL;
23645 }
23646
23647
23648 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23649 PyObject *resultobj = 0;
23650 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23651 wxBitmap *arg2 = 0 ;
23652 void *argp1 = 0 ;
23653 int res1 = 0 ;
23654 void *argp2 = 0 ;
23655 int res2 = 0 ;
23656 PyObject * obj0 = 0 ;
23657 PyObject * obj1 = 0 ;
23658 char * kwnames[] = {
23659 (char *) "self",(char *) "bmp", NULL
23660 };
23661
23662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23664 if (!SWIG_IsOK(res1)) {
23665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23666 }
23667 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23669 if (!SWIG_IsOK(res2)) {
23670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23671 }
23672 if (!argp2) {
23673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23674 }
23675 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23676 {
23677 PyThreadState* __tstate = wxPyBeginAllowThreads();
23678 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 resultobj = SWIG_Py_Void();
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj = 0;
23691 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23692 wxBitmap *arg2 = 0 ;
23693 void *argp1 = 0 ;
23694 int res1 = 0 ;
23695 void *argp2 = 0 ;
23696 int res2 = 0 ;
23697 PyObject * obj0 = 0 ;
23698 PyObject * obj1 = 0 ;
23699 char * kwnames[] = {
23700 (char *) "self",(char *) "bmp", NULL
23701 };
23702
23703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23705 if (!SWIG_IsOK(res1)) {
23706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23707 }
23708 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23710 if (!SWIG_IsOK(res2)) {
23711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23712 }
23713 if (!argp2) {
23714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23715 }
23716 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23717 {
23718 PyThreadState* __tstate = wxPyBeginAllowThreads();
23719 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23720 wxPyEndAllowThreads(__tstate);
23721 if (PyErr_Occurred()) SWIG_fail;
23722 }
23723 resultobj = SWIG_Py_Void();
23724 return resultobj;
23725 fail:
23726 return NULL;
23727 }
23728
23729
23730 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23731 PyObject *resultobj = 0;
23732 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23733 wxString *arg2 = 0 ;
23734 void *argp1 = 0 ;
23735 int res1 = 0 ;
23736 bool temp2 = false ;
23737 PyObject * obj0 = 0 ;
23738 PyObject * obj1 = 0 ;
23739 char * kwnames[] = {
23740 (char *) "self",(char *) "label", NULL
23741 };
23742
23743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23745 if (!SWIG_IsOK(res1)) {
23746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23747 }
23748 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23749 {
23750 arg2 = wxString_in_helper(obj1);
23751 if (arg2 == NULL) SWIG_fail;
23752 temp2 = true;
23753 }
23754 {
23755 PyThreadState* __tstate = wxPyBeginAllowThreads();
23756 (arg1)->SetLabel((wxString const &)*arg2);
23757 wxPyEndAllowThreads(__tstate);
23758 if (PyErr_Occurred()) SWIG_fail;
23759 }
23760 resultobj = SWIG_Py_Void();
23761 {
23762 if (temp2)
23763 delete arg2;
23764 }
23765 return resultobj;
23766 fail:
23767 {
23768 if (temp2)
23769 delete arg2;
23770 }
23771 return NULL;
23772 }
23773
23774
23775 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23776 PyObject *resultobj = 0;
23777 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23778 void *argp1 = 0 ;
23779 int res1 = 0 ;
23780 PyObject *swig_obj[1] ;
23781
23782 if (!args) SWIG_fail;
23783 swig_obj[0] = args;
23784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23785 if (!SWIG_IsOK(res1)) {
23786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23787 }
23788 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23789 {
23790 PyThreadState* __tstate = wxPyBeginAllowThreads();
23791 (arg1)->Detach();
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797 fail:
23798 return NULL;
23799 }
23800
23801
23802 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23803 PyObject *resultobj = 0;
23804 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23805 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23806 void *argp1 = 0 ;
23807 int res1 = 0 ;
23808 void *argp2 = 0 ;
23809 int res2 = 0 ;
23810 PyObject * obj0 = 0 ;
23811 PyObject * obj1 = 0 ;
23812 char * kwnames[] = {
23813 (char *) "self",(char *) "tbar", NULL
23814 };
23815
23816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23818 if (!SWIG_IsOK(res1)) {
23819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23820 }
23821 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23823 if (!SWIG_IsOK(res2)) {
23824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23825 }
23826 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 (arg1)->Attach(arg2);
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 resultobj = SWIG_Py_Void();
23834 return resultobj;
23835 fail:
23836 return NULL;
23837 }
23838
23839
23840 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23841 PyObject *resultobj = 0;
23842 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23843 PyObject *result = 0 ;
23844 void *argp1 = 0 ;
23845 int res1 = 0 ;
23846 PyObject *swig_obj[1] ;
23847
23848 if (!args) SWIG_fail;
23849 swig_obj[0] = args;
23850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23851 if (!SWIG_IsOK(res1)) {
23852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23853 }
23854 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23855 {
23856 PyThreadState* __tstate = wxPyBeginAllowThreads();
23857 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23858 wxPyEndAllowThreads(__tstate);
23859 if (PyErr_Occurred()) SWIG_fail;
23860 }
23861 resultobj = result;
23862 return resultobj;
23863 fail:
23864 return NULL;
23865 }
23866
23867
23868 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23869 PyObject *resultobj = 0;
23870 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23871 PyObject *arg2 = (PyObject *) 0 ;
23872 void *argp1 = 0 ;
23873 int res1 = 0 ;
23874 PyObject * obj0 = 0 ;
23875 PyObject * obj1 = 0 ;
23876 char * kwnames[] = {
23877 (char *) "self",(char *) "clientData", NULL
23878 };
23879
23880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23882 if (!SWIG_IsOK(res1)) {
23883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23884 }
23885 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23886 arg2 = obj1;
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 wxToolBarToolBase_SetClientData(arg1,arg2);
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_Py_Void();
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 PyObject *obj;
23902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23903 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23904 return SWIG_Py_Void();
23905 }
23906
23907 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23908 PyObject *resultobj = 0;
23909 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23910 int arg2 ;
23911 wxString *arg3 = 0 ;
23912 wxBitmap *arg4 = 0 ;
23913 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23914 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23915 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23916 wxString const &arg7_defvalue = wxPyEmptyString ;
23917 wxString *arg7 = (wxString *) &arg7_defvalue ;
23918 wxString const &arg8_defvalue = wxPyEmptyString ;
23919 wxString *arg8 = (wxString *) &arg8_defvalue ;
23920 PyObject *arg9 = (PyObject *) NULL ;
23921 wxToolBarToolBase *result = 0 ;
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 int val2 ;
23925 int ecode2 = 0 ;
23926 bool temp3 = false ;
23927 void *argp4 = 0 ;
23928 int res4 = 0 ;
23929 void *argp5 = 0 ;
23930 int res5 = 0 ;
23931 int val6 ;
23932 int ecode6 = 0 ;
23933 bool temp7 = false ;
23934 bool temp8 = false ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 PyObject * obj2 = 0 ;
23938 PyObject * obj3 = 0 ;
23939 PyObject * obj4 = 0 ;
23940 PyObject * obj5 = 0 ;
23941 PyObject * obj6 = 0 ;
23942 PyObject * obj7 = 0 ;
23943 PyObject * obj8 = 0 ;
23944 char * kwnames[] = {
23945 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23946 };
23947
23948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23950 if (!SWIG_IsOK(res1)) {
23951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23952 }
23953 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23954 ecode2 = SWIG_AsVal_int(obj1, &val2);
23955 if (!SWIG_IsOK(ecode2)) {
23956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23957 }
23958 arg2 = static_cast< int >(val2);
23959 {
23960 arg3 = wxString_in_helper(obj2);
23961 if (arg3 == NULL) SWIG_fail;
23962 temp3 = true;
23963 }
23964 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23965 if (!SWIG_IsOK(res4)) {
23966 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23967 }
23968 if (!argp4) {
23969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23970 }
23971 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23972 if (obj4) {
23973 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23974 if (!SWIG_IsOK(res5)) {
23975 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23976 }
23977 if (!argp5) {
23978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23979 }
23980 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23981 }
23982 if (obj5) {
23983 ecode6 = SWIG_AsVal_int(obj5, &val6);
23984 if (!SWIG_IsOK(ecode6)) {
23985 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23986 }
23987 arg6 = static_cast< wxItemKind >(val6);
23988 }
23989 if (obj6) {
23990 {
23991 arg7 = wxString_in_helper(obj6);
23992 if (arg7 == NULL) SWIG_fail;
23993 temp7 = true;
23994 }
23995 }
23996 if (obj7) {
23997 {
23998 arg8 = wxString_in_helper(obj7);
23999 if (arg8 == NULL) SWIG_fail;
24000 temp8 = true;
24001 }
24002 }
24003 if (obj8) {
24004 arg9 = obj8;
24005 }
24006 {
24007 PyThreadState* __tstate = wxPyBeginAllowThreads();
24008 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24009 wxPyEndAllowThreads(__tstate);
24010 if (PyErr_Occurred()) SWIG_fail;
24011 }
24012 {
24013 resultobj = wxPyMake_wxObject(result, (bool)0);
24014 }
24015 {
24016 if (temp3)
24017 delete arg3;
24018 }
24019 {
24020 if (temp7)
24021 delete arg7;
24022 }
24023 {
24024 if (temp8)
24025 delete arg8;
24026 }
24027 return resultobj;
24028 fail:
24029 {
24030 if (temp3)
24031 delete arg3;
24032 }
24033 {
24034 if (temp7)
24035 delete arg7;
24036 }
24037 {
24038 if (temp8)
24039 delete arg8;
24040 }
24041 return NULL;
24042 }
24043
24044
24045 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24046 PyObject *resultobj = 0;
24047 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24048 size_t arg2 ;
24049 int arg3 ;
24050 wxString *arg4 = 0 ;
24051 wxBitmap *arg5 = 0 ;
24052 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24053 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24054 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24055 wxString const &arg8_defvalue = wxPyEmptyString ;
24056 wxString *arg8 = (wxString *) &arg8_defvalue ;
24057 wxString const &arg9_defvalue = wxPyEmptyString ;
24058 wxString *arg9 = (wxString *) &arg9_defvalue ;
24059 PyObject *arg10 = (PyObject *) NULL ;
24060 wxToolBarToolBase *result = 0 ;
24061 void *argp1 = 0 ;
24062 int res1 = 0 ;
24063 size_t val2 ;
24064 int ecode2 = 0 ;
24065 int val3 ;
24066 int ecode3 = 0 ;
24067 bool temp4 = false ;
24068 void *argp5 = 0 ;
24069 int res5 = 0 ;
24070 void *argp6 = 0 ;
24071 int res6 = 0 ;
24072 int val7 ;
24073 int ecode7 = 0 ;
24074 bool temp8 = false ;
24075 bool temp9 = false ;
24076 PyObject * obj0 = 0 ;
24077 PyObject * obj1 = 0 ;
24078 PyObject * obj2 = 0 ;
24079 PyObject * obj3 = 0 ;
24080 PyObject * obj4 = 0 ;
24081 PyObject * obj5 = 0 ;
24082 PyObject * obj6 = 0 ;
24083 PyObject * obj7 = 0 ;
24084 PyObject * obj8 = 0 ;
24085 PyObject * obj9 = 0 ;
24086 char * kwnames[] = {
24087 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24088 };
24089
24090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24092 if (!SWIG_IsOK(res1)) {
24093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24094 }
24095 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24096 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24097 if (!SWIG_IsOK(ecode2)) {
24098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24099 }
24100 arg2 = static_cast< size_t >(val2);
24101 ecode3 = SWIG_AsVal_int(obj2, &val3);
24102 if (!SWIG_IsOK(ecode3)) {
24103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24104 }
24105 arg3 = static_cast< int >(val3);
24106 {
24107 arg4 = wxString_in_helper(obj3);
24108 if (arg4 == NULL) SWIG_fail;
24109 temp4 = true;
24110 }
24111 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24112 if (!SWIG_IsOK(res5)) {
24113 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24114 }
24115 if (!argp5) {
24116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24117 }
24118 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24119 if (obj5) {
24120 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24121 if (!SWIG_IsOK(res6)) {
24122 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24123 }
24124 if (!argp6) {
24125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24126 }
24127 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24128 }
24129 if (obj6) {
24130 ecode7 = SWIG_AsVal_int(obj6, &val7);
24131 if (!SWIG_IsOK(ecode7)) {
24132 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24133 }
24134 arg7 = static_cast< wxItemKind >(val7);
24135 }
24136 if (obj7) {
24137 {
24138 arg8 = wxString_in_helper(obj7);
24139 if (arg8 == NULL) SWIG_fail;
24140 temp8 = true;
24141 }
24142 }
24143 if (obj8) {
24144 {
24145 arg9 = wxString_in_helper(obj8);
24146 if (arg9 == NULL) SWIG_fail;
24147 temp9 = true;
24148 }
24149 }
24150 if (obj9) {
24151 arg10 = obj9;
24152 }
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24156 wxPyEndAllowThreads(__tstate);
24157 if (PyErr_Occurred()) SWIG_fail;
24158 }
24159 {
24160 resultobj = wxPyMake_wxObject(result, (bool)0);
24161 }
24162 {
24163 if (temp4)
24164 delete arg4;
24165 }
24166 {
24167 if (temp8)
24168 delete arg8;
24169 }
24170 {
24171 if (temp9)
24172 delete arg9;
24173 }
24174 return resultobj;
24175 fail:
24176 {
24177 if (temp4)
24178 delete arg4;
24179 }
24180 {
24181 if (temp8)
24182 delete arg8;
24183 }
24184 {
24185 if (temp9)
24186 delete arg9;
24187 }
24188 return NULL;
24189 }
24190
24191
24192 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24193 PyObject *resultobj = 0;
24194 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24195 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24196 wxToolBarToolBase *result = 0 ;
24197 void *argp1 = 0 ;
24198 int res1 = 0 ;
24199 void *argp2 = 0 ;
24200 int res2 = 0 ;
24201 PyObject * obj0 = 0 ;
24202 PyObject * obj1 = 0 ;
24203 char * kwnames[] = {
24204 (char *) "self",(char *) "tool", NULL
24205 };
24206
24207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24209 if (!SWIG_IsOK(res1)) {
24210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24211 }
24212 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24214 if (!SWIG_IsOK(res2)) {
24215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24216 }
24217 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 {
24225 resultobj = wxPyMake_wxObject(result, (bool)0);
24226 }
24227 return resultobj;
24228 fail:
24229 return NULL;
24230 }
24231
24232
24233 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24234 PyObject *resultobj = 0;
24235 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24236 size_t arg2 ;
24237 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24238 wxToolBarToolBase *result = 0 ;
24239 void *argp1 = 0 ;
24240 int res1 = 0 ;
24241 size_t val2 ;
24242 int ecode2 = 0 ;
24243 void *argp3 = 0 ;
24244 int res3 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 PyObject * obj2 = 0 ;
24248 char * kwnames[] = {
24249 (char *) "self",(char *) "pos",(char *) "tool", NULL
24250 };
24251
24252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24254 if (!SWIG_IsOK(res1)) {
24255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24256 }
24257 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24258 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24259 if (!SWIG_IsOK(ecode2)) {
24260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24261 }
24262 arg2 = static_cast< size_t >(val2);
24263 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24264 if (!SWIG_IsOK(res3)) {
24265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24266 }
24267 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24268 {
24269 PyThreadState* __tstate = wxPyBeginAllowThreads();
24270 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24271 wxPyEndAllowThreads(__tstate);
24272 if (PyErr_Occurred()) SWIG_fail;
24273 }
24274 {
24275 resultobj = wxPyMake_wxObject(result, (bool)0);
24276 }
24277 return resultobj;
24278 fail:
24279 return NULL;
24280 }
24281
24282
24283 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj = 0;
24285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24286 wxControl *arg2 = (wxControl *) 0 ;
24287 wxToolBarToolBase *result = 0 ;
24288 void *argp1 = 0 ;
24289 int res1 = 0 ;
24290 void *argp2 = 0 ;
24291 int res2 = 0 ;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24294 char * kwnames[] = {
24295 (char *) "self",(char *) "control", NULL
24296 };
24297
24298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24300 if (!SWIG_IsOK(res1)) {
24301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24302 }
24303 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24305 if (!SWIG_IsOK(res2)) {
24306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24307 }
24308 arg2 = reinterpret_cast< wxControl * >(argp2);
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 {
24316 resultobj = wxPyMake_wxObject(result, (bool)0);
24317 }
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj = 0;
24326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24327 size_t arg2 ;
24328 wxControl *arg3 = (wxControl *) 0 ;
24329 wxToolBarToolBase *result = 0 ;
24330 void *argp1 = 0 ;
24331 int res1 = 0 ;
24332 size_t val2 ;
24333 int ecode2 = 0 ;
24334 void *argp3 = 0 ;
24335 int res3 = 0 ;
24336 PyObject * obj0 = 0 ;
24337 PyObject * obj1 = 0 ;
24338 PyObject * obj2 = 0 ;
24339 char * kwnames[] = {
24340 (char *) "self",(char *) "pos",(char *) "control", NULL
24341 };
24342
24343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24345 if (!SWIG_IsOK(res1)) {
24346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24347 }
24348 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24349 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24350 if (!SWIG_IsOK(ecode2)) {
24351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24352 }
24353 arg2 = static_cast< size_t >(val2);
24354 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24355 if (!SWIG_IsOK(res3)) {
24356 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24357 }
24358 arg3 = reinterpret_cast< wxControl * >(argp3);
24359 {
24360 PyThreadState* __tstate = wxPyBeginAllowThreads();
24361 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24362 wxPyEndAllowThreads(__tstate);
24363 if (PyErr_Occurred()) SWIG_fail;
24364 }
24365 {
24366 resultobj = wxPyMake_wxObject(result, (bool)0);
24367 }
24368 return resultobj;
24369 fail:
24370 return NULL;
24371 }
24372
24373
24374 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24375 PyObject *resultobj = 0;
24376 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24377 int arg2 ;
24378 wxControl *result = 0 ;
24379 void *argp1 = 0 ;
24380 int res1 = 0 ;
24381 int val2 ;
24382 int ecode2 = 0 ;
24383 PyObject * obj0 = 0 ;
24384 PyObject * obj1 = 0 ;
24385 char * kwnames[] = {
24386 (char *) "self",(char *) "id", NULL
24387 };
24388
24389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24391 if (!SWIG_IsOK(res1)) {
24392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24393 }
24394 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24395 ecode2 = SWIG_AsVal_int(obj1, &val2);
24396 if (!SWIG_IsOK(ecode2)) {
24397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24398 }
24399 arg2 = static_cast< int >(val2);
24400 {
24401 PyThreadState* __tstate = wxPyBeginAllowThreads();
24402 result = (wxControl *)(arg1)->FindControl(arg2);
24403 wxPyEndAllowThreads(__tstate);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 }
24406 {
24407 resultobj = wxPyMake_wxObject(result, 0);
24408 }
24409 return resultobj;
24410 fail:
24411 return NULL;
24412 }
24413
24414
24415 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24416 PyObject *resultobj = 0;
24417 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24418 wxToolBarToolBase *result = 0 ;
24419 void *argp1 = 0 ;
24420 int res1 = 0 ;
24421 PyObject *swig_obj[1] ;
24422
24423 if (!args) SWIG_fail;
24424 swig_obj[0] = args;
24425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24426 if (!SWIG_IsOK(res1)) {
24427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24428 }
24429 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24430 {
24431 PyThreadState* __tstate = wxPyBeginAllowThreads();
24432 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24433 wxPyEndAllowThreads(__tstate);
24434 if (PyErr_Occurred()) SWIG_fail;
24435 }
24436 {
24437 resultobj = wxPyMake_wxObject(result, (bool)0);
24438 }
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj = 0;
24447 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24448 size_t arg2 ;
24449 wxToolBarToolBase *result = 0 ;
24450 void *argp1 = 0 ;
24451 int res1 = 0 ;
24452 size_t val2 ;
24453 int ecode2 = 0 ;
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
24456 char * kwnames[] = {
24457 (char *) "self",(char *) "pos", NULL
24458 };
24459
24460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24462 if (!SWIG_IsOK(res1)) {
24463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24464 }
24465 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24466 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24467 if (!SWIG_IsOK(ecode2)) {
24468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24469 }
24470 arg2 = static_cast< size_t >(val2);
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 {
24478 resultobj = wxPyMake_wxObject(result, (bool)0);
24479 }
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj = 0;
24488 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24489 int arg2 ;
24490 wxToolBarToolBase *result = 0 ;
24491 void *argp1 = 0 ;
24492 int res1 = 0 ;
24493 int val2 ;
24494 int ecode2 = 0 ;
24495 PyObject * obj0 = 0 ;
24496 PyObject * obj1 = 0 ;
24497 char * kwnames[] = {
24498 (char *) "self",(char *) "id", NULL
24499 };
24500
24501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24503 if (!SWIG_IsOK(res1)) {
24504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24505 }
24506 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24507 ecode2 = SWIG_AsVal_int(obj1, &val2);
24508 if (!SWIG_IsOK(ecode2)) {
24509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24510 }
24511 arg2 = static_cast< int >(val2);
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
24518 {
24519 resultobj = wxPyMake_wxObject(result, (bool)0);
24520 }
24521 return resultobj;
24522 fail:
24523 return NULL;
24524 }
24525
24526
24527 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24528 PyObject *resultobj = 0;
24529 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24530 size_t arg2 ;
24531 bool result;
24532 void *argp1 = 0 ;
24533 int res1 = 0 ;
24534 size_t val2 ;
24535 int ecode2 = 0 ;
24536 PyObject * obj0 = 0 ;
24537 PyObject * obj1 = 0 ;
24538 char * kwnames[] = {
24539 (char *) "self",(char *) "pos", NULL
24540 };
24541
24542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24544 if (!SWIG_IsOK(res1)) {
24545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24546 }
24547 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24548 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24549 if (!SWIG_IsOK(ecode2)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24551 }
24552 arg2 = static_cast< size_t >(val2);
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 result = (bool)(arg1)->DeleteToolByPos(arg2);
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 {
24560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24561 }
24562 return resultobj;
24563 fail:
24564 return NULL;
24565 }
24566
24567
24568 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24569 PyObject *resultobj = 0;
24570 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24571 int arg2 ;
24572 bool result;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 int val2 ;
24576 int ecode2 = 0 ;
24577 PyObject * obj0 = 0 ;
24578 PyObject * obj1 = 0 ;
24579 char * kwnames[] = {
24580 (char *) "self",(char *) "id", NULL
24581 };
24582
24583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24585 if (!SWIG_IsOK(res1)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24587 }
24588 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24589 ecode2 = SWIG_AsVal_int(obj1, &val2);
24590 if (!SWIG_IsOK(ecode2)) {
24591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24592 }
24593 arg2 = static_cast< int >(val2);
24594 {
24595 PyThreadState* __tstate = wxPyBeginAllowThreads();
24596 result = (bool)(arg1)->DeleteTool(arg2);
24597 wxPyEndAllowThreads(__tstate);
24598 if (PyErr_Occurred()) SWIG_fail;
24599 }
24600 {
24601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24602 }
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24610 PyObject *resultobj = 0;
24611 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24612 void *argp1 = 0 ;
24613 int res1 = 0 ;
24614 PyObject *swig_obj[1] ;
24615
24616 if (!args) SWIG_fail;
24617 swig_obj[0] = args;
24618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24619 if (!SWIG_IsOK(res1)) {
24620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24621 }
24622 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 (arg1)->ClearTools();
24626 wxPyEndAllowThreads(__tstate);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 }
24629 resultobj = SWIG_Py_Void();
24630 return resultobj;
24631 fail:
24632 return NULL;
24633 }
24634
24635
24636 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24637 PyObject *resultobj = 0;
24638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24639 bool result;
24640 void *argp1 = 0 ;
24641 int res1 = 0 ;
24642 PyObject *swig_obj[1] ;
24643
24644 if (!args) SWIG_fail;
24645 swig_obj[0] = args;
24646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24647 if (!SWIG_IsOK(res1)) {
24648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24649 }
24650 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24651 {
24652 PyThreadState* __tstate = wxPyBeginAllowThreads();
24653 result = (bool)(arg1)->Realize();
24654 wxPyEndAllowThreads(__tstate);
24655 if (PyErr_Occurred()) SWIG_fail;
24656 }
24657 {
24658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24659 }
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24667 PyObject *resultobj = 0;
24668 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24669 int arg2 ;
24670 bool arg3 ;
24671 void *argp1 = 0 ;
24672 int res1 = 0 ;
24673 int val2 ;
24674 int ecode2 = 0 ;
24675 bool val3 ;
24676 int ecode3 = 0 ;
24677 PyObject * obj0 = 0 ;
24678 PyObject * obj1 = 0 ;
24679 PyObject * obj2 = 0 ;
24680 char * kwnames[] = {
24681 (char *) "self",(char *) "id",(char *) "enable", NULL
24682 };
24683
24684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24686 if (!SWIG_IsOK(res1)) {
24687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24688 }
24689 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24690 ecode2 = SWIG_AsVal_int(obj1, &val2);
24691 if (!SWIG_IsOK(ecode2)) {
24692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24693 }
24694 arg2 = static_cast< int >(val2);
24695 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24696 if (!SWIG_IsOK(ecode3)) {
24697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24698 }
24699 arg3 = static_cast< bool >(val3);
24700 {
24701 PyThreadState* __tstate = wxPyBeginAllowThreads();
24702 (arg1)->EnableTool(arg2,arg3);
24703 wxPyEndAllowThreads(__tstate);
24704 if (PyErr_Occurred()) SWIG_fail;
24705 }
24706 resultobj = SWIG_Py_Void();
24707 return resultobj;
24708 fail:
24709 return NULL;
24710 }
24711
24712
24713 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24714 PyObject *resultobj = 0;
24715 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24716 int arg2 ;
24717 bool arg3 ;
24718 void *argp1 = 0 ;
24719 int res1 = 0 ;
24720 int val2 ;
24721 int ecode2 = 0 ;
24722 bool val3 ;
24723 int ecode3 = 0 ;
24724 PyObject * obj0 = 0 ;
24725 PyObject * obj1 = 0 ;
24726 PyObject * obj2 = 0 ;
24727 char * kwnames[] = {
24728 (char *) "self",(char *) "id",(char *) "toggle", NULL
24729 };
24730
24731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24733 if (!SWIG_IsOK(res1)) {
24734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24735 }
24736 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24737 ecode2 = SWIG_AsVal_int(obj1, &val2);
24738 if (!SWIG_IsOK(ecode2)) {
24739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24740 }
24741 arg2 = static_cast< int >(val2);
24742 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24743 if (!SWIG_IsOK(ecode3)) {
24744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24745 }
24746 arg3 = static_cast< bool >(val3);
24747 {
24748 PyThreadState* __tstate = wxPyBeginAllowThreads();
24749 (arg1)->ToggleTool(arg2,arg3);
24750 wxPyEndAllowThreads(__tstate);
24751 if (PyErr_Occurred()) SWIG_fail;
24752 }
24753 resultobj = SWIG_Py_Void();
24754 return resultobj;
24755 fail:
24756 return NULL;
24757 }
24758
24759
24760 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24761 PyObject *resultobj = 0;
24762 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24763 int arg2 ;
24764 bool arg3 ;
24765 void *argp1 = 0 ;
24766 int res1 = 0 ;
24767 int val2 ;
24768 int ecode2 = 0 ;
24769 bool val3 ;
24770 int ecode3 = 0 ;
24771 PyObject * obj0 = 0 ;
24772 PyObject * obj1 = 0 ;
24773 PyObject * obj2 = 0 ;
24774 char * kwnames[] = {
24775 (char *) "self",(char *) "id",(char *) "toggle", NULL
24776 };
24777
24778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24780 if (!SWIG_IsOK(res1)) {
24781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24782 }
24783 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24784 ecode2 = SWIG_AsVal_int(obj1, &val2);
24785 if (!SWIG_IsOK(ecode2)) {
24786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24787 }
24788 arg2 = static_cast< int >(val2);
24789 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24790 if (!SWIG_IsOK(ecode3)) {
24791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24792 }
24793 arg3 = static_cast< bool >(val3);
24794 {
24795 PyThreadState* __tstate = wxPyBeginAllowThreads();
24796 (arg1)->SetToggle(arg2,arg3);
24797 wxPyEndAllowThreads(__tstate);
24798 if (PyErr_Occurred()) SWIG_fail;
24799 }
24800 resultobj = SWIG_Py_Void();
24801 return resultobj;
24802 fail:
24803 return NULL;
24804 }
24805
24806
24807 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24808 PyObject *resultobj = 0;
24809 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24810 int arg2 ;
24811 PyObject *result = 0 ;
24812 void *argp1 = 0 ;
24813 int res1 = 0 ;
24814 int val2 ;
24815 int ecode2 = 0 ;
24816 PyObject * obj0 = 0 ;
24817 PyObject * obj1 = 0 ;
24818 char * kwnames[] = {
24819 (char *) "self",(char *) "id", NULL
24820 };
24821
24822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24824 if (!SWIG_IsOK(res1)) {
24825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24826 }
24827 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24828 ecode2 = SWIG_AsVal_int(obj1, &val2);
24829 if (!SWIG_IsOK(ecode2)) {
24830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24831 }
24832 arg2 = static_cast< int >(val2);
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = result;
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24847 PyObject *resultobj = 0;
24848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24849 int arg2 ;
24850 PyObject *arg3 = (PyObject *) 0 ;
24851 void *argp1 = 0 ;
24852 int res1 = 0 ;
24853 int val2 ;
24854 int ecode2 = 0 ;
24855 PyObject * obj0 = 0 ;
24856 PyObject * obj1 = 0 ;
24857 PyObject * obj2 = 0 ;
24858 char * kwnames[] = {
24859 (char *) "self",(char *) "id",(char *) "clientData", NULL
24860 };
24861
24862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24864 if (!SWIG_IsOK(res1)) {
24865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24866 }
24867 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24868 ecode2 = SWIG_AsVal_int(obj1, &val2);
24869 if (!SWIG_IsOK(ecode2)) {
24870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24871 }
24872 arg2 = static_cast< int >(val2);
24873 arg3 = obj2;
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24877 wxPyEndAllowThreads(__tstate);
24878 if (PyErr_Occurred()) SWIG_fail;
24879 }
24880 resultobj = SWIG_Py_Void();
24881 return resultobj;
24882 fail:
24883 return NULL;
24884 }
24885
24886
24887 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24888 PyObject *resultobj = 0;
24889 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24890 int arg2 ;
24891 int result;
24892 void *argp1 = 0 ;
24893 int res1 = 0 ;
24894 int val2 ;
24895 int ecode2 = 0 ;
24896 PyObject * obj0 = 0 ;
24897 PyObject * obj1 = 0 ;
24898 char * kwnames[] = {
24899 (char *) "self",(char *) "id", NULL
24900 };
24901
24902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24904 if (!SWIG_IsOK(res1)) {
24905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24906 }
24907 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24908 ecode2 = SWIG_AsVal_int(obj1, &val2);
24909 if (!SWIG_IsOK(ecode2)) {
24910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24911 }
24912 arg2 = static_cast< int >(val2);
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 resultobj = SWIG_From_int(static_cast< int >(result));
24920 return resultobj;
24921 fail:
24922 return NULL;
24923 }
24924
24925
24926 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24927 PyObject *resultobj = 0;
24928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24929 int arg2 ;
24930 bool result;
24931 void *argp1 = 0 ;
24932 int res1 = 0 ;
24933 int val2 ;
24934 int ecode2 = 0 ;
24935 PyObject * obj0 = 0 ;
24936 PyObject * obj1 = 0 ;
24937 char * kwnames[] = {
24938 (char *) "self",(char *) "id", NULL
24939 };
24940
24941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24943 if (!SWIG_IsOK(res1)) {
24944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24945 }
24946 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24947 ecode2 = SWIG_AsVal_int(obj1, &val2);
24948 if (!SWIG_IsOK(ecode2)) {
24949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24950 }
24951 arg2 = static_cast< int >(val2);
24952 {
24953 PyThreadState* __tstate = wxPyBeginAllowThreads();
24954 result = (bool)(arg1)->GetToolState(arg2);
24955 wxPyEndAllowThreads(__tstate);
24956 if (PyErr_Occurred()) SWIG_fail;
24957 }
24958 {
24959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24960 }
24961 return resultobj;
24962 fail:
24963 return NULL;
24964 }
24965
24966
24967 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24968 PyObject *resultobj = 0;
24969 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24970 int arg2 ;
24971 bool result;
24972 void *argp1 = 0 ;
24973 int res1 = 0 ;
24974 int val2 ;
24975 int ecode2 = 0 ;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char * kwnames[] = {
24979 (char *) "self",(char *) "id", NULL
24980 };
24981
24982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24984 if (!SWIG_IsOK(res1)) {
24985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24986 }
24987 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24988 ecode2 = SWIG_AsVal_int(obj1, &val2);
24989 if (!SWIG_IsOK(ecode2)) {
24990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24991 }
24992 arg2 = static_cast< int >(val2);
24993 {
24994 PyThreadState* __tstate = wxPyBeginAllowThreads();
24995 result = (bool)(arg1)->GetToolEnabled(arg2);
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 {
25000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25001 }
25002 return resultobj;
25003 fail:
25004 return NULL;
25005 }
25006
25007
25008 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25009 PyObject *resultobj = 0;
25010 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25011 int arg2 ;
25012 wxString *arg3 = 0 ;
25013 void *argp1 = 0 ;
25014 int res1 = 0 ;
25015 int val2 ;
25016 int ecode2 = 0 ;
25017 bool temp3 = false ;
25018 PyObject * obj0 = 0 ;
25019 PyObject * obj1 = 0 ;
25020 PyObject * obj2 = 0 ;
25021 char * kwnames[] = {
25022 (char *) "self",(char *) "id",(char *) "helpString", NULL
25023 };
25024
25025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25027 if (!SWIG_IsOK(res1)) {
25028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25029 }
25030 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25031 ecode2 = SWIG_AsVal_int(obj1, &val2);
25032 if (!SWIG_IsOK(ecode2)) {
25033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25034 }
25035 arg2 = static_cast< int >(val2);
25036 {
25037 arg3 = wxString_in_helper(obj2);
25038 if (arg3 == NULL) SWIG_fail;
25039 temp3 = true;
25040 }
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 resultobj = SWIG_Py_Void();
25048 {
25049 if (temp3)
25050 delete arg3;
25051 }
25052 return resultobj;
25053 fail:
25054 {
25055 if (temp3)
25056 delete arg3;
25057 }
25058 return NULL;
25059 }
25060
25061
25062 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25063 PyObject *resultobj = 0;
25064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25065 int arg2 ;
25066 wxString result;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 int val2 ;
25070 int ecode2 = 0 ;
25071 PyObject * obj0 = 0 ;
25072 PyObject * obj1 = 0 ;
25073 char * kwnames[] = {
25074 (char *) "self",(char *) "id", NULL
25075 };
25076
25077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25081 }
25082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25083 ecode2 = SWIG_AsVal_int(obj1, &val2);
25084 if (!SWIG_IsOK(ecode2)) {
25085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25086 }
25087 arg2 = static_cast< int >(val2);
25088 {
25089 PyThreadState* __tstate = wxPyBeginAllowThreads();
25090 result = (arg1)->GetToolShortHelp(arg2);
25091 wxPyEndAllowThreads(__tstate);
25092 if (PyErr_Occurred()) SWIG_fail;
25093 }
25094 {
25095 #if wxUSE_UNICODE
25096 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25097 #else
25098 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25099 #endif
25100 }
25101 return resultobj;
25102 fail:
25103 return NULL;
25104 }
25105
25106
25107 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25108 PyObject *resultobj = 0;
25109 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25110 int arg2 ;
25111 wxString *arg3 = 0 ;
25112 void *argp1 = 0 ;
25113 int res1 = 0 ;
25114 int val2 ;
25115 int ecode2 = 0 ;
25116 bool temp3 = false ;
25117 PyObject * obj0 = 0 ;
25118 PyObject * obj1 = 0 ;
25119 PyObject * obj2 = 0 ;
25120 char * kwnames[] = {
25121 (char *) "self",(char *) "id",(char *) "helpString", NULL
25122 };
25123
25124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25126 if (!SWIG_IsOK(res1)) {
25127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25128 }
25129 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25130 ecode2 = SWIG_AsVal_int(obj1, &val2);
25131 if (!SWIG_IsOK(ecode2)) {
25132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25133 }
25134 arg2 = static_cast< int >(val2);
25135 {
25136 arg3 = wxString_in_helper(obj2);
25137 if (arg3 == NULL) SWIG_fail;
25138 temp3 = true;
25139 }
25140 {
25141 PyThreadState* __tstate = wxPyBeginAllowThreads();
25142 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25143 wxPyEndAllowThreads(__tstate);
25144 if (PyErr_Occurred()) SWIG_fail;
25145 }
25146 resultobj = SWIG_Py_Void();
25147 {
25148 if (temp3)
25149 delete arg3;
25150 }
25151 return resultobj;
25152 fail:
25153 {
25154 if (temp3)
25155 delete arg3;
25156 }
25157 return NULL;
25158 }
25159
25160
25161 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25162 PyObject *resultobj = 0;
25163 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25164 int arg2 ;
25165 wxString result;
25166 void *argp1 = 0 ;
25167 int res1 = 0 ;
25168 int val2 ;
25169 int ecode2 = 0 ;
25170 PyObject * obj0 = 0 ;
25171 PyObject * obj1 = 0 ;
25172 char * kwnames[] = {
25173 (char *) "self",(char *) "id", NULL
25174 };
25175
25176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25178 if (!SWIG_IsOK(res1)) {
25179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25180 }
25181 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25182 ecode2 = SWIG_AsVal_int(obj1, &val2);
25183 if (!SWIG_IsOK(ecode2)) {
25184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25185 }
25186 arg2 = static_cast< int >(val2);
25187 {
25188 PyThreadState* __tstate = wxPyBeginAllowThreads();
25189 result = (arg1)->GetToolLongHelp(arg2);
25190 wxPyEndAllowThreads(__tstate);
25191 if (PyErr_Occurred()) SWIG_fail;
25192 }
25193 {
25194 #if wxUSE_UNICODE
25195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25196 #else
25197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25198 #endif
25199 }
25200 return resultobj;
25201 fail:
25202 return NULL;
25203 }
25204
25205
25206 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25207 PyObject *resultobj = 0;
25208 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25209 int arg2 ;
25210 int arg3 ;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 int val2 ;
25214 int ecode2 = 0 ;
25215 int val3 ;
25216 int ecode3 = 0 ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 PyObject * obj2 = 0 ;
25220 char * kwnames[] = {
25221 (char *) "self",(char *) "x",(char *) "y", NULL
25222 };
25223
25224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25226 if (!SWIG_IsOK(res1)) {
25227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25228 }
25229 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25230 ecode2 = SWIG_AsVal_int(obj1, &val2);
25231 if (!SWIG_IsOK(ecode2)) {
25232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25233 }
25234 arg2 = static_cast< int >(val2);
25235 ecode3 = SWIG_AsVal_int(obj2, &val3);
25236 if (!SWIG_IsOK(ecode3)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25238 }
25239 arg3 = static_cast< int >(val3);
25240 {
25241 PyThreadState* __tstate = wxPyBeginAllowThreads();
25242 (arg1)->SetMargins(arg2,arg3);
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 resultobj = SWIG_Py_Void();
25247 return resultobj;
25248 fail:
25249 return NULL;
25250 }
25251
25252
25253 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25254 PyObject *resultobj = 0;
25255 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25256 wxSize *arg2 = 0 ;
25257 void *argp1 = 0 ;
25258 int res1 = 0 ;
25259 wxSize temp2 ;
25260 PyObject * obj0 = 0 ;
25261 PyObject * obj1 = 0 ;
25262 char * kwnames[] = {
25263 (char *) "self",(char *) "size", NULL
25264 };
25265
25266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25268 if (!SWIG_IsOK(res1)) {
25269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25270 }
25271 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25272 {
25273 arg2 = &temp2;
25274 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25275 }
25276 {
25277 PyThreadState* __tstate = wxPyBeginAllowThreads();
25278 (arg1)->SetMargins((wxSize const &)*arg2);
25279 wxPyEndAllowThreads(__tstate);
25280 if (PyErr_Occurred()) SWIG_fail;
25281 }
25282 resultobj = SWIG_Py_Void();
25283 return resultobj;
25284 fail:
25285 return NULL;
25286 }
25287
25288
25289 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25290 PyObject *resultobj = 0;
25291 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25292 int arg2 ;
25293 void *argp1 = 0 ;
25294 int res1 = 0 ;
25295 int val2 ;
25296 int ecode2 = 0 ;
25297 PyObject * obj0 = 0 ;
25298 PyObject * obj1 = 0 ;
25299 char * kwnames[] = {
25300 (char *) "self",(char *) "packing", NULL
25301 };
25302
25303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25307 }
25308 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25309 ecode2 = SWIG_AsVal_int(obj1, &val2);
25310 if (!SWIG_IsOK(ecode2)) {
25311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25312 }
25313 arg2 = static_cast< int >(val2);
25314 {
25315 PyThreadState* __tstate = wxPyBeginAllowThreads();
25316 (arg1)->SetToolPacking(arg2);
25317 wxPyEndAllowThreads(__tstate);
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_Py_Void();
25321 return resultobj;
25322 fail:
25323 return NULL;
25324 }
25325
25326
25327 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25328 PyObject *resultobj = 0;
25329 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25330 int arg2 ;
25331 void *argp1 = 0 ;
25332 int res1 = 0 ;
25333 int val2 ;
25334 int ecode2 = 0 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 char * kwnames[] = {
25338 (char *) "self",(char *) "separation", NULL
25339 };
25340
25341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25343 if (!SWIG_IsOK(res1)) {
25344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25345 }
25346 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25347 ecode2 = SWIG_AsVal_int(obj1, &val2);
25348 if (!SWIG_IsOK(ecode2)) {
25349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25350 }
25351 arg2 = static_cast< int >(val2);
25352 {
25353 PyThreadState* __tstate = wxPyBeginAllowThreads();
25354 (arg1)->SetToolSeparation(arg2);
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 resultobj = SWIG_Py_Void();
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25366 PyObject *resultobj = 0;
25367 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25368 wxSize result;
25369 void *argp1 = 0 ;
25370 int res1 = 0 ;
25371 PyObject *swig_obj[1] ;
25372
25373 if (!args) SWIG_fail;
25374 swig_obj[0] = args;
25375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25376 if (!SWIG_IsOK(res1)) {
25377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25378 }
25379 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25380 {
25381 PyThreadState* __tstate = wxPyBeginAllowThreads();
25382 result = (arg1)->GetToolMargins();
25383 wxPyEndAllowThreads(__tstate);
25384 if (PyErr_Occurred()) SWIG_fail;
25385 }
25386 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25387 return resultobj;
25388 fail:
25389 return NULL;
25390 }
25391
25392
25393 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25394 PyObject *resultobj = 0;
25395 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25396 wxSize result;
25397 void *argp1 = 0 ;
25398 int res1 = 0 ;
25399 PyObject *swig_obj[1] ;
25400
25401 if (!args) SWIG_fail;
25402 swig_obj[0] = args;
25403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25404 if (!SWIG_IsOK(res1)) {
25405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25406 }
25407 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25408 {
25409 PyThreadState* __tstate = wxPyBeginAllowThreads();
25410 result = (arg1)->GetMargins();
25411 wxPyEndAllowThreads(__tstate);
25412 if (PyErr_Occurred()) SWIG_fail;
25413 }
25414 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25415 return resultobj;
25416 fail:
25417 return NULL;
25418 }
25419
25420
25421 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25422 PyObject *resultobj = 0;
25423 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25424 int result;
25425 void *argp1 = 0 ;
25426 int res1 = 0 ;
25427 PyObject *swig_obj[1] ;
25428
25429 if (!args) SWIG_fail;
25430 swig_obj[0] = args;
25431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25434 }
25435 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25436 {
25437 PyThreadState* __tstate = wxPyBeginAllowThreads();
25438 result = (int)(arg1)->GetToolPacking();
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 resultobj = SWIG_From_int(static_cast< int >(result));
25443 return resultobj;
25444 fail:
25445 return NULL;
25446 }
25447
25448
25449 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25450 PyObject *resultobj = 0;
25451 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25452 int result;
25453 void *argp1 = 0 ;
25454 int res1 = 0 ;
25455 PyObject *swig_obj[1] ;
25456
25457 if (!args) SWIG_fail;
25458 swig_obj[0] = args;
25459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25460 if (!SWIG_IsOK(res1)) {
25461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25462 }
25463 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25464 {
25465 PyThreadState* __tstate = wxPyBeginAllowThreads();
25466 result = (int)(arg1)->GetToolSeparation();
25467 wxPyEndAllowThreads(__tstate);
25468 if (PyErr_Occurred()) SWIG_fail;
25469 }
25470 resultobj = SWIG_From_int(static_cast< int >(result));
25471 return resultobj;
25472 fail:
25473 return NULL;
25474 }
25475
25476
25477 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj = 0;
25479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25480 int arg2 ;
25481 void *argp1 = 0 ;
25482 int res1 = 0 ;
25483 int val2 ;
25484 int ecode2 = 0 ;
25485 PyObject * obj0 = 0 ;
25486 PyObject * obj1 = 0 ;
25487 char * kwnames[] = {
25488 (char *) "self",(char *) "nRows", NULL
25489 };
25490
25491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25493 if (!SWIG_IsOK(res1)) {
25494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25495 }
25496 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25497 ecode2 = SWIG_AsVal_int(obj1, &val2);
25498 if (!SWIG_IsOK(ecode2)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25500 }
25501 arg2 = static_cast< int >(val2);
25502 {
25503 PyThreadState* __tstate = wxPyBeginAllowThreads();
25504 (arg1)->SetRows(arg2);
25505 wxPyEndAllowThreads(__tstate);
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 resultobj = SWIG_Py_Void();
25509 return resultobj;
25510 fail:
25511 return NULL;
25512 }
25513
25514
25515 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25516 PyObject *resultobj = 0;
25517 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25518 int arg2 ;
25519 int arg3 ;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 int val2 ;
25523 int ecode2 = 0 ;
25524 int val3 ;
25525 int ecode3 = 0 ;
25526 PyObject * obj0 = 0 ;
25527 PyObject * obj1 = 0 ;
25528 PyObject * obj2 = 0 ;
25529 char * kwnames[] = {
25530 (char *) "self",(char *) "rows",(char *) "cols", NULL
25531 };
25532
25533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25537 }
25538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25539 ecode2 = SWIG_AsVal_int(obj1, &val2);
25540 if (!SWIG_IsOK(ecode2)) {
25541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25542 }
25543 arg2 = static_cast< int >(val2);
25544 ecode3 = SWIG_AsVal_int(obj2, &val3);
25545 if (!SWIG_IsOK(ecode3)) {
25546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25547 }
25548 arg3 = static_cast< int >(val3);
25549 {
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 (arg1)->SetMaxRowsCols(arg2,arg3);
25552 wxPyEndAllowThreads(__tstate);
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 resultobj = SWIG_Py_Void();
25556 return resultobj;
25557 fail:
25558 return NULL;
25559 }
25560
25561
25562 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25563 PyObject *resultobj = 0;
25564 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25565 int result;
25566 void *argp1 = 0 ;
25567 int res1 = 0 ;
25568 PyObject *swig_obj[1] ;
25569
25570 if (!args) SWIG_fail;
25571 swig_obj[0] = args;
25572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25573 if (!SWIG_IsOK(res1)) {
25574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25575 }
25576 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25577 {
25578 PyThreadState* __tstate = wxPyBeginAllowThreads();
25579 result = (int)(arg1)->GetMaxRows();
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_From_int(static_cast< int >(result));
25584 return resultobj;
25585 fail:
25586 return NULL;
25587 }
25588
25589
25590 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25591 PyObject *resultobj = 0;
25592 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25593 int result;
25594 void *argp1 = 0 ;
25595 int res1 = 0 ;
25596 PyObject *swig_obj[1] ;
25597
25598 if (!args) SWIG_fail;
25599 swig_obj[0] = args;
25600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25601 if (!SWIG_IsOK(res1)) {
25602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25603 }
25604 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25605 {
25606 PyThreadState* __tstate = wxPyBeginAllowThreads();
25607 result = (int)(arg1)->GetMaxCols();
25608 wxPyEndAllowThreads(__tstate);
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 resultobj = SWIG_From_int(static_cast< int >(result));
25612 return resultobj;
25613 fail:
25614 return NULL;
25615 }
25616
25617
25618 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25619 PyObject *resultobj = 0;
25620 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25621 wxSize *arg2 = 0 ;
25622 void *argp1 = 0 ;
25623 int res1 = 0 ;
25624 wxSize temp2 ;
25625 PyObject * obj0 = 0 ;
25626 PyObject * obj1 = 0 ;
25627 char * kwnames[] = {
25628 (char *) "self",(char *) "size", NULL
25629 };
25630
25631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25633 if (!SWIG_IsOK(res1)) {
25634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25635 }
25636 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25637 {
25638 arg2 = &temp2;
25639 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25640 }
25641 {
25642 PyThreadState* __tstate = wxPyBeginAllowThreads();
25643 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25644 wxPyEndAllowThreads(__tstate);
25645 if (PyErr_Occurred()) SWIG_fail;
25646 }
25647 resultobj = SWIG_Py_Void();
25648 return resultobj;
25649 fail:
25650 return NULL;
25651 }
25652
25653
25654 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25655 PyObject *resultobj = 0;
25656 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25657 wxSize result;
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 PyObject *swig_obj[1] ;
25661
25662 if (!args) SWIG_fail;
25663 swig_obj[0] = args;
25664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25665 if (!SWIG_IsOK(res1)) {
25666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25667 }
25668 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25669 {
25670 PyThreadState* __tstate = wxPyBeginAllowThreads();
25671 result = (arg1)->GetToolBitmapSize();
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25676 return resultobj;
25677 fail:
25678 return NULL;
25679 }
25680
25681
25682 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25683 PyObject *resultobj = 0;
25684 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25685 wxSize result;
25686 void *argp1 = 0 ;
25687 int res1 = 0 ;
25688 PyObject *swig_obj[1] ;
25689
25690 if (!args) SWIG_fail;
25691 swig_obj[0] = args;
25692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25693 if (!SWIG_IsOK(res1)) {
25694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25695 }
25696 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25697 {
25698 PyThreadState* __tstate = wxPyBeginAllowThreads();
25699 result = (arg1)->GetToolSize();
25700 wxPyEndAllowThreads(__tstate);
25701 if (PyErr_Occurred()) SWIG_fail;
25702 }
25703 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25704 return resultobj;
25705 fail:
25706 return NULL;
25707 }
25708
25709
25710 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25711 PyObject *resultobj = 0;
25712 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25713 int arg2 ;
25714 int arg3 ;
25715 wxToolBarToolBase *result = 0 ;
25716 void *argp1 = 0 ;
25717 int res1 = 0 ;
25718 int val2 ;
25719 int ecode2 = 0 ;
25720 int val3 ;
25721 int ecode3 = 0 ;
25722 PyObject * obj0 = 0 ;
25723 PyObject * obj1 = 0 ;
25724 PyObject * obj2 = 0 ;
25725 char * kwnames[] = {
25726 (char *) "self",(char *) "x",(char *) "y", NULL
25727 };
25728
25729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25731 if (!SWIG_IsOK(res1)) {
25732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25733 }
25734 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25735 ecode2 = SWIG_AsVal_int(obj1, &val2);
25736 if (!SWIG_IsOK(ecode2)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25738 }
25739 arg2 = static_cast< int >(val2);
25740 ecode3 = SWIG_AsVal_int(obj2, &val3);
25741 if (!SWIG_IsOK(ecode3)) {
25742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25743 }
25744 arg3 = static_cast< int >(val3);
25745 {
25746 PyThreadState* __tstate = wxPyBeginAllowThreads();
25747 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 {
25752 resultobj = wxPyMake_wxObject(result, (bool)0);
25753 }
25754 return resultobj;
25755 fail:
25756 return NULL;
25757 }
25758
25759
25760 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25761 PyObject *resultobj = 0;
25762 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25763 int arg2 ;
25764 wxToolBarToolBase *result = 0 ;
25765 void *argp1 = 0 ;
25766 int res1 = 0 ;
25767 int val2 ;
25768 int ecode2 = 0 ;
25769 PyObject * obj0 = 0 ;
25770 PyObject * obj1 = 0 ;
25771 char * kwnames[] = {
25772 (char *) "self",(char *) "toolid", NULL
25773 };
25774
25775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25777 if (!SWIG_IsOK(res1)) {
25778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25779 }
25780 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25781 ecode2 = SWIG_AsVal_int(obj1, &val2);
25782 if (!SWIG_IsOK(ecode2)) {
25783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25784 }
25785 arg2 = static_cast< int >(val2);
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25789 wxPyEndAllowThreads(__tstate);
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
25792 {
25793 resultobj = wxPyMake_wxObject(result, (bool)0);
25794 }
25795 return resultobj;
25796 fail:
25797 return NULL;
25798 }
25799
25800
25801 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25802 PyObject *resultobj = 0;
25803 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25804 bool result;
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
25807 PyObject *swig_obj[1] ;
25808
25809 if (!args) SWIG_fail;
25810 swig_obj[0] = args;
25811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25812 if (!SWIG_IsOK(res1)) {
25813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25814 }
25815 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25816 {
25817 PyThreadState* __tstate = wxPyBeginAllowThreads();
25818 result = (bool)(arg1)->IsVertical();
25819 wxPyEndAllowThreads(__tstate);
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 {
25823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25824 }
25825 return resultobj;
25826 fail:
25827 return NULL;
25828 }
25829
25830
25831 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25832 PyObject *resultobj = 0;
25833 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25834 size_t result;
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
25837 PyObject *swig_obj[1] ;
25838
25839 if (!args) SWIG_fail;
25840 swig_obj[0] = args;
25841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25842 if (!SWIG_IsOK(res1)) {
25843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25844 }
25845 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25846 {
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25849 wxPyEndAllowThreads(__tstate);
25850 if (PyErr_Occurred()) SWIG_fail;
25851 }
25852 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25853 return resultobj;
25854 fail:
25855 return NULL;
25856 }
25857
25858
25859 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25860 PyObject *obj;
25861 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25862 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25863 return SWIG_Py_Void();
25864 }
25865
25866 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25867 PyObject *resultobj = 0;
25868 wxWindow *arg1 = (wxWindow *) 0 ;
25869 int arg2 = (int) -1 ;
25870 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25871 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25872 wxSize const &arg4_defvalue = wxDefaultSize ;
25873 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25874 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25875 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25876 wxString *arg6 = (wxString *) &arg6_defvalue ;
25877 wxToolBar *result = 0 ;
25878 void *argp1 = 0 ;
25879 int res1 = 0 ;
25880 int val2 ;
25881 int ecode2 = 0 ;
25882 wxPoint temp3 ;
25883 wxSize temp4 ;
25884 long val5 ;
25885 int ecode5 = 0 ;
25886 bool temp6 = false ;
25887 PyObject * obj0 = 0 ;
25888 PyObject * obj1 = 0 ;
25889 PyObject * obj2 = 0 ;
25890 PyObject * obj3 = 0 ;
25891 PyObject * obj4 = 0 ;
25892 PyObject * obj5 = 0 ;
25893 char * kwnames[] = {
25894 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25895 };
25896
25897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25899 if (!SWIG_IsOK(res1)) {
25900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25901 }
25902 arg1 = reinterpret_cast< wxWindow * >(argp1);
25903 if (obj1) {
25904 ecode2 = SWIG_AsVal_int(obj1, &val2);
25905 if (!SWIG_IsOK(ecode2)) {
25906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25907 }
25908 arg2 = static_cast< int >(val2);
25909 }
25910 if (obj2) {
25911 {
25912 arg3 = &temp3;
25913 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25914 }
25915 }
25916 if (obj3) {
25917 {
25918 arg4 = &temp4;
25919 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25920 }
25921 }
25922 if (obj4) {
25923 ecode5 = SWIG_AsVal_long(obj4, &val5);
25924 if (!SWIG_IsOK(ecode5)) {
25925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25926 }
25927 arg5 = static_cast< long >(val5);
25928 }
25929 if (obj5) {
25930 {
25931 arg6 = wxString_in_helper(obj5);
25932 if (arg6 == NULL) SWIG_fail;
25933 temp6 = true;
25934 }
25935 }
25936 {
25937 if (!wxPyCheckForApp()) SWIG_fail;
25938 PyThreadState* __tstate = wxPyBeginAllowThreads();
25939 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25940 wxPyEndAllowThreads(__tstate);
25941 if (PyErr_Occurred()) SWIG_fail;
25942 }
25943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25944 {
25945 if (temp6)
25946 delete arg6;
25947 }
25948 return resultobj;
25949 fail:
25950 {
25951 if (temp6)
25952 delete arg6;
25953 }
25954 return NULL;
25955 }
25956
25957
25958 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25959 PyObject *resultobj = 0;
25960 wxToolBar *result = 0 ;
25961
25962 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25963 {
25964 if (!wxPyCheckForApp()) SWIG_fail;
25965 PyThreadState* __tstate = wxPyBeginAllowThreads();
25966 result = (wxToolBar *)new wxToolBar();
25967 wxPyEndAllowThreads(__tstate);
25968 if (PyErr_Occurred()) SWIG_fail;
25969 }
25970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25971 return resultobj;
25972 fail:
25973 return NULL;
25974 }
25975
25976
25977 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25978 PyObject *resultobj = 0;
25979 wxToolBar *arg1 = (wxToolBar *) 0 ;
25980 wxWindow *arg2 = (wxWindow *) 0 ;
25981 int arg3 = (int) -1 ;
25982 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25983 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25984 wxSize const &arg5_defvalue = wxDefaultSize ;
25985 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25986 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25987 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25988 wxString *arg7 = (wxString *) &arg7_defvalue ;
25989 bool result;
25990 void *argp1 = 0 ;
25991 int res1 = 0 ;
25992 void *argp2 = 0 ;
25993 int res2 = 0 ;
25994 int val3 ;
25995 int ecode3 = 0 ;
25996 wxPoint temp4 ;
25997 wxSize temp5 ;
25998 long val6 ;
25999 int ecode6 = 0 ;
26000 bool temp7 = false ;
26001 PyObject * obj0 = 0 ;
26002 PyObject * obj1 = 0 ;
26003 PyObject * obj2 = 0 ;
26004 PyObject * obj3 = 0 ;
26005 PyObject * obj4 = 0 ;
26006 PyObject * obj5 = 0 ;
26007 PyObject * obj6 = 0 ;
26008 char * kwnames[] = {
26009 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26010 };
26011
26012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26014 if (!SWIG_IsOK(res1)) {
26015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26016 }
26017 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26019 if (!SWIG_IsOK(res2)) {
26020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26021 }
26022 arg2 = reinterpret_cast< wxWindow * >(argp2);
26023 if (obj2) {
26024 ecode3 = SWIG_AsVal_int(obj2, &val3);
26025 if (!SWIG_IsOK(ecode3)) {
26026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26027 }
26028 arg3 = static_cast< int >(val3);
26029 }
26030 if (obj3) {
26031 {
26032 arg4 = &temp4;
26033 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26034 }
26035 }
26036 if (obj4) {
26037 {
26038 arg5 = &temp5;
26039 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26040 }
26041 }
26042 if (obj5) {
26043 ecode6 = SWIG_AsVal_long(obj5, &val6);
26044 if (!SWIG_IsOK(ecode6)) {
26045 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26046 }
26047 arg6 = static_cast< long >(val6);
26048 }
26049 if (obj6) {
26050 {
26051 arg7 = wxString_in_helper(obj6);
26052 if (arg7 == NULL) SWIG_fail;
26053 temp7 = true;
26054 }
26055 }
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26059 wxPyEndAllowThreads(__tstate);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 {
26063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26064 }
26065 {
26066 if (temp7)
26067 delete arg7;
26068 }
26069 return resultobj;
26070 fail:
26071 {
26072 if (temp7)
26073 delete arg7;
26074 }
26075 return NULL;
26076 }
26077
26078
26079 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26080 PyObject *resultobj = 0;
26081 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26082 SwigValueWrapper<wxVisualAttributes > result;
26083 int val1 ;
26084 int ecode1 = 0 ;
26085 PyObject * obj0 = 0 ;
26086 char * kwnames[] = {
26087 (char *) "variant", NULL
26088 };
26089
26090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26091 if (obj0) {
26092 ecode1 = SWIG_AsVal_int(obj0, &val1);
26093 if (!SWIG_IsOK(ecode1)) {
26094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26095 }
26096 arg1 = static_cast< wxWindowVariant >(val1);
26097 }
26098 {
26099 if (!wxPyCheckForApp()) SWIG_fail;
26100 PyThreadState* __tstate = wxPyBeginAllowThreads();
26101 result = wxToolBar::GetClassDefaultAttributes(arg1);
26102 wxPyEndAllowThreads(__tstate);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 }
26105 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26106 return resultobj;
26107 fail:
26108 return NULL;
26109 }
26110
26111
26112 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26113 PyObject *obj;
26114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26115 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26116 return SWIG_Py_Void();
26117 }
26118
26119 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26120 return SWIG_Python_InitShadowInstance(args);
26121 }
26122
26123 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26124 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26125 return 1;
26126 }
26127
26128
26129 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26130 PyObject *pyobj = 0;
26131
26132 {
26133 #if wxUSE_UNICODE
26134 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26135 #else
26136 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26137 #endif
26138 }
26139 return pyobj;
26140 }
26141
26142
26143 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxColour const &arg1_defvalue = wxNullColour ;
26146 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26147 wxColour const &arg2_defvalue = wxNullColour ;
26148 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26149 wxFont const &arg3_defvalue = wxNullFont ;
26150 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26151 wxListItemAttr *result = 0 ;
26152 wxColour temp1 ;
26153 wxColour temp2 ;
26154 void *argp3 = 0 ;
26155 int res3 = 0 ;
26156 PyObject * obj0 = 0 ;
26157 PyObject * obj1 = 0 ;
26158 PyObject * obj2 = 0 ;
26159 char * kwnames[] = {
26160 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26161 };
26162
26163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26164 if (obj0) {
26165 {
26166 arg1 = &temp1;
26167 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26168 }
26169 }
26170 if (obj1) {
26171 {
26172 arg2 = &temp2;
26173 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26174 }
26175 }
26176 if (obj2) {
26177 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26178 if (!SWIG_IsOK(res3)) {
26179 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26180 }
26181 if (!argp3) {
26182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26183 }
26184 arg3 = reinterpret_cast< wxFont * >(argp3);
26185 }
26186 {
26187 PyThreadState* __tstate = wxPyBeginAllowThreads();
26188 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26189 wxPyEndAllowThreads(__tstate);
26190 if (PyErr_Occurred()) SWIG_fail;
26191 }
26192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26193 return resultobj;
26194 fail:
26195 return NULL;
26196 }
26197
26198
26199 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26200 PyObject *resultobj = 0;
26201 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26202 void *argp1 = 0 ;
26203 int res1 = 0 ;
26204 PyObject *swig_obj[1] ;
26205
26206 if (!args) SWIG_fail;
26207 swig_obj[0] = args;
26208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26209 if (!SWIG_IsOK(res1)) {
26210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26211 }
26212 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26213 {
26214 PyThreadState* __tstate = wxPyBeginAllowThreads();
26215 delete arg1;
26216
26217 wxPyEndAllowThreads(__tstate);
26218 if (PyErr_Occurred()) SWIG_fail;
26219 }
26220 resultobj = SWIG_Py_Void();
26221 return resultobj;
26222 fail:
26223 return NULL;
26224 }
26225
26226
26227 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26228 PyObject *resultobj = 0;
26229 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26230 wxColour *arg2 = 0 ;
26231 void *argp1 = 0 ;
26232 int res1 = 0 ;
26233 wxColour temp2 ;
26234 PyObject * obj0 = 0 ;
26235 PyObject * obj1 = 0 ;
26236 char * kwnames[] = {
26237 (char *) "self",(char *) "colText", NULL
26238 };
26239
26240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26242 if (!SWIG_IsOK(res1)) {
26243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26244 }
26245 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26246 {
26247 arg2 = &temp2;
26248 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26249 }
26250 {
26251 PyThreadState* __tstate = wxPyBeginAllowThreads();
26252 (arg1)->SetTextColour((wxColour const &)*arg2);
26253 wxPyEndAllowThreads(__tstate);
26254 if (PyErr_Occurred()) SWIG_fail;
26255 }
26256 resultobj = SWIG_Py_Void();
26257 return resultobj;
26258 fail:
26259 return NULL;
26260 }
26261
26262
26263 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26264 PyObject *resultobj = 0;
26265 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26266 wxColour *arg2 = 0 ;
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 wxColour temp2 ;
26270 PyObject * obj0 = 0 ;
26271 PyObject * obj1 = 0 ;
26272 char * kwnames[] = {
26273 (char *) "self",(char *) "colBack", NULL
26274 };
26275
26276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26278 if (!SWIG_IsOK(res1)) {
26279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26280 }
26281 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26282 {
26283 arg2 = &temp2;
26284 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26285 }
26286 {
26287 PyThreadState* __tstate = wxPyBeginAllowThreads();
26288 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26289 wxPyEndAllowThreads(__tstate);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 resultobj = SWIG_Py_Void();
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26300 PyObject *resultobj = 0;
26301 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26302 wxFont *arg2 = 0 ;
26303 void *argp1 = 0 ;
26304 int res1 = 0 ;
26305 void *argp2 = 0 ;
26306 int res2 = 0 ;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 char * kwnames[] = {
26310 (char *) "self",(char *) "font", NULL
26311 };
26312
26313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26315 if (!SWIG_IsOK(res1)) {
26316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26317 }
26318 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26320 if (!SWIG_IsOK(res2)) {
26321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26322 }
26323 if (!argp2) {
26324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26325 }
26326 arg2 = reinterpret_cast< wxFont * >(argp2);
26327 {
26328 PyThreadState* __tstate = wxPyBeginAllowThreads();
26329 (arg1)->SetFont((wxFont const &)*arg2);
26330 wxPyEndAllowThreads(__tstate);
26331 if (PyErr_Occurred()) SWIG_fail;
26332 }
26333 resultobj = SWIG_Py_Void();
26334 return resultobj;
26335 fail:
26336 return NULL;
26337 }
26338
26339
26340 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26341 PyObject *resultobj = 0;
26342 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26343 bool result;
26344 void *argp1 = 0 ;
26345 int res1 = 0 ;
26346 PyObject *swig_obj[1] ;
26347
26348 if (!args) SWIG_fail;
26349 swig_obj[0] = args;
26350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26351 if (!SWIG_IsOK(res1)) {
26352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26353 }
26354 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26355 {
26356 PyThreadState* __tstate = wxPyBeginAllowThreads();
26357 result = (bool)(arg1)->HasTextColour();
26358 wxPyEndAllowThreads(__tstate);
26359 if (PyErr_Occurred()) SWIG_fail;
26360 }
26361 {
26362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26363 }
26364 return resultobj;
26365 fail:
26366 return NULL;
26367 }
26368
26369
26370 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26371 PyObject *resultobj = 0;
26372 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26373 bool result;
26374 void *argp1 = 0 ;
26375 int res1 = 0 ;
26376 PyObject *swig_obj[1] ;
26377
26378 if (!args) SWIG_fail;
26379 swig_obj[0] = args;
26380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26381 if (!SWIG_IsOK(res1)) {
26382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26383 }
26384 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26385 {
26386 PyThreadState* __tstate = wxPyBeginAllowThreads();
26387 result = (bool)(arg1)->HasBackgroundColour();
26388 wxPyEndAllowThreads(__tstate);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 }
26391 {
26392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26393 }
26394 return resultobj;
26395 fail:
26396 return NULL;
26397 }
26398
26399
26400 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26401 PyObject *resultobj = 0;
26402 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26403 bool result;
26404 void *argp1 = 0 ;
26405 int res1 = 0 ;
26406 PyObject *swig_obj[1] ;
26407
26408 if (!args) SWIG_fail;
26409 swig_obj[0] = args;
26410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26411 if (!SWIG_IsOK(res1)) {
26412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26413 }
26414 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26415 {
26416 PyThreadState* __tstate = wxPyBeginAllowThreads();
26417 result = (bool)(arg1)->HasFont();
26418 wxPyEndAllowThreads(__tstate);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 {
26422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26423 }
26424 return resultobj;
26425 fail:
26426 return NULL;
26427 }
26428
26429
26430 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26431 PyObject *resultobj = 0;
26432 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26433 wxColour result;
26434 void *argp1 = 0 ;
26435 int res1 = 0 ;
26436 PyObject *swig_obj[1] ;
26437
26438 if (!args) SWIG_fail;
26439 swig_obj[0] = args;
26440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26441 if (!SWIG_IsOK(res1)) {
26442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26443 }
26444 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26445 {
26446 PyThreadState* __tstate = wxPyBeginAllowThreads();
26447 result = (arg1)->GetTextColour();
26448 wxPyEndAllowThreads(__tstate);
26449 if (PyErr_Occurred()) SWIG_fail;
26450 }
26451 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26452 return resultobj;
26453 fail:
26454 return NULL;
26455 }
26456
26457
26458 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26459 PyObject *resultobj = 0;
26460 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26461 wxColour result;
26462 void *argp1 = 0 ;
26463 int res1 = 0 ;
26464 PyObject *swig_obj[1] ;
26465
26466 if (!args) SWIG_fail;
26467 swig_obj[0] = args;
26468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26469 if (!SWIG_IsOK(res1)) {
26470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26471 }
26472 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26473 {
26474 PyThreadState* __tstate = wxPyBeginAllowThreads();
26475 result = (arg1)->GetBackgroundColour();
26476 wxPyEndAllowThreads(__tstate);
26477 if (PyErr_Occurred()) SWIG_fail;
26478 }
26479 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26480 return resultobj;
26481 fail:
26482 return NULL;
26483 }
26484
26485
26486 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26487 PyObject *resultobj = 0;
26488 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26489 wxFont result;
26490 void *argp1 = 0 ;
26491 int res1 = 0 ;
26492 PyObject *swig_obj[1] ;
26493
26494 if (!args) SWIG_fail;
26495 swig_obj[0] = args;
26496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26497 if (!SWIG_IsOK(res1)) {
26498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26499 }
26500 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26501 {
26502 PyThreadState* __tstate = wxPyBeginAllowThreads();
26503 result = (arg1)->GetFont();
26504 wxPyEndAllowThreads(__tstate);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26508 return resultobj;
26509 fail:
26510 return NULL;
26511 }
26512
26513
26514 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26515 PyObject *resultobj = 0;
26516 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26517 wxListItemAttr *arg2 = 0 ;
26518 void *argp1 = 0 ;
26519 int res1 = 0 ;
26520 void *argp2 = 0 ;
26521 int res2 = 0 ;
26522 PyObject * obj0 = 0 ;
26523 PyObject * obj1 = 0 ;
26524 char * kwnames[] = {
26525 (char *) "self",(char *) "source", NULL
26526 };
26527
26528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26530 if (!SWIG_IsOK(res1)) {
26531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26532 }
26533 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26535 if (!SWIG_IsOK(res2)) {
26536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26537 }
26538 if (!argp2) {
26539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26540 }
26541 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26542 {
26543 PyThreadState* __tstate = wxPyBeginAllowThreads();
26544 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26545 wxPyEndAllowThreads(__tstate);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 }
26548 resultobj = SWIG_Py_Void();
26549 return resultobj;
26550 fail:
26551 return NULL;
26552 }
26553
26554
26555 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26556 PyObject *resultobj = 0;
26557 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26558 void *argp1 = 0 ;
26559 int res1 = 0 ;
26560 PyObject *swig_obj[1] ;
26561
26562 if (!args) SWIG_fail;
26563 swig_obj[0] = args;
26564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26565 if (!SWIG_IsOK(res1)) {
26566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26567 }
26568 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26569 {
26570 PyThreadState* __tstate = wxPyBeginAllowThreads();
26571 wxListItemAttr_Destroy(arg1);
26572 wxPyEndAllowThreads(__tstate);
26573 if (PyErr_Occurred()) SWIG_fail;
26574 }
26575 resultobj = SWIG_Py_Void();
26576 return resultobj;
26577 fail:
26578 return NULL;
26579 }
26580
26581
26582 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26583 PyObject *obj;
26584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26585 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26586 return SWIG_Py_Void();
26587 }
26588
26589 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26590 return SWIG_Python_InitShadowInstance(args);
26591 }
26592
26593 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26594 PyObject *resultobj = 0;
26595 wxListItem *result = 0 ;
26596
26597 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26598 {
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 result = (wxListItem *)new wxListItem();
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26612 PyObject *resultobj = 0;
26613 wxListItem *arg1 = (wxListItem *) 0 ;
26614 void *argp1 = 0 ;
26615 int res1 = 0 ;
26616 PyObject *swig_obj[1] ;
26617
26618 if (!args) SWIG_fail;
26619 swig_obj[0] = args;
26620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26621 if (!SWIG_IsOK(res1)) {
26622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26623 }
26624 arg1 = reinterpret_cast< wxListItem * >(argp1);
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 delete arg1;
26628
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 resultobj = SWIG_Py_Void();
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26640 PyObject *resultobj = 0;
26641 wxListItem *arg1 = (wxListItem *) 0 ;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 PyObject *swig_obj[1] ;
26645
26646 if (!args) SWIG_fail;
26647 swig_obj[0] = args;
26648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26651 }
26652 arg1 = reinterpret_cast< wxListItem * >(argp1);
26653 {
26654 PyThreadState* __tstate = wxPyBeginAllowThreads();
26655 (arg1)->Clear();
26656 wxPyEndAllowThreads(__tstate);
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 resultobj = SWIG_Py_Void();
26660 return resultobj;
26661 fail:
26662 return NULL;
26663 }
26664
26665
26666 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26667 PyObject *resultobj = 0;
26668 wxListItem *arg1 = (wxListItem *) 0 ;
26669 void *argp1 = 0 ;
26670 int res1 = 0 ;
26671 PyObject *swig_obj[1] ;
26672
26673 if (!args) SWIG_fail;
26674 swig_obj[0] = args;
26675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26676 if (!SWIG_IsOK(res1)) {
26677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26678 }
26679 arg1 = reinterpret_cast< wxListItem * >(argp1);
26680 {
26681 PyThreadState* __tstate = wxPyBeginAllowThreads();
26682 (arg1)->ClearAttributes();
26683 wxPyEndAllowThreads(__tstate);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 }
26686 resultobj = SWIG_Py_Void();
26687 return resultobj;
26688 fail:
26689 return NULL;
26690 }
26691
26692
26693 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26694 PyObject *resultobj = 0;
26695 wxListItem *arg1 = (wxListItem *) 0 ;
26696 long arg2 ;
26697 void *argp1 = 0 ;
26698 int res1 = 0 ;
26699 long val2 ;
26700 int ecode2 = 0 ;
26701 PyObject * obj0 = 0 ;
26702 PyObject * obj1 = 0 ;
26703 char * kwnames[] = {
26704 (char *) "self",(char *) "mask", NULL
26705 };
26706
26707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26709 if (!SWIG_IsOK(res1)) {
26710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26711 }
26712 arg1 = reinterpret_cast< wxListItem * >(argp1);
26713 ecode2 = SWIG_AsVal_long(obj1, &val2);
26714 if (!SWIG_IsOK(ecode2)) {
26715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26716 }
26717 arg2 = static_cast< long >(val2);
26718 {
26719 PyThreadState* __tstate = wxPyBeginAllowThreads();
26720 (arg1)->SetMask(arg2);
26721 wxPyEndAllowThreads(__tstate);
26722 if (PyErr_Occurred()) SWIG_fail;
26723 }
26724 resultobj = SWIG_Py_Void();
26725 return resultobj;
26726 fail:
26727 return NULL;
26728 }
26729
26730
26731 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26732 PyObject *resultobj = 0;
26733 wxListItem *arg1 = (wxListItem *) 0 ;
26734 long arg2 ;
26735 void *argp1 = 0 ;
26736 int res1 = 0 ;
26737 long val2 ;
26738 int ecode2 = 0 ;
26739 PyObject * obj0 = 0 ;
26740 PyObject * obj1 = 0 ;
26741 char * kwnames[] = {
26742 (char *) "self",(char *) "id", NULL
26743 };
26744
26745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26747 if (!SWIG_IsOK(res1)) {
26748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26749 }
26750 arg1 = reinterpret_cast< wxListItem * >(argp1);
26751 ecode2 = SWIG_AsVal_long(obj1, &val2);
26752 if (!SWIG_IsOK(ecode2)) {
26753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26754 }
26755 arg2 = static_cast< long >(val2);
26756 {
26757 PyThreadState* __tstate = wxPyBeginAllowThreads();
26758 (arg1)->SetId(arg2);
26759 wxPyEndAllowThreads(__tstate);
26760 if (PyErr_Occurred()) SWIG_fail;
26761 }
26762 resultobj = SWIG_Py_Void();
26763 return resultobj;
26764 fail:
26765 return NULL;
26766 }
26767
26768
26769 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26770 PyObject *resultobj = 0;
26771 wxListItem *arg1 = (wxListItem *) 0 ;
26772 int arg2 ;
26773 void *argp1 = 0 ;
26774 int res1 = 0 ;
26775 int val2 ;
26776 int ecode2 = 0 ;
26777 PyObject * obj0 = 0 ;
26778 PyObject * obj1 = 0 ;
26779 char * kwnames[] = {
26780 (char *) "self",(char *) "col", NULL
26781 };
26782
26783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26785 if (!SWIG_IsOK(res1)) {
26786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26787 }
26788 arg1 = reinterpret_cast< wxListItem * >(argp1);
26789 ecode2 = SWIG_AsVal_int(obj1, &val2);
26790 if (!SWIG_IsOK(ecode2)) {
26791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26792 }
26793 arg2 = static_cast< int >(val2);
26794 {
26795 PyThreadState* __tstate = wxPyBeginAllowThreads();
26796 (arg1)->SetColumn(arg2);
26797 wxPyEndAllowThreads(__tstate);
26798 if (PyErr_Occurred()) SWIG_fail;
26799 }
26800 resultobj = SWIG_Py_Void();
26801 return resultobj;
26802 fail:
26803 return NULL;
26804 }
26805
26806
26807 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26808 PyObject *resultobj = 0;
26809 wxListItem *arg1 = (wxListItem *) 0 ;
26810 long arg2 ;
26811 void *argp1 = 0 ;
26812 int res1 = 0 ;
26813 long val2 ;
26814 int ecode2 = 0 ;
26815 PyObject * obj0 = 0 ;
26816 PyObject * obj1 = 0 ;
26817 char * kwnames[] = {
26818 (char *) "self",(char *) "state", NULL
26819 };
26820
26821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26823 if (!SWIG_IsOK(res1)) {
26824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26825 }
26826 arg1 = reinterpret_cast< wxListItem * >(argp1);
26827 ecode2 = SWIG_AsVal_long(obj1, &val2);
26828 if (!SWIG_IsOK(ecode2)) {
26829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26830 }
26831 arg2 = static_cast< long >(val2);
26832 {
26833 PyThreadState* __tstate = wxPyBeginAllowThreads();
26834 (arg1)->SetState(arg2);
26835 wxPyEndAllowThreads(__tstate);
26836 if (PyErr_Occurred()) SWIG_fail;
26837 }
26838 resultobj = SWIG_Py_Void();
26839 return resultobj;
26840 fail:
26841 return NULL;
26842 }
26843
26844
26845 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26846 PyObject *resultobj = 0;
26847 wxListItem *arg1 = (wxListItem *) 0 ;
26848 long arg2 ;
26849 void *argp1 = 0 ;
26850 int res1 = 0 ;
26851 long val2 ;
26852 int ecode2 = 0 ;
26853 PyObject * obj0 = 0 ;
26854 PyObject * obj1 = 0 ;
26855 char * kwnames[] = {
26856 (char *) "self",(char *) "stateMask", NULL
26857 };
26858
26859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26861 if (!SWIG_IsOK(res1)) {
26862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26863 }
26864 arg1 = reinterpret_cast< wxListItem * >(argp1);
26865 ecode2 = SWIG_AsVal_long(obj1, &val2);
26866 if (!SWIG_IsOK(ecode2)) {
26867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26868 }
26869 arg2 = static_cast< long >(val2);
26870 {
26871 PyThreadState* __tstate = wxPyBeginAllowThreads();
26872 (arg1)->SetStateMask(arg2);
26873 wxPyEndAllowThreads(__tstate);
26874 if (PyErr_Occurred()) SWIG_fail;
26875 }
26876 resultobj = SWIG_Py_Void();
26877 return resultobj;
26878 fail:
26879 return NULL;
26880 }
26881
26882
26883 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26884 PyObject *resultobj = 0;
26885 wxListItem *arg1 = (wxListItem *) 0 ;
26886 wxString *arg2 = 0 ;
26887 void *argp1 = 0 ;
26888 int res1 = 0 ;
26889 bool temp2 = false ;
26890 PyObject * obj0 = 0 ;
26891 PyObject * obj1 = 0 ;
26892 char * kwnames[] = {
26893 (char *) "self",(char *) "text", NULL
26894 };
26895
26896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26898 if (!SWIG_IsOK(res1)) {
26899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26900 }
26901 arg1 = reinterpret_cast< wxListItem * >(argp1);
26902 {
26903 arg2 = wxString_in_helper(obj1);
26904 if (arg2 == NULL) SWIG_fail;
26905 temp2 = true;
26906 }
26907 {
26908 PyThreadState* __tstate = wxPyBeginAllowThreads();
26909 (arg1)->SetText((wxString const &)*arg2);
26910 wxPyEndAllowThreads(__tstate);
26911 if (PyErr_Occurred()) SWIG_fail;
26912 }
26913 resultobj = SWIG_Py_Void();
26914 {
26915 if (temp2)
26916 delete arg2;
26917 }
26918 return resultobj;
26919 fail:
26920 {
26921 if (temp2)
26922 delete arg2;
26923 }
26924 return NULL;
26925 }
26926
26927
26928 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26929 PyObject *resultobj = 0;
26930 wxListItem *arg1 = (wxListItem *) 0 ;
26931 int arg2 ;
26932 void *argp1 = 0 ;
26933 int res1 = 0 ;
26934 int val2 ;
26935 int ecode2 = 0 ;
26936 PyObject * obj0 = 0 ;
26937 PyObject * obj1 = 0 ;
26938 char * kwnames[] = {
26939 (char *) "self",(char *) "image", NULL
26940 };
26941
26942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26946 }
26947 arg1 = reinterpret_cast< wxListItem * >(argp1);
26948 ecode2 = SWIG_AsVal_int(obj1, &val2);
26949 if (!SWIG_IsOK(ecode2)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26951 }
26952 arg2 = static_cast< int >(val2);
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 (arg1)->SetImage(arg2);
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_Py_Void();
26960 return resultobj;
26961 fail:
26962 return NULL;
26963 }
26964
26965
26966 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26967 PyObject *resultobj = 0;
26968 wxListItem *arg1 = (wxListItem *) 0 ;
26969 long arg2 ;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 long val2 ;
26973 int ecode2 = 0 ;
26974 PyObject * obj0 = 0 ;
26975 PyObject * obj1 = 0 ;
26976 char * kwnames[] = {
26977 (char *) "self",(char *) "data", NULL
26978 };
26979
26980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26982 if (!SWIG_IsOK(res1)) {
26983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26984 }
26985 arg1 = reinterpret_cast< wxListItem * >(argp1);
26986 ecode2 = SWIG_AsVal_long(obj1, &val2);
26987 if (!SWIG_IsOK(ecode2)) {
26988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26989 }
26990 arg2 = static_cast< long >(val2);
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 (arg1)->SetData(arg2);
26994 wxPyEndAllowThreads(__tstate);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_Py_Void();
26998 return resultobj;
26999 fail:
27000 return NULL;
27001 }
27002
27003
27004 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27005 PyObject *resultobj = 0;
27006 wxListItem *arg1 = (wxListItem *) 0 ;
27007 int arg2 ;
27008 void *argp1 = 0 ;
27009 int res1 = 0 ;
27010 int val2 ;
27011 int ecode2 = 0 ;
27012 PyObject * obj0 = 0 ;
27013 PyObject * obj1 = 0 ;
27014 char * kwnames[] = {
27015 (char *) "self",(char *) "width", NULL
27016 };
27017
27018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27020 if (!SWIG_IsOK(res1)) {
27021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27022 }
27023 arg1 = reinterpret_cast< wxListItem * >(argp1);
27024 ecode2 = SWIG_AsVal_int(obj1, &val2);
27025 if (!SWIG_IsOK(ecode2)) {
27026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27027 }
27028 arg2 = static_cast< int >(val2);
27029 {
27030 PyThreadState* __tstate = wxPyBeginAllowThreads();
27031 (arg1)->SetWidth(arg2);
27032 wxPyEndAllowThreads(__tstate);
27033 if (PyErr_Occurred()) SWIG_fail;
27034 }
27035 resultobj = SWIG_Py_Void();
27036 return resultobj;
27037 fail:
27038 return NULL;
27039 }
27040
27041
27042 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27043 PyObject *resultobj = 0;
27044 wxListItem *arg1 = (wxListItem *) 0 ;
27045 wxListColumnFormat arg2 ;
27046 void *argp1 = 0 ;
27047 int res1 = 0 ;
27048 int val2 ;
27049 int ecode2 = 0 ;
27050 PyObject * obj0 = 0 ;
27051 PyObject * obj1 = 0 ;
27052 char * kwnames[] = {
27053 (char *) "self",(char *) "align", NULL
27054 };
27055
27056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27058 if (!SWIG_IsOK(res1)) {
27059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27060 }
27061 arg1 = reinterpret_cast< wxListItem * >(argp1);
27062 ecode2 = SWIG_AsVal_int(obj1, &val2);
27063 if (!SWIG_IsOK(ecode2)) {
27064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27065 }
27066 arg2 = static_cast< wxListColumnFormat >(val2);
27067 {
27068 PyThreadState* __tstate = wxPyBeginAllowThreads();
27069 (arg1)->SetAlign(arg2);
27070 wxPyEndAllowThreads(__tstate);
27071 if (PyErr_Occurred()) SWIG_fail;
27072 }
27073 resultobj = SWIG_Py_Void();
27074 return resultobj;
27075 fail:
27076 return NULL;
27077 }
27078
27079
27080 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27081 PyObject *resultobj = 0;
27082 wxListItem *arg1 = (wxListItem *) 0 ;
27083 wxColour *arg2 = 0 ;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 wxColour temp2 ;
27087 PyObject * obj0 = 0 ;
27088 PyObject * obj1 = 0 ;
27089 char * kwnames[] = {
27090 (char *) "self",(char *) "colText", NULL
27091 };
27092
27093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27095 if (!SWIG_IsOK(res1)) {
27096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27097 }
27098 arg1 = reinterpret_cast< wxListItem * >(argp1);
27099 {
27100 arg2 = &temp2;
27101 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27102 }
27103 {
27104 PyThreadState* __tstate = wxPyBeginAllowThreads();
27105 (arg1)->SetTextColour((wxColour const &)*arg2);
27106 wxPyEndAllowThreads(__tstate);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_Py_Void();
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27117 PyObject *resultobj = 0;
27118 wxListItem *arg1 = (wxListItem *) 0 ;
27119 wxColour *arg2 = 0 ;
27120 void *argp1 = 0 ;
27121 int res1 = 0 ;
27122 wxColour temp2 ;
27123 PyObject * obj0 = 0 ;
27124 PyObject * obj1 = 0 ;
27125 char * kwnames[] = {
27126 (char *) "self",(char *) "colBack", NULL
27127 };
27128
27129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27131 if (!SWIG_IsOK(res1)) {
27132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27133 }
27134 arg1 = reinterpret_cast< wxListItem * >(argp1);
27135 {
27136 arg2 = &temp2;
27137 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27138 }
27139 {
27140 PyThreadState* __tstate = wxPyBeginAllowThreads();
27141 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27142 wxPyEndAllowThreads(__tstate);
27143 if (PyErr_Occurred()) SWIG_fail;
27144 }
27145 resultobj = SWIG_Py_Void();
27146 return resultobj;
27147 fail:
27148 return NULL;
27149 }
27150
27151
27152 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27153 PyObject *resultobj = 0;
27154 wxListItem *arg1 = (wxListItem *) 0 ;
27155 wxFont *arg2 = 0 ;
27156 void *argp1 = 0 ;
27157 int res1 = 0 ;
27158 void *argp2 = 0 ;
27159 int res2 = 0 ;
27160 PyObject * obj0 = 0 ;
27161 PyObject * obj1 = 0 ;
27162 char * kwnames[] = {
27163 (char *) "self",(char *) "font", NULL
27164 };
27165
27166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27168 if (!SWIG_IsOK(res1)) {
27169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27170 }
27171 arg1 = reinterpret_cast< wxListItem * >(argp1);
27172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27173 if (!SWIG_IsOK(res2)) {
27174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27175 }
27176 if (!argp2) {
27177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27178 }
27179 arg2 = reinterpret_cast< wxFont * >(argp2);
27180 {
27181 PyThreadState* __tstate = wxPyBeginAllowThreads();
27182 (arg1)->SetFont((wxFont const &)*arg2);
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 resultobj = SWIG_Py_Void();
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27194 PyObject *resultobj = 0;
27195 wxListItem *arg1 = (wxListItem *) 0 ;
27196 long result;
27197 void *argp1 = 0 ;
27198 int res1 = 0 ;
27199 PyObject *swig_obj[1] ;
27200
27201 if (!args) SWIG_fail;
27202 swig_obj[0] = args;
27203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27204 if (!SWIG_IsOK(res1)) {
27205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27206 }
27207 arg1 = reinterpret_cast< wxListItem * >(argp1);
27208 {
27209 PyThreadState* __tstate = wxPyBeginAllowThreads();
27210 result = (long)(arg1)->GetMask();
27211 wxPyEndAllowThreads(__tstate);
27212 if (PyErr_Occurred()) SWIG_fail;
27213 }
27214 resultobj = SWIG_From_long(static_cast< long >(result));
27215 return resultobj;
27216 fail:
27217 return NULL;
27218 }
27219
27220
27221 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27222 PyObject *resultobj = 0;
27223 wxListItem *arg1 = (wxListItem *) 0 ;
27224 long result;
27225 void *argp1 = 0 ;
27226 int res1 = 0 ;
27227 PyObject *swig_obj[1] ;
27228
27229 if (!args) SWIG_fail;
27230 swig_obj[0] = args;
27231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27232 if (!SWIG_IsOK(res1)) {
27233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27234 }
27235 arg1 = reinterpret_cast< wxListItem * >(argp1);
27236 {
27237 PyThreadState* __tstate = wxPyBeginAllowThreads();
27238 result = (long)(arg1)->GetId();
27239 wxPyEndAllowThreads(__tstate);
27240 if (PyErr_Occurred()) SWIG_fail;
27241 }
27242 resultobj = SWIG_From_long(static_cast< long >(result));
27243 return resultobj;
27244 fail:
27245 return NULL;
27246 }
27247
27248
27249 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27250 PyObject *resultobj = 0;
27251 wxListItem *arg1 = (wxListItem *) 0 ;
27252 int result;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
27255 PyObject *swig_obj[1] ;
27256
27257 if (!args) SWIG_fail;
27258 swig_obj[0] = args;
27259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27260 if (!SWIG_IsOK(res1)) {
27261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27262 }
27263 arg1 = reinterpret_cast< wxListItem * >(argp1);
27264 {
27265 PyThreadState* __tstate = wxPyBeginAllowThreads();
27266 result = (int)(arg1)->GetColumn();
27267 wxPyEndAllowThreads(__tstate);
27268 if (PyErr_Occurred()) SWIG_fail;
27269 }
27270 resultobj = SWIG_From_int(static_cast< int >(result));
27271 return resultobj;
27272 fail:
27273 return NULL;
27274 }
27275
27276
27277 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27278 PyObject *resultobj = 0;
27279 wxListItem *arg1 = (wxListItem *) 0 ;
27280 long result;
27281 void *argp1 = 0 ;
27282 int res1 = 0 ;
27283 PyObject *swig_obj[1] ;
27284
27285 if (!args) SWIG_fail;
27286 swig_obj[0] = args;
27287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27288 if (!SWIG_IsOK(res1)) {
27289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27290 }
27291 arg1 = reinterpret_cast< wxListItem * >(argp1);
27292 {
27293 PyThreadState* __tstate = wxPyBeginAllowThreads();
27294 result = (long)(arg1)->GetState();
27295 wxPyEndAllowThreads(__tstate);
27296 if (PyErr_Occurred()) SWIG_fail;
27297 }
27298 resultobj = SWIG_From_long(static_cast< long >(result));
27299 return resultobj;
27300 fail:
27301 return NULL;
27302 }
27303
27304
27305 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27306 PyObject *resultobj = 0;
27307 wxListItem *arg1 = (wxListItem *) 0 ;
27308 wxString *result = 0 ;
27309 void *argp1 = 0 ;
27310 int res1 = 0 ;
27311 PyObject *swig_obj[1] ;
27312
27313 if (!args) SWIG_fail;
27314 swig_obj[0] = args;
27315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27316 if (!SWIG_IsOK(res1)) {
27317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27318 }
27319 arg1 = reinterpret_cast< wxListItem * >(argp1);
27320 {
27321 PyThreadState* __tstate = wxPyBeginAllowThreads();
27322 {
27323 wxString const &_result_ref = (arg1)->GetText();
27324 result = (wxString *) &_result_ref;
27325 }
27326 wxPyEndAllowThreads(__tstate);
27327 if (PyErr_Occurred()) SWIG_fail;
27328 }
27329 {
27330 #if wxUSE_UNICODE
27331 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27332 #else
27333 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27334 #endif
27335 }
27336 return resultobj;
27337 fail:
27338 return NULL;
27339 }
27340
27341
27342 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27343 PyObject *resultobj = 0;
27344 wxListItem *arg1 = (wxListItem *) 0 ;
27345 int result;
27346 void *argp1 = 0 ;
27347 int res1 = 0 ;
27348 PyObject *swig_obj[1] ;
27349
27350 if (!args) SWIG_fail;
27351 swig_obj[0] = args;
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_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27355 }
27356 arg1 = reinterpret_cast< wxListItem * >(argp1);
27357 {
27358 PyThreadState* __tstate = wxPyBeginAllowThreads();
27359 result = (int)(arg1)->GetImage();
27360 wxPyEndAllowThreads(__tstate);
27361 if (PyErr_Occurred()) SWIG_fail;
27362 }
27363 resultobj = SWIG_From_int(static_cast< int >(result));
27364 return resultobj;
27365 fail:
27366 return NULL;
27367 }
27368
27369
27370 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27371 PyObject *resultobj = 0;
27372 wxListItem *arg1 = (wxListItem *) 0 ;
27373 long result;
27374 void *argp1 = 0 ;
27375 int res1 = 0 ;
27376 PyObject *swig_obj[1] ;
27377
27378 if (!args) SWIG_fail;
27379 swig_obj[0] = args;
27380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27381 if (!SWIG_IsOK(res1)) {
27382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27383 }
27384 arg1 = reinterpret_cast< wxListItem * >(argp1);
27385 {
27386 PyThreadState* __tstate = wxPyBeginAllowThreads();
27387 result = (long)(arg1)->GetData();
27388 wxPyEndAllowThreads(__tstate);
27389 if (PyErr_Occurred()) SWIG_fail;
27390 }
27391 resultobj = SWIG_From_long(static_cast< long >(result));
27392 return resultobj;
27393 fail:
27394 return NULL;
27395 }
27396
27397
27398 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27399 PyObject *resultobj = 0;
27400 wxListItem *arg1 = (wxListItem *) 0 ;
27401 int result;
27402 void *argp1 = 0 ;
27403 int res1 = 0 ;
27404 PyObject *swig_obj[1] ;
27405
27406 if (!args) SWIG_fail;
27407 swig_obj[0] = args;
27408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27409 if (!SWIG_IsOK(res1)) {
27410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27411 }
27412 arg1 = reinterpret_cast< wxListItem * >(argp1);
27413 {
27414 PyThreadState* __tstate = wxPyBeginAllowThreads();
27415 result = (int)(arg1)->GetWidth();
27416 wxPyEndAllowThreads(__tstate);
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
27419 resultobj = SWIG_From_int(static_cast< int >(result));
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27427 PyObject *resultobj = 0;
27428 wxListItem *arg1 = (wxListItem *) 0 ;
27429 wxListColumnFormat result;
27430 void *argp1 = 0 ;
27431 int res1 = 0 ;
27432 PyObject *swig_obj[1] ;
27433
27434 if (!args) SWIG_fail;
27435 swig_obj[0] = args;
27436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27437 if (!SWIG_IsOK(res1)) {
27438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27439 }
27440 arg1 = reinterpret_cast< wxListItem * >(argp1);
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 result = (wxListColumnFormat)(arg1)->GetAlign();
27444 wxPyEndAllowThreads(__tstate);
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 resultobj = SWIG_From_int(static_cast< int >(result));
27448 return resultobj;
27449 fail:
27450 return NULL;
27451 }
27452
27453
27454 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27455 PyObject *resultobj = 0;
27456 wxListItem *arg1 = (wxListItem *) 0 ;
27457 wxListItemAttr *result = 0 ;
27458 void *argp1 = 0 ;
27459 int res1 = 0 ;
27460 PyObject *swig_obj[1] ;
27461
27462 if (!args) SWIG_fail;
27463 swig_obj[0] = args;
27464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27465 if (!SWIG_IsOK(res1)) {
27466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27467 }
27468 arg1 = reinterpret_cast< wxListItem * >(argp1);
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (wxListItemAttr *)(arg1)->GetAttributes();
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27476 return resultobj;
27477 fail:
27478 return NULL;
27479 }
27480
27481
27482 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27483 PyObject *resultobj = 0;
27484 wxListItem *arg1 = (wxListItem *) 0 ;
27485 bool result;
27486 void *argp1 = 0 ;
27487 int res1 = 0 ;
27488 PyObject *swig_obj[1] ;
27489
27490 if (!args) SWIG_fail;
27491 swig_obj[0] = args;
27492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27493 if (!SWIG_IsOK(res1)) {
27494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27495 }
27496 arg1 = reinterpret_cast< wxListItem * >(argp1);
27497 {
27498 PyThreadState* __tstate = wxPyBeginAllowThreads();
27499 result = (bool)(arg1)->HasAttributes();
27500 wxPyEndAllowThreads(__tstate);
27501 if (PyErr_Occurred()) SWIG_fail;
27502 }
27503 {
27504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27505 }
27506 return resultobj;
27507 fail:
27508 return NULL;
27509 }
27510
27511
27512 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27513 PyObject *resultobj = 0;
27514 wxListItem *arg1 = (wxListItem *) 0 ;
27515 wxColour result;
27516 void *argp1 = 0 ;
27517 int res1 = 0 ;
27518 PyObject *swig_obj[1] ;
27519
27520 if (!args) SWIG_fail;
27521 swig_obj[0] = args;
27522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27523 if (!SWIG_IsOK(res1)) {
27524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27525 }
27526 arg1 = reinterpret_cast< wxListItem * >(argp1);
27527 {
27528 PyThreadState* __tstate = wxPyBeginAllowThreads();
27529 result = ((wxListItem const *)arg1)->GetTextColour();
27530 wxPyEndAllowThreads(__tstate);
27531 if (PyErr_Occurred()) SWIG_fail;
27532 }
27533 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27534 return resultobj;
27535 fail:
27536 return NULL;
27537 }
27538
27539
27540 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27541 PyObject *resultobj = 0;
27542 wxListItem *arg1 = (wxListItem *) 0 ;
27543 wxColour result;
27544 void *argp1 = 0 ;
27545 int res1 = 0 ;
27546 PyObject *swig_obj[1] ;
27547
27548 if (!args) SWIG_fail;
27549 swig_obj[0] = args;
27550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27551 if (!SWIG_IsOK(res1)) {
27552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27553 }
27554 arg1 = reinterpret_cast< wxListItem * >(argp1);
27555 {
27556 PyThreadState* __tstate = wxPyBeginAllowThreads();
27557 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27558 wxPyEndAllowThreads(__tstate);
27559 if (PyErr_Occurred()) SWIG_fail;
27560 }
27561 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27562 return resultobj;
27563 fail:
27564 return NULL;
27565 }
27566
27567
27568 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27569 PyObject *resultobj = 0;
27570 wxListItem *arg1 = (wxListItem *) 0 ;
27571 wxFont result;
27572 void *argp1 = 0 ;
27573 int res1 = 0 ;
27574 PyObject *swig_obj[1] ;
27575
27576 if (!args) SWIG_fail;
27577 swig_obj[0] = args;
27578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27579 if (!SWIG_IsOK(res1)) {
27580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27581 }
27582 arg1 = reinterpret_cast< wxListItem * >(argp1);
27583 {
27584 PyThreadState* __tstate = wxPyBeginAllowThreads();
27585 result = ((wxListItem const *)arg1)->GetFont();
27586 wxPyEndAllowThreads(__tstate);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27590 return resultobj;
27591 fail:
27592 return NULL;
27593 }
27594
27595
27596 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27597 PyObject *resultobj = 0;
27598 wxListItem *arg1 = (wxListItem *) 0 ;
27599 long arg2 ;
27600 void *argp1 = 0 ;
27601 int res1 = 0 ;
27602 long val2 ;
27603 int ecode2 = 0 ;
27604 PyObject *swig_obj[2] ;
27605
27606 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27608 if (!SWIG_IsOK(res1)) {
27609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27610 }
27611 arg1 = reinterpret_cast< wxListItem * >(argp1);
27612 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27613 if (!SWIG_IsOK(ecode2)) {
27614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27615 }
27616 arg2 = static_cast< long >(val2);
27617 if (arg1) (arg1)->m_mask = arg2;
27618
27619 resultobj = SWIG_Py_Void();
27620 return resultobj;
27621 fail:
27622 return NULL;
27623 }
27624
27625
27626 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27627 PyObject *resultobj = 0;
27628 wxListItem *arg1 = (wxListItem *) 0 ;
27629 long result;
27630 void *argp1 = 0 ;
27631 int res1 = 0 ;
27632 PyObject *swig_obj[1] ;
27633
27634 if (!args) SWIG_fail;
27635 swig_obj[0] = args;
27636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27637 if (!SWIG_IsOK(res1)) {
27638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27639 }
27640 arg1 = reinterpret_cast< wxListItem * >(argp1);
27641 result = (long) ((arg1)->m_mask);
27642 resultobj = SWIG_From_long(static_cast< long >(result));
27643 return resultobj;
27644 fail:
27645 return NULL;
27646 }
27647
27648
27649 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27650 PyObject *resultobj = 0;
27651 wxListItem *arg1 = (wxListItem *) 0 ;
27652 long arg2 ;
27653 void *argp1 = 0 ;
27654 int res1 = 0 ;
27655 long val2 ;
27656 int ecode2 = 0 ;
27657 PyObject *swig_obj[2] ;
27658
27659 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27661 if (!SWIG_IsOK(res1)) {
27662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27663 }
27664 arg1 = reinterpret_cast< wxListItem * >(argp1);
27665 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27666 if (!SWIG_IsOK(ecode2)) {
27667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27668 }
27669 arg2 = static_cast< long >(val2);
27670 if (arg1) (arg1)->m_itemId = arg2;
27671
27672 resultobj = SWIG_Py_Void();
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27680 PyObject *resultobj = 0;
27681 wxListItem *arg1 = (wxListItem *) 0 ;
27682 long result;
27683 void *argp1 = 0 ;
27684 int res1 = 0 ;
27685 PyObject *swig_obj[1] ;
27686
27687 if (!args) SWIG_fail;
27688 swig_obj[0] = args;
27689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27690 if (!SWIG_IsOK(res1)) {
27691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27692 }
27693 arg1 = reinterpret_cast< wxListItem * >(argp1);
27694 result = (long) ((arg1)->m_itemId);
27695 resultobj = SWIG_From_long(static_cast< long >(result));
27696 return resultobj;
27697 fail:
27698 return NULL;
27699 }
27700
27701
27702 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27703 PyObject *resultobj = 0;
27704 wxListItem *arg1 = (wxListItem *) 0 ;
27705 int arg2 ;
27706 void *argp1 = 0 ;
27707 int res1 = 0 ;
27708 int val2 ;
27709 int ecode2 = 0 ;
27710 PyObject *swig_obj[2] ;
27711
27712 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27714 if (!SWIG_IsOK(res1)) {
27715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27716 }
27717 arg1 = reinterpret_cast< wxListItem * >(argp1);
27718 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27719 if (!SWIG_IsOK(ecode2)) {
27720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27721 }
27722 arg2 = static_cast< int >(val2);
27723 if (arg1) (arg1)->m_col = arg2;
27724
27725 resultobj = SWIG_Py_Void();
27726 return resultobj;
27727 fail:
27728 return NULL;
27729 }
27730
27731
27732 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27733 PyObject *resultobj = 0;
27734 wxListItem *arg1 = (wxListItem *) 0 ;
27735 int result;
27736 void *argp1 = 0 ;
27737 int res1 = 0 ;
27738 PyObject *swig_obj[1] ;
27739
27740 if (!args) SWIG_fail;
27741 swig_obj[0] = args;
27742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27743 if (!SWIG_IsOK(res1)) {
27744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27745 }
27746 arg1 = reinterpret_cast< wxListItem * >(argp1);
27747 result = (int) ((arg1)->m_col);
27748 resultobj = SWIG_From_int(static_cast< int >(result));
27749 return resultobj;
27750 fail:
27751 return NULL;
27752 }
27753
27754
27755 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27756 PyObject *resultobj = 0;
27757 wxListItem *arg1 = (wxListItem *) 0 ;
27758 long arg2 ;
27759 void *argp1 = 0 ;
27760 int res1 = 0 ;
27761 long val2 ;
27762 int ecode2 = 0 ;
27763 PyObject *swig_obj[2] ;
27764
27765 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27767 if (!SWIG_IsOK(res1)) {
27768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27769 }
27770 arg1 = reinterpret_cast< wxListItem * >(argp1);
27771 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27772 if (!SWIG_IsOK(ecode2)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27774 }
27775 arg2 = static_cast< long >(val2);
27776 if (arg1) (arg1)->m_state = arg2;
27777
27778 resultobj = SWIG_Py_Void();
27779 return resultobj;
27780 fail:
27781 return NULL;
27782 }
27783
27784
27785 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27786 PyObject *resultobj = 0;
27787 wxListItem *arg1 = (wxListItem *) 0 ;
27788 long result;
27789 void *argp1 = 0 ;
27790 int res1 = 0 ;
27791 PyObject *swig_obj[1] ;
27792
27793 if (!args) SWIG_fail;
27794 swig_obj[0] = args;
27795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27796 if (!SWIG_IsOK(res1)) {
27797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27798 }
27799 arg1 = reinterpret_cast< wxListItem * >(argp1);
27800 result = (long) ((arg1)->m_state);
27801 resultobj = SWIG_From_long(static_cast< long >(result));
27802 return resultobj;
27803 fail:
27804 return NULL;
27805 }
27806
27807
27808 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27809 PyObject *resultobj = 0;
27810 wxListItem *arg1 = (wxListItem *) 0 ;
27811 long arg2 ;
27812 void *argp1 = 0 ;
27813 int res1 = 0 ;
27814 long val2 ;
27815 int ecode2 = 0 ;
27816 PyObject *swig_obj[2] ;
27817
27818 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27820 if (!SWIG_IsOK(res1)) {
27821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27822 }
27823 arg1 = reinterpret_cast< wxListItem * >(argp1);
27824 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27825 if (!SWIG_IsOK(ecode2)) {
27826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27827 }
27828 arg2 = static_cast< long >(val2);
27829 if (arg1) (arg1)->m_stateMask = arg2;
27830
27831 resultobj = SWIG_Py_Void();
27832 return resultobj;
27833 fail:
27834 return NULL;
27835 }
27836
27837
27838 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27839 PyObject *resultobj = 0;
27840 wxListItem *arg1 = (wxListItem *) 0 ;
27841 long result;
27842 void *argp1 = 0 ;
27843 int res1 = 0 ;
27844 PyObject *swig_obj[1] ;
27845
27846 if (!args) SWIG_fail;
27847 swig_obj[0] = args;
27848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27849 if (!SWIG_IsOK(res1)) {
27850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27851 }
27852 arg1 = reinterpret_cast< wxListItem * >(argp1);
27853 result = (long) ((arg1)->m_stateMask);
27854 resultobj = SWIG_From_long(static_cast< long >(result));
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27862 PyObject *resultobj = 0;
27863 wxListItem *arg1 = (wxListItem *) 0 ;
27864 wxString *arg2 = (wxString *) 0 ;
27865 void *argp1 = 0 ;
27866 int res1 = 0 ;
27867 bool temp2 = false ;
27868 PyObject *swig_obj[2] ;
27869
27870 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27872 if (!SWIG_IsOK(res1)) {
27873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27874 }
27875 arg1 = reinterpret_cast< wxListItem * >(argp1);
27876 {
27877 arg2 = wxString_in_helper(swig_obj[1]);
27878 if (arg2 == NULL) SWIG_fail;
27879 temp2 = true;
27880 }
27881 if (arg1) (arg1)->m_text = *arg2;
27882
27883 resultobj = SWIG_Py_Void();
27884 {
27885 if (temp2)
27886 delete arg2;
27887 }
27888 return resultobj;
27889 fail:
27890 {
27891 if (temp2)
27892 delete arg2;
27893 }
27894 return NULL;
27895 }
27896
27897
27898 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27899 PyObject *resultobj = 0;
27900 wxListItem *arg1 = (wxListItem *) 0 ;
27901 wxString *result = 0 ;
27902 void *argp1 = 0 ;
27903 int res1 = 0 ;
27904 PyObject *swig_obj[1] ;
27905
27906 if (!args) SWIG_fail;
27907 swig_obj[0] = args;
27908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27909 if (!SWIG_IsOK(res1)) {
27910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27911 }
27912 arg1 = reinterpret_cast< wxListItem * >(argp1);
27913 result = (wxString *)& ((arg1)->m_text);
27914 {
27915 #if wxUSE_UNICODE
27916 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27917 #else
27918 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27919 #endif
27920 }
27921 return resultobj;
27922 fail:
27923 return NULL;
27924 }
27925
27926
27927 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27928 PyObject *resultobj = 0;
27929 wxListItem *arg1 = (wxListItem *) 0 ;
27930 int arg2 ;
27931 void *argp1 = 0 ;
27932 int res1 = 0 ;
27933 int val2 ;
27934 int ecode2 = 0 ;
27935 PyObject *swig_obj[2] ;
27936
27937 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27939 if (!SWIG_IsOK(res1)) {
27940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27941 }
27942 arg1 = reinterpret_cast< wxListItem * >(argp1);
27943 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27944 if (!SWIG_IsOK(ecode2)) {
27945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27946 }
27947 arg2 = static_cast< int >(val2);
27948 if (arg1) (arg1)->m_image = arg2;
27949
27950 resultobj = SWIG_Py_Void();
27951 return resultobj;
27952 fail:
27953 return NULL;
27954 }
27955
27956
27957 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27958 PyObject *resultobj = 0;
27959 wxListItem *arg1 = (wxListItem *) 0 ;
27960 int result;
27961 void *argp1 = 0 ;
27962 int res1 = 0 ;
27963 PyObject *swig_obj[1] ;
27964
27965 if (!args) SWIG_fail;
27966 swig_obj[0] = args;
27967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27968 if (!SWIG_IsOK(res1)) {
27969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27970 }
27971 arg1 = reinterpret_cast< wxListItem * >(argp1);
27972 result = (int) ((arg1)->m_image);
27973 resultobj = SWIG_From_int(static_cast< int >(result));
27974 return resultobj;
27975 fail:
27976 return NULL;
27977 }
27978
27979
27980 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27981 PyObject *resultobj = 0;
27982 wxListItem *arg1 = (wxListItem *) 0 ;
27983 long arg2 ;
27984 void *argp1 = 0 ;
27985 int res1 = 0 ;
27986 long val2 ;
27987 int ecode2 = 0 ;
27988 PyObject *swig_obj[2] ;
27989
27990 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27992 if (!SWIG_IsOK(res1)) {
27993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27994 }
27995 arg1 = reinterpret_cast< wxListItem * >(argp1);
27996 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27997 if (!SWIG_IsOK(ecode2)) {
27998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27999 }
28000 arg2 = static_cast< long >(val2);
28001 if (arg1) (arg1)->m_data = arg2;
28002
28003 resultobj = SWIG_Py_Void();
28004 return resultobj;
28005 fail:
28006 return NULL;
28007 }
28008
28009
28010 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 PyObject *resultobj = 0;
28012 wxListItem *arg1 = (wxListItem *) 0 ;
28013 long result;
28014 void *argp1 = 0 ;
28015 int res1 = 0 ;
28016 PyObject *swig_obj[1] ;
28017
28018 if (!args) SWIG_fail;
28019 swig_obj[0] = args;
28020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28021 if (!SWIG_IsOK(res1)) {
28022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28023 }
28024 arg1 = reinterpret_cast< wxListItem * >(argp1);
28025 result = (long) ((arg1)->m_data);
28026 resultobj = SWIG_From_long(static_cast< long >(result));
28027 return resultobj;
28028 fail:
28029 return NULL;
28030 }
28031
28032
28033 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28034 PyObject *resultobj = 0;
28035 wxListItem *arg1 = (wxListItem *) 0 ;
28036 int arg2 ;
28037 void *argp1 = 0 ;
28038 int res1 = 0 ;
28039 int val2 ;
28040 int ecode2 = 0 ;
28041 PyObject *swig_obj[2] ;
28042
28043 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28045 if (!SWIG_IsOK(res1)) {
28046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28047 }
28048 arg1 = reinterpret_cast< wxListItem * >(argp1);
28049 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28050 if (!SWIG_IsOK(ecode2)) {
28051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28052 }
28053 arg2 = static_cast< int >(val2);
28054 if (arg1) (arg1)->m_format = arg2;
28055
28056 resultobj = SWIG_Py_Void();
28057 return resultobj;
28058 fail:
28059 return NULL;
28060 }
28061
28062
28063 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28064 PyObject *resultobj = 0;
28065 wxListItem *arg1 = (wxListItem *) 0 ;
28066 int result;
28067 void *argp1 = 0 ;
28068 int res1 = 0 ;
28069 PyObject *swig_obj[1] ;
28070
28071 if (!args) SWIG_fail;
28072 swig_obj[0] = args;
28073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28074 if (!SWIG_IsOK(res1)) {
28075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28076 }
28077 arg1 = reinterpret_cast< wxListItem * >(argp1);
28078 result = (int) ((arg1)->m_format);
28079 resultobj = SWIG_From_int(static_cast< int >(result));
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28087 PyObject *resultobj = 0;
28088 wxListItem *arg1 = (wxListItem *) 0 ;
28089 int arg2 ;
28090 void *argp1 = 0 ;
28091 int res1 = 0 ;
28092 int val2 ;
28093 int ecode2 = 0 ;
28094 PyObject *swig_obj[2] ;
28095
28096 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28098 if (!SWIG_IsOK(res1)) {
28099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28100 }
28101 arg1 = reinterpret_cast< wxListItem * >(argp1);
28102 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28103 if (!SWIG_IsOK(ecode2)) {
28104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28105 }
28106 arg2 = static_cast< int >(val2);
28107 if (arg1) (arg1)->m_width = arg2;
28108
28109 resultobj = SWIG_Py_Void();
28110 return resultobj;
28111 fail:
28112 return NULL;
28113 }
28114
28115
28116 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28117 PyObject *resultobj = 0;
28118 wxListItem *arg1 = (wxListItem *) 0 ;
28119 int result;
28120 void *argp1 = 0 ;
28121 int res1 = 0 ;
28122 PyObject *swig_obj[1] ;
28123
28124 if (!args) SWIG_fail;
28125 swig_obj[0] = args;
28126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28127 if (!SWIG_IsOK(res1)) {
28128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28129 }
28130 arg1 = reinterpret_cast< wxListItem * >(argp1);
28131 result = (int) ((arg1)->m_width);
28132 resultobj = SWIG_From_int(static_cast< int >(result));
28133 return resultobj;
28134 fail:
28135 return NULL;
28136 }
28137
28138
28139 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28140 PyObject *obj;
28141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28142 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28143 return SWIG_Py_Void();
28144 }
28145
28146 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28147 return SWIG_Python_InitShadowInstance(args);
28148 }
28149
28150 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28151 PyObject *resultobj = 0;
28152 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28153 int arg2 = (int) 0 ;
28154 wxListEvent *result = 0 ;
28155 int val1 ;
28156 int ecode1 = 0 ;
28157 int val2 ;
28158 int ecode2 = 0 ;
28159 PyObject * obj0 = 0 ;
28160 PyObject * obj1 = 0 ;
28161 char * kwnames[] = {
28162 (char *) "commandType",(char *) "id", NULL
28163 };
28164
28165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28166 if (obj0) {
28167 ecode1 = SWIG_AsVal_int(obj0, &val1);
28168 if (!SWIG_IsOK(ecode1)) {
28169 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28170 }
28171 arg1 = static_cast< wxEventType >(val1);
28172 }
28173 if (obj1) {
28174 ecode2 = SWIG_AsVal_int(obj1, &val2);
28175 if (!SWIG_IsOK(ecode2)) {
28176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28177 }
28178 arg2 = static_cast< int >(val2);
28179 }
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
28182 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28183 wxPyEndAllowThreads(__tstate);
28184 if (PyErr_Occurred()) SWIG_fail;
28185 }
28186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28187 return resultobj;
28188 fail:
28189 return NULL;
28190 }
28191
28192
28193 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28194 PyObject *resultobj = 0;
28195 wxListEvent *arg1 = (wxListEvent *) 0 ;
28196 int arg2 ;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 int val2 ;
28200 int ecode2 = 0 ;
28201 PyObject *swig_obj[2] ;
28202
28203 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28205 if (!SWIG_IsOK(res1)) {
28206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28207 }
28208 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28209 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28210 if (!SWIG_IsOK(ecode2)) {
28211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28212 }
28213 arg2 = static_cast< int >(val2);
28214 if (arg1) (arg1)->m_code = arg2;
28215
28216 resultobj = SWIG_Py_Void();
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxListEvent *arg1 = (wxListEvent *) 0 ;
28226 int result;
28227 void *argp1 = 0 ;
28228 int res1 = 0 ;
28229 PyObject *swig_obj[1] ;
28230
28231 if (!args) SWIG_fail;
28232 swig_obj[0] = args;
28233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28234 if (!SWIG_IsOK(res1)) {
28235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28236 }
28237 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28238 result = (int) ((arg1)->m_code);
28239 resultobj = SWIG_From_int(static_cast< int >(result));
28240 return resultobj;
28241 fail:
28242 return NULL;
28243 }
28244
28245
28246 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28247 PyObject *resultobj = 0;
28248 wxListEvent *arg1 = (wxListEvent *) 0 ;
28249 long arg2 ;
28250 void *argp1 = 0 ;
28251 int res1 = 0 ;
28252 long val2 ;
28253 int ecode2 = 0 ;
28254 PyObject *swig_obj[2] ;
28255
28256 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28258 if (!SWIG_IsOK(res1)) {
28259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28260 }
28261 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28262 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28263 if (!SWIG_IsOK(ecode2)) {
28264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28265 }
28266 arg2 = static_cast< long >(val2);
28267 if (arg1) (arg1)->m_oldItemIndex = arg2;
28268
28269 resultobj = SWIG_Py_Void();
28270 return resultobj;
28271 fail:
28272 return NULL;
28273 }
28274
28275
28276 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28277 PyObject *resultobj = 0;
28278 wxListEvent *arg1 = (wxListEvent *) 0 ;
28279 long result;
28280 void *argp1 = 0 ;
28281 int res1 = 0 ;
28282 PyObject *swig_obj[1] ;
28283
28284 if (!args) SWIG_fail;
28285 swig_obj[0] = args;
28286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28287 if (!SWIG_IsOK(res1)) {
28288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28289 }
28290 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28291 result = (long) ((arg1)->m_oldItemIndex);
28292 resultobj = SWIG_From_long(static_cast< long >(result));
28293 return resultobj;
28294 fail:
28295 return NULL;
28296 }
28297
28298
28299 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28300 PyObject *resultobj = 0;
28301 wxListEvent *arg1 = (wxListEvent *) 0 ;
28302 long arg2 ;
28303 void *argp1 = 0 ;
28304 int res1 = 0 ;
28305 long val2 ;
28306 int ecode2 = 0 ;
28307 PyObject *swig_obj[2] ;
28308
28309 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28311 if (!SWIG_IsOK(res1)) {
28312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28313 }
28314 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28315 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28316 if (!SWIG_IsOK(ecode2)) {
28317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28318 }
28319 arg2 = static_cast< long >(val2);
28320 if (arg1) (arg1)->m_itemIndex = arg2;
28321
28322 resultobj = SWIG_Py_Void();
28323 return resultobj;
28324 fail:
28325 return NULL;
28326 }
28327
28328
28329 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28330 PyObject *resultobj = 0;
28331 wxListEvent *arg1 = (wxListEvent *) 0 ;
28332 long result;
28333 void *argp1 = 0 ;
28334 int res1 = 0 ;
28335 PyObject *swig_obj[1] ;
28336
28337 if (!args) SWIG_fail;
28338 swig_obj[0] = args;
28339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28340 if (!SWIG_IsOK(res1)) {
28341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28342 }
28343 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28344 result = (long) ((arg1)->m_itemIndex);
28345 resultobj = SWIG_From_long(static_cast< long >(result));
28346 return resultobj;
28347 fail:
28348 return NULL;
28349 }
28350
28351
28352 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28353 PyObject *resultobj = 0;
28354 wxListEvent *arg1 = (wxListEvent *) 0 ;
28355 int arg2 ;
28356 void *argp1 = 0 ;
28357 int res1 = 0 ;
28358 int val2 ;
28359 int ecode2 = 0 ;
28360 PyObject *swig_obj[2] ;
28361
28362 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28364 if (!SWIG_IsOK(res1)) {
28365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28366 }
28367 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28368 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28369 if (!SWIG_IsOK(ecode2)) {
28370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28371 }
28372 arg2 = static_cast< int >(val2);
28373 if (arg1) (arg1)->m_col = arg2;
28374
28375 resultobj = SWIG_Py_Void();
28376 return resultobj;
28377 fail:
28378 return NULL;
28379 }
28380
28381
28382 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28383 PyObject *resultobj = 0;
28384 wxListEvent *arg1 = (wxListEvent *) 0 ;
28385 int result;
28386 void *argp1 = 0 ;
28387 int res1 = 0 ;
28388 PyObject *swig_obj[1] ;
28389
28390 if (!args) SWIG_fail;
28391 swig_obj[0] = args;
28392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28393 if (!SWIG_IsOK(res1)) {
28394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28395 }
28396 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28397 result = (int) ((arg1)->m_col);
28398 resultobj = SWIG_From_int(static_cast< int >(result));
28399 return resultobj;
28400 fail:
28401 return NULL;
28402 }
28403
28404
28405 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28406 PyObject *resultobj = 0;
28407 wxListEvent *arg1 = (wxListEvent *) 0 ;
28408 wxPoint *arg2 = (wxPoint *) 0 ;
28409 void *argp1 = 0 ;
28410 int res1 = 0 ;
28411 void *argp2 = 0 ;
28412 int res2 = 0 ;
28413 PyObject *swig_obj[2] ;
28414
28415 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28417 if (!SWIG_IsOK(res1)) {
28418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28419 }
28420 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28421 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28422 if (!SWIG_IsOK(res2)) {
28423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28424 }
28425 arg2 = reinterpret_cast< wxPoint * >(argp2);
28426 if (arg1) (arg1)->m_pointDrag = *arg2;
28427
28428 resultobj = SWIG_Py_Void();
28429 return resultobj;
28430 fail:
28431 return NULL;
28432 }
28433
28434
28435 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28436 PyObject *resultobj = 0;
28437 wxListEvent *arg1 = (wxListEvent *) 0 ;
28438 wxPoint *result = 0 ;
28439 void *argp1 = 0 ;
28440 int res1 = 0 ;
28441 PyObject *swig_obj[1] ;
28442
28443 if (!args) SWIG_fail;
28444 swig_obj[0] = args;
28445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28446 if (!SWIG_IsOK(res1)) {
28447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28448 }
28449 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28450 result = (wxPoint *)& ((arg1)->m_pointDrag);
28451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28452 return resultobj;
28453 fail:
28454 return NULL;
28455 }
28456
28457
28458 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28459 PyObject *resultobj = 0;
28460 wxListEvent *arg1 = (wxListEvent *) 0 ;
28461 wxListItem *result = 0 ;
28462 void *argp1 = 0 ;
28463 int res1 = 0 ;
28464 PyObject *swig_obj[1] ;
28465
28466 if (!args) SWIG_fail;
28467 swig_obj[0] = args;
28468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28469 if (!SWIG_IsOK(res1)) {
28470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28471 }
28472 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28473 result = (wxListItem *)& ((arg1)->m_item);
28474 {
28475 resultobj = wxPyMake_wxObject(result, 0);
28476 }
28477 return resultobj;
28478 fail:
28479 return NULL;
28480 }
28481
28482
28483 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28484 PyObject *resultobj = 0;
28485 wxListEvent *arg1 = (wxListEvent *) 0 ;
28486 int result;
28487 void *argp1 = 0 ;
28488 int res1 = 0 ;
28489 PyObject *swig_obj[1] ;
28490
28491 if (!args) SWIG_fail;
28492 swig_obj[0] = args;
28493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28494 if (!SWIG_IsOK(res1)) {
28495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28496 }
28497 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28498 {
28499 PyThreadState* __tstate = wxPyBeginAllowThreads();
28500 result = (int)(arg1)->GetKeyCode();
28501 wxPyEndAllowThreads(__tstate);
28502 if (PyErr_Occurred()) SWIG_fail;
28503 }
28504 resultobj = SWIG_From_int(static_cast< int >(result));
28505 return resultobj;
28506 fail:
28507 return NULL;
28508 }
28509
28510
28511 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28512 PyObject *resultobj = 0;
28513 wxListEvent *arg1 = (wxListEvent *) 0 ;
28514 long result;
28515 void *argp1 = 0 ;
28516 int res1 = 0 ;
28517 PyObject *swig_obj[1] ;
28518
28519 if (!args) SWIG_fail;
28520 swig_obj[0] = args;
28521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28522 if (!SWIG_IsOK(res1)) {
28523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28524 }
28525 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28526 {
28527 PyThreadState* __tstate = wxPyBeginAllowThreads();
28528 result = (long)(arg1)->GetIndex();
28529 wxPyEndAllowThreads(__tstate);
28530 if (PyErr_Occurred()) SWIG_fail;
28531 }
28532 resultobj = SWIG_From_long(static_cast< long >(result));
28533 return resultobj;
28534 fail:
28535 return NULL;
28536 }
28537
28538
28539 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28540 PyObject *resultobj = 0;
28541 wxListEvent *arg1 = (wxListEvent *) 0 ;
28542 int result;
28543 void *argp1 = 0 ;
28544 int res1 = 0 ;
28545 PyObject *swig_obj[1] ;
28546
28547 if (!args) SWIG_fail;
28548 swig_obj[0] = args;
28549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28550 if (!SWIG_IsOK(res1)) {
28551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28552 }
28553 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28554 {
28555 PyThreadState* __tstate = wxPyBeginAllowThreads();
28556 result = (int)(arg1)->GetColumn();
28557 wxPyEndAllowThreads(__tstate);
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
28560 resultobj = SWIG_From_int(static_cast< int >(result));
28561 return resultobj;
28562 fail:
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28568 PyObject *resultobj = 0;
28569 wxListEvent *arg1 = (wxListEvent *) 0 ;
28570 wxPoint result;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 PyObject *swig_obj[1] ;
28574
28575 if (!args) SWIG_fail;
28576 swig_obj[0] = args;
28577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28580 }
28581 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28582 {
28583 PyThreadState* __tstate = wxPyBeginAllowThreads();
28584 result = (arg1)->GetPoint();
28585 wxPyEndAllowThreads(__tstate);
28586 if (PyErr_Occurred()) SWIG_fail;
28587 }
28588 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28589 return resultobj;
28590 fail:
28591 return NULL;
28592 }
28593
28594
28595 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28596 PyObject *resultobj = 0;
28597 wxListEvent *arg1 = (wxListEvent *) 0 ;
28598 wxString *result = 0 ;
28599 void *argp1 = 0 ;
28600 int res1 = 0 ;
28601 PyObject *swig_obj[1] ;
28602
28603 if (!args) SWIG_fail;
28604 swig_obj[0] = args;
28605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28606 if (!SWIG_IsOK(res1)) {
28607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28608 }
28609 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
28612 {
28613 wxString const &_result_ref = (arg1)->GetLabel();
28614 result = (wxString *) &_result_ref;
28615 }
28616 wxPyEndAllowThreads(__tstate);
28617 if (PyErr_Occurred()) SWIG_fail;
28618 }
28619 {
28620 #if wxUSE_UNICODE
28621 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28622 #else
28623 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28624 #endif
28625 }
28626 return resultobj;
28627 fail:
28628 return NULL;
28629 }
28630
28631
28632 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28633 PyObject *resultobj = 0;
28634 wxListEvent *arg1 = (wxListEvent *) 0 ;
28635 wxString *result = 0 ;
28636 void *argp1 = 0 ;
28637 int res1 = 0 ;
28638 PyObject *swig_obj[1] ;
28639
28640 if (!args) SWIG_fail;
28641 swig_obj[0] = args;
28642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28645 }
28646 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28647 {
28648 PyThreadState* __tstate = wxPyBeginAllowThreads();
28649 {
28650 wxString const &_result_ref = (arg1)->GetText();
28651 result = (wxString *) &_result_ref;
28652 }
28653 wxPyEndAllowThreads(__tstate);
28654 if (PyErr_Occurred()) SWIG_fail;
28655 }
28656 {
28657 #if wxUSE_UNICODE
28658 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28659 #else
28660 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28661 #endif
28662 }
28663 return resultobj;
28664 fail:
28665 return NULL;
28666 }
28667
28668
28669 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28670 PyObject *resultobj = 0;
28671 wxListEvent *arg1 = (wxListEvent *) 0 ;
28672 int result;
28673 void *argp1 = 0 ;
28674 int res1 = 0 ;
28675 PyObject *swig_obj[1] ;
28676
28677 if (!args) SWIG_fail;
28678 swig_obj[0] = args;
28679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28680 if (!SWIG_IsOK(res1)) {
28681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28682 }
28683 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28684 {
28685 PyThreadState* __tstate = wxPyBeginAllowThreads();
28686 result = (int)(arg1)->GetImage();
28687 wxPyEndAllowThreads(__tstate);
28688 if (PyErr_Occurred()) SWIG_fail;
28689 }
28690 resultobj = SWIG_From_int(static_cast< int >(result));
28691 return resultobj;
28692 fail:
28693 return NULL;
28694 }
28695
28696
28697 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28698 PyObject *resultobj = 0;
28699 wxListEvent *arg1 = (wxListEvent *) 0 ;
28700 long result;
28701 void *argp1 = 0 ;
28702 int res1 = 0 ;
28703 PyObject *swig_obj[1] ;
28704
28705 if (!args) SWIG_fail;
28706 swig_obj[0] = args;
28707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28708 if (!SWIG_IsOK(res1)) {
28709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28710 }
28711 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28712 {
28713 PyThreadState* __tstate = wxPyBeginAllowThreads();
28714 result = (long)(arg1)->GetData();
28715 wxPyEndAllowThreads(__tstate);
28716 if (PyErr_Occurred()) SWIG_fail;
28717 }
28718 resultobj = SWIG_From_long(static_cast< long >(result));
28719 return resultobj;
28720 fail:
28721 return NULL;
28722 }
28723
28724
28725 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28726 PyObject *resultobj = 0;
28727 wxListEvent *arg1 = (wxListEvent *) 0 ;
28728 long result;
28729 void *argp1 = 0 ;
28730 int res1 = 0 ;
28731 PyObject *swig_obj[1] ;
28732
28733 if (!args) SWIG_fail;
28734 swig_obj[0] = args;
28735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28736 if (!SWIG_IsOK(res1)) {
28737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28738 }
28739 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28740 {
28741 PyThreadState* __tstate = wxPyBeginAllowThreads();
28742 result = (long)(arg1)->GetMask();
28743 wxPyEndAllowThreads(__tstate);
28744 if (PyErr_Occurred()) SWIG_fail;
28745 }
28746 resultobj = SWIG_From_long(static_cast< long >(result));
28747 return resultobj;
28748 fail:
28749 return NULL;
28750 }
28751
28752
28753 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28754 PyObject *resultobj = 0;
28755 wxListEvent *arg1 = (wxListEvent *) 0 ;
28756 wxListItem *result = 0 ;
28757 void *argp1 = 0 ;
28758 int res1 = 0 ;
28759 PyObject *swig_obj[1] ;
28760
28761 if (!args) SWIG_fail;
28762 swig_obj[0] = args;
28763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28764 if (!SWIG_IsOK(res1)) {
28765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28766 }
28767 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28768 {
28769 PyThreadState* __tstate = wxPyBeginAllowThreads();
28770 {
28771 wxListItem const &_result_ref = (arg1)->GetItem();
28772 result = (wxListItem *) &_result_ref;
28773 }
28774 wxPyEndAllowThreads(__tstate);
28775 if (PyErr_Occurred()) SWIG_fail;
28776 }
28777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28778 return resultobj;
28779 fail:
28780 return NULL;
28781 }
28782
28783
28784 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28785 PyObject *resultobj = 0;
28786 wxListEvent *arg1 = (wxListEvent *) 0 ;
28787 long result;
28788 void *argp1 = 0 ;
28789 int res1 = 0 ;
28790 PyObject *swig_obj[1] ;
28791
28792 if (!args) SWIG_fail;
28793 swig_obj[0] = args;
28794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28795 if (!SWIG_IsOK(res1)) {
28796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28797 }
28798 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28799 {
28800 PyThreadState* __tstate = wxPyBeginAllowThreads();
28801 result = (long)(arg1)->GetCacheFrom();
28802 wxPyEndAllowThreads(__tstate);
28803 if (PyErr_Occurred()) SWIG_fail;
28804 }
28805 resultobj = SWIG_From_long(static_cast< long >(result));
28806 return resultobj;
28807 fail:
28808 return NULL;
28809 }
28810
28811
28812 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28813 PyObject *resultobj = 0;
28814 wxListEvent *arg1 = (wxListEvent *) 0 ;
28815 long result;
28816 void *argp1 = 0 ;
28817 int res1 = 0 ;
28818 PyObject *swig_obj[1] ;
28819
28820 if (!args) SWIG_fail;
28821 swig_obj[0] = args;
28822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28823 if (!SWIG_IsOK(res1)) {
28824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28825 }
28826 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28827 {
28828 PyThreadState* __tstate = wxPyBeginAllowThreads();
28829 result = (long)(arg1)->GetCacheTo();
28830 wxPyEndAllowThreads(__tstate);
28831 if (PyErr_Occurred()) SWIG_fail;
28832 }
28833 resultobj = SWIG_From_long(static_cast< long >(result));
28834 return resultobj;
28835 fail:
28836 return NULL;
28837 }
28838
28839
28840 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28841 PyObject *resultobj = 0;
28842 wxListEvent *arg1 = (wxListEvent *) 0 ;
28843 bool result;
28844 void *argp1 = 0 ;
28845 int res1 = 0 ;
28846 PyObject *swig_obj[1] ;
28847
28848 if (!args) SWIG_fail;
28849 swig_obj[0] = args;
28850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28851 if (!SWIG_IsOK(res1)) {
28852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28853 }
28854 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28855 {
28856 PyThreadState* __tstate = wxPyBeginAllowThreads();
28857 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28858 wxPyEndAllowThreads(__tstate);
28859 if (PyErr_Occurred()) SWIG_fail;
28860 }
28861 {
28862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28863 }
28864 return resultobj;
28865 fail:
28866 return NULL;
28867 }
28868
28869
28870 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28871 PyObject *resultobj = 0;
28872 wxListEvent *arg1 = (wxListEvent *) 0 ;
28873 bool arg2 ;
28874 void *argp1 = 0 ;
28875 int res1 = 0 ;
28876 bool val2 ;
28877 int ecode2 = 0 ;
28878 PyObject * obj0 = 0 ;
28879 PyObject * obj1 = 0 ;
28880 char * kwnames[] = {
28881 (char *) "self",(char *) "editCancelled", NULL
28882 };
28883
28884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28886 if (!SWIG_IsOK(res1)) {
28887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28888 }
28889 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28890 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28891 if (!SWIG_IsOK(ecode2)) {
28892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28893 }
28894 arg2 = static_cast< bool >(val2);
28895 {
28896 PyThreadState* __tstate = wxPyBeginAllowThreads();
28897 (arg1)->SetEditCanceled(arg2);
28898 wxPyEndAllowThreads(__tstate);
28899 if (PyErr_Occurred()) SWIG_fail;
28900 }
28901 resultobj = SWIG_Py_Void();
28902 return resultobj;
28903 fail:
28904 return NULL;
28905 }
28906
28907
28908 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28909 PyObject *obj;
28910 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28911 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28912 return SWIG_Py_Void();
28913 }
28914
28915 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28916 return SWIG_Python_InitShadowInstance(args);
28917 }
28918
28919 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28920 PyObject *resultobj = 0;
28921 wxWindow *arg1 = (wxWindow *) 0 ;
28922 int arg2 = (int) -1 ;
28923 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28924 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28925 wxSize const &arg4_defvalue = wxDefaultSize ;
28926 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28927 long arg5 = (long) wxLC_ICON ;
28928 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28929 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28930 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28931 wxString *arg7 = (wxString *) &arg7_defvalue ;
28932 wxPyListCtrl *result = 0 ;
28933 void *argp1 = 0 ;
28934 int res1 = 0 ;
28935 int val2 ;
28936 int ecode2 = 0 ;
28937 wxPoint temp3 ;
28938 wxSize temp4 ;
28939 long val5 ;
28940 int ecode5 = 0 ;
28941 void *argp6 = 0 ;
28942 int res6 = 0 ;
28943 bool temp7 = false ;
28944 PyObject * obj0 = 0 ;
28945 PyObject * obj1 = 0 ;
28946 PyObject * obj2 = 0 ;
28947 PyObject * obj3 = 0 ;
28948 PyObject * obj4 = 0 ;
28949 PyObject * obj5 = 0 ;
28950 PyObject * obj6 = 0 ;
28951 char * kwnames[] = {
28952 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28953 };
28954
28955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28959 }
28960 arg1 = reinterpret_cast< wxWindow * >(argp1);
28961 if (obj1) {
28962 ecode2 = SWIG_AsVal_int(obj1, &val2);
28963 if (!SWIG_IsOK(ecode2)) {
28964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28965 }
28966 arg2 = static_cast< int >(val2);
28967 }
28968 if (obj2) {
28969 {
28970 arg3 = &temp3;
28971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28972 }
28973 }
28974 if (obj3) {
28975 {
28976 arg4 = &temp4;
28977 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28978 }
28979 }
28980 if (obj4) {
28981 ecode5 = SWIG_AsVal_long(obj4, &val5);
28982 if (!SWIG_IsOK(ecode5)) {
28983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28984 }
28985 arg5 = static_cast< long >(val5);
28986 }
28987 if (obj5) {
28988 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28989 if (!SWIG_IsOK(res6)) {
28990 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28991 }
28992 if (!argp6) {
28993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28994 }
28995 arg6 = reinterpret_cast< wxValidator * >(argp6);
28996 }
28997 if (obj6) {
28998 {
28999 arg7 = wxString_in_helper(obj6);
29000 if (arg7 == NULL) SWIG_fail;
29001 temp7 = true;
29002 }
29003 }
29004 {
29005 if (!wxPyCheckForApp()) SWIG_fail;
29006 PyThreadState* __tstate = wxPyBeginAllowThreads();
29007 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29008 wxPyEndAllowThreads(__tstate);
29009 if (PyErr_Occurred()) SWIG_fail;
29010 }
29011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29012 {
29013 if (temp7)
29014 delete arg7;
29015 }
29016 return resultobj;
29017 fail:
29018 {
29019 if (temp7)
29020 delete arg7;
29021 }
29022 return NULL;
29023 }
29024
29025
29026 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29027 PyObject *resultobj = 0;
29028 wxPyListCtrl *result = 0 ;
29029
29030 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29031 {
29032 if (!wxPyCheckForApp()) SWIG_fail;
29033 PyThreadState* __tstate = wxPyBeginAllowThreads();
29034 result = (wxPyListCtrl *)new wxPyListCtrl();
29035 wxPyEndAllowThreads(__tstate);
29036 if (PyErr_Occurred()) SWIG_fail;
29037 }
29038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj = 0;
29047 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29048 wxWindow *arg2 = (wxWindow *) 0 ;
29049 int arg3 = (int) -1 ;
29050 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29051 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29052 wxSize const &arg5_defvalue = wxDefaultSize ;
29053 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29054 long arg6 = (long) wxLC_ICON ;
29055 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29056 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29057 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29058 wxString *arg8 = (wxString *) &arg8_defvalue ;
29059 bool result;
29060 void *argp1 = 0 ;
29061 int res1 = 0 ;
29062 void *argp2 = 0 ;
29063 int res2 = 0 ;
29064 int val3 ;
29065 int ecode3 = 0 ;
29066 wxPoint temp4 ;
29067 wxSize temp5 ;
29068 long val6 ;
29069 int ecode6 = 0 ;
29070 void *argp7 = 0 ;
29071 int res7 = 0 ;
29072 bool temp8 = false ;
29073 PyObject * obj0 = 0 ;
29074 PyObject * obj1 = 0 ;
29075 PyObject * obj2 = 0 ;
29076 PyObject * obj3 = 0 ;
29077 PyObject * obj4 = 0 ;
29078 PyObject * obj5 = 0 ;
29079 PyObject * obj6 = 0 ;
29080 PyObject * obj7 = 0 ;
29081 char * kwnames[] = {
29082 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29083 };
29084
29085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29087 if (!SWIG_IsOK(res1)) {
29088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29089 }
29090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29091 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29092 if (!SWIG_IsOK(res2)) {
29093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29094 }
29095 arg2 = reinterpret_cast< wxWindow * >(argp2);
29096 if (obj2) {
29097 ecode3 = SWIG_AsVal_int(obj2, &val3);
29098 if (!SWIG_IsOK(ecode3)) {
29099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29100 }
29101 arg3 = static_cast< int >(val3);
29102 }
29103 if (obj3) {
29104 {
29105 arg4 = &temp4;
29106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29107 }
29108 }
29109 if (obj4) {
29110 {
29111 arg5 = &temp5;
29112 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29113 }
29114 }
29115 if (obj5) {
29116 ecode6 = SWIG_AsVal_long(obj5, &val6);
29117 if (!SWIG_IsOK(ecode6)) {
29118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29119 }
29120 arg6 = static_cast< long >(val6);
29121 }
29122 if (obj6) {
29123 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29124 if (!SWIG_IsOK(res7)) {
29125 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29126 }
29127 if (!argp7) {
29128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29129 }
29130 arg7 = reinterpret_cast< wxValidator * >(argp7);
29131 }
29132 if (obj7) {
29133 {
29134 arg8 = wxString_in_helper(obj7);
29135 if (arg8 == NULL) SWIG_fail;
29136 temp8 = true;
29137 }
29138 }
29139 {
29140 PyThreadState* __tstate = wxPyBeginAllowThreads();
29141 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29142 wxPyEndAllowThreads(__tstate);
29143 if (PyErr_Occurred()) SWIG_fail;
29144 }
29145 {
29146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29147 }
29148 {
29149 if (temp8)
29150 delete arg8;
29151 }
29152 return resultobj;
29153 fail:
29154 {
29155 if (temp8)
29156 delete arg8;
29157 }
29158 return NULL;
29159 }
29160
29161
29162 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29163 PyObject *resultobj = 0;
29164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29165 PyObject *arg2 = (PyObject *) 0 ;
29166 PyObject *arg3 = (PyObject *) 0 ;
29167 void *argp1 = 0 ;
29168 int res1 = 0 ;
29169 PyObject * obj0 = 0 ;
29170 PyObject * obj1 = 0 ;
29171 PyObject * obj2 = 0 ;
29172 char * kwnames[] = {
29173 (char *) "self",(char *) "self",(char *) "_class", NULL
29174 };
29175
29176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29178 if (!SWIG_IsOK(res1)) {
29179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29180 }
29181 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29182 arg2 = obj1;
29183 arg3 = obj2;
29184 {
29185 PyThreadState* __tstate = wxPyBeginAllowThreads();
29186 (arg1)->_setCallbackInfo(arg2,arg3);
29187 wxPyEndAllowThreads(__tstate);
29188 if (PyErr_Occurred()) SWIG_fail;
29189 }
29190 resultobj = SWIG_Py_Void();
29191 return resultobj;
29192 fail:
29193 return NULL;
29194 }
29195
29196
29197 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29198 PyObject *resultobj = 0;
29199 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29200 int arg2 ;
29201 wxListItem *result = 0 ;
29202 void *argp1 = 0 ;
29203 int res1 = 0 ;
29204 int val2 ;
29205 int ecode2 = 0 ;
29206 PyObject * obj0 = 0 ;
29207 PyObject * obj1 = 0 ;
29208 char * kwnames[] = {
29209 (char *) "self",(char *) "col", NULL
29210 };
29211
29212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29214 if (!SWIG_IsOK(res1)) {
29215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29216 }
29217 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29218 ecode2 = SWIG_AsVal_int(obj1, &val2);
29219 if (!SWIG_IsOK(ecode2)) {
29220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29221 }
29222 arg2 = static_cast< int >(val2);
29223 {
29224 PyThreadState* __tstate = wxPyBeginAllowThreads();
29225 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29226 wxPyEndAllowThreads(__tstate);
29227 if (PyErr_Occurred()) SWIG_fail;
29228 }
29229 {
29230 resultobj = wxPyMake_wxObject(result, 0);
29231 }
29232 return resultobj;
29233 fail:
29234 return NULL;
29235 }
29236
29237
29238 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj = 0;
29240 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29241 int arg2 ;
29242 wxListItem *arg3 = 0 ;
29243 bool result;
29244 void *argp1 = 0 ;
29245 int res1 = 0 ;
29246 int val2 ;
29247 int ecode2 = 0 ;
29248 void *argp3 = 0 ;
29249 int res3 = 0 ;
29250 PyObject * obj0 = 0 ;
29251 PyObject * obj1 = 0 ;
29252 PyObject * obj2 = 0 ;
29253 char * kwnames[] = {
29254 (char *) "self",(char *) "col",(char *) "item", NULL
29255 };
29256
29257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29259 if (!SWIG_IsOK(res1)) {
29260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29261 }
29262 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29263 ecode2 = SWIG_AsVal_int(obj1, &val2);
29264 if (!SWIG_IsOK(ecode2)) {
29265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29266 }
29267 arg2 = static_cast< int >(val2);
29268 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29269 if (!SWIG_IsOK(res3)) {
29270 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29271 }
29272 if (!argp3) {
29273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29274 }
29275 arg3 = reinterpret_cast< wxListItem * >(argp3);
29276 {
29277 PyThreadState* __tstate = wxPyBeginAllowThreads();
29278 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29279 wxPyEndAllowThreads(__tstate);
29280 if (PyErr_Occurred()) SWIG_fail;
29281 }
29282 {
29283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29284 }
29285 return resultobj;
29286 fail:
29287 return NULL;
29288 }
29289
29290
29291 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29292 PyObject *resultobj = 0;
29293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29294 int arg2 ;
29295 int result;
29296 void *argp1 = 0 ;
29297 int res1 = 0 ;
29298 int val2 ;
29299 int ecode2 = 0 ;
29300 PyObject * obj0 = 0 ;
29301 PyObject * obj1 = 0 ;
29302 char * kwnames[] = {
29303 (char *) "self",(char *) "col", NULL
29304 };
29305
29306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29308 if (!SWIG_IsOK(res1)) {
29309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29310 }
29311 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29312 ecode2 = SWIG_AsVal_int(obj1, &val2);
29313 if (!SWIG_IsOK(ecode2)) {
29314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29315 }
29316 arg2 = static_cast< int >(val2);
29317 {
29318 PyThreadState* __tstate = wxPyBeginAllowThreads();
29319 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29320 wxPyEndAllowThreads(__tstate);
29321 if (PyErr_Occurred()) SWIG_fail;
29322 }
29323 resultobj = SWIG_From_int(static_cast< int >(result));
29324 return resultobj;
29325 fail:
29326 return NULL;
29327 }
29328
29329
29330 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29331 PyObject *resultobj = 0;
29332 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29333 int arg2 ;
29334 int arg3 ;
29335 bool result;
29336 void *argp1 = 0 ;
29337 int res1 = 0 ;
29338 int val2 ;
29339 int ecode2 = 0 ;
29340 int val3 ;
29341 int ecode3 = 0 ;
29342 PyObject * obj0 = 0 ;
29343 PyObject * obj1 = 0 ;
29344 PyObject * obj2 = 0 ;
29345 char * kwnames[] = {
29346 (char *) "self",(char *) "col",(char *) "width", NULL
29347 };
29348
29349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29351 if (!SWIG_IsOK(res1)) {
29352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29353 }
29354 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29355 ecode2 = SWIG_AsVal_int(obj1, &val2);
29356 if (!SWIG_IsOK(ecode2)) {
29357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29358 }
29359 arg2 = static_cast< int >(val2);
29360 ecode3 = SWIG_AsVal_int(obj2, &val3);
29361 if (!SWIG_IsOK(ecode3)) {
29362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29363 }
29364 arg3 = static_cast< int >(val3);
29365 {
29366 PyThreadState* __tstate = wxPyBeginAllowThreads();
29367 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29368 wxPyEndAllowThreads(__tstate);
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 {
29372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29373 }
29374 return resultobj;
29375 fail:
29376 return NULL;
29377 }
29378
29379
29380 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29381 PyObject *resultobj = 0;
29382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29383 int result;
29384 void *argp1 = 0 ;
29385 int res1 = 0 ;
29386 PyObject *swig_obj[1] ;
29387
29388 if (!args) SWIG_fail;
29389 swig_obj[0] = args;
29390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29391 if (!SWIG_IsOK(res1)) {
29392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29393 }
29394 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29395 {
29396 PyThreadState* __tstate = wxPyBeginAllowThreads();
29397 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29398 wxPyEndAllowThreads(__tstate);
29399 if (PyErr_Occurred()) SWIG_fail;
29400 }
29401 resultobj = SWIG_From_int(static_cast< int >(result));
29402 return resultobj;
29403 fail:
29404 return NULL;
29405 }
29406
29407
29408 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29409 PyObject *resultobj = 0;
29410 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29411 wxRect result;
29412 void *argp1 = 0 ;
29413 int res1 = 0 ;
29414 PyObject *swig_obj[1] ;
29415
29416 if (!args) SWIG_fail;
29417 swig_obj[0] = args;
29418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29419 if (!SWIG_IsOK(res1)) {
29420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29421 }
29422 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29423 {
29424 PyThreadState* __tstate = wxPyBeginAllowThreads();
29425 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29426 wxPyEndAllowThreads(__tstate);
29427 if (PyErr_Occurred()) SWIG_fail;
29428 }
29429 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29430 return resultobj;
29431 fail:
29432 return NULL;
29433 }
29434
29435
29436 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29437 PyObject *resultobj = 0;
29438 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29439 wxTextCtrl *result = 0 ;
29440 void *argp1 = 0 ;
29441 int res1 = 0 ;
29442 PyObject *swig_obj[1] ;
29443
29444 if (!args) SWIG_fail;
29445 swig_obj[0] = args;
29446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29447 if (!SWIG_IsOK(res1)) {
29448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29449 }
29450 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29451 {
29452 PyThreadState* __tstate = wxPyBeginAllowThreads();
29453 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29454 wxPyEndAllowThreads(__tstate);
29455 if (PyErr_Occurred()) SWIG_fail;
29456 }
29457 {
29458 resultobj = wxPyMake_wxObject(result, 0);
29459 }
29460 return resultobj;
29461 fail:
29462 return NULL;
29463 }
29464
29465
29466 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29467 PyObject *resultobj = 0;
29468 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29469 long arg2 ;
29470 int arg3 = (int) 0 ;
29471 wxListItem *result = 0 ;
29472 void *argp1 = 0 ;
29473 int res1 = 0 ;
29474 long val2 ;
29475 int ecode2 = 0 ;
29476 int val3 ;
29477 int ecode3 = 0 ;
29478 PyObject * obj0 = 0 ;
29479 PyObject * obj1 = 0 ;
29480 PyObject * obj2 = 0 ;
29481 char * kwnames[] = {
29482 (char *) "self",(char *) "itemId",(char *) "col", NULL
29483 };
29484
29485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29487 if (!SWIG_IsOK(res1)) {
29488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29489 }
29490 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29491 ecode2 = SWIG_AsVal_long(obj1, &val2);
29492 if (!SWIG_IsOK(ecode2)) {
29493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29494 }
29495 arg2 = static_cast< long >(val2);
29496 if (obj2) {
29497 ecode3 = SWIG_AsVal_int(obj2, &val3);
29498 if (!SWIG_IsOK(ecode3)) {
29499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29500 }
29501 arg3 = static_cast< int >(val3);
29502 }
29503 {
29504 PyThreadState* __tstate = wxPyBeginAllowThreads();
29505 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29506 wxPyEndAllowThreads(__tstate);
29507 if (PyErr_Occurred()) SWIG_fail;
29508 }
29509 {
29510 resultobj = wxPyMake_wxObject(result, 0);
29511 }
29512 return resultobj;
29513 fail:
29514 return NULL;
29515 }
29516
29517
29518 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29519 PyObject *resultobj = 0;
29520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29521 wxListItem *arg2 = 0 ;
29522 bool result;
29523 void *argp1 = 0 ;
29524 int res1 = 0 ;
29525 void *argp2 = 0 ;
29526 int res2 = 0 ;
29527 PyObject * obj0 = 0 ;
29528 PyObject * obj1 = 0 ;
29529 char * kwnames[] = {
29530 (char *) "self",(char *) "info", NULL
29531 };
29532
29533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29535 if (!SWIG_IsOK(res1)) {
29536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29537 }
29538 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29540 if (!SWIG_IsOK(res2)) {
29541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29542 }
29543 if (!argp2) {
29544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29545 }
29546 arg2 = reinterpret_cast< wxListItem * >(argp2);
29547 {
29548 PyThreadState* __tstate = wxPyBeginAllowThreads();
29549 result = (bool)(arg1)->SetItem(*arg2);
29550 wxPyEndAllowThreads(__tstate);
29551 if (PyErr_Occurred()) SWIG_fail;
29552 }
29553 {
29554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29555 }
29556 return resultobj;
29557 fail:
29558 return NULL;
29559 }
29560
29561
29562 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29563 PyObject *resultobj = 0;
29564 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29565 long arg2 ;
29566 int arg3 ;
29567 wxString *arg4 = 0 ;
29568 int arg5 = (int) -1 ;
29569 long result;
29570 void *argp1 = 0 ;
29571 int res1 = 0 ;
29572 long val2 ;
29573 int ecode2 = 0 ;
29574 int val3 ;
29575 int ecode3 = 0 ;
29576 bool temp4 = false ;
29577 int val5 ;
29578 int ecode5 = 0 ;
29579 PyObject * obj0 = 0 ;
29580 PyObject * obj1 = 0 ;
29581 PyObject * obj2 = 0 ;
29582 PyObject * obj3 = 0 ;
29583 PyObject * obj4 = 0 ;
29584 char * kwnames[] = {
29585 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29586 };
29587
29588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29590 if (!SWIG_IsOK(res1)) {
29591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29592 }
29593 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29594 ecode2 = SWIG_AsVal_long(obj1, &val2);
29595 if (!SWIG_IsOK(ecode2)) {
29596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29597 }
29598 arg2 = static_cast< long >(val2);
29599 ecode3 = SWIG_AsVal_int(obj2, &val3);
29600 if (!SWIG_IsOK(ecode3)) {
29601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29602 }
29603 arg3 = static_cast< int >(val3);
29604 {
29605 arg4 = wxString_in_helper(obj3);
29606 if (arg4 == NULL) SWIG_fail;
29607 temp4 = true;
29608 }
29609 if (obj4) {
29610 ecode5 = SWIG_AsVal_int(obj4, &val5);
29611 if (!SWIG_IsOK(ecode5)) {
29612 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29613 }
29614 arg5 = static_cast< int >(val5);
29615 }
29616 {
29617 PyThreadState* __tstate = wxPyBeginAllowThreads();
29618 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29619 wxPyEndAllowThreads(__tstate);
29620 if (PyErr_Occurred()) SWIG_fail;
29621 }
29622 resultobj = SWIG_From_long(static_cast< long >(result));
29623 {
29624 if (temp4)
29625 delete arg4;
29626 }
29627 return resultobj;
29628 fail:
29629 {
29630 if (temp4)
29631 delete arg4;
29632 }
29633 return NULL;
29634 }
29635
29636
29637 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29638 PyObject *resultobj = 0;
29639 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29640 long arg2 ;
29641 long arg3 ;
29642 int result;
29643 void *argp1 = 0 ;
29644 int res1 = 0 ;
29645 long val2 ;
29646 int ecode2 = 0 ;
29647 long val3 ;
29648 int ecode3 = 0 ;
29649 PyObject * obj0 = 0 ;
29650 PyObject * obj1 = 0 ;
29651 PyObject * obj2 = 0 ;
29652 char * kwnames[] = {
29653 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29654 };
29655
29656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29658 if (!SWIG_IsOK(res1)) {
29659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29660 }
29661 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29662 ecode2 = SWIG_AsVal_long(obj1, &val2);
29663 if (!SWIG_IsOK(ecode2)) {
29664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29665 }
29666 arg2 = static_cast< long >(val2);
29667 ecode3 = SWIG_AsVal_long(obj2, &val3);
29668 if (!SWIG_IsOK(ecode3)) {
29669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29670 }
29671 arg3 = static_cast< long >(val3);
29672 {
29673 PyThreadState* __tstate = wxPyBeginAllowThreads();
29674 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29675 wxPyEndAllowThreads(__tstate);
29676 if (PyErr_Occurred()) SWIG_fail;
29677 }
29678 resultobj = SWIG_From_int(static_cast< int >(result));
29679 return resultobj;
29680 fail:
29681 return NULL;
29682 }
29683
29684
29685 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29686 PyObject *resultobj = 0;
29687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29688 long arg2 ;
29689 long arg3 ;
29690 long arg4 ;
29691 bool result;
29692 void *argp1 = 0 ;
29693 int res1 = 0 ;
29694 long val2 ;
29695 int ecode2 = 0 ;
29696 long val3 ;
29697 int ecode3 = 0 ;
29698 long val4 ;
29699 int ecode4 = 0 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 PyObject * obj2 = 0 ;
29703 PyObject * obj3 = 0 ;
29704 char * kwnames[] = {
29705 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29706 };
29707
29708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29710 if (!SWIG_IsOK(res1)) {
29711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29712 }
29713 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29714 ecode2 = SWIG_AsVal_long(obj1, &val2);
29715 if (!SWIG_IsOK(ecode2)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29717 }
29718 arg2 = static_cast< long >(val2);
29719 ecode3 = SWIG_AsVal_long(obj2, &val3);
29720 if (!SWIG_IsOK(ecode3)) {
29721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29722 }
29723 arg3 = static_cast< long >(val3);
29724 ecode4 = SWIG_AsVal_long(obj3, &val4);
29725 if (!SWIG_IsOK(ecode4)) {
29726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29727 }
29728 arg4 = static_cast< long >(val4);
29729 {
29730 PyThreadState* __tstate = wxPyBeginAllowThreads();
29731 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29732 wxPyEndAllowThreads(__tstate);
29733 if (PyErr_Occurred()) SWIG_fail;
29734 }
29735 {
29736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29737 }
29738 return resultobj;
29739 fail:
29740 return NULL;
29741 }
29742
29743
29744 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29745 PyObject *resultobj = 0;
29746 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29747 long arg2 ;
29748 int arg3 ;
29749 int arg4 = (int) -1 ;
29750 bool result;
29751 void *argp1 = 0 ;
29752 int res1 = 0 ;
29753 long val2 ;
29754 int ecode2 = 0 ;
29755 int val3 ;
29756 int ecode3 = 0 ;
29757 int val4 ;
29758 int ecode4 = 0 ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 PyObject * obj2 = 0 ;
29762 PyObject * obj3 = 0 ;
29763 char * kwnames[] = {
29764 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29765 };
29766
29767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29769 if (!SWIG_IsOK(res1)) {
29770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29771 }
29772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29773 ecode2 = SWIG_AsVal_long(obj1, &val2);
29774 if (!SWIG_IsOK(ecode2)) {
29775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29776 }
29777 arg2 = static_cast< long >(val2);
29778 ecode3 = SWIG_AsVal_int(obj2, &val3);
29779 if (!SWIG_IsOK(ecode3)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29781 }
29782 arg3 = static_cast< int >(val3);
29783 if (obj3) {
29784 ecode4 = SWIG_AsVal_int(obj3, &val4);
29785 if (!SWIG_IsOK(ecode4)) {
29786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29787 }
29788 arg4 = static_cast< int >(val4);
29789 }
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29793 wxPyEndAllowThreads(__tstate);
29794 if (PyErr_Occurred()) SWIG_fail;
29795 }
29796 {
29797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29798 }
29799 return resultobj;
29800 fail:
29801 return NULL;
29802 }
29803
29804
29805 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29806 PyObject *resultobj = 0;
29807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29808 long arg2 ;
29809 long arg3 ;
29810 int arg4 ;
29811 bool result;
29812 void *argp1 = 0 ;
29813 int res1 = 0 ;
29814 long val2 ;
29815 int ecode2 = 0 ;
29816 long val3 ;
29817 int ecode3 = 0 ;
29818 int val4 ;
29819 int ecode4 = 0 ;
29820 PyObject * obj0 = 0 ;
29821 PyObject * obj1 = 0 ;
29822 PyObject * obj2 = 0 ;
29823 PyObject * obj3 = 0 ;
29824 char * kwnames[] = {
29825 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29826 };
29827
29828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29832 }
29833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29834 ecode2 = SWIG_AsVal_long(obj1, &val2);
29835 if (!SWIG_IsOK(ecode2)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29837 }
29838 arg2 = static_cast< long >(val2);
29839 ecode3 = SWIG_AsVal_long(obj2, &val3);
29840 if (!SWIG_IsOK(ecode3)) {
29841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29842 }
29843 arg3 = static_cast< long >(val3);
29844 ecode4 = SWIG_AsVal_int(obj3, &val4);
29845 if (!SWIG_IsOK(ecode4)) {
29846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29847 }
29848 arg4 = static_cast< int >(val4);
29849 {
29850 PyThreadState* __tstate = wxPyBeginAllowThreads();
29851 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29852 wxPyEndAllowThreads(__tstate);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 {
29856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29857 }
29858 return resultobj;
29859 fail:
29860 return NULL;
29861 }
29862
29863
29864 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29865 PyObject *resultobj = 0;
29866 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29867 long arg2 ;
29868 wxString result;
29869 void *argp1 = 0 ;
29870 int res1 = 0 ;
29871 long val2 ;
29872 int ecode2 = 0 ;
29873 PyObject * obj0 = 0 ;
29874 PyObject * obj1 = 0 ;
29875 char * kwnames[] = {
29876 (char *) "self",(char *) "item", NULL
29877 };
29878
29879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29881 if (!SWIG_IsOK(res1)) {
29882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29883 }
29884 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29885 ecode2 = SWIG_AsVal_long(obj1, &val2);
29886 if (!SWIG_IsOK(ecode2)) {
29887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29888 }
29889 arg2 = static_cast< long >(val2);
29890 {
29891 PyThreadState* __tstate = wxPyBeginAllowThreads();
29892 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29893 wxPyEndAllowThreads(__tstate);
29894 if (PyErr_Occurred()) SWIG_fail;
29895 }
29896 {
29897 #if wxUSE_UNICODE
29898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29899 #else
29900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29901 #endif
29902 }
29903 return resultobj;
29904 fail:
29905 return NULL;
29906 }
29907
29908
29909 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29910 PyObject *resultobj = 0;
29911 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29912 long arg2 ;
29913 wxString *arg3 = 0 ;
29914 void *argp1 = 0 ;
29915 int res1 = 0 ;
29916 long val2 ;
29917 int ecode2 = 0 ;
29918 bool temp3 = false ;
29919 PyObject * obj0 = 0 ;
29920 PyObject * obj1 = 0 ;
29921 PyObject * obj2 = 0 ;
29922 char * kwnames[] = {
29923 (char *) "self",(char *) "item",(char *) "str", NULL
29924 };
29925
29926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29930 }
29931 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29932 ecode2 = SWIG_AsVal_long(obj1, &val2);
29933 if (!SWIG_IsOK(ecode2)) {
29934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29935 }
29936 arg2 = static_cast< long >(val2);
29937 {
29938 arg3 = wxString_in_helper(obj2);
29939 if (arg3 == NULL) SWIG_fail;
29940 temp3 = true;
29941 }
29942 {
29943 PyThreadState* __tstate = wxPyBeginAllowThreads();
29944 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29945 wxPyEndAllowThreads(__tstate);
29946 if (PyErr_Occurred()) SWIG_fail;
29947 }
29948 resultobj = SWIG_Py_Void();
29949 {
29950 if (temp3)
29951 delete arg3;
29952 }
29953 return resultobj;
29954 fail:
29955 {
29956 if (temp3)
29957 delete arg3;
29958 }
29959 return NULL;
29960 }
29961
29962
29963 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29964 PyObject *resultobj = 0;
29965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29966 long arg2 ;
29967 long result;
29968 void *argp1 = 0 ;
29969 int res1 = 0 ;
29970 long val2 ;
29971 int ecode2 = 0 ;
29972 PyObject * obj0 = 0 ;
29973 PyObject * obj1 = 0 ;
29974 char * kwnames[] = {
29975 (char *) "self",(char *) "item", NULL
29976 };
29977
29978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29980 if (!SWIG_IsOK(res1)) {
29981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29982 }
29983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29984 ecode2 = SWIG_AsVal_long(obj1, &val2);
29985 if (!SWIG_IsOK(ecode2)) {
29986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29987 }
29988 arg2 = static_cast< long >(val2);
29989 {
29990 PyThreadState* __tstate = wxPyBeginAllowThreads();
29991 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29992 wxPyEndAllowThreads(__tstate);
29993 if (PyErr_Occurred()) SWIG_fail;
29994 }
29995 resultobj = SWIG_From_long(static_cast< long >(result));
29996 return resultobj;
29997 fail:
29998 return NULL;
29999 }
30000
30001
30002 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30003 PyObject *resultobj = 0;
30004 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30005 long arg2 ;
30006 long arg3 ;
30007 bool result;
30008 void *argp1 = 0 ;
30009 int res1 = 0 ;
30010 long val2 ;
30011 int ecode2 = 0 ;
30012 long val3 ;
30013 int ecode3 = 0 ;
30014 PyObject * obj0 = 0 ;
30015 PyObject * obj1 = 0 ;
30016 PyObject * obj2 = 0 ;
30017 char * kwnames[] = {
30018 (char *) "self",(char *) "item",(char *) "data", NULL
30019 };
30020
30021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30023 if (!SWIG_IsOK(res1)) {
30024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30025 }
30026 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30027 ecode2 = SWIG_AsVal_long(obj1, &val2);
30028 if (!SWIG_IsOK(ecode2)) {
30029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30030 }
30031 arg2 = static_cast< long >(val2);
30032 ecode3 = SWIG_AsVal_long(obj2, &val3);
30033 if (!SWIG_IsOK(ecode3)) {
30034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30035 }
30036 arg3 = static_cast< long >(val3);
30037 {
30038 PyThreadState* __tstate = wxPyBeginAllowThreads();
30039 result = (bool)(arg1)->SetItemData(arg2,arg3);
30040 wxPyEndAllowThreads(__tstate);
30041 if (PyErr_Occurred()) SWIG_fail;
30042 }
30043 {
30044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30045 }
30046 return resultobj;
30047 fail:
30048 return NULL;
30049 }
30050
30051
30052 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30053 PyObject *resultobj = 0;
30054 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30055 long arg2 ;
30056 wxPoint result;
30057 void *argp1 = 0 ;
30058 int res1 = 0 ;
30059 long val2 ;
30060 int ecode2 = 0 ;
30061 PyObject * obj0 = 0 ;
30062 PyObject * obj1 = 0 ;
30063 char * kwnames[] = {
30064 (char *) "self",(char *) "item", NULL
30065 };
30066
30067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30069 if (!SWIG_IsOK(res1)) {
30070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30071 }
30072 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30073 ecode2 = SWIG_AsVal_long(obj1, &val2);
30074 if (!SWIG_IsOK(ecode2)) {
30075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30076 }
30077 arg2 = static_cast< long >(val2);
30078 {
30079 PyThreadState* __tstate = wxPyBeginAllowThreads();
30080 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30081 wxPyEndAllowThreads(__tstate);
30082 if (PyErr_Occurred()) SWIG_fail;
30083 }
30084 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30085 return resultobj;
30086 fail:
30087 return NULL;
30088 }
30089
30090
30091 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30092 PyObject *resultobj = 0;
30093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30094 long arg2 ;
30095 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30096 wxRect result;
30097 void *argp1 = 0 ;
30098 int res1 = 0 ;
30099 long val2 ;
30100 int ecode2 = 0 ;
30101 int val3 ;
30102 int ecode3 = 0 ;
30103 PyObject * obj0 = 0 ;
30104 PyObject * obj1 = 0 ;
30105 PyObject * obj2 = 0 ;
30106 char * kwnames[] = {
30107 (char *) "self",(char *) "item",(char *) "code", NULL
30108 };
30109
30110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30112 if (!SWIG_IsOK(res1)) {
30113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30114 }
30115 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30116 ecode2 = SWIG_AsVal_long(obj1, &val2);
30117 if (!SWIG_IsOK(ecode2)) {
30118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30119 }
30120 arg2 = static_cast< long >(val2);
30121 if (obj2) {
30122 ecode3 = SWIG_AsVal_int(obj2, &val3);
30123 if (!SWIG_IsOK(ecode3)) {
30124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30125 }
30126 arg3 = static_cast< int >(val3);
30127 }
30128 {
30129 PyThreadState* __tstate = wxPyBeginAllowThreads();
30130 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30131 wxPyEndAllowThreads(__tstate);
30132 if (PyErr_Occurred()) SWIG_fail;
30133 }
30134 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30135 return resultobj;
30136 fail:
30137 return NULL;
30138 }
30139
30140
30141 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30142 PyObject *resultobj = 0;
30143 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30144 long arg2 ;
30145 wxPoint *arg3 = 0 ;
30146 bool result;
30147 void *argp1 = 0 ;
30148 int res1 = 0 ;
30149 long val2 ;
30150 int ecode2 = 0 ;
30151 wxPoint temp3 ;
30152 PyObject * obj0 = 0 ;
30153 PyObject * obj1 = 0 ;
30154 PyObject * obj2 = 0 ;
30155 char * kwnames[] = {
30156 (char *) "self",(char *) "item",(char *) "pos", NULL
30157 };
30158
30159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30161 if (!SWIG_IsOK(res1)) {
30162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30163 }
30164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30165 ecode2 = SWIG_AsVal_long(obj1, &val2);
30166 if (!SWIG_IsOK(ecode2)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30168 }
30169 arg2 = static_cast< long >(val2);
30170 {
30171 arg3 = &temp3;
30172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30173 }
30174 {
30175 PyThreadState* __tstate = wxPyBeginAllowThreads();
30176 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30177 wxPyEndAllowThreads(__tstate);
30178 if (PyErr_Occurred()) SWIG_fail;
30179 }
30180 {
30181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30182 }
30183 return resultobj;
30184 fail:
30185 return NULL;
30186 }
30187
30188
30189 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30190 PyObject *resultobj = 0;
30191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30192 int result;
30193 void *argp1 = 0 ;
30194 int res1 = 0 ;
30195 PyObject *swig_obj[1] ;
30196
30197 if (!args) SWIG_fail;
30198 swig_obj[0] = args;
30199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30200 if (!SWIG_IsOK(res1)) {
30201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30202 }
30203 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30204 {
30205 PyThreadState* __tstate = wxPyBeginAllowThreads();
30206 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30207 wxPyEndAllowThreads(__tstate);
30208 if (PyErr_Occurred()) SWIG_fail;
30209 }
30210 resultobj = SWIG_From_int(static_cast< int >(result));
30211 return resultobj;
30212 fail:
30213 return NULL;
30214 }
30215
30216
30217 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30218 PyObject *resultobj = 0;
30219 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30220 int result;
30221 void *argp1 = 0 ;
30222 int res1 = 0 ;
30223 PyObject *swig_obj[1] ;
30224
30225 if (!args) SWIG_fail;
30226 swig_obj[0] = args;
30227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30230 }
30231 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30232 {
30233 PyThreadState* __tstate = wxPyBeginAllowThreads();
30234 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30235 wxPyEndAllowThreads(__tstate);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
30238 resultobj = SWIG_From_int(static_cast< int >(result));
30239 return resultobj;
30240 fail:
30241 return NULL;
30242 }
30243
30244
30245 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30246 PyObject *resultobj = 0;
30247 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30248 wxSize result;
30249 void *argp1 = 0 ;
30250 int res1 = 0 ;
30251 PyObject *swig_obj[1] ;
30252
30253 if (!args) SWIG_fail;
30254 swig_obj[0] = args;
30255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30256 if (!SWIG_IsOK(res1)) {
30257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30258 }
30259 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30260 {
30261 PyThreadState* __tstate = wxPyBeginAllowThreads();
30262 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30263 wxPyEndAllowThreads(__tstate);
30264 if (PyErr_Occurred()) SWIG_fail;
30265 }
30266 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30267 return resultobj;
30268 fail:
30269 return NULL;
30270 }
30271
30272
30273 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30274 PyObject *resultobj = 0;
30275 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30276 int result;
30277 void *argp1 = 0 ;
30278 int res1 = 0 ;
30279 PyObject *swig_obj[1] ;
30280
30281 if (!args) SWIG_fail;
30282 swig_obj[0] = args;
30283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30284 if (!SWIG_IsOK(res1)) {
30285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30286 }
30287 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30288 {
30289 PyThreadState* __tstate = wxPyBeginAllowThreads();
30290 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30291 wxPyEndAllowThreads(__tstate);
30292 if (PyErr_Occurred()) SWIG_fail;
30293 }
30294 resultobj = SWIG_From_int(static_cast< int >(result));
30295 return resultobj;
30296 fail:
30297 return NULL;
30298 }
30299
30300
30301 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30302 PyObject *resultobj = 0;
30303 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30304 wxColour result;
30305 void *argp1 = 0 ;
30306 int res1 = 0 ;
30307 PyObject *swig_obj[1] ;
30308
30309 if (!args) SWIG_fail;
30310 swig_obj[0] = args;
30311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30312 if (!SWIG_IsOK(res1)) {
30313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30314 }
30315 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30316 {
30317 PyThreadState* __tstate = wxPyBeginAllowThreads();
30318 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30319 wxPyEndAllowThreads(__tstate);
30320 if (PyErr_Occurred()) SWIG_fail;
30321 }
30322 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30323 return resultobj;
30324 fail:
30325 return NULL;
30326 }
30327
30328
30329 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30330 PyObject *resultobj = 0;
30331 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30332 wxColour *arg2 = 0 ;
30333 void *argp1 = 0 ;
30334 int res1 = 0 ;
30335 wxColour temp2 ;
30336 PyObject * obj0 = 0 ;
30337 PyObject * obj1 = 0 ;
30338 char * kwnames[] = {
30339 (char *) "self",(char *) "col", NULL
30340 };
30341
30342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30344 if (!SWIG_IsOK(res1)) {
30345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30346 }
30347 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30348 {
30349 arg2 = &temp2;
30350 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30351 }
30352 {
30353 PyThreadState* __tstate = wxPyBeginAllowThreads();
30354 (arg1)->SetTextColour((wxColour const &)*arg2);
30355 wxPyEndAllowThreads(__tstate);
30356 if (PyErr_Occurred()) SWIG_fail;
30357 }
30358 resultobj = SWIG_Py_Void();
30359 return resultobj;
30360 fail:
30361 return NULL;
30362 }
30363
30364
30365 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30366 PyObject *resultobj = 0;
30367 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30368 long result;
30369 void *argp1 = 0 ;
30370 int res1 = 0 ;
30371 PyObject *swig_obj[1] ;
30372
30373 if (!args) SWIG_fail;
30374 swig_obj[0] = args;
30375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30376 if (!SWIG_IsOK(res1)) {
30377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30378 }
30379 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30380 {
30381 PyThreadState* __tstate = wxPyBeginAllowThreads();
30382 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30383 wxPyEndAllowThreads(__tstate);
30384 if (PyErr_Occurred()) SWIG_fail;
30385 }
30386 resultobj = SWIG_From_long(static_cast< long >(result));
30387 return resultobj;
30388 fail:
30389 return NULL;
30390 }
30391
30392
30393 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30394 PyObject *resultobj = 0;
30395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30396 long arg2 ;
30397 bool arg3 = (bool) true ;
30398 void *argp1 = 0 ;
30399 int res1 = 0 ;
30400 long val2 ;
30401 int ecode2 = 0 ;
30402 bool val3 ;
30403 int ecode3 = 0 ;
30404 PyObject * obj0 = 0 ;
30405 PyObject * obj1 = 0 ;
30406 PyObject * obj2 = 0 ;
30407 char * kwnames[] = {
30408 (char *) "self",(char *) "style",(char *) "add", NULL
30409 };
30410
30411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30413 if (!SWIG_IsOK(res1)) {
30414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30415 }
30416 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30417 ecode2 = SWIG_AsVal_long(obj1, &val2);
30418 if (!SWIG_IsOK(ecode2)) {
30419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30420 }
30421 arg2 = static_cast< long >(val2);
30422 if (obj2) {
30423 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30424 if (!SWIG_IsOK(ecode3)) {
30425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30426 }
30427 arg3 = static_cast< bool >(val3);
30428 }
30429 {
30430 PyThreadState* __tstate = wxPyBeginAllowThreads();
30431 (arg1)->SetSingleStyle(arg2,arg3);
30432 wxPyEndAllowThreads(__tstate);
30433 if (PyErr_Occurred()) SWIG_fail;
30434 }
30435 resultobj = SWIG_Py_Void();
30436 return resultobj;
30437 fail:
30438 return NULL;
30439 }
30440
30441
30442 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30443 PyObject *resultobj = 0;
30444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30445 long arg2 ;
30446 int arg3 = (int) wxLIST_NEXT_ALL ;
30447 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30448 long result;
30449 void *argp1 = 0 ;
30450 int res1 = 0 ;
30451 long val2 ;
30452 int ecode2 = 0 ;
30453 int val3 ;
30454 int ecode3 = 0 ;
30455 int val4 ;
30456 int ecode4 = 0 ;
30457 PyObject * obj0 = 0 ;
30458 PyObject * obj1 = 0 ;
30459 PyObject * obj2 = 0 ;
30460 PyObject * obj3 = 0 ;
30461 char * kwnames[] = {
30462 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30463 };
30464
30465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30467 if (!SWIG_IsOK(res1)) {
30468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30469 }
30470 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30471 ecode2 = SWIG_AsVal_long(obj1, &val2);
30472 if (!SWIG_IsOK(ecode2)) {
30473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30474 }
30475 arg2 = static_cast< long >(val2);
30476 if (obj2) {
30477 ecode3 = SWIG_AsVal_int(obj2, &val3);
30478 if (!SWIG_IsOK(ecode3)) {
30479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30480 }
30481 arg3 = static_cast< int >(val3);
30482 }
30483 if (obj3) {
30484 ecode4 = SWIG_AsVal_int(obj3, &val4);
30485 if (!SWIG_IsOK(ecode4)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30487 }
30488 arg4 = static_cast< int >(val4);
30489 }
30490 {
30491 PyThreadState* __tstate = wxPyBeginAllowThreads();
30492 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30493 wxPyEndAllowThreads(__tstate);
30494 if (PyErr_Occurred()) SWIG_fail;
30495 }
30496 resultobj = SWIG_From_long(static_cast< long >(result));
30497 return resultobj;
30498 fail:
30499 return NULL;
30500 }
30501
30502
30503 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30504 PyObject *resultobj = 0;
30505 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30506 int arg2 ;
30507 wxImageList *result = 0 ;
30508 void *argp1 = 0 ;
30509 int res1 = 0 ;
30510 int val2 ;
30511 int ecode2 = 0 ;
30512 PyObject * obj0 = 0 ;
30513 PyObject * obj1 = 0 ;
30514 char * kwnames[] = {
30515 (char *) "self",(char *) "which", NULL
30516 };
30517
30518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30520 if (!SWIG_IsOK(res1)) {
30521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30522 }
30523 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30524 ecode2 = SWIG_AsVal_int(obj1, &val2);
30525 if (!SWIG_IsOK(ecode2)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30527 }
30528 arg2 = static_cast< int >(val2);
30529 {
30530 PyThreadState* __tstate = wxPyBeginAllowThreads();
30531 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30532 wxPyEndAllowThreads(__tstate);
30533 if (PyErr_Occurred()) SWIG_fail;
30534 }
30535 {
30536 resultobj = wxPyMake_wxObject(result, (bool)0);
30537 }
30538 return resultobj;
30539 fail:
30540 return NULL;
30541 }
30542
30543
30544 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30545 PyObject *resultobj = 0;
30546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30547 wxImageList *arg2 = (wxImageList *) 0 ;
30548 int arg3 ;
30549 void *argp1 = 0 ;
30550 int res1 = 0 ;
30551 void *argp2 = 0 ;
30552 int res2 = 0 ;
30553 int val3 ;
30554 int ecode3 = 0 ;
30555 PyObject * obj0 = 0 ;
30556 PyObject * obj1 = 0 ;
30557 PyObject * obj2 = 0 ;
30558 char * kwnames[] = {
30559 (char *) "self",(char *) "imageList",(char *) "which", NULL
30560 };
30561
30562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30564 if (!SWIG_IsOK(res1)) {
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30566 }
30567 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30569 if (!SWIG_IsOK(res2)) {
30570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30571 }
30572 arg2 = reinterpret_cast< wxImageList * >(argp2);
30573 ecode3 = SWIG_AsVal_int(obj2, &val3);
30574 if (!SWIG_IsOK(ecode3)) {
30575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30576 }
30577 arg3 = static_cast< int >(val3);
30578 {
30579 PyThreadState* __tstate = wxPyBeginAllowThreads();
30580 (arg1)->SetImageList(arg2,arg3);
30581 wxPyEndAllowThreads(__tstate);
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 resultobj = SWIG_Py_Void();
30585 return resultobj;
30586 fail:
30587 return NULL;
30588 }
30589
30590
30591 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30592 PyObject *resultobj = 0;
30593 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30594 wxImageList *arg2 = (wxImageList *) 0 ;
30595 int arg3 ;
30596 void *argp1 = 0 ;
30597 int res1 = 0 ;
30598 int res2 = 0 ;
30599 int val3 ;
30600 int ecode3 = 0 ;
30601 PyObject * obj0 = 0 ;
30602 PyObject * obj1 = 0 ;
30603 PyObject * obj2 = 0 ;
30604 char * kwnames[] = {
30605 (char *) "self",(char *) "imageList",(char *) "which", NULL
30606 };
30607
30608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30610 if (!SWIG_IsOK(res1)) {
30611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30612 }
30613 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30614 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30615 if (!SWIG_IsOK(res2)) {
30616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30617 }
30618 ecode3 = SWIG_AsVal_int(obj2, &val3);
30619 if (!SWIG_IsOK(ecode3)) {
30620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30621 }
30622 arg3 = static_cast< int >(val3);
30623 {
30624 PyThreadState* __tstate = wxPyBeginAllowThreads();
30625 (arg1)->AssignImageList(arg2,arg3);
30626 wxPyEndAllowThreads(__tstate);
30627 if (PyErr_Occurred()) SWIG_fail;
30628 }
30629 resultobj = SWIG_Py_Void();
30630 return resultobj;
30631 fail:
30632 return NULL;
30633 }
30634
30635
30636 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30637 PyObject *resultobj = 0;
30638 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30639 bool result;
30640 void *argp1 = 0 ;
30641 int res1 = 0 ;
30642 PyObject *swig_obj[1] ;
30643
30644 if (!args) SWIG_fail;
30645 swig_obj[0] = args;
30646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30647 if (!SWIG_IsOK(res1)) {
30648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30649 }
30650 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30651 {
30652 PyThreadState* __tstate = wxPyBeginAllowThreads();
30653 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30654 wxPyEndAllowThreads(__tstate);
30655 if (PyErr_Occurred()) SWIG_fail;
30656 }
30657 {
30658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30659 }
30660 return resultobj;
30661 fail:
30662 return NULL;
30663 }
30664
30665
30666 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30667 PyObject *resultobj = 0;
30668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30669 bool result;
30670 void *argp1 = 0 ;
30671 int res1 = 0 ;
30672 PyObject *swig_obj[1] ;
30673
30674 if (!args) SWIG_fail;
30675 swig_obj[0] = args;
30676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30677 if (!SWIG_IsOK(res1)) {
30678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30679 }
30680 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30681 {
30682 PyThreadState* __tstate = wxPyBeginAllowThreads();
30683 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30684 wxPyEndAllowThreads(__tstate);
30685 if (PyErr_Occurred()) SWIG_fail;
30686 }
30687 {
30688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30689 }
30690 return resultobj;
30691 fail:
30692 return NULL;
30693 }
30694
30695
30696 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30697 PyObject *resultobj = 0;
30698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30699 long arg2 ;
30700 void *argp1 = 0 ;
30701 int res1 = 0 ;
30702 long val2 ;
30703 int ecode2 = 0 ;
30704 PyObject * obj0 = 0 ;
30705 PyObject * obj1 = 0 ;
30706 char * kwnames[] = {
30707 (char *) "self",(char *) "item", NULL
30708 };
30709
30710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30712 if (!SWIG_IsOK(res1)) {
30713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30714 }
30715 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30716 ecode2 = SWIG_AsVal_long(obj1, &val2);
30717 if (!SWIG_IsOK(ecode2)) {
30718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30719 }
30720 arg2 = static_cast< long >(val2);
30721 {
30722 PyThreadState* __tstate = wxPyBeginAllowThreads();
30723 (arg1)->RefreshItem(arg2);
30724 wxPyEndAllowThreads(__tstate);
30725 if (PyErr_Occurred()) SWIG_fail;
30726 }
30727 resultobj = SWIG_Py_Void();
30728 return resultobj;
30729 fail:
30730 return NULL;
30731 }
30732
30733
30734 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30735 PyObject *resultobj = 0;
30736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30737 long arg2 ;
30738 long arg3 ;
30739 void *argp1 = 0 ;
30740 int res1 = 0 ;
30741 long val2 ;
30742 int ecode2 = 0 ;
30743 long val3 ;
30744 int ecode3 = 0 ;
30745 PyObject * obj0 = 0 ;
30746 PyObject * obj1 = 0 ;
30747 PyObject * obj2 = 0 ;
30748 char * kwnames[] = {
30749 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30750 };
30751
30752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30754 if (!SWIG_IsOK(res1)) {
30755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30756 }
30757 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30758 ecode2 = SWIG_AsVal_long(obj1, &val2);
30759 if (!SWIG_IsOK(ecode2)) {
30760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30761 }
30762 arg2 = static_cast< long >(val2);
30763 ecode3 = SWIG_AsVal_long(obj2, &val3);
30764 if (!SWIG_IsOK(ecode3)) {
30765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30766 }
30767 arg3 = static_cast< long >(val3);
30768 {
30769 PyThreadState* __tstate = wxPyBeginAllowThreads();
30770 (arg1)->RefreshItems(arg2,arg3);
30771 wxPyEndAllowThreads(__tstate);
30772 if (PyErr_Occurred()) SWIG_fail;
30773 }
30774 resultobj = SWIG_Py_Void();
30775 return resultobj;
30776 fail:
30777 return NULL;
30778 }
30779
30780
30781 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30782 PyObject *resultobj = 0;
30783 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30784 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30785 bool result;
30786 void *argp1 = 0 ;
30787 int res1 = 0 ;
30788 int val2 ;
30789 int ecode2 = 0 ;
30790 PyObject * obj0 = 0 ;
30791 PyObject * obj1 = 0 ;
30792 char * kwnames[] = {
30793 (char *) "self",(char *) "flag", NULL
30794 };
30795
30796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30798 if (!SWIG_IsOK(res1)) {
30799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30800 }
30801 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30802 if (obj1) {
30803 ecode2 = SWIG_AsVal_int(obj1, &val2);
30804 if (!SWIG_IsOK(ecode2)) {
30805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30806 }
30807 arg2 = static_cast< int >(val2);
30808 }
30809 {
30810 PyThreadState* __tstate = wxPyBeginAllowThreads();
30811 result = (bool)(arg1)->Arrange(arg2);
30812 wxPyEndAllowThreads(__tstate);
30813 if (PyErr_Occurred()) SWIG_fail;
30814 }
30815 {
30816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30817 }
30818 return resultobj;
30819 fail:
30820 return NULL;
30821 }
30822
30823
30824 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30825 PyObject *resultobj = 0;
30826 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30827 long arg2 ;
30828 bool result;
30829 void *argp1 = 0 ;
30830 int res1 = 0 ;
30831 long val2 ;
30832 int ecode2 = 0 ;
30833 PyObject * obj0 = 0 ;
30834 PyObject * obj1 = 0 ;
30835 char * kwnames[] = {
30836 (char *) "self",(char *) "item", NULL
30837 };
30838
30839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30841 if (!SWIG_IsOK(res1)) {
30842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30843 }
30844 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30845 ecode2 = SWIG_AsVal_long(obj1, &val2);
30846 if (!SWIG_IsOK(ecode2)) {
30847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30848 }
30849 arg2 = static_cast< long >(val2);
30850 {
30851 PyThreadState* __tstate = wxPyBeginAllowThreads();
30852 result = (bool)(arg1)->DeleteItem(arg2);
30853 wxPyEndAllowThreads(__tstate);
30854 if (PyErr_Occurred()) SWIG_fail;
30855 }
30856 {
30857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30858 }
30859 return resultobj;
30860 fail:
30861 return NULL;
30862 }
30863
30864
30865 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30866 PyObject *resultobj = 0;
30867 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30868 bool result;
30869 void *argp1 = 0 ;
30870 int res1 = 0 ;
30871 PyObject *swig_obj[1] ;
30872
30873 if (!args) SWIG_fail;
30874 swig_obj[0] = args;
30875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30876 if (!SWIG_IsOK(res1)) {
30877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30878 }
30879 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30880 {
30881 PyThreadState* __tstate = wxPyBeginAllowThreads();
30882 result = (bool)(arg1)->DeleteAllItems();
30883 wxPyEndAllowThreads(__tstate);
30884 if (PyErr_Occurred()) SWIG_fail;
30885 }
30886 {
30887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30888 }
30889 return resultobj;
30890 fail:
30891 return NULL;
30892 }
30893
30894
30895 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30896 PyObject *resultobj = 0;
30897 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30898 int arg2 ;
30899 bool result;
30900 void *argp1 = 0 ;
30901 int res1 = 0 ;
30902 int val2 ;
30903 int ecode2 = 0 ;
30904 PyObject * obj0 = 0 ;
30905 PyObject * obj1 = 0 ;
30906 char * kwnames[] = {
30907 (char *) "self",(char *) "col", NULL
30908 };
30909
30910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30912 if (!SWIG_IsOK(res1)) {
30913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30914 }
30915 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30916 ecode2 = SWIG_AsVal_int(obj1, &val2);
30917 if (!SWIG_IsOK(ecode2)) {
30918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30919 }
30920 arg2 = static_cast< int >(val2);
30921 {
30922 PyThreadState* __tstate = wxPyBeginAllowThreads();
30923 result = (bool)(arg1)->DeleteColumn(arg2);
30924 wxPyEndAllowThreads(__tstate);
30925 if (PyErr_Occurred()) SWIG_fail;
30926 }
30927 {
30928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30929 }
30930 return resultobj;
30931 fail:
30932 return NULL;
30933 }
30934
30935
30936 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30937 PyObject *resultobj = 0;
30938 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30939 bool result;
30940 void *argp1 = 0 ;
30941 int res1 = 0 ;
30942 PyObject *swig_obj[1] ;
30943
30944 if (!args) SWIG_fail;
30945 swig_obj[0] = args;
30946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30947 if (!SWIG_IsOK(res1)) {
30948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30949 }
30950 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30951 {
30952 PyThreadState* __tstate = wxPyBeginAllowThreads();
30953 result = (bool)(arg1)->DeleteAllColumns();
30954 wxPyEndAllowThreads(__tstate);
30955 if (PyErr_Occurred()) SWIG_fail;
30956 }
30957 {
30958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30959 }
30960 return resultobj;
30961 fail:
30962 return NULL;
30963 }
30964
30965
30966 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30967 PyObject *resultobj = 0;
30968 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30969 void *argp1 = 0 ;
30970 int res1 = 0 ;
30971 PyObject *swig_obj[1] ;
30972
30973 if (!args) SWIG_fail;
30974 swig_obj[0] = args;
30975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30976 if (!SWIG_IsOK(res1)) {
30977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30978 }
30979 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30980 {
30981 PyThreadState* __tstate = wxPyBeginAllowThreads();
30982 (arg1)->ClearAll();
30983 wxPyEndAllowThreads(__tstate);
30984 if (PyErr_Occurred()) SWIG_fail;
30985 }
30986 resultobj = SWIG_Py_Void();
30987 return resultobj;
30988 fail:
30989 return NULL;
30990 }
30991
30992
30993 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30994 PyObject *resultobj = 0;
30995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30996 long arg2 ;
30997 wxTextCtrl *result = 0 ;
30998 void *argp1 = 0 ;
30999 int res1 = 0 ;
31000 long val2 ;
31001 int ecode2 = 0 ;
31002 PyObject * obj0 = 0 ;
31003 PyObject * obj1 = 0 ;
31004 char * kwnames[] = {
31005 (char *) "self",(char *) "item", NULL
31006 };
31007
31008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31010 if (!SWIG_IsOK(res1)) {
31011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31012 }
31013 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31014 ecode2 = SWIG_AsVal_long(obj1, &val2);
31015 if (!SWIG_IsOK(ecode2)) {
31016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31017 }
31018 arg2 = static_cast< long >(val2);
31019 {
31020 PyThreadState* __tstate = wxPyBeginAllowThreads();
31021 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31022 wxPyEndAllowThreads(__tstate);
31023 if (PyErr_Occurred()) SWIG_fail;
31024 }
31025 {
31026 resultobj = wxPyMake_wxObject(result, 0);
31027 }
31028 return resultobj;
31029 fail:
31030 return NULL;
31031 }
31032
31033
31034 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31035 PyObject *resultobj = 0;
31036 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31037 bool arg2 ;
31038 bool result;
31039 void *argp1 = 0 ;
31040 int res1 = 0 ;
31041 bool val2 ;
31042 int ecode2 = 0 ;
31043 PyObject * obj0 = 0 ;
31044 PyObject * obj1 = 0 ;
31045 char * kwnames[] = {
31046 (char *) "self",(char *) "cancel", NULL
31047 };
31048
31049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31051 if (!SWIG_IsOK(res1)) {
31052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31053 }
31054 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31055 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31056 if (!SWIG_IsOK(ecode2)) {
31057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31058 }
31059 arg2 = static_cast< bool >(val2);
31060 {
31061 PyThreadState* __tstate = wxPyBeginAllowThreads();
31062 result = (bool)(arg1)->EndEditLabel(arg2);
31063 wxPyEndAllowThreads(__tstate);
31064 if (PyErr_Occurred()) SWIG_fail;
31065 }
31066 {
31067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31068 }
31069 return resultobj;
31070 fail:
31071 return NULL;
31072 }
31073
31074
31075 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31076 PyObject *resultobj = 0;
31077 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31078 long arg2 ;
31079 bool result;
31080 void *argp1 = 0 ;
31081 int res1 = 0 ;
31082 long val2 ;
31083 int ecode2 = 0 ;
31084 PyObject * obj0 = 0 ;
31085 PyObject * obj1 = 0 ;
31086 char * kwnames[] = {
31087 (char *) "self",(char *) "item", NULL
31088 };
31089
31090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31092 if (!SWIG_IsOK(res1)) {
31093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31094 }
31095 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31096 ecode2 = SWIG_AsVal_long(obj1, &val2);
31097 if (!SWIG_IsOK(ecode2)) {
31098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31099 }
31100 arg2 = static_cast< long >(val2);
31101 {
31102 PyThreadState* __tstate = wxPyBeginAllowThreads();
31103 result = (bool)(arg1)->EnsureVisible(arg2);
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 {
31108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31109 }
31110 return resultobj;
31111 fail:
31112 return NULL;
31113 }
31114
31115
31116 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31117 PyObject *resultobj = 0;
31118 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31119 long arg2 ;
31120 wxString *arg3 = 0 ;
31121 bool arg4 = (bool) false ;
31122 long result;
31123 void *argp1 = 0 ;
31124 int res1 = 0 ;
31125 long val2 ;
31126 int ecode2 = 0 ;
31127 bool temp3 = false ;
31128 bool val4 ;
31129 int ecode4 = 0 ;
31130 PyObject * obj0 = 0 ;
31131 PyObject * obj1 = 0 ;
31132 PyObject * obj2 = 0 ;
31133 PyObject * obj3 = 0 ;
31134 char * kwnames[] = {
31135 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31136 };
31137
31138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31140 if (!SWIG_IsOK(res1)) {
31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31142 }
31143 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31144 ecode2 = SWIG_AsVal_long(obj1, &val2);
31145 if (!SWIG_IsOK(ecode2)) {
31146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31147 }
31148 arg2 = static_cast< long >(val2);
31149 {
31150 arg3 = wxString_in_helper(obj2);
31151 if (arg3 == NULL) SWIG_fail;
31152 temp3 = true;
31153 }
31154 if (obj3) {
31155 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31156 if (!SWIG_IsOK(ecode4)) {
31157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31158 }
31159 arg4 = static_cast< bool >(val4);
31160 }
31161 {
31162 PyThreadState* __tstate = wxPyBeginAllowThreads();
31163 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31164 wxPyEndAllowThreads(__tstate);
31165 if (PyErr_Occurred()) SWIG_fail;
31166 }
31167 resultobj = SWIG_From_long(static_cast< long >(result));
31168 {
31169 if (temp3)
31170 delete arg3;
31171 }
31172 return resultobj;
31173 fail:
31174 {
31175 if (temp3)
31176 delete arg3;
31177 }
31178 return NULL;
31179 }
31180
31181
31182 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31183 PyObject *resultobj = 0;
31184 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31185 long arg2 ;
31186 long arg3 ;
31187 long result;
31188 void *argp1 = 0 ;
31189 int res1 = 0 ;
31190 long val2 ;
31191 int ecode2 = 0 ;
31192 long val3 ;
31193 int ecode3 = 0 ;
31194 PyObject * obj0 = 0 ;
31195 PyObject * obj1 = 0 ;
31196 PyObject * obj2 = 0 ;
31197 char * kwnames[] = {
31198 (char *) "self",(char *) "start",(char *) "data", NULL
31199 };
31200
31201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31205 }
31206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31207 ecode2 = SWIG_AsVal_long(obj1, &val2);
31208 if (!SWIG_IsOK(ecode2)) {
31209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31210 }
31211 arg2 = static_cast< long >(val2);
31212 ecode3 = SWIG_AsVal_long(obj2, &val3);
31213 if (!SWIG_IsOK(ecode3)) {
31214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31215 }
31216 arg3 = static_cast< long >(val3);
31217 {
31218 PyThreadState* __tstate = wxPyBeginAllowThreads();
31219 result = (long)(arg1)->FindItem(arg2,arg3);
31220 wxPyEndAllowThreads(__tstate);
31221 if (PyErr_Occurred()) SWIG_fail;
31222 }
31223 resultobj = SWIG_From_long(static_cast< long >(result));
31224 return resultobj;
31225 fail:
31226 return NULL;
31227 }
31228
31229
31230 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31231 PyObject *resultobj = 0;
31232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31233 long arg2 ;
31234 wxPoint *arg3 = 0 ;
31235 int arg4 ;
31236 long result;
31237 void *argp1 = 0 ;
31238 int res1 = 0 ;
31239 long val2 ;
31240 int ecode2 = 0 ;
31241 wxPoint temp3 ;
31242 int val4 ;
31243 int ecode4 = 0 ;
31244 PyObject * obj0 = 0 ;
31245 PyObject * obj1 = 0 ;
31246 PyObject * obj2 = 0 ;
31247 PyObject * obj3 = 0 ;
31248 char * kwnames[] = {
31249 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31250 };
31251
31252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31254 if (!SWIG_IsOK(res1)) {
31255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31256 }
31257 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31258 ecode2 = SWIG_AsVal_long(obj1, &val2);
31259 if (!SWIG_IsOK(ecode2)) {
31260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31261 }
31262 arg2 = static_cast< long >(val2);
31263 {
31264 arg3 = &temp3;
31265 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31266 }
31267 ecode4 = SWIG_AsVal_int(obj3, &val4);
31268 if (!SWIG_IsOK(ecode4)) {
31269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31270 }
31271 arg4 = static_cast< int >(val4);
31272 {
31273 PyThreadState* __tstate = wxPyBeginAllowThreads();
31274 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31275 wxPyEndAllowThreads(__tstate);
31276 if (PyErr_Occurred()) SWIG_fail;
31277 }
31278 resultobj = SWIG_From_long(static_cast< long >(result));
31279 return resultobj;
31280 fail:
31281 return NULL;
31282 }
31283
31284
31285 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31286 PyObject *resultobj = 0;
31287 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31288 wxPoint *arg2 = 0 ;
31289 int *arg3 = 0 ;
31290 long result;
31291 void *argp1 = 0 ;
31292 int res1 = 0 ;
31293 wxPoint temp2 ;
31294 int temp3 ;
31295 int res3 = SWIG_TMPOBJ ;
31296 PyObject * obj0 = 0 ;
31297 PyObject * obj1 = 0 ;
31298 char * kwnames[] = {
31299 (char *) "self",(char *) "point", NULL
31300 };
31301
31302 arg3 = &temp3;
31303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31305 if (!SWIG_IsOK(res1)) {
31306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31307 }
31308 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31309 {
31310 arg2 = &temp2;
31311 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31312 }
31313 {
31314 PyThreadState* __tstate = wxPyBeginAllowThreads();
31315 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31316 wxPyEndAllowThreads(__tstate);
31317 if (PyErr_Occurred()) SWIG_fail;
31318 }
31319 resultobj = SWIG_From_long(static_cast< long >(result));
31320 if (SWIG_IsTmpObj(res3)) {
31321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31322 } else {
31323 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31325 }
31326 return resultobj;
31327 fail:
31328 return NULL;
31329 }
31330
31331
31332 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31333 PyObject *resultobj = 0;
31334 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31335 wxPoint *arg2 = 0 ;
31336 int *arg3 = 0 ;
31337 long *arg4 = (long *) 0 ;
31338 long result;
31339 void *argp1 = 0 ;
31340 int res1 = 0 ;
31341 wxPoint temp2 ;
31342 int temp3 ;
31343 int res3 = SWIG_TMPOBJ ;
31344 long temp4 ;
31345 int res4 = SWIG_TMPOBJ ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 char * kwnames[] = {
31349 (char *) "self",(char *) "point", NULL
31350 };
31351
31352 arg3 = &temp3;
31353 arg4 = &temp4;
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31356 if (!SWIG_IsOK(res1)) {
31357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31358 }
31359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31360 {
31361 arg2 = &temp2;
31362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31363 }
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 resultobj = SWIG_From_long(static_cast< long >(result));
31371 if (SWIG_IsTmpObj(res3)) {
31372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31373 } else {
31374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31376 }
31377 if (SWIG_IsTmpObj(res4)) {
31378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31379 } else {
31380 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31382 }
31383 return resultobj;
31384 fail:
31385 return NULL;
31386 }
31387
31388
31389 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31390 PyObject *resultobj = 0;
31391 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31392 wxListItem *arg2 = 0 ;
31393 long result;
31394 void *argp1 = 0 ;
31395 int res1 = 0 ;
31396 void *argp2 = 0 ;
31397 int res2 = 0 ;
31398 PyObject * obj0 = 0 ;
31399 PyObject * obj1 = 0 ;
31400 char * kwnames[] = {
31401 (char *) "self",(char *) "info", NULL
31402 };
31403
31404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31406 if (!SWIG_IsOK(res1)) {
31407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31408 }
31409 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31410 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31411 if (!SWIG_IsOK(res2)) {
31412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31413 }
31414 if (!argp2) {
31415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31416 }
31417 arg2 = reinterpret_cast< wxListItem * >(argp2);
31418 {
31419 PyThreadState* __tstate = wxPyBeginAllowThreads();
31420 result = (long)(arg1)->InsertItem(*arg2);
31421 wxPyEndAllowThreads(__tstate);
31422 if (PyErr_Occurred()) SWIG_fail;
31423 }
31424 resultobj = SWIG_From_long(static_cast< long >(result));
31425 return resultobj;
31426 fail:
31427 return NULL;
31428 }
31429
31430
31431 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31432 PyObject *resultobj = 0;
31433 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31434 long arg2 ;
31435 wxString *arg3 = 0 ;
31436 int arg4 = (int) -1 ;
31437 long result;
31438 void *argp1 = 0 ;
31439 int res1 = 0 ;
31440 long val2 ;
31441 int ecode2 = 0 ;
31442 bool temp3 = false ;
31443 int val4 ;
31444 int ecode4 = 0 ;
31445 PyObject * obj0 = 0 ;
31446 PyObject * obj1 = 0 ;
31447 PyObject * obj2 = 0 ;
31448 PyObject * obj3 = 0 ;
31449 char * kwnames[] = {
31450 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31451 };
31452
31453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31455 if (!SWIG_IsOK(res1)) {
31456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31457 }
31458 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31459 ecode2 = SWIG_AsVal_long(obj1, &val2);
31460 if (!SWIG_IsOK(ecode2)) {
31461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31462 }
31463 arg2 = static_cast< long >(val2);
31464 {
31465 arg3 = wxString_in_helper(obj2);
31466 if (arg3 == NULL) SWIG_fail;
31467 temp3 = true;
31468 }
31469 if (obj3) {
31470 ecode4 = SWIG_AsVal_int(obj3, &val4);
31471 if (!SWIG_IsOK(ecode4)) {
31472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31473 }
31474 arg4 = static_cast< int >(val4);
31475 }
31476 {
31477 PyThreadState* __tstate = wxPyBeginAllowThreads();
31478 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 resultobj = SWIG_From_long(static_cast< long >(result));
31483 {
31484 if (temp3)
31485 delete arg3;
31486 }
31487 return resultobj;
31488 fail:
31489 {
31490 if (temp3)
31491 delete arg3;
31492 }
31493 return NULL;
31494 }
31495
31496
31497 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31498 PyObject *resultobj = 0;
31499 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31500 long arg2 ;
31501 int arg3 ;
31502 long result;
31503 void *argp1 = 0 ;
31504 int res1 = 0 ;
31505 long val2 ;
31506 int ecode2 = 0 ;
31507 int val3 ;
31508 int ecode3 = 0 ;
31509 PyObject * obj0 = 0 ;
31510 PyObject * obj1 = 0 ;
31511 PyObject * obj2 = 0 ;
31512 char * kwnames[] = {
31513 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31514 };
31515
31516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31518 if (!SWIG_IsOK(res1)) {
31519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31520 }
31521 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31522 ecode2 = SWIG_AsVal_long(obj1, &val2);
31523 if (!SWIG_IsOK(ecode2)) {
31524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31525 }
31526 arg2 = static_cast< long >(val2);
31527 ecode3 = SWIG_AsVal_int(obj2, &val3);
31528 if (!SWIG_IsOK(ecode3)) {
31529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31530 }
31531 arg3 = static_cast< int >(val3);
31532 {
31533 PyThreadState* __tstate = wxPyBeginAllowThreads();
31534 result = (long)(arg1)->InsertItem(arg2,arg3);
31535 wxPyEndAllowThreads(__tstate);
31536 if (PyErr_Occurred()) SWIG_fail;
31537 }
31538 resultobj = SWIG_From_long(static_cast< long >(result));
31539 return resultobj;
31540 fail:
31541 return NULL;
31542 }
31543
31544
31545 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31546 PyObject *resultobj = 0;
31547 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31548 long arg2 ;
31549 wxString *arg3 = 0 ;
31550 int arg4 ;
31551 long result;
31552 void *argp1 = 0 ;
31553 int res1 = 0 ;
31554 long val2 ;
31555 int ecode2 = 0 ;
31556 bool temp3 = false ;
31557 int val4 ;
31558 int ecode4 = 0 ;
31559 PyObject * obj0 = 0 ;
31560 PyObject * obj1 = 0 ;
31561 PyObject * obj2 = 0 ;
31562 PyObject * obj3 = 0 ;
31563 char * kwnames[] = {
31564 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31565 };
31566
31567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31569 if (!SWIG_IsOK(res1)) {
31570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31571 }
31572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31573 ecode2 = SWIG_AsVal_long(obj1, &val2);
31574 if (!SWIG_IsOK(ecode2)) {
31575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31576 }
31577 arg2 = static_cast< long >(val2);
31578 {
31579 arg3 = wxString_in_helper(obj2);
31580 if (arg3 == NULL) SWIG_fail;
31581 temp3 = true;
31582 }
31583 ecode4 = SWIG_AsVal_int(obj3, &val4);
31584 if (!SWIG_IsOK(ecode4)) {
31585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31586 }
31587 arg4 = static_cast< int >(val4);
31588 {
31589 PyThreadState* __tstate = wxPyBeginAllowThreads();
31590 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31591 wxPyEndAllowThreads(__tstate);
31592 if (PyErr_Occurred()) SWIG_fail;
31593 }
31594 resultobj = SWIG_From_long(static_cast< long >(result));
31595 {
31596 if (temp3)
31597 delete arg3;
31598 }
31599 return resultobj;
31600 fail:
31601 {
31602 if (temp3)
31603 delete arg3;
31604 }
31605 return NULL;
31606 }
31607
31608
31609 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31610 PyObject *resultobj = 0;
31611 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31612 long arg2 ;
31613 wxListItem *arg3 = 0 ;
31614 long result;
31615 void *argp1 = 0 ;
31616 int res1 = 0 ;
31617 long val2 ;
31618 int ecode2 = 0 ;
31619 void *argp3 = 0 ;
31620 int res3 = 0 ;
31621 PyObject * obj0 = 0 ;
31622 PyObject * obj1 = 0 ;
31623 PyObject * obj2 = 0 ;
31624 char * kwnames[] = {
31625 (char *) "self",(char *) "col",(char *) "info", NULL
31626 };
31627
31628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31630 if (!SWIG_IsOK(res1)) {
31631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31632 }
31633 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31634 ecode2 = SWIG_AsVal_long(obj1, &val2);
31635 if (!SWIG_IsOK(ecode2)) {
31636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31637 }
31638 arg2 = static_cast< long >(val2);
31639 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31640 if (!SWIG_IsOK(res3)) {
31641 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31642 }
31643 if (!argp3) {
31644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31645 }
31646 arg3 = reinterpret_cast< wxListItem * >(argp3);
31647 {
31648 PyThreadState* __tstate = wxPyBeginAllowThreads();
31649 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31650 wxPyEndAllowThreads(__tstate);
31651 if (PyErr_Occurred()) SWIG_fail;
31652 }
31653 resultobj = SWIG_From_long(static_cast< long >(result));
31654 return resultobj;
31655 fail:
31656 return NULL;
31657 }
31658
31659
31660 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31661 PyObject *resultobj = 0;
31662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31663 long arg2 ;
31664 wxString *arg3 = 0 ;
31665 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31666 int arg5 = (int) -1 ;
31667 long result;
31668 void *argp1 = 0 ;
31669 int res1 = 0 ;
31670 long val2 ;
31671 int ecode2 = 0 ;
31672 bool temp3 = false ;
31673 int val4 ;
31674 int ecode4 = 0 ;
31675 int val5 ;
31676 int ecode5 = 0 ;
31677 PyObject * obj0 = 0 ;
31678 PyObject * obj1 = 0 ;
31679 PyObject * obj2 = 0 ;
31680 PyObject * obj3 = 0 ;
31681 PyObject * obj4 = 0 ;
31682 char * kwnames[] = {
31683 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31684 };
31685
31686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31688 if (!SWIG_IsOK(res1)) {
31689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31690 }
31691 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31692 ecode2 = SWIG_AsVal_long(obj1, &val2);
31693 if (!SWIG_IsOK(ecode2)) {
31694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31695 }
31696 arg2 = static_cast< long >(val2);
31697 {
31698 arg3 = wxString_in_helper(obj2);
31699 if (arg3 == NULL) SWIG_fail;
31700 temp3 = true;
31701 }
31702 if (obj3) {
31703 ecode4 = SWIG_AsVal_int(obj3, &val4);
31704 if (!SWIG_IsOK(ecode4)) {
31705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31706 }
31707 arg4 = static_cast< int >(val4);
31708 }
31709 if (obj4) {
31710 ecode5 = SWIG_AsVal_int(obj4, &val5);
31711 if (!SWIG_IsOK(ecode5)) {
31712 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31713 }
31714 arg5 = static_cast< int >(val5);
31715 }
31716 {
31717 PyThreadState* __tstate = wxPyBeginAllowThreads();
31718 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31719 wxPyEndAllowThreads(__tstate);
31720 if (PyErr_Occurred()) SWIG_fail;
31721 }
31722 resultobj = SWIG_From_long(static_cast< long >(result));
31723 {
31724 if (temp3)
31725 delete arg3;
31726 }
31727 return resultobj;
31728 fail:
31729 {
31730 if (temp3)
31731 delete arg3;
31732 }
31733 return NULL;
31734 }
31735
31736
31737 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31738 PyObject *resultobj = 0;
31739 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31740 long arg2 ;
31741 void *argp1 = 0 ;
31742 int res1 = 0 ;
31743 long val2 ;
31744 int ecode2 = 0 ;
31745 PyObject * obj0 = 0 ;
31746 PyObject * obj1 = 0 ;
31747 char * kwnames[] = {
31748 (char *) "self",(char *) "count", NULL
31749 };
31750
31751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31753 if (!SWIG_IsOK(res1)) {
31754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31755 }
31756 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31757 ecode2 = SWIG_AsVal_long(obj1, &val2);
31758 if (!SWIG_IsOK(ecode2)) {
31759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31760 }
31761 arg2 = static_cast< long >(val2);
31762 {
31763 PyThreadState* __tstate = wxPyBeginAllowThreads();
31764 (arg1)->SetItemCount(arg2);
31765 wxPyEndAllowThreads(__tstate);
31766 if (PyErr_Occurred()) SWIG_fail;
31767 }
31768 resultobj = SWIG_Py_Void();
31769 return resultobj;
31770 fail:
31771 return NULL;
31772 }
31773
31774
31775 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31776 PyObject *resultobj = 0;
31777 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31778 int arg2 ;
31779 int arg3 ;
31780 bool result;
31781 void *argp1 = 0 ;
31782 int res1 = 0 ;
31783 int val2 ;
31784 int ecode2 = 0 ;
31785 int val3 ;
31786 int ecode3 = 0 ;
31787 PyObject * obj0 = 0 ;
31788 PyObject * obj1 = 0 ;
31789 PyObject * obj2 = 0 ;
31790 char * kwnames[] = {
31791 (char *) "self",(char *) "dx",(char *) "dy", NULL
31792 };
31793
31794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31796 if (!SWIG_IsOK(res1)) {
31797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31798 }
31799 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31800 ecode2 = SWIG_AsVal_int(obj1, &val2);
31801 if (!SWIG_IsOK(ecode2)) {
31802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31803 }
31804 arg2 = static_cast< int >(val2);
31805 ecode3 = SWIG_AsVal_int(obj2, &val3);
31806 if (!SWIG_IsOK(ecode3)) {
31807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31808 }
31809 arg3 = static_cast< int >(val3);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 result = (bool)(arg1)->ScrollList(arg2,arg3);
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 {
31817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31818 }
31819 return resultobj;
31820 fail:
31821 return NULL;
31822 }
31823
31824
31825 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31826 PyObject *resultobj = 0;
31827 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31828 long arg2 ;
31829 wxColour *arg3 = 0 ;
31830 void *argp1 = 0 ;
31831 int res1 = 0 ;
31832 long val2 ;
31833 int ecode2 = 0 ;
31834 wxColour temp3 ;
31835 PyObject * obj0 = 0 ;
31836 PyObject * obj1 = 0 ;
31837 PyObject * obj2 = 0 ;
31838 char * kwnames[] = {
31839 (char *) "self",(char *) "item",(char *) "col", NULL
31840 };
31841
31842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31844 if (!SWIG_IsOK(res1)) {
31845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31846 }
31847 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31848 ecode2 = SWIG_AsVal_long(obj1, &val2);
31849 if (!SWIG_IsOK(ecode2)) {
31850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31851 }
31852 arg2 = static_cast< long >(val2);
31853 {
31854 arg3 = &temp3;
31855 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31856 }
31857 {
31858 PyThreadState* __tstate = wxPyBeginAllowThreads();
31859 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31860 wxPyEndAllowThreads(__tstate);
31861 if (PyErr_Occurred()) SWIG_fail;
31862 }
31863 resultobj = SWIG_Py_Void();
31864 return resultobj;
31865 fail:
31866 return NULL;
31867 }
31868
31869
31870 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31871 PyObject *resultobj = 0;
31872 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31873 long arg2 ;
31874 wxColour result;
31875 void *argp1 = 0 ;
31876 int res1 = 0 ;
31877 long val2 ;
31878 int ecode2 = 0 ;
31879 PyObject * obj0 = 0 ;
31880 PyObject * obj1 = 0 ;
31881 char * kwnames[] = {
31882 (char *) "self",(char *) "item", NULL
31883 };
31884
31885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31887 if (!SWIG_IsOK(res1)) {
31888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31889 }
31890 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31891 ecode2 = SWIG_AsVal_long(obj1, &val2);
31892 if (!SWIG_IsOK(ecode2)) {
31893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31894 }
31895 arg2 = static_cast< long >(val2);
31896 {
31897 PyThreadState* __tstate = wxPyBeginAllowThreads();
31898 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31899 wxPyEndAllowThreads(__tstate);
31900 if (PyErr_Occurred()) SWIG_fail;
31901 }
31902 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31903 return resultobj;
31904 fail:
31905 return NULL;
31906 }
31907
31908
31909 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31910 PyObject *resultobj = 0;
31911 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31912 long arg2 ;
31913 wxColour *arg3 = 0 ;
31914 void *argp1 = 0 ;
31915 int res1 = 0 ;
31916 long val2 ;
31917 int ecode2 = 0 ;
31918 wxColour temp3 ;
31919 PyObject * obj0 = 0 ;
31920 PyObject * obj1 = 0 ;
31921 PyObject * obj2 = 0 ;
31922 char * kwnames[] = {
31923 (char *) "self",(char *) "item",(char *) "col", NULL
31924 };
31925
31926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31928 if (!SWIG_IsOK(res1)) {
31929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31930 }
31931 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31932 ecode2 = SWIG_AsVal_long(obj1, &val2);
31933 if (!SWIG_IsOK(ecode2)) {
31934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31935 }
31936 arg2 = static_cast< long >(val2);
31937 {
31938 arg3 = &temp3;
31939 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31940 }
31941 {
31942 PyThreadState* __tstate = wxPyBeginAllowThreads();
31943 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31944 wxPyEndAllowThreads(__tstate);
31945 if (PyErr_Occurred()) SWIG_fail;
31946 }
31947 resultobj = SWIG_Py_Void();
31948 return resultobj;
31949 fail:
31950 return NULL;
31951 }
31952
31953
31954 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31955 PyObject *resultobj = 0;
31956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31957 long arg2 ;
31958 wxColour result;
31959 void *argp1 = 0 ;
31960 int res1 = 0 ;
31961 long val2 ;
31962 int ecode2 = 0 ;
31963 PyObject * obj0 = 0 ;
31964 PyObject * obj1 = 0 ;
31965 char * kwnames[] = {
31966 (char *) "self",(char *) "item", NULL
31967 };
31968
31969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31971 if (!SWIG_IsOK(res1)) {
31972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31973 }
31974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31975 ecode2 = SWIG_AsVal_long(obj1, &val2);
31976 if (!SWIG_IsOK(ecode2)) {
31977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31978 }
31979 arg2 = static_cast< long >(val2);
31980 {
31981 PyThreadState* __tstate = wxPyBeginAllowThreads();
31982 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31983 wxPyEndAllowThreads(__tstate);
31984 if (PyErr_Occurred()) SWIG_fail;
31985 }
31986 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31987 return resultobj;
31988 fail:
31989 return NULL;
31990 }
31991
31992
31993 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31994 PyObject *resultobj = 0;
31995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31996 long arg2 ;
31997 wxFont *arg3 = 0 ;
31998 void *argp1 = 0 ;
31999 int res1 = 0 ;
32000 long val2 ;
32001 int ecode2 = 0 ;
32002 void *argp3 = 0 ;
32003 int res3 = 0 ;
32004 PyObject * obj0 = 0 ;
32005 PyObject * obj1 = 0 ;
32006 PyObject * obj2 = 0 ;
32007 char * kwnames[] = {
32008 (char *) "self",(char *) "item",(char *) "f", NULL
32009 };
32010
32011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32015 }
32016 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32017 ecode2 = SWIG_AsVal_long(obj1, &val2);
32018 if (!SWIG_IsOK(ecode2)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32020 }
32021 arg2 = static_cast< long >(val2);
32022 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32023 if (!SWIG_IsOK(res3)) {
32024 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32025 }
32026 if (!argp3) {
32027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32028 }
32029 arg3 = reinterpret_cast< wxFont * >(argp3);
32030 {
32031 PyThreadState* __tstate = wxPyBeginAllowThreads();
32032 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32033 wxPyEndAllowThreads(__tstate);
32034 if (PyErr_Occurred()) SWIG_fail;
32035 }
32036 resultobj = SWIG_Py_Void();
32037 return resultobj;
32038 fail:
32039 return NULL;
32040 }
32041
32042
32043 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32044 PyObject *resultobj = 0;
32045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32046 long arg2 ;
32047 wxFont result;
32048 void *argp1 = 0 ;
32049 int res1 = 0 ;
32050 long val2 ;
32051 int ecode2 = 0 ;
32052 PyObject * obj0 = 0 ;
32053 PyObject * obj1 = 0 ;
32054 char * kwnames[] = {
32055 (char *) "self",(char *) "item", NULL
32056 };
32057
32058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32060 if (!SWIG_IsOK(res1)) {
32061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32062 }
32063 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32064 ecode2 = SWIG_AsVal_long(obj1, &val2);
32065 if (!SWIG_IsOK(ecode2)) {
32066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32067 }
32068 arg2 = static_cast< long >(val2);
32069 {
32070 PyThreadState* __tstate = wxPyBeginAllowThreads();
32071 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32072 wxPyEndAllowThreads(__tstate);
32073 if (PyErr_Occurred()) SWIG_fail;
32074 }
32075 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32076 return resultobj;
32077 fail:
32078 return NULL;
32079 }
32080
32081
32082 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32083 PyObject *resultobj = 0;
32084 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32085 PyObject *arg2 = (PyObject *) 0 ;
32086 bool result;
32087 void *argp1 = 0 ;
32088 int res1 = 0 ;
32089 PyObject * obj0 = 0 ;
32090 PyObject * obj1 = 0 ;
32091 char * kwnames[] = {
32092 (char *) "self",(char *) "func", NULL
32093 };
32094
32095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32097 if (!SWIG_IsOK(res1)) {
32098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32099 }
32100 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32101 arg2 = obj1;
32102 {
32103 PyThreadState* __tstate = wxPyBeginAllowThreads();
32104 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32105 wxPyEndAllowThreads(__tstate);
32106 if (PyErr_Occurred()) SWIG_fail;
32107 }
32108 {
32109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32110 }
32111 return resultobj;
32112 fail:
32113 return NULL;
32114 }
32115
32116
32117 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32118 PyObject *resultobj = 0;
32119 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32120 wxWindow *result = 0 ;
32121 void *argp1 = 0 ;
32122 int res1 = 0 ;
32123 PyObject *swig_obj[1] ;
32124
32125 if (!args) SWIG_fail;
32126 swig_obj[0] = args;
32127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32128 if (!SWIG_IsOK(res1)) {
32129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32130 }
32131 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32132 {
32133 PyThreadState* __tstate = wxPyBeginAllowThreads();
32134 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32135 wxPyEndAllowThreads(__tstate);
32136 if (PyErr_Occurred()) SWIG_fail;
32137 }
32138 {
32139 resultobj = wxPyMake_wxObject(result, 0);
32140 }
32141 return resultobj;
32142 fail:
32143 return NULL;
32144 }
32145
32146
32147 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32148 PyObject *resultobj = 0;
32149 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32150 SwigValueWrapper<wxVisualAttributes > result;
32151 int val1 ;
32152 int ecode1 = 0 ;
32153 PyObject * obj0 = 0 ;
32154 char * kwnames[] = {
32155 (char *) "variant", NULL
32156 };
32157
32158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32159 if (obj0) {
32160 ecode1 = SWIG_AsVal_int(obj0, &val1);
32161 if (!SWIG_IsOK(ecode1)) {
32162 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32163 }
32164 arg1 = static_cast< wxWindowVariant >(val1);
32165 }
32166 {
32167 if (!wxPyCheckForApp()) SWIG_fail;
32168 PyThreadState* __tstate = wxPyBeginAllowThreads();
32169 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32170 wxPyEndAllowThreads(__tstate);
32171 if (PyErr_Occurred()) SWIG_fail;
32172 }
32173 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32174 return resultobj;
32175 fail:
32176 return NULL;
32177 }
32178
32179
32180 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32181 PyObject *obj;
32182 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32183 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32184 return SWIG_Py_Void();
32185 }
32186
32187 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32188 return SWIG_Python_InitShadowInstance(args);
32189 }
32190
32191 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32192 PyObject *resultobj = 0;
32193 wxWindow *arg1 = (wxWindow *) 0 ;
32194 int arg2 = (int) -1 ;
32195 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32196 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32197 wxSize const &arg4_defvalue = wxDefaultSize ;
32198 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32199 long arg5 = (long) wxLC_REPORT ;
32200 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32201 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32202 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32203 wxString *arg7 = (wxString *) &arg7_defvalue ;
32204 wxListView *result = 0 ;
32205 void *argp1 = 0 ;
32206 int res1 = 0 ;
32207 int val2 ;
32208 int ecode2 = 0 ;
32209 wxPoint temp3 ;
32210 wxSize temp4 ;
32211 long val5 ;
32212 int ecode5 = 0 ;
32213 void *argp6 = 0 ;
32214 int res6 = 0 ;
32215 bool temp7 = false ;
32216 PyObject * obj0 = 0 ;
32217 PyObject * obj1 = 0 ;
32218 PyObject * obj2 = 0 ;
32219 PyObject * obj3 = 0 ;
32220 PyObject * obj4 = 0 ;
32221 PyObject * obj5 = 0 ;
32222 PyObject * obj6 = 0 ;
32223 char * kwnames[] = {
32224 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32225 };
32226
32227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32229 if (!SWIG_IsOK(res1)) {
32230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32231 }
32232 arg1 = reinterpret_cast< wxWindow * >(argp1);
32233 if (obj1) {
32234 ecode2 = SWIG_AsVal_int(obj1, &val2);
32235 if (!SWIG_IsOK(ecode2)) {
32236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32237 }
32238 arg2 = static_cast< int >(val2);
32239 }
32240 if (obj2) {
32241 {
32242 arg3 = &temp3;
32243 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32244 }
32245 }
32246 if (obj3) {
32247 {
32248 arg4 = &temp4;
32249 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32250 }
32251 }
32252 if (obj4) {
32253 ecode5 = SWIG_AsVal_long(obj4, &val5);
32254 if (!SWIG_IsOK(ecode5)) {
32255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32256 }
32257 arg5 = static_cast< long >(val5);
32258 }
32259 if (obj5) {
32260 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32261 if (!SWIG_IsOK(res6)) {
32262 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32263 }
32264 if (!argp6) {
32265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32266 }
32267 arg6 = reinterpret_cast< wxValidator * >(argp6);
32268 }
32269 if (obj6) {
32270 {
32271 arg7 = wxString_in_helper(obj6);
32272 if (arg7 == NULL) SWIG_fail;
32273 temp7 = true;
32274 }
32275 }
32276 {
32277 if (!wxPyCheckForApp()) SWIG_fail;
32278 PyThreadState* __tstate = wxPyBeginAllowThreads();
32279 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32280 wxPyEndAllowThreads(__tstate);
32281 if (PyErr_Occurred()) SWIG_fail;
32282 }
32283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32284 {
32285 if (temp7)
32286 delete arg7;
32287 }
32288 return resultobj;
32289 fail:
32290 {
32291 if (temp7)
32292 delete arg7;
32293 }
32294 return NULL;
32295 }
32296
32297
32298 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32299 PyObject *resultobj = 0;
32300 wxListView *result = 0 ;
32301
32302 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32303 {
32304 if (!wxPyCheckForApp()) SWIG_fail;
32305 PyThreadState* __tstate = wxPyBeginAllowThreads();
32306 result = (wxListView *)new wxListView();
32307 wxPyEndAllowThreads(__tstate);
32308 if (PyErr_Occurred()) SWIG_fail;
32309 }
32310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32311 return resultobj;
32312 fail:
32313 return NULL;
32314 }
32315
32316
32317 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32318 PyObject *resultobj = 0;
32319 wxListView *arg1 = (wxListView *) 0 ;
32320 wxWindow *arg2 = (wxWindow *) 0 ;
32321 int arg3 = (int) -1 ;
32322 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32323 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32324 wxSize const &arg5_defvalue = wxDefaultSize ;
32325 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32326 long arg6 = (long) wxLC_REPORT ;
32327 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32328 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32329 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32330 wxString *arg8 = (wxString *) &arg8_defvalue ;
32331 bool result;
32332 void *argp1 = 0 ;
32333 int res1 = 0 ;
32334 void *argp2 = 0 ;
32335 int res2 = 0 ;
32336 int val3 ;
32337 int ecode3 = 0 ;
32338 wxPoint temp4 ;
32339 wxSize temp5 ;
32340 long val6 ;
32341 int ecode6 = 0 ;
32342 void *argp7 = 0 ;
32343 int res7 = 0 ;
32344 bool temp8 = false ;
32345 PyObject * obj0 = 0 ;
32346 PyObject * obj1 = 0 ;
32347 PyObject * obj2 = 0 ;
32348 PyObject * obj3 = 0 ;
32349 PyObject * obj4 = 0 ;
32350 PyObject * obj5 = 0 ;
32351 PyObject * obj6 = 0 ;
32352 PyObject * obj7 = 0 ;
32353 char * kwnames[] = {
32354 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32355 };
32356
32357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32359 if (!SWIG_IsOK(res1)) {
32360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32361 }
32362 arg1 = reinterpret_cast< wxListView * >(argp1);
32363 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32364 if (!SWIG_IsOK(res2)) {
32365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32366 }
32367 arg2 = reinterpret_cast< wxWindow * >(argp2);
32368 if (obj2) {
32369 ecode3 = SWIG_AsVal_int(obj2, &val3);
32370 if (!SWIG_IsOK(ecode3)) {
32371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32372 }
32373 arg3 = static_cast< int >(val3);
32374 }
32375 if (obj3) {
32376 {
32377 arg4 = &temp4;
32378 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32379 }
32380 }
32381 if (obj4) {
32382 {
32383 arg5 = &temp5;
32384 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32385 }
32386 }
32387 if (obj5) {
32388 ecode6 = SWIG_AsVal_long(obj5, &val6);
32389 if (!SWIG_IsOK(ecode6)) {
32390 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32391 }
32392 arg6 = static_cast< long >(val6);
32393 }
32394 if (obj6) {
32395 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32396 if (!SWIG_IsOK(res7)) {
32397 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32398 }
32399 if (!argp7) {
32400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32401 }
32402 arg7 = reinterpret_cast< wxValidator * >(argp7);
32403 }
32404 if (obj7) {
32405 {
32406 arg8 = wxString_in_helper(obj7);
32407 if (arg8 == NULL) SWIG_fail;
32408 temp8 = true;
32409 }
32410 }
32411 {
32412 PyThreadState* __tstate = wxPyBeginAllowThreads();
32413 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32414 wxPyEndAllowThreads(__tstate);
32415 if (PyErr_Occurred()) SWIG_fail;
32416 }
32417 {
32418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32419 }
32420 {
32421 if (temp8)
32422 delete arg8;
32423 }
32424 return resultobj;
32425 fail:
32426 {
32427 if (temp8)
32428 delete arg8;
32429 }
32430 return NULL;
32431 }
32432
32433
32434 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32435 PyObject *resultobj = 0;
32436 wxListView *arg1 = (wxListView *) 0 ;
32437 long arg2 ;
32438 bool arg3 = (bool) true ;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 long val2 ;
32442 int ecode2 = 0 ;
32443 bool val3 ;
32444 int ecode3 = 0 ;
32445 PyObject * obj0 = 0 ;
32446 PyObject * obj1 = 0 ;
32447 PyObject * obj2 = 0 ;
32448 char * kwnames[] = {
32449 (char *) "self",(char *) "n",(char *) "on", NULL
32450 };
32451
32452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32454 if (!SWIG_IsOK(res1)) {
32455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32456 }
32457 arg1 = reinterpret_cast< wxListView * >(argp1);
32458 ecode2 = SWIG_AsVal_long(obj1, &val2);
32459 if (!SWIG_IsOK(ecode2)) {
32460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32461 }
32462 arg2 = static_cast< long >(val2);
32463 if (obj2) {
32464 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32465 if (!SWIG_IsOK(ecode3)) {
32466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32467 }
32468 arg3 = static_cast< bool >(val3);
32469 }
32470 {
32471 PyThreadState* __tstate = wxPyBeginAllowThreads();
32472 (arg1)->Select(arg2,arg3);
32473 wxPyEndAllowThreads(__tstate);
32474 if (PyErr_Occurred()) SWIG_fail;
32475 }
32476 resultobj = SWIG_Py_Void();
32477 return resultobj;
32478 fail:
32479 return NULL;
32480 }
32481
32482
32483 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32484 PyObject *resultobj = 0;
32485 wxListView *arg1 = (wxListView *) 0 ;
32486 long arg2 ;
32487 void *argp1 = 0 ;
32488 int res1 = 0 ;
32489 long val2 ;
32490 int ecode2 = 0 ;
32491 PyObject * obj0 = 0 ;
32492 PyObject * obj1 = 0 ;
32493 char * kwnames[] = {
32494 (char *) "self",(char *) "index", NULL
32495 };
32496
32497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32499 if (!SWIG_IsOK(res1)) {
32500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32501 }
32502 arg1 = reinterpret_cast< wxListView * >(argp1);
32503 ecode2 = SWIG_AsVal_long(obj1, &val2);
32504 if (!SWIG_IsOK(ecode2)) {
32505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32506 }
32507 arg2 = static_cast< long >(val2);
32508 {
32509 PyThreadState* __tstate = wxPyBeginAllowThreads();
32510 (arg1)->Focus(arg2);
32511 wxPyEndAllowThreads(__tstate);
32512 if (PyErr_Occurred()) SWIG_fail;
32513 }
32514 resultobj = SWIG_Py_Void();
32515 return resultobj;
32516 fail:
32517 return NULL;
32518 }
32519
32520
32521 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32522 PyObject *resultobj = 0;
32523 wxListView *arg1 = (wxListView *) 0 ;
32524 long result;
32525 void *argp1 = 0 ;
32526 int res1 = 0 ;
32527 PyObject *swig_obj[1] ;
32528
32529 if (!args) SWIG_fail;
32530 swig_obj[0] = args;
32531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32532 if (!SWIG_IsOK(res1)) {
32533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32534 }
32535 arg1 = reinterpret_cast< wxListView * >(argp1);
32536 {
32537 PyThreadState* __tstate = wxPyBeginAllowThreads();
32538 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32539 wxPyEndAllowThreads(__tstate);
32540 if (PyErr_Occurred()) SWIG_fail;
32541 }
32542 resultobj = SWIG_From_long(static_cast< long >(result));
32543 return resultobj;
32544 fail:
32545 return NULL;
32546 }
32547
32548
32549 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32550 PyObject *resultobj = 0;
32551 wxListView *arg1 = (wxListView *) 0 ;
32552 long arg2 ;
32553 long result;
32554 void *argp1 = 0 ;
32555 int res1 = 0 ;
32556 long val2 ;
32557 int ecode2 = 0 ;
32558 PyObject * obj0 = 0 ;
32559 PyObject * obj1 = 0 ;
32560 char * kwnames[] = {
32561 (char *) "self",(char *) "item", NULL
32562 };
32563
32564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32566 if (!SWIG_IsOK(res1)) {
32567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32568 }
32569 arg1 = reinterpret_cast< wxListView * >(argp1);
32570 ecode2 = SWIG_AsVal_long(obj1, &val2);
32571 if (!SWIG_IsOK(ecode2)) {
32572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32573 }
32574 arg2 = static_cast< long >(val2);
32575 {
32576 PyThreadState* __tstate = wxPyBeginAllowThreads();
32577 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32578 wxPyEndAllowThreads(__tstate);
32579 if (PyErr_Occurred()) SWIG_fail;
32580 }
32581 resultobj = SWIG_From_long(static_cast< long >(result));
32582 return resultobj;
32583 fail:
32584 return NULL;
32585 }
32586
32587
32588 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32589 PyObject *resultobj = 0;
32590 wxListView *arg1 = (wxListView *) 0 ;
32591 long result;
32592 void *argp1 = 0 ;
32593 int res1 = 0 ;
32594 PyObject *swig_obj[1] ;
32595
32596 if (!args) SWIG_fail;
32597 swig_obj[0] = args;
32598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32599 if (!SWIG_IsOK(res1)) {
32600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32601 }
32602 arg1 = reinterpret_cast< wxListView * >(argp1);
32603 {
32604 PyThreadState* __tstate = wxPyBeginAllowThreads();
32605 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32606 wxPyEndAllowThreads(__tstate);
32607 if (PyErr_Occurred()) SWIG_fail;
32608 }
32609 resultobj = SWIG_From_long(static_cast< long >(result));
32610 return resultobj;
32611 fail:
32612 return NULL;
32613 }
32614
32615
32616 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32617 PyObject *resultobj = 0;
32618 wxListView *arg1 = (wxListView *) 0 ;
32619 long arg2 ;
32620 bool result;
32621 void *argp1 = 0 ;
32622 int res1 = 0 ;
32623 long val2 ;
32624 int ecode2 = 0 ;
32625 PyObject * obj0 = 0 ;
32626 PyObject * obj1 = 0 ;
32627 char * kwnames[] = {
32628 (char *) "self",(char *) "index", NULL
32629 };
32630
32631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32633 if (!SWIG_IsOK(res1)) {
32634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32635 }
32636 arg1 = reinterpret_cast< wxListView * >(argp1);
32637 ecode2 = SWIG_AsVal_long(obj1, &val2);
32638 if (!SWIG_IsOK(ecode2)) {
32639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32640 }
32641 arg2 = static_cast< long >(val2);
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 result = (bool)(arg1)->IsSelected(arg2);
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 {
32649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32650 }
32651 return resultobj;
32652 fail:
32653 return NULL;
32654 }
32655
32656
32657 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32658 PyObject *resultobj = 0;
32659 wxListView *arg1 = (wxListView *) 0 ;
32660 int arg2 ;
32661 int arg3 ;
32662 void *argp1 = 0 ;
32663 int res1 = 0 ;
32664 int val2 ;
32665 int ecode2 = 0 ;
32666 int val3 ;
32667 int ecode3 = 0 ;
32668 PyObject * obj0 = 0 ;
32669 PyObject * obj1 = 0 ;
32670 PyObject * obj2 = 0 ;
32671 char * kwnames[] = {
32672 (char *) "self",(char *) "col",(char *) "image", NULL
32673 };
32674
32675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32679 }
32680 arg1 = reinterpret_cast< wxListView * >(argp1);
32681 ecode2 = SWIG_AsVal_int(obj1, &val2);
32682 if (!SWIG_IsOK(ecode2)) {
32683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32684 }
32685 arg2 = static_cast< int >(val2);
32686 ecode3 = SWIG_AsVal_int(obj2, &val3);
32687 if (!SWIG_IsOK(ecode3)) {
32688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32689 }
32690 arg3 = static_cast< int >(val3);
32691 {
32692 PyThreadState* __tstate = wxPyBeginAllowThreads();
32693 (arg1)->SetColumnImage(arg2,arg3);
32694 wxPyEndAllowThreads(__tstate);
32695 if (PyErr_Occurred()) SWIG_fail;
32696 }
32697 resultobj = SWIG_Py_Void();
32698 return resultobj;
32699 fail:
32700 return NULL;
32701 }
32702
32703
32704 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32705 PyObject *resultobj = 0;
32706 wxListView *arg1 = (wxListView *) 0 ;
32707 int arg2 ;
32708 void *argp1 = 0 ;
32709 int res1 = 0 ;
32710 int val2 ;
32711 int ecode2 = 0 ;
32712 PyObject * obj0 = 0 ;
32713 PyObject * obj1 = 0 ;
32714 char * kwnames[] = {
32715 (char *) "self",(char *) "col", NULL
32716 };
32717
32718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32720 if (!SWIG_IsOK(res1)) {
32721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32722 }
32723 arg1 = reinterpret_cast< wxListView * >(argp1);
32724 ecode2 = SWIG_AsVal_int(obj1, &val2);
32725 if (!SWIG_IsOK(ecode2)) {
32726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32727 }
32728 arg2 = static_cast< int >(val2);
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 (arg1)->ClearColumnImage(arg2);
32732 wxPyEndAllowThreads(__tstate);
32733 if (PyErr_Occurred()) SWIG_fail;
32734 }
32735 resultobj = SWIG_Py_Void();
32736 return resultobj;
32737 fail:
32738 return NULL;
32739 }
32740
32741
32742 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32743 PyObject *obj;
32744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32745 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32746 return SWIG_Py_Void();
32747 }
32748
32749 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32750 return SWIG_Python_InitShadowInstance(args);
32751 }
32752
32753 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32754 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32755 return 1;
32756 }
32757
32758
32759 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32760 PyObject *pyobj = 0;
32761
32762 {
32763 #if wxUSE_UNICODE
32764 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32765 #else
32766 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32767 #endif
32768 }
32769 return pyobj;
32770 }
32771
32772
32773 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32774 PyObject *resultobj = 0;
32775 wxTreeItemId *result = 0 ;
32776
32777 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 result = (wxTreeItemId *)new wxTreeItemId();
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
32784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32785 return resultobj;
32786 fail:
32787 return NULL;
32788 }
32789
32790
32791 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32792 PyObject *resultobj = 0;
32793 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32794 void *argp1 = 0 ;
32795 int res1 = 0 ;
32796 PyObject *swig_obj[1] ;
32797
32798 if (!args) SWIG_fail;
32799 swig_obj[0] = args;
32800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32801 if (!SWIG_IsOK(res1)) {
32802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32803 }
32804 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32805 {
32806 PyThreadState* __tstate = wxPyBeginAllowThreads();
32807 delete arg1;
32808
32809 wxPyEndAllowThreads(__tstate);
32810 if (PyErr_Occurred()) SWIG_fail;
32811 }
32812 resultobj = SWIG_Py_Void();
32813 return resultobj;
32814 fail:
32815 return NULL;
32816 }
32817
32818
32819 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32820 PyObject *resultobj = 0;
32821 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32822 bool result;
32823 void *argp1 = 0 ;
32824 int res1 = 0 ;
32825 PyObject *swig_obj[1] ;
32826
32827 if (!args) SWIG_fail;
32828 swig_obj[0] = args;
32829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32830 if (!SWIG_IsOK(res1)) {
32831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32832 }
32833 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32834 {
32835 PyThreadState* __tstate = wxPyBeginAllowThreads();
32836 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32837 wxPyEndAllowThreads(__tstate);
32838 if (PyErr_Occurred()) SWIG_fail;
32839 }
32840 {
32841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32842 }
32843 return resultobj;
32844 fail:
32845 return NULL;
32846 }
32847
32848
32849 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32850 PyObject *resultobj = 0;
32851 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32852 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32853 bool result;
32854 void *argp1 = 0 ;
32855 int res1 = 0 ;
32856 void *argp2 = 0 ;
32857 int res2 = 0 ;
32858 PyObject * obj0 = 0 ;
32859 PyObject * obj1 = 0 ;
32860 char * kwnames[] = {
32861 (char *) "self",(char *) "other", NULL
32862 };
32863
32864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32868 }
32869 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32871 if (!SWIG_IsOK(res2)) {
32872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32873 }
32874 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32875 {
32876 PyThreadState* __tstate = wxPyBeginAllowThreads();
32877 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32878 wxPyEndAllowThreads(__tstate);
32879 if (PyErr_Occurred()) SWIG_fail;
32880 }
32881 {
32882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32883 }
32884 return resultobj;
32885 fail:
32886 return NULL;
32887 }
32888
32889
32890 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32891 PyObject *resultobj = 0;
32892 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32893 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32894 bool result;
32895 void *argp1 = 0 ;
32896 int res1 = 0 ;
32897 void *argp2 = 0 ;
32898 int res2 = 0 ;
32899 PyObject * obj0 = 0 ;
32900 PyObject * obj1 = 0 ;
32901 char * kwnames[] = {
32902 (char *) "self",(char *) "other", NULL
32903 };
32904
32905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32907 if (!SWIG_IsOK(res1)) {
32908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32909 }
32910 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32912 if (!SWIG_IsOK(res2)) {
32913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32914 }
32915 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32916 {
32917 PyThreadState* __tstate = wxPyBeginAllowThreads();
32918 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32919 wxPyEndAllowThreads(__tstate);
32920 if (PyErr_Occurred()) SWIG_fail;
32921 }
32922 {
32923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32924 }
32925 return resultobj;
32926 fail:
32927 return NULL;
32928 }
32929
32930
32931 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32932 PyObject *resultobj = 0;
32933 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32934 void *arg2 = (void *) 0 ;
32935 void *argp1 = 0 ;
32936 int res1 = 0 ;
32937 int res2 ;
32938 PyObject *swig_obj[2] ;
32939
32940 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32942 if (!SWIG_IsOK(res1)) {
32943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32944 }
32945 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32946 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32947 if (!SWIG_IsOK(res2)) {
32948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32949 }
32950 if (arg1) (arg1)->m_pItem = arg2;
32951
32952 resultobj = SWIG_Py_Void();
32953 return resultobj;
32954 fail:
32955 return NULL;
32956 }
32957
32958
32959 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32960 PyObject *resultobj = 0;
32961 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32962 void *result = 0 ;
32963 void *argp1 = 0 ;
32964 int res1 = 0 ;
32965 PyObject *swig_obj[1] ;
32966
32967 if (!args) SWIG_fail;
32968 swig_obj[0] = args;
32969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32970 if (!SWIG_IsOK(res1)) {
32971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32972 }
32973 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32974 result = (void *) ((arg1)->m_pItem);
32975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32976 return resultobj;
32977 fail:
32978 return NULL;
32979 }
32980
32981
32982 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32983 PyObject *obj;
32984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32985 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32986 return SWIG_Py_Void();
32987 }
32988
32989 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32990 return SWIG_Python_InitShadowInstance(args);
32991 }
32992
32993 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32994 PyObject *resultobj = 0;
32995 PyObject *arg1 = (PyObject *) NULL ;
32996 wxPyTreeItemData *result = 0 ;
32997 PyObject * obj0 = 0 ;
32998 char * kwnames[] = {
32999 (char *) "obj", NULL
33000 };
33001
33002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33003 if (obj0) {
33004 arg1 = obj0;
33005 }
33006 {
33007 PyThreadState* __tstate = wxPyBeginAllowThreads();
33008 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33009 wxPyEndAllowThreads(__tstate);
33010 if (PyErr_Occurred()) SWIG_fail;
33011 }
33012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33013 return resultobj;
33014 fail:
33015 return NULL;
33016 }
33017
33018
33019 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33020 PyObject *resultobj = 0;
33021 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33022 void *argp1 = 0 ;
33023 int res1 = 0 ;
33024 PyObject *swig_obj[1] ;
33025
33026 if (!args) SWIG_fail;
33027 swig_obj[0] = args;
33028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33029 if (!SWIG_IsOK(res1)) {
33030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33031 }
33032 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33033 {
33034 PyThreadState* __tstate = wxPyBeginAllowThreads();
33035 delete arg1;
33036
33037 wxPyEndAllowThreads(__tstate);
33038 if (PyErr_Occurred()) SWIG_fail;
33039 }
33040 resultobj = SWIG_Py_Void();
33041 return resultobj;
33042 fail:
33043 return NULL;
33044 }
33045
33046
33047 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33048 PyObject *resultobj = 0;
33049 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33050 PyObject *result = 0 ;
33051 void *argp1 = 0 ;
33052 int res1 = 0 ;
33053 PyObject *swig_obj[1] ;
33054
33055 if (!args) SWIG_fail;
33056 swig_obj[0] = args;
33057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33058 if (!SWIG_IsOK(res1)) {
33059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33060 }
33061 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33062 {
33063 PyThreadState* __tstate = wxPyBeginAllowThreads();
33064 result = (PyObject *)(arg1)->GetData();
33065 wxPyEndAllowThreads(__tstate);
33066 if (PyErr_Occurred()) SWIG_fail;
33067 }
33068 resultobj = result;
33069 return resultobj;
33070 fail:
33071 return NULL;
33072 }
33073
33074
33075 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33076 PyObject *resultobj = 0;
33077 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33078 PyObject *arg2 = (PyObject *) 0 ;
33079 void *argp1 = 0 ;
33080 int res1 = 0 ;
33081 PyObject * obj0 = 0 ;
33082 PyObject * obj1 = 0 ;
33083 char * kwnames[] = {
33084 (char *) "self",(char *) "obj", NULL
33085 };
33086
33087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33089 if (!SWIG_IsOK(res1)) {
33090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33091 }
33092 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33093 arg2 = obj1;
33094 {
33095 PyThreadState* __tstate = wxPyBeginAllowThreads();
33096 (arg1)->SetData(arg2);
33097 wxPyEndAllowThreads(__tstate);
33098 if (PyErr_Occurred()) SWIG_fail;
33099 }
33100 resultobj = SWIG_Py_Void();
33101 return resultobj;
33102 fail:
33103 return NULL;
33104 }
33105
33106
33107 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33108 PyObject *resultobj = 0;
33109 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33110 wxTreeItemId *result = 0 ;
33111 void *argp1 = 0 ;
33112 int res1 = 0 ;
33113 PyObject *swig_obj[1] ;
33114
33115 if (!args) SWIG_fail;
33116 swig_obj[0] = args;
33117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33118 if (!SWIG_IsOK(res1)) {
33119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33120 }
33121 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33122 {
33123 PyThreadState* __tstate = wxPyBeginAllowThreads();
33124 {
33125 wxTreeItemId const &_result_ref = (arg1)->GetId();
33126 result = (wxTreeItemId *) &_result_ref;
33127 }
33128 wxPyEndAllowThreads(__tstate);
33129 if (PyErr_Occurred()) SWIG_fail;
33130 }
33131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33132 return resultobj;
33133 fail:
33134 return NULL;
33135 }
33136
33137
33138 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33139 PyObject *resultobj = 0;
33140 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33141 wxTreeItemId *arg2 = 0 ;
33142 void *argp1 = 0 ;
33143 int res1 = 0 ;
33144 void *argp2 = 0 ;
33145 int res2 = 0 ;
33146 PyObject * obj0 = 0 ;
33147 PyObject * obj1 = 0 ;
33148 char * kwnames[] = {
33149 (char *) "self",(char *) "id", NULL
33150 };
33151
33152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33154 if (!SWIG_IsOK(res1)) {
33155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33156 }
33157 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33159 if (!SWIG_IsOK(res2)) {
33160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33161 }
33162 if (!argp2) {
33163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33164 }
33165 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33166 {
33167 PyThreadState* __tstate = wxPyBeginAllowThreads();
33168 (arg1)->SetId((wxTreeItemId const &)*arg2);
33169 wxPyEndAllowThreads(__tstate);
33170 if (PyErr_Occurred()) SWIG_fail;
33171 }
33172 resultobj = SWIG_Py_Void();
33173 return resultobj;
33174 fail:
33175 return NULL;
33176 }
33177
33178
33179 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33180 PyObject *resultobj = 0;
33181 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33182 void *argp1 = 0 ;
33183 int res1 = 0 ;
33184 PyObject *swig_obj[1] ;
33185
33186 if (!args) SWIG_fail;
33187 swig_obj[0] = args;
33188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33189 if (!SWIG_IsOK(res1)) {
33190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33191 }
33192 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33193 {
33194 PyThreadState* __tstate = wxPyBeginAllowThreads();
33195 wxPyTreeItemData_Destroy(arg1);
33196 wxPyEndAllowThreads(__tstate);
33197 if (PyErr_Occurred()) SWIG_fail;
33198 }
33199 resultobj = SWIG_Py_Void();
33200 return resultobj;
33201 fail:
33202 return NULL;
33203 }
33204
33205
33206 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33207 PyObject *obj;
33208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33209 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33210 return SWIG_Py_Void();
33211 }
33212
33213 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33214 return SWIG_Python_InitShadowInstance(args);
33215 }
33216
33217 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33218 {
33219 void *argp = 0;
33220 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33221 if (!SWIG_IsOK(res)) {
33222 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33223 }
33224 if (!argp) {
33225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33226 } else {
33227 wxTreeItemId * temp;
33228 temp = reinterpret_cast< wxTreeItemId * >(argp);
33229 wxNullTreeItemId = *temp;
33230 if (SWIG_IsNewObj(res)) delete temp;
33231 }
33232 }
33233 return 0;
33234 fail:
33235 return 1;
33236 }
33237
33238
33239 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33240 PyObject *pyobj = 0;
33241
33242 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33243 return pyobj;
33244 }
33245
33246
33247 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33248 PyObject *resultobj = 0;
33249 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33250 int arg2 = (int) 0 ;
33251 wxTreeEvent *result = 0 ;
33252 int val1 ;
33253 int ecode1 = 0 ;
33254 int val2 ;
33255 int ecode2 = 0 ;
33256
33257 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33258 if (swig_obj[0]) {
33259 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33260 if (!SWIG_IsOK(ecode1)) {
33261 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33262 }
33263 arg1 = static_cast< wxEventType >(val1);
33264 }
33265 if (swig_obj[1]) {
33266 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33267 if (!SWIG_IsOK(ecode2)) {
33268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33269 }
33270 arg2 = static_cast< int >(val2);
33271 }
33272 {
33273 PyThreadState* __tstate = wxPyBeginAllowThreads();
33274 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33275 wxPyEndAllowThreads(__tstate);
33276 if (PyErr_Occurred()) SWIG_fail;
33277 }
33278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33279 return resultobj;
33280 fail:
33281 return NULL;
33282 }
33283
33284
33285 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33286 PyObject *resultobj = 0;
33287 wxEventType arg1 ;
33288 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33289 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33290 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33291 wxTreeEvent *result = 0 ;
33292 int val1 ;
33293 int ecode1 = 0 ;
33294 void *argp2 = 0 ;
33295 int res2 = 0 ;
33296 void *argp3 = 0 ;
33297 int res3 = 0 ;
33298
33299 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33300 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33301 if (!SWIG_IsOK(ecode1)) {
33302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33303 }
33304 arg1 = static_cast< wxEventType >(val1);
33305 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33306 if (!SWIG_IsOK(res2)) {
33307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33308 }
33309 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33310 if (swig_obj[2]) {
33311 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33312 if (!SWIG_IsOK(res3)) {
33313 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33314 }
33315 if (!argp3) {
33316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33317 }
33318 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33319 }
33320 {
33321 PyThreadState* __tstate = wxPyBeginAllowThreads();
33322 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33323 wxPyEndAllowThreads(__tstate);
33324 if (PyErr_Occurred()) SWIG_fail;
33325 }
33326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33327 return resultobj;
33328 fail:
33329 return NULL;
33330 }
33331
33332
33333 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33334 int argc;
33335 PyObject *argv[4];
33336
33337 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33338 --argc;
33339 if ((argc >= 0) && (argc <= 2)) {
33340 int _v = 0;
33341 if (argc > 1) {
33342 {
33343 {
33344 int res = SWIG_AsVal_int(argv[1], NULL);
33345 _v = SWIG_CheckState(res);
33346 }
33347 }
33348 if (!_v) goto check_1;
33349 }
33350 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33351 }
33352 check_1:
33353
33354 if ((argc >= 2) && (argc <= 3)) {
33355 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33356 }
33357
33358 fail:
33359 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33360 return NULL;
33361 }
33362
33363
33364 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33365 PyObject *resultobj = 0;
33366 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33367 wxTreeItemId result;
33368 void *argp1 = 0 ;
33369 int res1 = 0 ;
33370 PyObject *swig_obj[1] ;
33371
33372 if (!args) SWIG_fail;
33373 swig_obj[0] = args;
33374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33375 if (!SWIG_IsOK(res1)) {
33376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33377 }
33378 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33379 {
33380 PyThreadState* __tstate = wxPyBeginAllowThreads();
33381 result = ((wxTreeEvent const *)arg1)->GetItem();
33382 wxPyEndAllowThreads(__tstate);
33383 if (PyErr_Occurred()) SWIG_fail;
33384 }
33385 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33386 return resultobj;
33387 fail:
33388 return NULL;
33389 }
33390
33391
33392 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33393 PyObject *resultobj = 0;
33394 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33395 wxTreeItemId *arg2 = 0 ;
33396 void *argp1 = 0 ;
33397 int res1 = 0 ;
33398 void *argp2 = 0 ;
33399 int res2 = 0 ;
33400 PyObject * obj0 = 0 ;
33401 PyObject * obj1 = 0 ;
33402 char * kwnames[] = {
33403 (char *) "self",(char *) "item", NULL
33404 };
33405
33406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33408 if (!SWIG_IsOK(res1)) {
33409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33410 }
33411 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33413 if (!SWIG_IsOK(res2)) {
33414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33415 }
33416 if (!argp2) {
33417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33418 }
33419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33420 {
33421 PyThreadState* __tstate = wxPyBeginAllowThreads();
33422 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33423 wxPyEndAllowThreads(__tstate);
33424 if (PyErr_Occurred()) SWIG_fail;
33425 }
33426 resultobj = SWIG_Py_Void();
33427 return resultobj;
33428 fail:
33429 return NULL;
33430 }
33431
33432
33433 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33434 PyObject *resultobj = 0;
33435 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33436 wxTreeItemId result;
33437 void *argp1 = 0 ;
33438 int res1 = 0 ;
33439 PyObject *swig_obj[1] ;
33440
33441 if (!args) SWIG_fail;
33442 swig_obj[0] = args;
33443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33444 if (!SWIG_IsOK(res1)) {
33445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33446 }
33447 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33448 {
33449 PyThreadState* __tstate = wxPyBeginAllowThreads();
33450 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33451 wxPyEndAllowThreads(__tstate);
33452 if (PyErr_Occurred()) SWIG_fail;
33453 }
33454 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33455 return resultobj;
33456 fail:
33457 return NULL;
33458 }
33459
33460
33461 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33462 PyObject *resultobj = 0;
33463 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33464 wxTreeItemId *arg2 = 0 ;
33465 void *argp1 = 0 ;
33466 int res1 = 0 ;
33467 void *argp2 = 0 ;
33468 int res2 = 0 ;
33469 PyObject * obj0 = 0 ;
33470 PyObject * obj1 = 0 ;
33471 char * kwnames[] = {
33472 (char *) "self",(char *) "item", NULL
33473 };
33474
33475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33477 if (!SWIG_IsOK(res1)) {
33478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33479 }
33480 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33482 if (!SWIG_IsOK(res2)) {
33483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33484 }
33485 if (!argp2) {
33486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33487 }
33488 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33489 {
33490 PyThreadState* __tstate = wxPyBeginAllowThreads();
33491 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33492 wxPyEndAllowThreads(__tstate);
33493 if (PyErr_Occurred()) SWIG_fail;
33494 }
33495 resultobj = SWIG_Py_Void();
33496 return resultobj;
33497 fail:
33498 return NULL;
33499 }
33500
33501
33502 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33503 PyObject *resultobj = 0;
33504 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33505 wxPoint result;
33506 void *argp1 = 0 ;
33507 int res1 = 0 ;
33508 PyObject *swig_obj[1] ;
33509
33510 if (!args) SWIG_fail;
33511 swig_obj[0] = args;
33512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33513 if (!SWIG_IsOK(res1)) {
33514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33515 }
33516 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33517 {
33518 PyThreadState* __tstate = wxPyBeginAllowThreads();
33519 result = ((wxTreeEvent const *)arg1)->GetPoint();
33520 wxPyEndAllowThreads(__tstate);
33521 if (PyErr_Occurred()) SWIG_fail;
33522 }
33523 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33524 return resultobj;
33525 fail:
33526 return NULL;
33527 }
33528
33529
33530 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33531 PyObject *resultobj = 0;
33532 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33533 wxPoint *arg2 = 0 ;
33534 void *argp1 = 0 ;
33535 int res1 = 0 ;
33536 wxPoint temp2 ;
33537 PyObject * obj0 = 0 ;
33538 PyObject * obj1 = 0 ;
33539 char * kwnames[] = {
33540 (char *) "self",(char *) "pt", NULL
33541 };
33542
33543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33545 if (!SWIG_IsOK(res1)) {
33546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33547 }
33548 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33549 {
33550 arg2 = &temp2;
33551 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33552 }
33553 {
33554 PyThreadState* __tstate = wxPyBeginAllowThreads();
33555 (arg1)->SetPoint((wxPoint const &)*arg2);
33556 wxPyEndAllowThreads(__tstate);
33557 if (PyErr_Occurred()) SWIG_fail;
33558 }
33559 resultobj = SWIG_Py_Void();
33560 return resultobj;
33561 fail:
33562 return NULL;
33563 }
33564
33565
33566 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33567 PyObject *resultobj = 0;
33568 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33569 wxKeyEvent *result = 0 ;
33570 void *argp1 = 0 ;
33571 int res1 = 0 ;
33572 PyObject *swig_obj[1] ;
33573
33574 if (!args) SWIG_fail;
33575 swig_obj[0] = args;
33576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33577 if (!SWIG_IsOK(res1)) {
33578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33579 }
33580 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33581 {
33582 PyThreadState* __tstate = wxPyBeginAllowThreads();
33583 {
33584 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33585 result = (wxKeyEvent *) &_result_ref;
33586 }
33587 wxPyEndAllowThreads(__tstate);
33588 if (PyErr_Occurred()) SWIG_fail;
33589 }
33590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33591 return resultobj;
33592 fail:
33593 return NULL;
33594 }
33595
33596
33597 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33598 PyObject *resultobj = 0;
33599 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33600 int result;
33601 void *argp1 = 0 ;
33602 int res1 = 0 ;
33603 PyObject *swig_obj[1] ;
33604
33605 if (!args) SWIG_fail;
33606 swig_obj[0] = args;
33607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33608 if (!SWIG_IsOK(res1)) {
33609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33610 }
33611 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33612 {
33613 PyThreadState* __tstate = wxPyBeginAllowThreads();
33614 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33615 wxPyEndAllowThreads(__tstate);
33616 if (PyErr_Occurred()) SWIG_fail;
33617 }
33618 resultobj = SWIG_From_int(static_cast< int >(result));
33619 return resultobj;
33620 fail:
33621 return NULL;
33622 }
33623
33624
33625 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33626 PyObject *resultobj = 0;
33627 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33628 wxKeyEvent *arg2 = 0 ;
33629 void *argp1 = 0 ;
33630 int res1 = 0 ;
33631 void *argp2 = 0 ;
33632 int res2 = 0 ;
33633 PyObject * obj0 = 0 ;
33634 PyObject * obj1 = 0 ;
33635 char * kwnames[] = {
33636 (char *) "self",(char *) "evt", NULL
33637 };
33638
33639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33641 if (!SWIG_IsOK(res1)) {
33642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33643 }
33644 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33646 if (!SWIG_IsOK(res2)) {
33647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33648 }
33649 if (!argp2) {
33650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33651 }
33652 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33653 {
33654 PyThreadState* __tstate = wxPyBeginAllowThreads();
33655 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33656 wxPyEndAllowThreads(__tstate);
33657 if (PyErr_Occurred()) SWIG_fail;
33658 }
33659 resultobj = SWIG_Py_Void();
33660 return resultobj;
33661 fail:
33662 return NULL;
33663 }
33664
33665
33666 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33667 PyObject *resultobj = 0;
33668 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33669 wxString *result = 0 ;
33670 void *argp1 = 0 ;
33671 int res1 = 0 ;
33672 PyObject *swig_obj[1] ;
33673
33674 if (!args) SWIG_fail;
33675 swig_obj[0] = args;
33676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33677 if (!SWIG_IsOK(res1)) {
33678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33679 }
33680 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33681 {
33682 PyThreadState* __tstate = wxPyBeginAllowThreads();
33683 {
33684 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33685 result = (wxString *) &_result_ref;
33686 }
33687 wxPyEndAllowThreads(__tstate);
33688 if (PyErr_Occurred()) SWIG_fail;
33689 }
33690 {
33691 #if wxUSE_UNICODE
33692 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33693 #else
33694 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33695 #endif
33696 }
33697 return resultobj;
33698 fail:
33699 return NULL;
33700 }
33701
33702
33703 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33704 PyObject *resultobj = 0;
33705 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33706 wxString *arg2 = 0 ;
33707 void *argp1 = 0 ;
33708 int res1 = 0 ;
33709 bool temp2 = false ;
33710 PyObject * obj0 = 0 ;
33711 PyObject * obj1 = 0 ;
33712 char * kwnames[] = {
33713 (char *) "self",(char *) "label", NULL
33714 };
33715
33716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33718 if (!SWIG_IsOK(res1)) {
33719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33720 }
33721 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33722 {
33723 arg2 = wxString_in_helper(obj1);
33724 if (arg2 == NULL) SWIG_fail;
33725 temp2 = true;
33726 }
33727 {
33728 PyThreadState* __tstate = wxPyBeginAllowThreads();
33729 (arg1)->SetLabel((wxString const &)*arg2);
33730 wxPyEndAllowThreads(__tstate);
33731 if (PyErr_Occurred()) SWIG_fail;
33732 }
33733 resultobj = SWIG_Py_Void();
33734 {
33735 if (temp2)
33736 delete arg2;
33737 }
33738 return resultobj;
33739 fail:
33740 {
33741 if (temp2)
33742 delete arg2;
33743 }
33744 return NULL;
33745 }
33746
33747
33748 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33749 PyObject *resultobj = 0;
33750 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33751 bool result;
33752 void *argp1 = 0 ;
33753 int res1 = 0 ;
33754 PyObject *swig_obj[1] ;
33755
33756 if (!args) SWIG_fail;
33757 swig_obj[0] = args;
33758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33759 if (!SWIG_IsOK(res1)) {
33760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33761 }
33762 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33763 {
33764 PyThreadState* __tstate = wxPyBeginAllowThreads();
33765 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33766 wxPyEndAllowThreads(__tstate);
33767 if (PyErr_Occurred()) SWIG_fail;
33768 }
33769 {
33770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33771 }
33772 return resultobj;
33773 fail:
33774 return NULL;
33775 }
33776
33777
33778 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33779 PyObject *resultobj = 0;
33780 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33781 bool arg2 ;
33782 void *argp1 = 0 ;
33783 int res1 = 0 ;
33784 bool val2 ;
33785 int ecode2 = 0 ;
33786 PyObject * obj0 = 0 ;
33787 PyObject * obj1 = 0 ;
33788 char * kwnames[] = {
33789 (char *) "self",(char *) "editCancelled", NULL
33790 };
33791
33792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33794 if (!SWIG_IsOK(res1)) {
33795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33796 }
33797 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33798 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33799 if (!SWIG_IsOK(ecode2)) {
33800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33801 }
33802 arg2 = static_cast< bool >(val2);
33803 {
33804 PyThreadState* __tstate = wxPyBeginAllowThreads();
33805 (arg1)->SetEditCanceled(arg2);
33806 wxPyEndAllowThreads(__tstate);
33807 if (PyErr_Occurred()) SWIG_fail;
33808 }
33809 resultobj = SWIG_Py_Void();
33810 return resultobj;
33811 fail:
33812 return NULL;
33813 }
33814
33815
33816 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33817 PyObject *resultobj = 0;
33818 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33819 wxString *arg2 = 0 ;
33820 void *argp1 = 0 ;
33821 int res1 = 0 ;
33822 bool temp2 = false ;
33823 PyObject * obj0 = 0 ;
33824 PyObject * obj1 = 0 ;
33825 char * kwnames[] = {
33826 (char *) "self",(char *) "toolTip", NULL
33827 };
33828
33829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33831 if (!SWIG_IsOK(res1)) {
33832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33833 }
33834 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33835 {
33836 arg2 = wxString_in_helper(obj1);
33837 if (arg2 == NULL) SWIG_fail;
33838 temp2 = true;
33839 }
33840 {
33841 PyThreadState* __tstate = wxPyBeginAllowThreads();
33842 (arg1)->SetToolTip((wxString const &)*arg2);
33843 wxPyEndAllowThreads(__tstate);
33844 if (PyErr_Occurred()) SWIG_fail;
33845 }
33846 resultobj = SWIG_Py_Void();
33847 {
33848 if (temp2)
33849 delete arg2;
33850 }
33851 return resultobj;
33852 fail:
33853 {
33854 if (temp2)
33855 delete arg2;
33856 }
33857 return NULL;
33858 }
33859
33860
33861 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33862 PyObject *resultobj = 0;
33863 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33864 wxString result;
33865 void *argp1 = 0 ;
33866 int res1 = 0 ;
33867 PyObject *swig_obj[1] ;
33868
33869 if (!args) SWIG_fail;
33870 swig_obj[0] = args;
33871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33872 if (!SWIG_IsOK(res1)) {
33873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33874 }
33875 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33876 {
33877 PyThreadState* __tstate = wxPyBeginAllowThreads();
33878 result = (arg1)->GetToolTip();
33879 wxPyEndAllowThreads(__tstate);
33880 if (PyErr_Occurred()) SWIG_fail;
33881 }
33882 {
33883 #if wxUSE_UNICODE
33884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33885 #else
33886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33887 #endif
33888 }
33889 return resultobj;
33890 fail:
33891 return NULL;
33892 }
33893
33894
33895 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33896 PyObject *obj;
33897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33898 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33899 return SWIG_Py_Void();
33900 }
33901
33902 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33903 return SWIG_Python_InitShadowInstance(args);
33904 }
33905
33906 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33907 PyObject *resultobj = 0;
33908 wxWindow *arg1 = (wxWindow *) 0 ;
33909 int arg2 = (int) -1 ;
33910 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33911 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33912 wxSize const &arg4_defvalue = wxDefaultSize ;
33913 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33914 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33915 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33916 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33917 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33918 wxString *arg7 = (wxString *) &arg7_defvalue ;
33919 wxPyTreeCtrl *result = 0 ;
33920 void *argp1 = 0 ;
33921 int res1 = 0 ;
33922 int val2 ;
33923 int ecode2 = 0 ;
33924 wxPoint temp3 ;
33925 wxSize temp4 ;
33926 long val5 ;
33927 int ecode5 = 0 ;
33928 void *argp6 = 0 ;
33929 int res6 = 0 ;
33930 bool temp7 = false ;
33931 PyObject * obj0 = 0 ;
33932 PyObject * obj1 = 0 ;
33933 PyObject * obj2 = 0 ;
33934 PyObject * obj3 = 0 ;
33935 PyObject * obj4 = 0 ;
33936 PyObject * obj5 = 0 ;
33937 PyObject * obj6 = 0 ;
33938 char * kwnames[] = {
33939 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33940 };
33941
33942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33944 if (!SWIG_IsOK(res1)) {
33945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33946 }
33947 arg1 = reinterpret_cast< wxWindow * >(argp1);
33948 if (obj1) {
33949 ecode2 = SWIG_AsVal_int(obj1, &val2);
33950 if (!SWIG_IsOK(ecode2)) {
33951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33952 }
33953 arg2 = static_cast< int >(val2);
33954 }
33955 if (obj2) {
33956 {
33957 arg3 = &temp3;
33958 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33959 }
33960 }
33961 if (obj3) {
33962 {
33963 arg4 = &temp4;
33964 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33965 }
33966 }
33967 if (obj4) {
33968 ecode5 = SWIG_AsVal_long(obj4, &val5);
33969 if (!SWIG_IsOK(ecode5)) {
33970 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33971 }
33972 arg5 = static_cast< long >(val5);
33973 }
33974 if (obj5) {
33975 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33976 if (!SWIG_IsOK(res6)) {
33977 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33978 }
33979 if (!argp6) {
33980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33981 }
33982 arg6 = reinterpret_cast< wxValidator * >(argp6);
33983 }
33984 if (obj6) {
33985 {
33986 arg7 = wxString_in_helper(obj6);
33987 if (arg7 == NULL) SWIG_fail;
33988 temp7 = true;
33989 }
33990 }
33991 {
33992 if (!wxPyCheckForApp()) SWIG_fail;
33993 PyThreadState* __tstate = wxPyBeginAllowThreads();
33994 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33995 wxPyEndAllowThreads(__tstate);
33996 if (PyErr_Occurred()) SWIG_fail;
33997 }
33998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33999 {
34000 if (temp7)
34001 delete arg7;
34002 }
34003 return resultobj;
34004 fail:
34005 {
34006 if (temp7)
34007 delete arg7;
34008 }
34009 return NULL;
34010 }
34011
34012
34013 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34014 PyObject *resultobj = 0;
34015 wxPyTreeCtrl *result = 0 ;
34016
34017 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34018 {
34019 if (!wxPyCheckForApp()) SWIG_fail;
34020 PyThreadState* __tstate = wxPyBeginAllowThreads();
34021 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34022 wxPyEndAllowThreads(__tstate);
34023 if (PyErr_Occurred()) SWIG_fail;
34024 }
34025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34026 return resultobj;
34027 fail:
34028 return NULL;
34029 }
34030
34031
34032 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34033 PyObject *resultobj = 0;
34034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34035 wxWindow *arg2 = (wxWindow *) 0 ;
34036 int arg3 = (int) -1 ;
34037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34039 wxSize const &arg5_defvalue = wxDefaultSize ;
34040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34041 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34044 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34045 wxString *arg8 = (wxString *) &arg8_defvalue ;
34046 bool result;
34047 void *argp1 = 0 ;
34048 int res1 = 0 ;
34049 void *argp2 = 0 ;
34050 int res2 = 0 ;
34051 int val3 ;
34052 int ecode3 = 0 ;
34053 wxPoint temp4 ;
34054 wxSize temp5 ;
34055 long val6 ;
34056 int ecode6 = 0 ;
34057 void *argp7 = 0 ;
34058 int res7 = 0 ;
34059 bool temp8 = false ;
34060 PyObject * obj0 = 0 ;
34061 PyObject * obj1 = 0 ;
34062 PyObject * obj2 = 0 ;
34063 PyObject * obj3 = 0 ;
34064 PyObject * obj4 = 0 ;
34065 PyObject * obj5 = 0 ;
34066 PyObject * obj6 = 0 ;
34067 PyObject * obj7 = 0 ;
34068 char * kwnames[] = {
34069 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34070 };
34071
34072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34074 if (!SWIG_IsOK(res1)) {
34075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34076 }
34077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34079 if (!SWIG_IsOK(res2)) {
34080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34081 }
34082 arg2 = reinterpret_cast< wxWindow * >(argp2);
34083 if (obj2) {
34084 ecode3 = SWIG_AsVal_int(obj2, &val3);
34085 if (!SWIG_IsOK(ecode3)) {
34086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34087 }
34088 arg3 = static_cast< int >(val3);
34089 }
34090 if (obj3) {
34091 {
34092 arg4 = &temp4;
34093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34094 }
34095 }
34096 if (obj4) {
34097 {
34098 arg5 = &temp5;
34099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34100 }
34101 }
34102 if (obj5) {
34103 ecode6 = SWIG_AsVal_long(obj5, &val6);
34104 if (!SWIG_IsOK(ecode6)) {
34105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34106 }
34107 arg6 = static_cast< long >(val6);
34108 }
34109 if (obj6) {
34110 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34111 if (!SWIG_IsOK(res7)) {
34112 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34113 }
34114 if (!argp7) {
34115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34116 }
34117 arg7 = reinterpret_cast< wxValidator * >(argp7);
34118 }
34119 if (obj7) {
34120 {
34121 arg8 = wxString_in_helper(obj7);
34122 if (arg8 == NULL) SWIG_fail;
34123 temp8 = true;
34124 }
34125 }
34126 {
34127 PyThreadState* __tstate = wxPyBeginAllowThreads();
34128 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34129 wxPyEndAllowThreads(__tstate);
34130 if (PyErr_Occurred()) SWIG_fail;
34131 }
34132 {
34133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34134 }
34135 {
34136 if (temp8)
34137 delete arg8;
34138 }
34139 return resultobj;
34140 fail:
34141 {
34142 if (temp8)
34143 delete arg8;
34144 }
34145 return NULL;
34146 }
34147
34148
34149 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34150 PyObject *resultobj = 0;
34151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34152 PyObject *arg2 = (PyObject *) 0 ;
34153 PyObject *arg3 = (PyObject *) 0 ;
34154 void *argp1 = 0 ;
34155 int res1 = 0 ;
34156 PyObject * obj0 = 0 ;
34157 PyObject * obj1 = 0 ;
34158 PyObject * obj2 = 0 ;
34159 char * kwnames[] = {
34160 (char *) "self",(char *) "self",(char *) "_class", NULL
34161 };
34162
34163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34165 if (!SWIG_IsOK(res1)) {
34166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34167 }
34168 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34169 arg2 = obj1;
34170 arg3 = obj2;
34171 {
34172 PyThreadState* __tstate = wxPyBeginAllowThreads();
34173 (arg1)->_setCallbackInfo(arg2,arg3);
34174 wxPyEndAllowThreads(__tstate);
34175 if (PyErr_Occurred()) SWIG_fail;
34176 }
34177 resultobj = SWIG_Py_Void();
34178 return resultobj;
34179 fail:
34180 return NULL;
34181 }
34182
34183
34184 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34185 PyObject *resultobj = 0;
34186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34187 unsigned int result;
34188 void *argp1 = 0 ;
34189 int res1 = 0 ;
34190 PyObject *swig_obj[1] ;
34191
34192 if (!args) SWIG_fail;
34193 swig_obj[0] = args;
34194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34195 if (!SWIG_IsOK(res1)) {
34196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34197 }
34198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34199 {
34200 PyThreadState* __tstate = wxPyBeginAllowThreads();
34201 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34202 wxPyEndAllowThreads(__tstate);
34203 if (PyErr_Occurred()) SWIG_fail;
34204 }
34205 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34206 return resultobj;
34207 fail:
34208 return NULL;
34209 }
34210
34211
34212 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34213 PyObject *resultobj = 0;
34214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34215 unsigned int result;
34216 void *argp1 = 0 ;
34217 int res1 = 0 ;
34218 PyObject *swig_obj[1] ;
34219
34220 if (!args) SWIG_fail;
34221 swig_obj[0] = args;
34222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34223 if (!SWIG_IsOK(res1)) {
34224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34225 }
34226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34227 {
34228 PyThreadState* __tstate = wxPyBeginAllowThreads();
34229 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34230 wxPyEndAllowThreads(__tstate);
34231 if (PyErr_Occurred()) SWIG_fail;
34232 }
34233 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34234 return resultobj;
34235 fail:
34236 return NULL;
34237 }
34238
34239
34240 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34241 PyObject *resultobj = 0;
34242 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34243 unsigned int arg2 ;
34244 void *argp1 = 0 ;
34245 int res1 = 0 ;
34246 unsigned int val2 ;
34247 int ecode2 = 0 ;
34248 PyObject * obj0 = 0 ;
34249 PyObject * obj1 = 0 ;
34250 char * kwnames[] = {
34251 (char *) "self",(char *) "indent", NULL
34252 };
34253
34254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34256 if (!SWIG_IsOK(res1)) {
34257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34258 }
34259 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34260 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34261 if (!SWIG_IsOK(ecode2)) {
34262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34263 }
34264 arg2 = static_cast< unsigned int >(val2);
34265 {
34266 PyThreadState* __tstate = wxPyBeginAllowThreads();
34267 (arg1)->SetIndent(arg2);
34268 wxPyEndAllowThreads(__tstate);
34269 if (PyErr_Occurred()) SWIG_fail;
34270 }
34271 resultobj = SWIG_Py_Void();
34272 return resultobj;
34273 fail:
34274 return NULL;
34275 }
34276
34277
34278 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34279 PyObject *resultobj = 0;
34280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34281 unsigned int result;
34282 void *argp1 = 0 ;
34283 int res1 = 0 ;
34284 PyObject *swig_obj[1] ;
34285
34286 if (!args) SWIG_fail;
34287 swig_obj[0] = args;
34288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34289 if (!SWIG_IsOK(res1)) {
34290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34291 }
34292 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34293 {
34294 PyThreadState* __tstate = wxPyBeginAllowThreads();
34295 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34296 wxPyEndAllowThreads(__tstate);
34297 if (PyErr_Occurred()) SWIG_fail;
34298 }
34299 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34300 return resultobj;
34301 fail:
34302 return NULL;
34303 }
34304
34305
34306 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34307 PyObject *resultobj = 0;
34308 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34309 unsigned int arg2 ;
34310 void *argp1 = 0 ;
34311 int res1 = 0 ;
34312 unsigned int val2 ;
34313 int ecode2 = 0 ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 char * kwnames[] = {
34317 (char *) "self",(char *) "spacing", NULL
34318 };
34319
34320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34322 if (!SWIG_IsOK(res1)) {
34323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34324 }
34325 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34326 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34327 if (!SWIG_IsOK(ecode2)) {
34328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34329 }
34330 arg2 = static_cast< unsigned int >(val2);
34331 {
34332 PyThreadState* __tstate = wxPyBeginAllowThreads();
34333 (arg1)->SetSpacing(arg2);
34334 wxPyEndAllowThreads(__tstate);
34335 if (PyErr_Occurred()) SWIG_fail;
34336 }
34337 resultobj = SWIG_Py_Void();
34338 return resultobj;
34339 fail:
34340 return NULL;
34341 }
34342
34343
34344 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34345 PyObject *resultobj = 0;
34346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34347 wxImageList *result = 0 ;
34348 void *argp1 = 0 ;
34349 int res1 = 0 ;
34350 PyObject *swig_obj[1] ;
34351
34352 if (!args) SWIG_fail;
34353 swig_obj[0] = args;
34354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34355 if (!SWIG_IsOK(res1)) {
34356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34357 }
34358 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34359 {
34360 PyThreadState* __tstate = wxPyBeginAllowThreads();
34361 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34362 wxPyEndAllowThreads(__tstate);
34363 if (PyErr_Occurred()) SWIG_fail;
34364 }
34365 {
34366 resultobj = wxPyMake_wxObject(result, (bool)0);
34367 }
34368 return resultobj;
34369 fail:
34370 return NULL;
34371 }
34372
34373
34374 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34375 PyObject *resultobj = 0;
34376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34377 wxImageList *result = 0 ;
34378 void *argp1 = 0 ;
34379 int res1 = 0 ;
34380 PyObject *swig_obj[1] ;
34381
34382 if (!args) SWIG_fail;
34383 swig_obj[0] = args;
34384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34385 if (!SWIG_IsOK(res1)) {
34386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34387 }
34388 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34389 {
34390 PyThreadState* __tstate = wxPyBeginAllowThreads();
34391 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34392 wxPyEndAllowThreads(__tstate);
34393 if (PyErr_Occurred()) SWIG_fail;
34394 }
34395 {
34396 resultobj = wxPyMake_wxObject(result, (bool)0);
34397 }
34398 return resultobj;
34399 fail:
34400 return NULL;
34401 }
34402
34403
34404 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34405 PyObject *resultobj = 0;
34406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34407 wxImageList *arg2 = (wxImageList *) 0 ;
34408 void *argp1 = 0 ;
34409 int res1 = 0 ;
34410 void *argp2 = 0 ;
34411 int res2 = 0 ;
34412 PyObject * obj0 = 0 ;
34413 PyObject * obj1 = 0 ;
34414 char * kwnames[] = {
34415 (char *) "self",(char *) "imageList", NULL
34416 };
34417
34418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34420 if (!SWIG_IsOK(res1)) {
34421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34422 }
34423 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34425 if (!SWIG_IsOK(res2)) {
34426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34427 }
34428 arg2 = reinterpret_cast< wxImageList * >(argp2);
34429 {
34430 PyThreadState* __tstate = wxPyBeginAllowThreads();
34431 (arg1)->SetImageList(arg2);
34432 wxPyEndAllowThreads(__tstate);
34433 if (PyErr_Occurred()) SWIG_fail;
34434 }
34435 resultobj = SWIG_Py_Void();
34436 return resultobj;
34437 fail:
34438 return NULL;
34439 }
34440
34441
34442 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34443 PyObject *resultobj = 0;
34444 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34445 wxImageList *arg2 = (wxImageList *) 0 ;
34446 void *argp1 = 0 ;
34447 int res1 = 0 ;
34448 void *argp2 = 0 ;
34449 int res2 = 0 ;
34450 PyObject * obj0 = 0 ;
34451 PyObject * obj1 = 0 ;
34452 char * kwnames[] = {
34453 (char *) "self",(char *) "imageList", NULL
34454 };
34455
34456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34458 if (!SWIG_IsOK(res1)) {
34459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34460 }
34461 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34463 if (!SWIG_IsOK(res2)) {
34464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34465 }
34466 arg2 = reinterpret_cast< wxImageList * >(argp2);
34467 {
34468 PyThreadState* __tstate = wxPyBeginAllowThreads();
34469 (arg1)->SetStateImageList(arg2);
34470 wxPyEndAllowThreads(__tstate);
34471 if (PyErr_Occurred()) SWIG_fail;
34472 }
34473 resultobj = SWIG_Py_Void();
34474 return resultobj;
34475 fail:
34476 return NULL;
34477 }
34478
34479
34480 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34481 PyObject *resultobj = 0;
34482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34483 wxImageList *arg2 = (wxImageList *) 0 ;
34484 void *argp1 = 0 ;
34485 int res1 = 0 ;
34486 int res2 = 0 ;
34487 PyObject * obj0 = 0 ;
34488 PyObject * obj1 = 0 ;
34489 char * kwnames[] = {
34490 (char *) "self",(char *) "imageList", NULL
34491 };
34492
34493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34495 if (!SWIG_IsOK(res1)) {
34496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34497 }
34498 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34499 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34500 if (!SWIG_IsOK(res2)) {
34501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34502 }
34503 {
34504 PyThreadState* __tstate = wxPyBeginAllowThreads();
34505 (arg1)->AssignImageList(arg2);
34506 wxPyEndAllowThreads(__tstate);
34507 if (PyErr_Occurred()) SWIG_fail;
34508 }
34509 resultobj = SWIG_Py_Void();
34510 return resultobj;
34511 fail:
34512 return NULL;
34513 }
34514
34515
34516 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34517 PyObject *resultobj = 0;
34518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34519 wxImageList *arg2 = (wxImageList *) 0 ;
34520 void *argp1 = 0 ;
34521 int res1 = 0 ;
34522 int res2 = 0 ;
34523 PyObject * obj0 = 0 ;
34524 PyObject * obj1 = 0 ;
34525 char * kwnames[] = {
34526 (char *) "self",(char *) "imageList", NULL
34527 };
34528
34529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34531 if (!SWIG_IsOK(res1)) {
34532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34533 }
34534 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34535 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34536 if (!SWIG_IsOK(res2)) {
34537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34538 }
34539 {
34540 PyThreadState* __tstate = wxPyBeginAllowThreads();
34541 (arg1)->AssignStateImageList(arg2);
34542 wxPyEndAllowThreads(__tstate);
34543 if (PyErr_Occurred()) SWIG_fail;
34544 }
34545 resultobj = SWIG_Py_Void();
34546 return resultobj;
34547 fail:
34548 return NULL;
34549 }
34550
34551
34552 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34553 PyObject *resultobj = 0;
34554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34555 wxTreeItemId *arg2 = 0 ;
34556 wxString result;
34557 void *argp1 = 0 ;
34558 int res1 = 0 ;
34559 void *argp2 = 0 ;
34560 int res2 = 0 ;
34561 PyObject * obj0 = 0 ;
34562 PyObject * obj1 = 0 ;
34563 char * kwnames[] = {
34564 (char *) "self",(char *) "item", NULL
34565 };
34566
34567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34569 if (!SWIG_IsOK(res1)) {
34570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34571 }
34572 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34574 if (!SWIG_IsOK(res2)) {
34575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34576 }
34577 if (!argp2) {
34578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34579 }
34580 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34581 {
34582 PyThreadState* __tstate = wxPyBeginAllowThreads();
34583 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34584 wxPyEndAllowThreads(__tstate);
34585 if (PyErr_Occurred()) SWIG_fail;
34586 }
34587 {
34588 #if wxUSE_UNICODE
34589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34590 #else
34591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34592 #endif
34593 }
34594 return resultobj;
34595 fail:
34596 return NULL;
34597 }
34598
34599
34600 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34601 PyObject *resultobj = 0;
34602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34603 wxTreeItemId *arg2 = 0 ;
34604 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34605 int result;
34606 void *argp1 = 0 ;
34607 int res1 = 0 ;
34608 void *argp2 = 0 ;
34609 int res2 = 0 ;
34610 int val3 ;
34611 int ecode3 = 0 ;
34612 PyObject * obj0 = 0 ;
34613 PyObject * obj1 = 0 ;
34614 PyObject * obj2 = 0 ;
34615 char * kwnames[] = {
34616 (char *) "self",(char *) "item",(char *) "which", NULL
34617 };
34618
34619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34623 }
34624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34626 if (!SWIG_IsOK(res2)) {
34627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34628 }
34629 if (!argp2) {
34630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34631 }
34632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34633 if (obj2) {
34634 ecode3 = SWIG_AsVal_int(obj2, &val3);
34635 if (!SWIG_IsOK(ecode3)) {
34636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34637 }
34638 arg3 = static_cast< wxTreeItemIcon >(val3);
34639 }
34640 {
34641 PyThreadState* __tstate = wxPyBeginAllowThreads();
34642 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34643 wxPyEndAllowThreads(__tstate);
34644 if (PyErr_Occurred()) SWIG_fail;
34645 }
34646 resultobj = SWIG_From_int(static_cast< int >(result));
34647 return resultobj;
34648 fail:
34649 return NULL;
34650 }
34651
34652
34653 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34654 PyObject *resultobj = 0;
34655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34656 wxTreeItemId *arg2 = 0 ;
34657 wxPyTreeItemData *result = 0 ;
34658 void *argp1 = 0 ;
34659 int res1 = 0 ;
34660 void *argp2 = 0 ;
34661 int res2 = 0 ;
34662 PyObject * obj0 = 0 ;
34663 PyObject * obj1 = 0 ;
34664 char * kwnames[] = {
34665 (char *) "self",(char *) "item", NULL
34666 };
34667
34668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34670 if (!SWIG_IsOK(res1)) {
34671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34672 }
34673 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34675 if (!SWIG_IsOK(res2)) {
34676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34677 }
34678 if (!argp2) {
34679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34680 }
34681 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34682 {
34683 PyThreadState* __tstate = wxPyBeginAllowThreads();
34684 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34685 wxPyEndAllowThreads(__tstate);
34686 if (PyErr_Occurred()) SWIG_fail;
34687 }
34688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34689 return resultobj;
34690 fail:
34691 return NULL;
34692 }
34693
34694
34695 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34696 PyObject *resultobj = 0;
34697 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34698 wxTreeItemId *arg2 = 0 ;
34699 PyObject *result = 0 ;
34700 void *argp1 = 0 ;
34701 int res1 = 0 ;
34702 void *argp2 = 0 ;
34703 int res2 = 0 ;
34704 PyObject * obj0 = 0 ;
34705 PyObject * obj1 = 0 ;
34706 char * kwnames[] = {
34707 (char *) "self",(char *) "item", NULL
34708 };
34709
34710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34712 if (!SWIG_IsOK(res1)) {
34713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34714 }
34715 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34717 if (!SWIG_IsOK(res2)) {
34718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34719 }
34720 if (!argp2) {
34721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34722 }
34723 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34724 {
34725 PyThreadState* __tstate = wxPyBeginAllowThreads();
34726 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34727 wxPyEndAllowThreads(__tstate);
34728 if (PyErr_Occurred()) SWIG_fail;
34729 }
34730 resultobj = result;
34731 return resultobj;
34732 fail:
34733 return NULL;
34734 }
34735
34736
34737 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34738 PyObject *resultobj = 0;
34739 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34740 wxTreeItemId *arg2 = 0 ;
34741 wxColour result;
34742 void *argp1 = 0 ;
34743 int res1 = 0 ;
34744 void *argp2 = 0 ;
34745 int res2 = 0 ;
34746 PyObject * obj0 = 0 ;
34747 PyObject * obj1 = 0 ;
34748 char * kwnames[] = {
34749 (char *) "self",(char *) "item", NULL
34750 };
34751
34752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34754 if (!SWIG_IsOK(res1)) {
34755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34756 }
34757 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34759 if (!SWIG_IsOK(res2)) {
34760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34761 }
34762 if (!argp2) {
34763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34764 }
34765 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34766 {
34767 PyThreadState* __tstate = wxPyBeginAllowThreads();
34768 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34769 wxPyEndAllowThreads(__tstate);
34770 if (PyErr_Occurred()) SWIG_fail;
34771 }
34772 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34773 return resultobj;
34774 fail:
34775 return NULL;
34776 }
34777
34778
34779 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34780 PyObject *resultobj = 0;
34781 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34782 wxTreeItemId *arg2 = 0 ;
34783 wxColour result;
34784 void *argp1 = 0 ;
34785 int res1 = 0 ;
34786 void *argp2 = 0 ;
34787 int res2 = 0 ;
34788 PyObject * obj0 = 0 ;
34789 PyObject * obj1 = 0 ;
34790 char * kwnames[] = {
34791 (char *) "self",(char *) "item", NULL
34792 };
34793
34794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34796 if (!SWIG_IsOK(res1)) {
34797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34798 }
34799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34801 if (!SWIG_IsOK(res2)) {
34802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34803 }
34804 if (!argp2) {
34805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34806 }
34807 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34808 {
34809 PyThreadState* __tstate = wxPyBeginAllowThreads();
34810 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34811 wxPyEndAllowThreads(__tstate);
34812 if (PyErr_Occurred()) SWIG_fail;
34813 }
34814 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34815 return resultobj;
34816 fail:
34817 return NULL;
34818 }
34819
34820
34821 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34822 PyObject *resultobj = 0;
34823 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34824 wxTreeItemId *arg2 = 0 ;
34825 wxFont result;
34826 void *argp1 = 0 ;
34827 int res1 = 0 ;
34828 void *argp2 = 0 ;
34829 int res2 = 0 ;
34830 PyObject * obj0 = 0 ;
34831 PyObject * obj1 = 0 ;
34832 char * kwnames[] = {
34833 (char *) "self",(char *) "item", NULL
34834 };
34835
34836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34838 if (!SWIG_IsOK(res1)) {
34839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34840 }
34841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34843 if (!SWIG_IsOK(res2)) {
34844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34845 }
34846 if (!argp2) {
34847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34848 }
34849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34850 {
34851 PyThreadState* __tstate = wxPyBeginAllowThreads();
34852 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34853 wxPyEndAllowThreads(__tstate);
34854 if (PyErr_Occurred()) SWIG_fail;
34855 }
34856 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34857 return resultobj;
34858 fail:
34859 return NULL;
34860 }
34861
34862
34863 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34864 PyObject *resultobj = 0;
34865 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34866 wxTreeItemId *arg2 = 0 ;
34867 wxString *arg3 = 0 ;
34868 void *argp1 = 0 ;
34869 int res1 = 0 ;
34870 void *argp2 = 0 ;
34871 int res2 = 0 ;
34872 bool temp3 = false ;
34873 PyObject * obj0 = 0 ;
34874 PyObject * obj1 = 0 ;
34875 PyObject * obj2 = 0 ;
34876 char * kwnames[] = {
34877 (char *) "self",(char *) "item",(char *) "text", NULL
34878 };
34879
34880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34882 if (!SWIG_IsOK(res1)) {
34883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34884 }
34885 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34887 if (!SWIG_IsOK(res2)) {
34888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34889 }
34890 if (!argp2) {
34891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34892 }
34893 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34894 {
34895 arg3 = wxString_in_helper(obj2);
34896 if (arg3 == NULL) SWIG_fail;
34897 temp3 = true;
34898 }
34899 {
34900 PyThreadState* __tstate = wxPyBeginAllowThreads();
34901 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34902 wxPyEndAllowThreads(__tstate);
34903 if (PyErr_Occurred()) SWIG_fail;
34904 }
34905 resultobj = SWIG_Py_Void();
34906 {
34907 if (temp3)
34908 delete arg3;
34909 }
34910 return resultobj;
34911 fail:
34912 {
34913 if (temp3)
34914 delete arg3;
34915 }
34916 return NULL;
34917 }
34918
34919
34920 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34921 PyObject *resultobj = 0;
34922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34923 wxTreeItemId *arg2 = 0 ;
34924 int arg3 ;
34925 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34926 void *argp1 = 0 ;
34927 int res1 = 0 ;
34928 void *argp2 = 0 ;
34929 int res2 = 0 ;
34930 int val3 ;
34931 int ecode3 = 0 ;
34932 int val4 ;
34933 int ecode4 = 0 ;
34934 PyObject * obj0 = 0 ;
34935 PyObject * obj1 = 0 ;
34936 PyObject * obj2 = 0 ;
34937 PyObject * obj3 = 0 ;
34938 char * kwnames[] = {
34939 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34940 };
34941
34942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34944 if (!SWIG_IsOK(res1)) {
34945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34946 }
34947 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34949 if (!SWIG_IsOK(res2)) {
34950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34951 }
34952 if (!argp2) {
34953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34954 }
34955 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34956 ecode3 = SWIG_AsVal_int(obj2, &val3);
34957 if (!SWIG_IsOK(ecode3)) {
34958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34959 }
34960 arg3 = static_cast< int >(val3);
34961 if (obj3) {
34962 ecode4 = SWIG_AsVal_int(obj3, &val4);
34963 if (!SWIG_IsOK(ecode4)) {
34964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34965 }
34966 arg4 = static_cast< wxTreeItemIcon >(val4);
34967 }
34968 {
34969 PyThreadState* __tstate = wxPyBeginAllowThreads();
34970 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34971 wxPyEndAllowThreads(__tstate);
34972 if (PyErr_Occurred()) SWIG_fail;
34973 }
34974 resultobj = SWIG_Py_Void();
34975 return resultobj;
34976 fail:
34977 return NULL;
34978 }
34979
34980
34981 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34982 PyObject *resultobj = 0;
34983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34984 wxTreeItemId *arg2 = 0 ;
34985 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34986 void *argp1 = 0 ;
34987 int res1 = 0 ;
34988 void *argp2 = 0 ;
34989 int res2 = 0 ;
34990 int res3 = 0 ;
34991 PyObject * obj0 = 0 ;
34992 PyObject * obj1 = 0 ;
34993 PyObject * obj2 = 0 ;
34994 char * kwnames[] = {
34995 (char *) "self",(char *) "item",(char *) "data", NULL
34996 };
34997
34998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35000 if (!SWIG_IsOK(res1)) {
35001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35002 }
35003 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35005 if (!SWIG_IsOK(res2)) {
35006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35007 }
35008 if (!argp2) {
35009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35010 }
35011 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35012 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35013 if (!SWIG_IsOK(res3)) {
35014 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35015 }
35016 {
35017 PyThreadState* __tstate = wxPyBeginAllowThreads();
35018 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35019 wxPyEndAllowThreads(__tstate);
35020 if (PyErr_Occurred()) SWIG_fail;
35021 }
35022 resultobj = SWIG_Py_Void();
35023 return resultobj;
35024 fail:
35025 return NULL;
35026 }
35027
35028
35029 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35030 PyObject *resultobj = 0;
35031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35032 wxTreeItemId *arg2 = 0 ;
35033 PyObject *arg3 = (PyObject *) 0 ;
35034 void *argp1 = 0 ;
35035 int res1 = 0 ;
35036 void *argp2 = 0 ;
35037 int res2 = 0 ;
35038 PyObject * obj0 = 0 ;
35039 PyObject * obj1 = 0 ;
35040 PyObject * obj2 = 0 ;
35041 char * kwnames[] = {
35042 (char *) "self",(char *) "item",(char *) "obj", NULL
35043 };
35044
35045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35047 if (!SWIG_IsOK(res1)) {
35048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35049 }
35050 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35052 if (!SWIG_IsOK(res2)) {
35053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35054 }
35055 if (!argp2) {
35056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35057 }
35058 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35059 arg3 = obj2;
35060 {
35061 PyThreadState* __tstate = wxPyBeginAllowThreads();
35062 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35063 wxPyEndAllowThreads(__tstate);
35064 if (PyErr_Occurred()) SWIG_fail;
35065 }
35066 resultobj = SWIG_Py_Void();
35067 return resultobj;
35068 fail:
35069 return NULL;
35070 }
35071
35072
35073 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35074 PyObject *resultobj = 0;
35075 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35076 wxTreeItemId *arg2 = 0 ;
35077 bool arg3 = (bool) true ;
35078 void *argp1 = 0 ;
35079 int res1 = 0 ;
35080 void *argp2 = 0 ;
35081 int res2 = 0 ;
35082 bool val3 ;
35083 int ecode3 = 0 ;
35084 PyObject * obj0 = 0 ;
35085 PyObject * obj1 = 0 ;
35086 PyObject * obj2 = 0 ;
35087 char * kwnames[] = {
35088 (char *) "self",(char *) "item",(char *) "has", NULL
35089 };
35090
35091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35093 if (!SWIG_IsOK(res1)) {
35094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35095 }
35096 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35098 if (!SWIG_IsOK(res2)) {
35099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35100 }
35101 if (!argp2) {
35102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35103 }
35104 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35105 if (obj2) {
35106 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35107 if (!SWIG_IsOK(ecode3)) {
35108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35109 }
35110 arg3 = static_cast< bool >(val3);
35111 }
35112 {
35113 PyThreadState* __tstate = wxPyBeginAllowThreads();
35114 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35115 wxPyEndAllowThreads(__tstate);
35116 if (PyErr_Occurred()) SWIG_fail;
35117 }
35118 resultobj = SWIG_Py_Void();
35119 return resultobj;
35120 fail:
35121 return NULL;
35122 }
35123
35124
35125 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35126 PyObject *resultobj = 0;
35127 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35128 wxTreeItemId *arg2 = 0 ;
35129 bool arg3 = (bool) true ;
35130 void *argp1 = 0 ;
35131 int res1 = 0 ;
35132 void *argp2 = 0 ;
35133 int res2 = 0 ;
35134 bool val3 ;
35135 int ecode3 = 0 ;
35136 PyObject * obj0 = 0 ;
35137 PyObject * obj1 = 0 ;
35138 PyObject * obj2 = 0 ;
35139 char * kwnames[] = {
35140 (char *) "self",(char *) "item",(char *) "bold", NULL
35141 };
35142
35143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35145 if (!SWIG_IsOK(res1)) {
35146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35147 }
35148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35150 if (!SWIG_IsOK(res2)) {
35151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35152 }
35153 if (!argp2) {
35154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35155 }
35156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35157 if (obj2) {
35158 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35159 if (!SWIG_IsOK(ecode3)) {
35160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35161 }
35162 arg3 = static_cast< bool >(val3);
35163 }
35164 {
35165 PyThreadState* __tstate = wxPyBeginAllowThreads();
35166 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35167 wxPyEndAllowThreads(__tstate);
35168 if (PyErr_Occurred()) SWIG_fail;
35169 }
35170 resultobj = SWIG_Py_Void();
35171 return resultobj;
35172 fail:
35173 return NULL;
35174 }
35175
35176
35177 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35178 PyObject *resultobj = 0;
35179 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35180 wxTreeItemId *arg2 = 0 ;
35181 bool arg3 = (bool) true ;
35182 void *argp1 = 0 ;
35183 int res1 = 0 ;
35184 void *argp2 = 0 ;
35185 int res2 = 0 ;
35186 bool val3 ;
35187 int ecode3 = 0 ;
35188 PyObject * obj0 = 0 ;
35189 PyObject * obj1 = 0 ;
35190 PyObject * obj2 = 0 ;
35191 char * kwnames[] = {
35192 (char *) "self",(char *) "item",(char *) "highlight", NULL
35193 };
35194
35195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35197 if (!SWIG_IsOK(res1)) {
35198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35199 }
35200 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35202 if (!SWIG_IsOK(res2)) {
35203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35204 }
35205 if (!argp2) {
35206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35207 }
35208 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35209 if (obj2) {
35210 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35211 if (!SWIG_IsOK(ecode3)) {
35212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35213 }
35214 arg3 = static_cast< bool >(val3);
35215 }
35216 {
35217 PyThreadState* __tstate = wxPyBeginAllowThreads();
35218 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35219 wxPyEndAllowThreads(__tstate);
35220 if (PyErr_Occurred()) SWIG_fail;
35221 }
35222 resultobj = SWIG_Py_Void();
35223 return resultobj;
35224 fail:
35225 return NULL;
35226 }
35227
35228
35229 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35230 PyObject *resultobj = 0;
35231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35232 wxTreeItemId *arg2 = 0 ;
35233 wxColour *arg3 = 0 ;
35234 void *argp1 = 0 ;
35235 int res1 = 0 ;
35236 void *argp2 = 0 ;
35237 int res2 = 0 ;
35238 wxColour temp3 ;
35239 PyObject * obj0 = 0 ;
35240 PyObject * obj1 = 0 ;
35241 PyObject * obj2 = 0 ;
35242 char * kwnames[] = {
35243 (char *) "self",(char *) "item",(char *) "col", NULL
35244 };
35245
35246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35248 if (!SWIG_IsOK(res1)) {
35249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35250 }
35251 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35253 if (!SWIG_IsOK(res2)) {
35254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 if (!argp2) {
35257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35258 }
35259 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35260 {
35261 arg3 = &temp3;
35262 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35263 }
35264 {
35265 PyThreadState* __tstate = wxPyBeginAllowThreads();
35266 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35267 wxPyEndAllowThreads(__tstate);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = SWIG_Py_Void();
35271 return resultobj;
35272 fail:
35273 return NULL;
35274 }
35275
35276
35277 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35280 wxTreeItemId *arg2 = 0 ;
35281 wxColour *arg3 = 0 ;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 void *argp2 = 0 ;
35285 int res2 = 0 ;
35286 wxColour temp3 ;
35287 PyObject * obj0 = 0 ;
35288 PyObject * obj1 = 0 ;
35289 PyObject * obj2 = 0 ;
35290 char * kwnames[] = {
35291 (char *) "self",(char *) "item",(char *) "col", NULL
35292 };
35293
35294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35296 if (!SWIG_IsOK(res1)) {
35297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35298 }
35299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35301 if (!SWIG_IsOK(res2)) {
35302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35303 }
35304 if (!argp2) {
35305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35306 }
35307 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35308 {
35309 arg3 = &temp3;
35310 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35311 }
35312 {
35313 PyThreadState* __tstate = wxPyBeginAllowThreads();
35314 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35315 wxPyEndAllowThreads(__tstate);
35316 if (PyErr_Occurred()) SWIG_fail;
35317 }
35318 resultobj = SWIG_Py_Void();
35319 return resultobj;
35320 fail:
35321 return NULL;
35322 }
35323
35324
35325 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35326 PyObject *resultobj = 0;
35327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35328 wxTreeItemId *arg2 = 0 ;
35329 wxFont *arg3 = 0 ;
35330 void *argp1 = 0 ;
35331 int res1 = 0 ;
35332 void *argp2 = 0 ;
35333 int res2 = 0 ;
35334 void *argp3 = 0 ;
35335 int res3 = 0 ;
35336 PyObject * obj0 = 0 ;
35337 PyObject * obj1 = 0 ;
35338 PyObject * obj2 = 0 ;
35339 char * kwnames[] = {
35340 (char *) "self",(char *) "item",(char *) "font", NULL
35341 };
35342
35343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35345 if (!SWIG_IsOK(res1)) {
35346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35347 }
35348 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35349 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35350 if (!SWIG_IsOK(res2)) {
35351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35352 }
35353 if (!argp2) {
35354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35355 }
35356 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35357 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35358 if (!SWIG_IsOK(res3)) {
35359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35360 }
35361 if (!argp3) {
35362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35363 }
35364 arg3 = reinterpret_cast< wxFont * >(argp3);
35365 {
35366 PyThreadState* __tstate = wxPyBeginAllowThreads();
35367 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35368 wxPyEndAllowThreads(__tstate);
35369 if (PyErr_Occurred()) SWIG_fail;
35370 }
35371 resultobj = SWIG_Py_Void();
35372 return resultobj;
35373 fail:
35374 return NULL;
35375 }
35376
35377
35378 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35379 PyObject *resultobj = 0;
35380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35381 wxTreeItemId *arg2 = 0 ;
35382 bool result;
35383 void *argp1 = 0 ;
35384 int res1 = 0 ;
35385 void *argp2 = 0 ;
35386 int res2 = 0 ;
35387 PyObject * obj0 = 0 ;
35388 PyObject * obj1 = 0 ;
35389 char * kwnames[] = {
35390 (char *) "self",(char *) "item", NULL
35391 };
35392
35393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35395 if (!SWIG_IsOK(res1)) {
35396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35397 }
35398 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35400 if (!SWIG_IsOK(res2)) {
35401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35402 }
35403 if (!argp2) {
35404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35405 }
35406 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35407 {
35408 PyThreadState* __tstate = wxPyBeginAllowThreads();
35409 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35410 wxPyEndAllowThreads(__tstate);
35411 if (PyErr_Occurred()) SWIG_fail;
35412 }
35413 {
35414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35415 }
35416 return resultobj;
35417 fail:
35418 return NULL;
35419 }
35420
35421
35422 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35423 PyObject *resultobj = 0;
35424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35425 wxTreeItemId *arg2 = 0 ;
35426 bool result;
35427 void *argp1 = 0 ;
35428 int res1 = 0 ;
35429 void *argp2 = 0 ;
35430 int res2 = 0 ;
35431 PyObject * obj0 = 0 ;
35432 PyObject * obj1 = 0 ;
35433 char * kwnames[] = {
35434 (char *) "self",(char *) "item", NULL
35435 };
35436
35437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35439 if (!SWIG_IsOK(res1)) {
35440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35441 }
35442 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35444 if (!SWIG_IsOK(res2)) {
35445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35446 }
35447 if (!argp2) {
35448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35449 }
35450 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35451 {
35452 PyThreadState* __tstate = wxPyBeginAllowThreads();
35453 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35454 wxPyEndAllowThreads(__tstate);
35455 if (PyErr_Occurred()) SWIG_fail;
35456 }
35457 {
35458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35459 }
35460 return resultobj;
35461 fail:
35462 return NULL;
35463 }
35464
35465
35466 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35467 PyObject *resultobj = 0;
35468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35469 wxTreeItemId *arg2 = 0 ;
35470 bool result;
35471 void *argp1 = 0 ;
35472 int res1 = 0 ;
35473 void *argp2 = 0 ;
35474 int res2 = 0 ;
35475 PyObject * obj0 = 0 ;
35476 PyObject * obj1 = 0 ;
35477 char * kwnames[] = {
35478 (char *) "self",(char *) "item", NULL
35479 };
35480
35481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) 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_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35490 }
35491 if (!argp2) {
35492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35493 }
35494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35495 {
35496 PyThreadState* __tstate = wxPyBeginAllowThreads();
35497 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35498 wxPyEndAllowThreads(__tstate);
35499 if (PyErr_Occurred()) SWIG_fail;
35500 }
35501 {
35502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35503 }
35504 return resultobj;
35505 fail:
35506 return NULL;
35507 }
35508
35509
35510 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35511 PyObject *resultobj = 0;
35512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35513 wxTreeItemId *arg2 = 0 ;
35514 bool result;
35515 void *argp1 = 0 ;
35516 int res1 = 0 ;
35517 void *argp2 = 0 ;
35518 int res2 = 0 ;
35519 PyObject * obj0 = 0 ;
35520 PyObject * obj1 = 0 ;
35521 char * kwnames[] = {
35522 (char *) "self",(char *) "item", NULL
35523 };
35524
35525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35527 if (!SWIG_IsOK(res1)) {
35528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35529 }
35530 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35532 if (!SWIG_IsOK(res2)) {
35533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35534 }
35535 if (!argp2) {
35536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35537 }
35538 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35539 {
35540 PyThreadState* __tstate = wxPyBeginAllowThreads();
35541 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35542 wxPyEndAllowThreads(__tstate);
35543 if (PyErr_Occurred()) SWIG_fail;
35544 }
35545 {
35546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35547 }
35548 return resultobj;
35549 fail:
35550 return NULL;
35551 }
35552
35553
35554 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35555 PyObject *resultobj = 0;
35556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35557 wxTreeItemId *arg2 = 0 ;
35558 bool 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_IsBold",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_IsBold" "', 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_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35578 }
35579 if (!argp2) {
35580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35581 }
35582 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35583 {
35584 PyThreadState* __tstate = wxPyBeginAllowThreads();
35585 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35586 wxPyEndAllowThreads(__tstate);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 {
35590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35591 }
35592 return resultobj;
35593 fail:
35594 return NULL;
35595 }
35596
35597
35598 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35599 PyObject *resultobj = 0;
35600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35601 wxTreeItemId *arg2 = 0 ;
35602 bool arg3 = (bool) true ;
35603 size_t result;
35604 void *argp1 = 0 ;
35605 int res1 = 0 ;
35606 void *argp2 = 0 ;
35607 int res2 = 0 ;
35608 bool val3 ;
35609 int ecode3 = 0 ;
35610 PyObject * obj0 = 0 ;
35611 PyObject * obj1 = 0 ;
35612 PyObject * obj2 = 0 ;
35613 char * kwnames[] = {
35614 (char *) "self",(char *) "item",(char *) "recursively", NULL
35615 };
35616
35617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35624 if (!SWIG_IsOK(res2)) {
35625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 if (!argp2) {
35628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35629 }
35630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35631 if (obj2) {
35632 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35633 if (!SWIG_IsOK(ecode3)) {
35634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35635 }
35636 arg3 = static_cast< bool >(val3);
35637 }
35638 {
35639 PyThreadState* __tstate = wxPyBeginAllowThreads();
35640 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35641 wxPyEndAllowThreads(__tstate);
35642 if (PyErr_Occurred()) SWIG_fail;
35643 }
35644 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35645 return resultobj;
35646 fail:
35647 return NULL;
35648 }
35649
35650
35651 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35652 PyObject *resultobj = 0;
35653 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35654 wxTreeItemId result;
35655 void *argp1 = 0 ;
35656 int res1 = 0 ;
35657 PyObject *swig_obj[1] ;
35658
35659 if (!args) SWIG_fail;
35660 swig_obj[0] = args;
35661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35662 if (!SWIG_IsOK(res1)) {
35663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35664 }
35665 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35666 {
35667 PyThreadState* __tstate = wxPyBeginAllowThreads();
35668 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35669 wxPyEndAllowThreads(__tstate);
35670 if (PyErr_Occurred()) SWIG_fail;
35671 }
35672 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35673 return resultobj;
35674 fail:
35675 return NULL;
35676 }
35677
35678
35679 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35680 PyObject *resultobj = 0;
35681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35682 wxTreeItemId result;
35683 void *argp1 = 0 ;
35684 int res1 = 0 ;
35685 PyObject *swig_obj[1] ;
35686
35687 if (!args) SWIG_fail;
35688 swig_obj[0] = args;
35689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35690 if (!SWIG_IsOK(res1)) {
35691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35692 }
35693 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35694 {
35695 PyThreadState* __tstate = wxPyBeginAllowThreads();
35696 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35697 wxPyEndAllowThreads(__tstate);
35698 if (PyErr_Occurred()) SWIG_fail;
35699 }
35700 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35701 return resultobj;
35702 fail:
35703 return NULL;
35704 }
35705
35706
35707 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35708 PyObject *resultobj = 0;
35709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35710 PyObject *result = 0 ;
35711 void *argp1 = 0 ;
35712 int res1 = 0 ;
35713 PyObject *swig_obj[1] ;
35714
35715 if (!args) SWIG_fail;
35716 swig_obj[0] = args;
35717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35718 if (!SWIG_IsOK(res1)) {
35719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35720 }
35721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35722 {
35723 PyThreadState* __tstate = wxPyBeginAllowThreads();
35724 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35725 wxPyEndAllowThreads(__tstate);
35726 if (PyErr_Occurred()) SWIG_fail;
35727 }
35728 resultobj = result;
35729 return resultobj;
35730 fail:
35731 return NULL;
35732 }
35733
35734
35735 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35736 PyObject *resultobj = 0;
35737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35738 wxTreeItemId *arg2 = 0 ;
35739 wxTreeItemId result;
35740 void *argp1 = 0 ;
35741 int res1 = 0 ;
35742 void *argp2 = 0 ;
35743 int res2 = 0 ;
35744 PyObject * obj0 = 0 ;
35745 PyObject * obj1 = 0 ;
35746 char * kwnames[] = {
35747 (char *) "self",(char *) "item", NULL
35748 };
35749
35750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35752 if (!SWIG_IsOK(res1)) {
35753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35754 }
35755 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35757 if (!SWIG_IsOK(res2)) {
35758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35759 }
35760 if (!argp2) {
35761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35762 }
35763 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35764 {
35765 PyThreadState* __tstate = wxPyBeginAllowThreads();
35766 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35767 wxPyEndAllowThreads(__tstate);
35768 if (PyErr_Occurred()) SWIG_fail;
35769 }
35770 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35771 return resultobj;
35772 fail:
35773 return NULL;
35774 }
35775
35776
35777 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35778 PyObject *resultobj = 0;
35779 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35780 wxTreeItemId *arg2 = 0 ;
35781 PyObject *result = 0 ;
35782 void *argp1 = 0 ;
35783 int res1 = 0 ;
35784 void *argp2 = 0 ;
35785 int res2 = 0 ;
35786 PyObject * obj0 = 0 ;
35787 PyObject * obj1 = 0 ;
35788 char * kwnames[] = {
35789 (char *) "self",(char *) "item", NULL
35790 };
35791
35792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35794 if (!SWIG_IsOK(res1)) {
35795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35796 }
35797 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35799 if (!SWIG_IsOK(res2)) {
35800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35801 }
35802 if (!argp2) {
35803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35804 }
35805 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35806 {
35807 PyThreadState* __tstate = wxPyBeginAllowThreads();
35808 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35809 wxPyEndAllowThreads(__tstate);
35810 if (PyErr_Occurred()) SWIG_fail;
35811 }
35812 resultobj = result;
35813 return resultobj;
35814 fail:
35815 return NULL;
35816 }
35817
35818
35819 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35820 PyObject *resultobj = 0;
35821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35822 wxTreeItemId *arg2 = 0 ;
35823 void *arg3 = (void *) 0 ;
35824 PyObject *result = 0 ;
35825 void *argp1 = 0 ;
35826 int res1 = 0 ;
35827 void *argp2 = 0 ;
35828 int res2 = 0 ;
35829 int res3 ;
35830 PyObject * obj0 = 0 ;
35831 PyObject * obj1 = 0 ;
35832 PyObject * obj2 = 0 ;
35833 char * kwnames[] = {
35834 (char *) "self",(char *) "item",(char *) "cookie", NULL
35835 };
35836
35837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35839 if (!SWIG_IsOK(res1)) {
35840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35841 }
35842 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35844 if (!SWIG_IsOK(res2)) {
35845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35846 }
35847 if (!argp2) {
35848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35849 }
35850 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35851 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35852 if (!SWIG_IsOK(res3)) {
35853 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35854 }
35855 {
35856 PyThreadState* __tstate = wxPyBeginAllowThreads();
35857 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35858 wxPyEndAllowThreads(__tstate);
35859 if (PyErr_Occurred()) SWIG_fail;
35860 }
35861 resultobj = result;
35862 return resultobj;
35863 fail:
35864 return NULL;
35865 }
35866
35867
35868 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35869 PyObject *resultobj = 0;
35870 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35871 wxTreeItemId *arg2 = 0 ;
35872 wxTreeItemId result;
35873 void *argp1 = 0 ;
35874 int res1 = 0 ;
35875 void *argp2 = 0 ;
35876 int res2 = 0 ;
35877 PyObject * obj0 = 0 ;
35878 PyObject * obj1 = 0 ;
35879 char * kwnames[] = {
35880 (char *) "self",(char *) "item", NULL
35881 };
35882
35883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35885 if (!SWIG_IsOK(res1)) {
35886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35887 }
35888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35890 if (!SWIG_IsOK(res2)) {
35891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35892 }
35893 if (!argp2) {
35894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35895 }
35896 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35897 {
35898 PyThreadState* __tstate = wxPyBeginAllowThreads();
35899 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35900 wxPyEndAllowThreads(__tstate);
35901 if (PyErr_Occurred()) SWIG_fail;
35902 }
35903 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35904 return resultobj;
35905 fail:
35906 return NULL;
35907 }
35908
35909
35910 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35911 PyObject *resultobj = 0;
35912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35913 wxTreeItemId *arg2 = 0 ;
35914 wxTreeItemId result;
35915 void *argp1 = 0 ;
35916 int res1 = 0 ;
35917 void *argp2 = 0 ;
35918 int res2 = 0 ;
35919 PyObject * obj0 = 0 ;
35920 PyObject * obj1 = 0 ;
35921 char * kwnames[] = {
35922 (char *) "self",(char *) "item", NULL
35923 };
35924
35925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35927 if (!SWIG_IsOK(res1)) {
35928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35929 }
35930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35932 if (!SWIG_IsOK(res2)) {
35933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35934 }
35935 if (!argp2) {
35936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35937 }
35938 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35939 {
35940 PyThreadState* __tstate = wxPyBeginAllowThreads();
35941 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35942 wxPyEndAllowThreads(__tstate);
35943 if (PyErr_Occurred()) SWIG_fail;
35944 }
35945 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35946 return resultobj;
35947 fail:
35948 return NULL;
35949 }
35950
35951
35952 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35953 PyObject *resultobj = 0;
35954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35955 wxTreeItemId *arg2 = 0 ;
35956 wxTreeItemId result;
35957 void *argp1 = 0 ;
35958 int res1 = 0 ;
35959 void *argp2 = 0 ;
35960 int res2 = 0 ;
35961 PyObject * obj0 = 0 ;
35962 PyObject * obj1 = 0 ;
35963 char * kwnames[] = {
35964 (char *) "self",(char *) "item", NULL
35965 };
35966
35967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35969 if (!SWIG_IsOK(res1)) {
35970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35971 }
35972 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35974 if (!SWIG_IsOK(res2)) {
35975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35976 }
35977 if (!argp2) {
35978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35979 }
35980 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35981 {
35982 PyThreadState* __tstate = wxPyBeginAllowThreads();
35983 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35984 wxPyEndAllowThreads(__tstate);
35985 if (PyErr_Occurred()) SWIG_fail;
35986 }
35987 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35988 return resultobj;
35989 fail:
35990 return NULL;
35991 }
35992
35993
35994 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35995 PyObject *resultobj = 0;
35996 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35997 wxTreeItemId result;
35998 void *argp1 = 0 ;
35999 int res1 = 0 ;
36000 PyObject *swig_obj[1] ;
36001
36002 if (!args) SWIG_fail;
36003 swig_obj[0] = args;
36004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36005 if (!SWIG_IsOK(res1)) {
36006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36007 }
36008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36009 {
36010 PyThreadState* __tstate = wxPyBeginAllowThreads();
36011 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36012 wxPyEndAllowThreads(__tstate);
36013 if (PyErr_Occurred()) SWIG_fail;
36014 }
36015 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36016 return resultobj;
36017 fail:
36018 return NULL;
36019 }
36020
36021
36022 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36023 PyObject *resultobj = 0;
36024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36025 wxTreeItemId *arg2 = 0 ;
36026 wxTreeItemId result;
36027 void *argp1 = 0 ;
36028 int res1 = 0 ;
36029 void *argp2 = 0 ;
36030 int res2 = 0 ;
36031 PyObject * obj0 = 0 ;
36032 PyObject * obj1 = 0 ;
36033 char * kwnames[] = {
36034 (char *) "self",(char *) "item", NULL
36035 };
36036
36037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36039 if (!SWIG_IsOK(res1)) {
36040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36041 }
36042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36044 if (!SWIG_IsOK(res2)) {
36045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36046 }
36047 if (!argp2) {
36048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36049 }
36050 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36051 {
36052 PyThreadState* __tstate = wxPyBeginAllowThreads();
36053 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36054 wxPyEndAllowThreads(__tstate);
36055 if (PyErr_Occurred()) SWIG_fail;
36056 }
36057 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36058 return resultobj;
36059 fail:
36060 return NULL;
36061 }
36062
36063
36064 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36065 PyObject *resultobj = 0;
36066 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36067 wxTreeItemId *arg2 = 0 ;
36068 wxTreeItemId result;
36069 void *argp1 = 0 ;
36070 int res1 = 0 ;
36071 void *argp2 = 0 ;
36072 int res2 = 0 ;
36073 PyObject * obj0 = 0 ;
36074 PyObject * obj1 = 0 ;
36075 char * kwnames[] = {
36076 (char *) "self",(char *) "item", NULL
36077 };
36078
36079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36081 if (!SWIG_IsOK(res1)) {
36082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36083 }
36084 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36086 if (!SWIG_IsOK(res2)) {
36087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36088 }
36089 if (!argp2) {
36090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36091 }
36092 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36093 {
36094 PyThreadState* __tstate = wxPyBeginAllowThreads();
36095 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36096 wxPyEndAllowThreads(__tstate);
36097 if (PyErr_Occurred()) SWIG_fail;
36098 }
36099 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36100 return resultobj;
36101 fail:
36102 return NULL;
36103 }
36104
36105
36106 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36107 PyObject *resultobj = 0;
36108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36109 wxString *arg2 = 0 ;
36110 int arg3 = (int) -1 ;
36111 int arg4 = (int) -1 ;
36112 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36113 wxTreeItemId result;
36114 void *argp1 = 0 ;
36115 int res1 = 0 ;
36116 bool temp2 = false ;
36117 int val3 ;
36118 int ecode3 = 0 ;
36119 int val4 ;
36120 int ecode4 = 0 ;
36121 int res5 = 0 ;
36122 PyObject * obj0 = 0 ;
36123 PyObject * obj1 = 0 ;
36124 PyObject * obj2 = 0 ;
36125 PyObject * obj3 = 0 ;
36126 PyObject * obj4 = 0 ;
36127 char * kwnames[] = {
36128 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36129 };
36130
36131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36133 if (!SWIG_IsOK(res1)) {
36134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36135 }
36136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36137 {
36138 arg2 = wxString_in_helper(obj1);
36139 if (arg2 == NULL) SWIG_fail;
36140 temp2 = true;
36141 }
36142 if (obj2) {
36143 ecode3 = SWIG_AsVal_int(obj2, &val3);
36144 if (!SWIG_IsOK(ecode3)) {
36145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36146 }
36147 arg3 = static_cast< int >(val3);
36148 }
36149 if (obj3) {
36150 ecode4 = SWIG_AsVal_int(obj3, &val4);
36151 if (!SWIG_IsOK(ecode4)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36153 }
36154 arg4 = static_cast< int >(val4);
36155 }
36156 if (obj4) {
36157 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36158 if (!SWIG_IsOK(res5)) {
36159 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36160 }
36161 }
36162 {
36163 PyThreadState* __tstate = wxPyBeginAllowThreads();
36164 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36165 wxPyEndAllowThreads(__tstate);
36166 if (PyErr_Occurred()) SWIG_fail;
36167 }
36168 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36169 {
36170 if (temp2)
36171 delete arg2;
36172 }
36173 return resultobj;
36174 fail:
36175 {
36176 if (temp2)
36177 delete arg2;
36178 }
36179 return NULL;
36180 }
36181
36182
36183 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj = 0;
36185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36186 wxTreeItemId *arg2 = 0 ;
36187 wxString *arg3 = 0 ;
36188 int arg4 = (int) -1 ;
36189 int arg5 = (int) -1 ;
36190 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36191 wxTreeItemId result;
36192 void *argp1 = 0 ;
36193 int res1 = 0 ;
36194 void *argp2 = 0 ;
36195 int res2 = 0 ;
36196 bool temp3 = false ;
36197 int val4 ;
36198 int ecode4 = 0 ;
36199 int val5 ;
36200 int ecode5 = 0 ;
36201 int res6 = 0 ;
36202 PyObject * obj0 = 0 ;
36203 PyObject * obj1 = 0 ;
36204 PyObject * obj2 = 0 ;
36205 PyObject * obj3 = 0 ;
36206 PyObject * obj4 = 0 ;
36207 PyObject * obj5 = 0 ;
36208 char * kwnames[] = {
36209 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36210 };
36211
36212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36214 if (!SWIG_IsOK(res1)) {
36215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36216 }
36217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36219 if (!SWIG_IsOK(res2)) {
36220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36221 }
36222 if (!argp2) {
36223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36224 }
36225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36226 {
36227 arg3 = wxString_in_helper(obj2);
36228 if (arg3 == NULL) SWIG_fail;
36229 temp3 = true;
36230 }
36231 if (obj3) {
36232 ecode4 = SWIG_AsVal_int(obj3, &val4);
36233 if (!SWIG_IsOK(ecode4)) {
36234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36235 }
36236 arg4 = static_cast< int >(val4);
36237 }
36238 if (obj4) {
36239 ecode5 = SWIG_AsVal_int(obj4, &val5);
36240 if (!SWIG_IsOK(ecode5)) {
36241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36242 }
36243 arg5 = static_cast< int >(val5);
36244 }
36245 if (obj5) {
36246 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36247 if (!SWIG_IsOK(res6)) {
36248 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36249 }
36250 }
36251 {
36252 PyThreadState* __tstate = wxPyBeginAllowThreads();
36253 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36254 wxPyEndAllowThreads(__tstate);
36255 if (PyErr_Occurred()) SWIG_fail;
36256 }
36257 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36258 {
36259 if (temp3)
36260 delete arg3;
36261 }
36262 return resultobj;
36263 fail:
36264 {
36265 if (temp3)
36266 delete arg3;
36267 }
36268 return NULL;
36269 }
36270
36271
36272 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36273 PyObject *resultobj = 0;
36274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36275 wxTreeItemId *arg2 = 0 ;
36276 wxTreeItemId *arg3 = 0 ;
36277 wxString *arg4 = 0 ;
36278 int arg5 = (int) -1 ;
36279 int arg6 = (int) -1 ;
36280 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36281 wxTreeItemId result;
36282 void *argp1 = 0 ;
36283 int res1 = 0 ;
36284 void *argp2 = 0 ;
36285 int res2 = 0 ;
36286 void *argp3 = 0 ;
36287 int res3 = 0 ;
36288 bool temp4 = false ;
36289 int val5 ;
36290 int ecode5 = 0 ;
36291 int val6 ;
36292 int ecode6 = 0 ;
36293 int res7 = 0 ;
36294 PyObject * obj0 = 0 ;
36295 PyObject * obj1 = 0 ;
36296 PyObject * obj2 = 0 ;
36297 PyObject * obj3 = 0 ;
36298 PyObject * obj4 = 0 ;
36299 PyObject * obj5 = 0 ;
36300 PyObject * obj6 = 0 ;
36301 char * kwnames[] = {
36302 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36303 };
36304
36305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36307 if (!SWIG_IsOK(res1)) {
36308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36309 }
36310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36312 if (!SWIG_IsOK(res2)) {
36313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36314 }
36315 if (!argp2) {
36316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36317 }
36318 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36319 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36320 if (!SWIG_IsOK(res3)) {
36321 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36322 }
36323 if (!argp3) {
36324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36325 }
36326 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36327 {
36328 arg4 = wxString_in_helper(obj3);
36329 if (arg4 == NULL) SWIG_fail;
36330 temp4 = true;
36331 }
36332 if (obj4) {
36333 ecode5 = SWIG_AsVal_int(obj4, &val5);
36334 if (!SWIG_IsOK(ecode5)) {
36335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36336 }
36337 arg5 = static_cast< int >(val5);
36338 }
36339 if (obj5) {
36340 ecode6 = SWIG_AsVal_int(obj5, &val6);
36341 if (!SWIG_IsOK(ecode6)) {
36342 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36343 }
36344 arg6 = static_cast< int >(val6);
36345 }
36346 if (obj6) {
36347 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36348 if (!SWIG_IsOK(res7)) {
36349 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36350 }
36351 }
36352 {
36353 PyThreadState* __tstate = wxPyBeginAllowThreads();
36354 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36355 wxPyEndAllowThreads(__tstate);
36356 if (PyErr_Occurred()) SWIG_fail;
36357 }
36358 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36359 {
36360 if (temp4)
36361 delete arg4;
36362 }
36363 return resultobj;
36364 fail:
36365 {
36366 if (temp4)
36367 delete arg4;
36368 }
36369 return NULL;
36370 }
36371
36372
36373 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36374 PyObject *resultobj = 0;
36375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36376 wxTreeItemId *arg2 = 0 ;
36377 size_t arg3 ;
36378 wxString *arg4 = 0 ;
36379 int arg5 = (int) -1 ;
36380 int arg6 = (int) -1 ;
36381 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36382 wxTreeItemId result;
36383 void *argp1 = 0 ;
36384 int res1 = 0 ;
36385 void *argp2 = 0 ;
36386 int res2 = 0 ;
36387 size_t val3 ;
36388 int ecode3 = 0 ;
36389 bool temp4 = false ;
36390 int val5 ;
36391 int ecode5 = 0 ;
36392 int val6 ;
36393 int ecode6 = 0 ;
36394 int res7 = 0 ;
36395 PyObject * obj0 = 0 ;
36396 PyObject * obj1 = 0 ;
36397 PyObject * obj2 = 0 ;
36398 PyObject * obj3 = 0 ;
36399 PyObject * obj4 = 0 ;
36400 PyObject * obj5 = 0 ;
36401 PyObject * obj6 = 0 ;
36402 char * kwnames[] = {
36403 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36404 };
36405
36406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36408 if (!SWIG_IsOK(res1)) {
36409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36410 }
36411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36413 if (!SWIG_IsOK(res2)) {
36414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36415 }
36416 if (!argp2) {
36417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36418 }
36419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36420 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36421 if (!SWIG_IsOK(ecode3)) {
36422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36423 }
36424 arg3 = static_cast< size_t >(val3);
36425 {
36426 arg4 = wxString_in_helper(obj3);
36427 if (arg4 == NULL) SWIG_fail;
36428 temp4 = true;
36429 }
36430 if (obj4) {
36431 ecode5 = SWIG_AsVal_int(obj4, &val5);
36432 if (!SWIG_IsOK(ecode5)) {
36433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36434 }
36435 arg5 = static_cast< int >(val5);
36436 }
36437 if (obj5) {
36438 ecode6 = SWIG_AsVal_int(obj5, &val6);
36439 if (!SWIG_IsOK(ecode6)) {
36440 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36441 }
36442 arg6 = static_cast< int >(val6);
36443 }
36444 if (obj6) {
36445 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36446 if (!SWIG_IsOK(res7)) {
36447 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36448 }
36449 }
36450 {
36451 PyThreadState* __tstate = wxPyBeginAllowThreads();
36452 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36453 wxPyEndAllowThreads(__tstate);
36454 if (PyErr_Occurred()) SWIG_fail;
36455 }
36456 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36457 {
36458 if (temp4)
36459 delete arg4;
36460 }
36461 return resultobj;
36462 fail:
36463 {
36464 if (temp4)
36465 delete arg4;
36466 }
36467 return NULL;
36468 }
36469
36470
36471 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36472 PyObject *resultobj = 0;
36473 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36474 wxTreeItemId *arg2 = 0 ;
36475 wxString *arg3 = 0 ;
36476 int arg4 = (int) -1 ;
36477 int arg5 = (int) -1 ;
36478 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36479 wxTreeItemId result;
36480 void *argp1 = 0 ;
36481 int res1 = 0 ;
36482 void *argp2 = 0 ;
36483 int res2 = 0 ;
36484 bool temp3 = false ;
36485 int val4 ;
36486 int ecode4 = 0 ;
36487 int val5 ;
36488 int ecode5 = 0 ;
36489 int res6 = 0 ;
36490 PyObject * obj0 = 0 ;
36491 PyObject * obj1 = 0 ;
36492 PyObject * obj2 = 0 ;
36493 PyObject * obj3 = 0 ;
36494 PyObject * obj4 = 0 ;
36495 PyObject * obj5 = 0 ;
36496 char * kwnames[] = {
36497 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36498 };
36499
36500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36502 if (!SWIG_IsOK(res1)) {
36503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36504 }
36505 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36507 if (!SWIG_IsOK(res2)) {
36508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36509 }
36510 if (!argp2) {
36511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36512 }
36513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36514 {
36515 arg3 = wxString_in_helper(obj2);
36516 if (arg3 == NULL) SWIG_fail;
36517 temp3 = true;
36518 }
36519 if (obj3) {
36520 ecode4 = SWIG_AsVal_int(obj3, &val4);
36521 if (!SWIG_IsOK(ecode4)) {
36522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36523 }
36524 arg4 = static_cast< int >(val4);
36525 }
36526 if (obj4) {
36527 ecode5 = SWIG_AsVal_int(obj4, &val5);
36528 if (!SWIG_IsOK(ecode5)) {
36529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36530 }
36531 arg5 = static_cast< int >(val5);
36532 }
36533 if (obj5) {
36534 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36535 if (!SWIG_IsOK(res6)) {
36536 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36537 }
36538 }
36539 {
36540 PyThreadState* __tstate = wxPyBeginAllowThreads();
36541 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36542 wxPyEndAllowThreads(__tstate);
36543 if (PyErr_Occurred()) SWIG_fail;
36544 }
36545 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36546 {
36547 if (temp3)
36548 delete arg3;
36549 }
36550 return resultobj;
36551 fail:
36552 {
36553 if (temp3)
36554 delete arg3;
36555 }
36556 return NULL;
36557 }
36558
36559
36560 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36561 PyObject *resultobj = 0;
36562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36563 wxTreeItemId *arg2 = 0 ;
36564 void *argp1 = 0 ;
36565 int res1 = 0 ;
36566 void *argp2 = 0 ;
36567 int res2 = 0 ;
36568 PyObject * obj0 = 0 ;
36569 PyObject * obj1 = 0 ;
36570 char * kwnames[] = {
36571 (char *) "self",(char *) "item", NULL
36572 };
36573
36574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36576 if (!SWIG_IsOK(res1)) {
36577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36578 }
36579 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36581 if (!SWIG_IsOK(res2)) {
36582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36583 }
36584 if (!argp2) {
36585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36586 }
36587 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36588 {
36589 PyThreadState* __tstate = wxPyBeginAllowThreads();
36590 (arg1)->Delete((wxTreeItemId const &)*arg2);
36591 wxPyEndAllowThreads(__tstate);
36592 if (PyErr_Occurred()) SWIG_fail;
36593 }
36594 resultobj = SWIG_Py_Void();
36595 return resultobj;
36596 fail:
36597 return NULL;
36598 }
36599
36600
36601 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36602 PyObject *resultobj = 0;
36603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36604 wxTreeItemId *arg2 = 0 ;
36605 void *argp1 = 0 ;
36606 int res1 = 0 ;
36607 void *argp2 = 0 ;
36608 int res2 = 0 ;
36609 PyObject * obj0 = 0 ;
36610 PyObject * obj1 = 0 ;
36611 char * kwnames[] = {
36612 (char *) "self",(char *) "item", NULL
36613 };
36614
36615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36617 if (!SWIG_IsOK(res1)) {
36618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36619 }
36620 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36622 if (!SWIG_IsOK(res2)) {
36623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36624 }
36625 if (!argp2) {
36626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36627 }
36628 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36629 {
36630 PyThreadState* __tstate = wxPyBeginAllowThreads();
36631 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36632 wxPyEndAllowThreads(__tstate);
36633 if (PyErr_Occurred()) SWIG_fail;
36634 }
36635 resultobj = SWIG_Py_Void();
36636 return resultobj;
36637 fail:
36638 return NULL;
36639 }
36640
36641
36642 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36643 PyObject *resultobj = 0;
36644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36645 void *argp1 = 0 ;
36646 int res1 = 0 ;
36647 PyObject *swig_obj[1] ;
36648
36649 if (!args) SWIG_fail;
36650 swig_obj[0] = args;
36651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36652 if (!SWIG_IsOK(res1)) {
36653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36654 }
36655 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36656 {
36657 PyThreadState* __tstate = wxPyBeginAllowThreads();
36658 (arg1)->DeleteAllItems();
36659 wxPyEndAllowThreads(__tstate);
36660 if (PyErr_Occurred()) SWIG_fail;
36661 }
36662 resultobj = SWIG_Py_Void();
36663 return resultobj;
36664 fail:
36665 return NULL;
36666 }
36667
36668
36669 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36670 PyObject *resultobj = 0;
36671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36672 wxTreeItemId *arg2 = 0 ;
36673 void *argp1 = 0 ;
36674 int res1 = 0 ;
36675 void *argp2 = 0 ;
36676 int res2 = 0 ;
36677 PyObject * obj0 = 0 ;
36678 PyObject * obj1 = 0 ;
36679 char * kwnames[] = {
36680 (char *) "self",(char *) "item", NULL
36681 };
36682
36683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36685 if (!SWIG_IsOK(res1)) {
36686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36687 }
36688 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36690 if (!SWIG_IsOK(res2)) {
36691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36692 }
36693 if (!argp2) {
36694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36695 }
36696 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36697 {
36698 PyThreadState* __tstate = wxPyBeginAllowThreads();
36699 (arg1)->Expand((wxTreeItemId const &)*arg2);
36700 wxPyEndAllowThreads(__tstate);
36701 if (PyErr_Occurred()) SWIG_fail;
36702 }
36703 resultobj = SWIG_Py_Void();
36704 return resultobj;
36705 fail:
36706 return NULL;
36707 }
36708
36709
36710 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36711 PyObject *resultobj = 0;
36712 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36713 wxTreeItemId *arg2 = 0 ;
36714 void *argp1 = 0 ;
36715 int res1 = 0 ;
36716 void *argp2 = 0 ;
36717 int res2 = 0 ;
36718 PyObject * obj0 = 0 ;
36719 PyObject * obj1 = 0 ;
36720 char * kwnames[] = {
36721 (char *) "self",(char *) "item", NULL
36722 };
36723
36724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36726 if (!SWIG_IsOK(res1)) {
36727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36728 }
36729 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36731 if (!SWIG_IsOK(res2)) {
36732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36733 }
36734 if (!argp2) {
36735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36736 }
36737 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36738 {
36739 PyThreadState* __tstate = wxPyBeginAllowThreads();
36740 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36741 wxPyEndAllowThreads(__tstate);
36742 if (PyErr_Occurred()) SWIG_fail;
36743 }
36744 resultobj = SWIG_Py_Void();
36745 return resultobj;
36746 fail:
36747 return NULL;
36748 }
36749
36750
36751 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36752 PyObject *resultobj = 0;
36753 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36754 void *argp1 = 0 ;
36755 int res1 = 0 ;
36756 PyObject *swig_obj[1] ;
36757
36758 if (!args) SWIG_fail;
36759 swig_obj[0] = args;
36760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36761 if (!SWIG_IsOK(res1)) {
36762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36763 }
36764 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36765 {
36766 PyThreadState* __tstate = wxPyBeginAllowThreads();
36767 (arg1)->ExpandAll();
36768 wxPyEndAllowThreads(__tstate);
36769 if (PyErr_Occurred()) SWIG_fail;
36770 }
36771 resultobj = SWIG_Py_Void();
36772 return resultobj;
36773 fail:
36774 return NULL;
36775 }
36776
36777
36778 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36779 PyObject *resultobj = 0;
36780 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36781 wxTreeItemId *arg2 = 0 ;
36782 void *argp1 = 0 ;
36783 int res1 = 0 ;
36784 void *argp2 = 0 ;
36785 int res2 = 0 ;
36786 PyObject * obj0 = 0 ;
36787 PyObject * obj1 = 0 ;
36788 char * kwnames[] = {
36789 (char *) "self",(char *) "item", NULL
36790 };
36791
36792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36794 if (!SWIG_IsOK(res1)) {
36795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36796 }
36797 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36799 if (!SWIG_IsOK(res2)) {
36800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36801 }
36802 if (!argp2) {
36803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36804 }
36805 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36806 {
36807 PyThreadState* __tstate = wxPyBeginAllowThreads();
36808 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36809 wxPyEndAllowThreads(__tstate);
36810 if (PyErr_Occurred()) SWIG_fail;
36811 }
36812 resultobj = SWIG_Py_Void();
36813 return resultobj;
36814 fail:
36815 return NULL;
36816 }
36817
36818
36819 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36820 PyObject *resultobj = 0;
36821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36822 wxTreeItemId *arg2 = 0 ;
36823 void *argp1 = 0 ;
36824 int res1 = 0 ;
36825 void *argp2 = 0 ;
36826 int res2 = 0 ;
36827 PyObject * obj0 = 0 ;
36828 PyObject * obj1 = 0 ;
36829 char * kwnames[] = {
36830 (char *) "self",(char *) "item", NULL
36831 };
36832
36833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36835 if (!SWIG_IsOK(res1)) {
36836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36837 }
36838 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36840 if (!SWIG_IsOK(res2)) {
36841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36842 }
36843 if (!argp2) {
36844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36845 }
36846 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36847 {
36848 PyThreadState* __tstate = wxPyBeginAllowThreads();
36849 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36850 wxPyEndAllowThreads(__tstate);
36851 if (PyErr_Occurred()) SWIG_fail;
36852 }
36853 resultobj = SWIG_Py_Void();
36854 return resultobj;
36855 fail:
36856 return NULL;
36857 }
36858
36859
36860 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36861 PyObject *resultobj = 0;
36862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36863 wxTreeItemId *arg2 = 0 ;
36864 void *argp1 = 0 ;
36865 int res1 = 0 ;
36866 void *argp2 = 0 ;
36867 int res2 = 0 ;
36868 PyObject * obj0 = 0 ;
36869 PyObject * obj1 = 0 ;
36870 char * kwnames[] = {
36871 (char *) "self",(char *) "item", NULL
36872 };
36873
36874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36876 if (!SWIG_IsOK(res1)) {
36877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36878 }
36879 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36881 if (!SWIG_IsOK(res2)) {
36882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36883 }
36884 if (!argp2) {
36885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36886 }
36887 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36888 {
36889 PyThreadState* __tstate = wxPyBeginAllowThreads();
36890 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36891 wxPyEndAllowThreads(__tstate);
36892 if (PyErr_Occurred()) SWIG_fail;
36893 }
36894 resultobj = SWIG_Py_Void();
36895 return resultobj;
36896 fail:
36897 return NULL;
36898 }
36899
36900
36901 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36902 PyObject *resultobj = 0;
36903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36904 void *argp1 = 0 ;
36905 int res1 = 0 ;
36906 PyObject *swig_obj[1] ;
36907
36908 if (!args) SWIG_fail;
36909 swig_obj[0] = args;
36910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36911 if (!SWIG_IsOK(res1)) {
36912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36913 }
36914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36915 {
36916 PyThreadState* __tstate = wxPyBeginAllowThreads();
36917 (arg1)->Unselect();
36918 wxPyEndAllowThreads(__tstate);
36919 if (PyErr_Occurred()) SWIG_fail;
36920 }
36921 resultobj = SWIG_Py_Void();
36922 return resultobj;
36923 fail:
36924 return NULL;
36925 }
36926
36927
36928 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36929 PyObject *resultobj = 0;
36930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36931 wxTreeItemId *arg2 = 0 ;
36932 void *argp1 = 0 ;
36933 int res1 = 0 ;
36934 void *argp2 = 0 ;
36935 int res2 = 0 ;
36936 PyObject * obj0 = 0 ;
36937 PyObject * obj1 = 0 ;
36938 char * kwnames[] = {
36939 (char *) "self",(char *) "item", NULL
36940 };
36941
36942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36944 if (!SWIG_IsOK(res1)) {
36945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36946 }
36947 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36949 if (!SWIG_IsOK(res2)) {
36950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36951 }
36952 if (!argp2) {
36953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36954 }
36955 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36956 {
36957 PyThreadState* __tstate = wxPyBeginAllowThreads();
36958 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36959 wxPyEndAllowThreads(__tstate);
36960 if (PyErr_Occurred()) SWIG_fail;
36961 }
36962 resultobj = SWIG_Py_Void();
36963 return resultobj;
36964 fail:
36965 return NULL;
36966 }
36967
36968
36969 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36970 PyObject *resultobj = 0;
36971 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36972 void *argp1 = 0 ;
36973 int res1 = 0 ;
36974 PyObject *swig_obj[1] ;
36975
36976 if (!args) SWIG_fail;
36977 swig_obj[0] = args;
36978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36979 if (!SWIG_IsOK(res1)) {
36980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36981 }
36982 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36983 {
36984 PyThreadState* __tstate = wxPyBeginAllowThreads();
36985 (arg1)->UnselectAll();
36986 wxPyEndAllowThreads(__tstate);
36987 if (PyErr_Occurred()) SWIG_fail;
36988 }
36989 resultobj = SWIG_Py_Void();
36990 return resultobj;
36991 fail:
36992 return NULL;
36993 }
36994
36995
36996 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36997 PyObject *resultobj = 0;
36998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36999 wxTreeItemId *arg2 = 0 ;
37000 bool arg3 = (bool) true ;
37001 void *argp1 = 0 ;
37002 int res1 = 0 ;
37003 void *argp2 = 0 ;
37004 int res2 = 0 ;
37005 bool val3 ;
37006 int ecode3 = 0 ;
37007 PyObject * obj0 = 0 ;
37008 PyObject * obj1 = 0 ;
37009 PyObject * obj2 = 0 ;
37010 char * kwnames[] = {
37011 (char *) "self",(char *) "item",(char *) "select", NULL
37012 };
37013
37014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37016 if (!SWIG_IsOK(res1)) {
37017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37018 }
37019 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37021 if (!SWIG_IsOK(res2)) {
37022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37023 }
37024 if (!argp2) {
37025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37026 }
37027 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37028 if (obj2) {
37029 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37030 if (!SWIG_IsOK(ecode3)) {
37031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37032 }
37033 arg3 = static_cast< bool >(val3);
37034 }
37035 {
37036 PyThreadState* __tstate = wxPyBeginAllowThreads();
37037 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37038 wxPyEndAllowThreads(__tstate);
37039 if (PyErr_Occurred()) SWIG_fail;
37040 }
37041 resultobj = SWIG_Py_Void();
37042 return resultobj;
37043 fail:
37044 return NULL;
37045 }
37046
37047
37048 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37049 PyObject *resultobj = 0;
37050 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37051 wxTreeItemId *arg2 = 0 ;
37052 void *argp1 = 0 ;
37053 int res1 = 0 ;
37054 void *argp2 = 0 ;
37055 int res2 = 0 ;
37056 PyObject * obj0 = 0 ;
37057 PyObject * obj1 = 0 ;
37058 char * kwnames[] = {
37059 (char *) "self",(char *) "item", NULL
37060 };
37061
37062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37064 if (!SWIG_IsOK(res1)) {
37065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37066 }
37067 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37069 if (!SWIG_IsOK(res2)) {
37070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37071 }
37072 if (!argp2) {
37073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37074 }
37075 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37076 {
37077 PyThreadState* __tstate = wxPyBeginAllowThreads();
37078 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37079 wxPyEndAllowThreads(__tstate);
37080 if (PyErr_Occurred()) SWIG_fail;
37081 }
37082 resultobj = SWIG_Py_Void();
37083 return resultobj;
37084 fail:
37085 return NULL;
37086 }
37087
37088
37089 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37090 PyObject *resultobj = 0;
37091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37092 wxTreeItemId *arg2 = 0 ;
37093 void *argp1 = 0 ;
37094 int res1 = 0 ;
37095 void *argp2 = 0 ;
37096 int res2 = 0 ;
37097 PyObject * obj0 = 0 ;
37098 PyObject * obj1 = 0 ;
37099 char * kwnames[] = {
37100 (char *) "self",(char *) "item", NULL
37101 };
37102
37103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37105 if (!SWIG_IsOK(res1)) {
37106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37107 }
37108 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37110 if (!SWIG_IsOK(res2)) {
37111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37112 }
37113 if (!argp2) {
37114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37115 }
37116 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37117 {
37118 PyThreadState* __tstate = wxPyBeginAllowThreads();
37119 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37120 wxPyEndAllowThreads(__tstate);
37121 if (PyErr_Occurred()) SWIG_fail;
37122 }
37123 resultobj = SWIG_Py_Void();
37124 return resultobj;
37125 fail:
37126 return NULL;
37127 }
37128
37129
37130 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37131 PyObject *resultobj = 0;
37132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37133 wxTreeItemId *arg2 = 0 ;
37134 void *argp1 = 0 ;
37135 int res1 = 0 ;
37136 void *argp2 = 0 ;
37137 int res2 = 0 ;
37138 PyObject * obj0 = 0 ;
37139 PyObject * obj1 = 0 ;
37140 char * kwnames[] = {
37141 (char *) "self",(char *) "item", NULL
37142 };
37143
37144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37146 if (!SWIG_IsOK(res1)) {
37147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37148 }
37149 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37151 if (!SWIG_IsOK(res2)) {
37152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37153 }
37154 if (!argp2) {
37155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37156 }
37157 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37158 {
37159 PyThreadState* __tstate = wxPyBeginAllowThreads();
37160 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37161 wxPyEndAllowThreads(__tstate);
37162 if (PyErr_Occurred()) SWIG_fail;
37163 }
37164 resultobj = SWIG_Py_Void();
37165 return resultobj;
37166 fail:
37167 return NULL;
37168 }
37169
37170
37171 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37172 PyObject *resultobj = 0;
37173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37174 wxTreeItemId *arg2 = 0 ;
37175 void *argp1 = 0 ;
37176 int res1 = 0 ;
37177 void *argp2 = 0 ;
37178 int res2 = 0 ;
37179 PyObject * obj0 = 0 ;
37180 PyObject * obj1 = 0 ;
37181 char * kwnames[] = {
37182 (char *) "self",(char *) "item", NULL
37183 };
37184
37185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37187 if (!SWIG_IsOK(res1)) {
37188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37189 }
37190 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37192 if (!SWIG_IsOK(res2)) {
37193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37194 }
37195 if (!argp2) {
37196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37197 }
37198 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37199 {
37200 PyThreadState* __tstate = wxPyBeginAllowThreads();
37201 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37202 wxPyEndAllowThreads(__tstate);
37203 if (PyErr_Occurred()) SWIG_fail;
37204 }
37205 resultobj = SWIG_Py_Void();
37206 return resultobj;
37207 fail:
37208 return NULL;
37209 }
37210
37211
37212 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37213 PyObject *resultobj = 0;
37214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37215 wxTextCtrl *result = 0 ;
37216 void *argp1 = 0 ;
37217 int res1 = 0 ;
37218 PyObject *swig_obj[1] ;
37219
37220 if (!args) SWIG_fail;
37221 swig_obj[0] = args;
37222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37223 if (!SWIG_IsOK(res1)) {
37224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37225 }
37226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37227 {
37228 PyThreadState* __tstate = wxPyBeginAllowThreads();
37229 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37230 wxPyEndAllowThreads(__tstate);
37231 if (PyErr_Occurred()) SWIG_fail;
37232 }
37233 {
37234 resultobj = wxPyMake_wxObject(result, 0);
37235 }
37236 return resultobj;
37237 fail:
37238 return NULL;
37239 }
37240
37241
37242 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37243 PyObject *resultobj = 0;
37244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37245 wxTreeItemId *arg2 = 0 ;
37246 bool arg3 = (bool) false ;
37247 void *argp1 = 0 ;
37248 int res1 = 0 ;
37249 void *argp2 = 0 ;
37250 int res2 = 0 ;
37251 bool val3 ;
37252 int ecode3 = 0 ;
37253 PyObject * obj0 = 0 ;
37254 PyObject * obj1 = 0 ;
37255 PyObject * obj2 = 0 ;
37256 char * kwnames[] = {
37257 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37258 };
37259
37260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37262 if (!SWIG_IsOK(res1)) {
37263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37264 }
37265 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37267 if (!SWIG_IsOK(res2)) {
37268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37269 }
37270 if (!argp2) {
37271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37272 }
37273 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37274 if (obj2) {
37275 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37276 if (!SWIG_IsOK(ecode3)) {
37277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37278 }
37279 arg3 = static_cast< bool >(val3);
37280 }
37281 {
37282 PyThreadState* __tstate = wxPyBeginAllowThreads();
37283 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37284 wxPyEndAllowThreads(__tstate);
37285 if (PyErr_Occurred()) SWIG_fail;
37286 }
37287 resultobj = SWIG_Py_Void();
37288 return resultobj;
37289 fail:
37290 return NULL;
37291 }
37292
37293
37294 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37295 PyObject *resultobj = 0;
37296 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37297 wxTreeItemId *arg2 = 0 ;
37298 void *argp1 = 0 ;
37299 int res1 = 0 ;
37300 void *argp2 = 0 ;
37301 int res2 = 0 ;
37302 PyObject * obj0 = 0 ;
37303 PyObject * obj1 = 0 ;
37304 char * kwnames[] = {
37305 (char *) "self",(char *) "item", NULL
37306 };
37307
37308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37310 if (!SWIG_IsOK(res1)) {
37311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37312 }
37313 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37315 if (!SWIG_IsOK(res2)) {
37316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37317 }
37318 if (!argp2) {
37319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37320 }
37321 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37322 {
37323 PyThreadState* __tstate = wxPyBeginAllowThreads();
37324 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37325 wxPyEndAllowThreads(__tstate);
37326 if (PyErr_Occurred()) SWIG_fail;
37327 }
37328 resultobj = SWIG_Py_Void();
37329 return resultobj;
37330 fail:
37331 return NULL;
37332 }
37333
37334
37335 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37336 PyObject *resultobj = 0;
37337 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37338 wxPoint *arg2 = 0 ;
37339 int *arg3 = 0 ;
37340 wxTreeItemId result;
37341 void *argp1 = 0 ;
37342 int res1 = 0 ;
37343 wxPoint temp2 ;
37344 int temp3 ;
37345 int res3 = SWIG_TMPOBJ ;
37346 PyObject * obj0 = 0 ;
37347 PyObject * obj1 = 0 ;
37348 char * kwnames[] = {
37349 (char *) "self",(char *) "point", NULL
37350 };
37351
37352 arg3 = &temp3;
37353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37355 if (!SWIG_IsOK(res1)) {
37356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37357 }
37358 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37359 {
37360 arg2 = &temp2;
37361 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37362 }
37363 {
37364 PyThreadState* __tstate = wxPyBeginAllowThreads();
37365 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37366 wxPyEndAllowThreads(__tstate);
37367 if (PyErr_Occurred()) SWIG_fail;
37368 }
37369 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37370 if (SWIG_IsTmpObj(res3)) {
37371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37372 } else {
37373 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37375 }
37376 return resultobj;
37377 fail:
37378 return NULL;
37379 }
37380
37381
37382 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37383 PyObject *resultobj = 0;
37384 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37385 wxTreeItemId *arg2 = 0 ;
37386 bool arg3 = (bool) false ;
37387 PyObject *result = 0 ;
37388 void *argp1 = 0 ;
37389 int res1 = 0 ;
37390 void *argp2 = 0 ;
37391 int res2 = 0 ;
37392 bool val3 ;
37393 int ecode3 = 0 ;
37394 PyObject * obj0 = 0 ;
37395 PyObject * obj1 = 0 ;
37396 PyObject * obj2 = 0 ;
37397 char * kwnames[] = {
37398 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37399 };
37400
37401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37403 if (!SWIG_IsOK(res1)) {
37404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37405 }
37406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37408 if (!SWIG_IsOK(res2)) {
37409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37410 }
37411 if (!argp2) {
37412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37413 }
37414 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37415 if (obj2) {
37416 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37417 if (!SWIG_IsOK(ecode3)) {
37418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37419 }
37420 arg3 = static_cast< bool >(val3);
37421 }
37422 {
37423 PyThreadState* __tstate = wxPyBeginAllowThreads();
37424 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37425 wxPyEndAllowThreads(__tstate);
37426 if (PyErr_Occurred()) SWIG_fail;
37427 }
37428 resultobj = result;
37429 return resultobj;
37430 fail:
37431 return NULL;
37432 }
37433
37434
37435 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37436 PyObject *resultobj = 0;
37437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37438 wxTreeItemId *arg2 = 0 ;
37439 int arg3 ;
37440 void *argp1 = 0 ;
37441 int res1 = 0 ;
37442 void *argp2 = 0 ;
37443 int res2 = 0 ;
37444 int val3 ;
37445 int ecode3 = 0 ;
37446 PyObject * obj0 = 0 ;
37447 PyObject * obj1 = 0 ;
37448 PyObject * obj2 = 0 ;
37449 char * kwnames[] = {
37450 (char *) "self",(char *) "node",(char *) "state", NULL
37451 };
37452
37453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37455 if (!SWIG_IsOK(res1)) {
37456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37457 }
37458 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37460 if (!SWIG_IsOK(res2)) {
37461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37462 }
37463 if (!argp2) {
37464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37465 }
37466 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37467 ecode3 = SWIG_AsVal_int(obj2, &val3);
37468 if (!SWIG_IsOK(ecode3)) {
37469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37470 }
37471 arg3 = static_cast< int >(val3);
37472 {
37473 PyThreadState* __tstate = wxPyBeginAllowThreads();
37474 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37475 wxPyEndAllowThreads(__tstate);
37476 if (PyErr_Occurred()) SWIG_fail;
37477 }
37478 resultobj = SWIG_Py_Void();
37479 return resultobj;
37480 fail:
37481 return NULL;
37482 }
37483
37484
37485 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37486 PyObject *resultobj = 0;
37487 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37488 wxTreeItemId *arg2 = 0 ;
37489 int result;
37490 void *argp1 = 0 ;
37491 int res1 = 0 ;
37492 void *argp2 = 0 ;
37493 int res2 = 0 ;
37494 PyObject * obj0 = 0 ;
37495 PyObject * obj1 = 0 ;
37496 char * kwnames[] = {
37497 (char *) "self",(char *) "node", NULL
37498 };
37499
37500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37502 if (!SWIG_IsOK(res1)) {
37503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37504 }
37505 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37507 if (!SWIG_IsOK(res2)) {
37508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37509 }
37510 if (!argp2) {
37511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37512 }
37513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37514 {
37515 PyThreadState* __tstate = wxPyBeginAllowThreads();
37516 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37517 wxPyEndAllowThreads(__tstate);
37518 if (PyErr_Occurred()) SWIG_fail;
37519 }
37520 resultobj = SWIG_From_int(static_cast< int >(result));
37521 return resultobj;
37522 fail:
37523 return NULL;
37524 }
37525
37526
37527 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37528 PyObject *resultobj = 0;
37529 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37530 SwigValueWrapper<wxVisualAttributes > result;
37531 int val1 ;
37532 int ecode1 = 0 ;
37533 PyObject * obj0 = 0 ;
37534 char * kwnames[] = {
37535 (char *) "variant", NULL
37536 };
37537
37538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37539 if (obj0) {
37540 ecode1 = SWIG_AsVal_int(obj0, &val1);
37541 if (!SWIG_IsOK(ecode1)) {
37542 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37543 }
37544 arg1 = static_cast< wxWindowVariant >(val1);
37545 }
37546 {
37547 if (!wxPyCheckForApp()) SWIG_fail;
37548 PyThreadState* __tstate = wxPyBeginAllowThreads();
37549 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37550 wxPyEndAllowThreads(__tstate);
37551 if (PyErr_Occurred()) SWIG_fail;
37552 }
37553 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37554 return resultobj;
37555 fail:
37556 return NULL;
37557 }
37558
37559
37560 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37561 PyObject *resultobj = 0;
37562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37563 bool arg2 ;
37564 void *argp1 = 0 ;
37565 int res1 = 0 ;
37566 bool val2 ;
37567 int ecode2 = 0 ;
37568 PyObject * obj0 = 0 ;
37569 PyObject * obj1 = 0 ;
37570 char * kwnames[] = {
37571 (char *) "self",(char *) "q", NULL
37572 };
37573
37574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37576 if (!SWIG_IsOK(res1)) {
37577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37578 }
37579 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37580 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37581 if (!SWIG_IsOK(ecode2)) {
37582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37583 }
37584 arg2 = static_cast< bool >(val2);
37585 {
37586 PyThreadState* __tstate = wxPyBeginAllowThreads();
37587 (arg1)->SetQuickBestSize(arg2);
37588 wxPyEndAllowThreads(__tstate);
37589 if (PyErr_Occurred()) SWIG_fail;
37590 }
37591 resultobj = SWIG_Py_Void();
37592 return resultobj;
37593 fail:
37594 return NULL;
37595 }
37596
37597
37598 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37599 PyObject *resultobj = 0;
37600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37601 bool result;
37602 void *argp1 = 0 ;
37603 int res1 = 0 ;
37604 PyObject *swig_obj[1] ;
37605
37606 if (!args) SWIG_fail;
37607 swig_obj[0] = args;
37608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37609 if (!SWIG_IsOK(res1)) {
37610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37611 }
37612 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37613 {
37614 PyThreadState* __tstate = wxPyBeginAllowThreads();
37615 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37616 wxPyEndAllowThreads(__tstate);
37617 if (PyErr_Occurred()) SWIG_fail;
37618 }
37619 {
37620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37621 }
37622 return resultobj;
37623 fail:
37624 return NULL;
37625 }
37626
37627
37628 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37629 PyObject *obj;
37630 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37631 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37632 return SWIG_Py_Void();
37633 }
37634
37635 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37636 return SWIG_Python_InitShadowInstance(args);
37637 }
37638
37639 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37640 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37641 return 1;
37642 }
37643
37644
37645 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37646 PyObject *pyobj = 0;
37647
37648 {
37649 #if wxUSE_UNICODE
37650 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37651 #else
37652 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37653 #endif
37654 }
37655 return pyobj;
37656 }
37657
37658
37659 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37660 PyObject *resultobj = 0;
37661 wxWindow *arg1 = (wxWindow *) 0 ;
37662 int arg2 = (int) (int)-1 ;
37663 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37664 wxString *arg3 = (wxString *) &arg3_defvalue ;
37665 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37666 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37667 wxSize const &arg5_defvalue = wxDefaultSize ;
37668 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37669 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37670 wxString const &arg7_defvalue = wxPyEmptyString ;
37671 wxString *arg7 = (wxString *) &arg7_defvalue ;
37672 int arg8 = (int) 0 ;
37673 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37674 wxString *arg9 = (wxString *) &arg9_defvalue ;
37675 wxGenericDirCtrl *result = 0 ;
37676 void *argp1 = 0 ;
37677 int res1 = 0 ;
37678 int val2 ;
37679 int ecode2 = 0 ;
37680 bool temp3 = false ;
37681 wxPoint temp4 ;
37682 wxSize temp5 ;
37683 long val6 ;
37684 int ecode6 = 0 ;
37685 bool temp7 = false ;
37686 int val8 ;
37687 int ecode8 = 0 ;
37688 bool temp9 = false ;
37689 PyObject * obj0 = 0 ;
37690 PyObject * obj1 = 0 ;
37691 PyObject * obj2 = 0 ;
37692 PyObject * obj3 = 0 ;
37693 PyObject * obj4 = 0 ;
37694 PyObject * obj5 = 0 ;
37695 PyObject * obj6 = 0 ;
37696 PyObject * obj7 = 0 ;
37697 PyObject * obj8 = 0 ;
37698 char * kwnames[] = {
37699 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37700 };
37701
37702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37704 if (!SWIG_IsOK(res1)) {
37705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37706 }
37707 arg1 = reinterpret_cast< wxWindow * >(argp1);
37708 if (obj1) {
37709 ecode2 = SWIG_AsVal_int(obj1, &val2);
37710 if (!SWIG_IsOK(ecode2)) {
37711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37712 }
37713 arg2 = static_cast< int >(val2);
37714 }
37715 if (obj2) {
37716 {
37717 arg3 = wxString_in_helper(obj2);
37718 if (arg3 == NULL) SWIG_fail;
37719 temp3 = true;
37720 }
37721 }
37722 if (obj3) {
37723 {
37724 arg4 = &temp4;
37725 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37726 }
37727 }
37728 if (obj4) {
37729 {
37730 arg5 = &temp5;
37731 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37732 }
37733 }
37734 if (obj5) {
37735 ecode6 = SWIG_AsVal_long(obj5, &val6);
37736 if (!SWIG_IsOK(ecode6)) {
37737 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37738 }
37739 arg6 = static_cast< long >(val6);
37740 }
37741 if (obj6) {
37742 {
37743 arg7 = wxString_in_helper(obj6);
37744 if (arg7 == NULL) SWIG_fail;
37745 temp7 = true;
37746 }
37747 }
37748 if (obj7) {
37749 ecode8 = SWIG_AsVal_int(obj7, &val8);
37750 if (!SWIG_IsOK(ecode8)) {
37751 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37752 }
37753 arg8 = static_cast< int >(val8);
37754 }
37755 if (obj8) {
37756 {
37757 arg9 = wxString_in_helper(obj8);
37758 if (arg9 == NULL) SWIG_fail;
37759 temp9 = true;
37760 }
37761 }
37762 {
37763 if (!wxPyCheckForApp()) SWIG_fail;
37764 PyThreadState* __tstate = wxPyBeginAllowThreads();
37765 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37766 wxPyEndAllowThreads(__tstate);
37767 if (PyErr_Occurred()) SWIG_fail;
37768 }
37769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37770 {
37771 if (temp3)
37772 delete arg3;
37773 }
37774 {
37775 if (temp7)
37776 delete arg7;
37777 }
37778 {
37779 if (temp9)
37780 delete arg9;
37781 }
37782 return resultobj;
37783 fail:
37784 {
37785 if (temp3)
37786 delete arg3;
37787 }
37788 {
37789 if (temp7)
37790 delete arg7;
37791 }
37792 {
37793 if (temp9)
37794 delete arg9;
37795 }
37796 return NULL;
37797 }
37798
37799
37800 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37801 PyObject *resultobj = 0;
37802 wxGenericDirCtrl *result = 0 ;
37803
37804 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37805 {
37806 if (!wxPyCheckForApp()) SWIG_fail;
37807 PyThreadState* __tstate = wxPyBeginAllowThreads();
37808 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37809 wxPyEndAllowThreads(__tstate);
37810 if (PyErr_Occurred()) SWIG_fail;
37811 }
37812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37813 return resultobj;
37814 fail:
37815 return NULL;
37816 }
37817
37818
37819 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37820 PyObject *resultobj = 0;
37821 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37822 wxWindow *arg2 = (wxWindow *) 0 ;
37823 int arg3 = (int) (int)-1 ;
37824 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37825 wxString *arg4 = (wxString *) &arg4_defvalue ;
37826 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37827 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37828 wxSize const &arg6_defvalue = wxDefaultSize ;
37829 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37830 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37831 wxString const &arg8_defvalue = wxPyEmptyString ;
37832 wxString *arg8 = (wxString *) &arg8_defvalue ;
37833 int arg9 = (int) 0 ;
37834 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37835 wxString *arg10 = (wxString *) &arg10_defvalue ;
37836 bool result;
37837 void *argp1 = 0 ;
37838 int res1 = 0 ;
37839 void *argp2 = 0 ;
37840 int res2 = 0 ;
37841 int val3 ;
37842 int ecode3 = 0 ;
37843 bool temp4 = false ;
37844 wxPoint temp5 ;
37845 wxSize temp6 ;
37846 long val7 ;
37847 int ecode7 = 0 ;
37848 bool temp8 = false ;
37849 int val9 ;
37850 int ecode9 = 0 ;
37851 bool temp10 = false ;
37852 PyObject * obj0 = 0 ;
37853 PyObject * obj1 = 0 ;
37854 PyObject * obj2 = 0 ;
37855 PyObject * obj3 = 0 ;
37856 PyObject * obj4 = 0 ;
37857 PyObject * obj5 = 0 ;
37858 PyObject * obj6 = 0 ;
37859 PyObject * obj7 = 0 ;
37860 PyObject * obj8 = 0 ;
37861 PyObject * obj9 = 0 ;
37862 char * kwnames[] = {
37863 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37864 };
37865
37866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37868 if (!SWIG_IsOK(res1)) {
37869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37870 }
37871 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37873 if (!SWIG_IsOK(res2)) {
37874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37875 }
37876 arg2 = reinterpret_cast< wxWindow * >(argp2);
37877 if (obj2) {
37878 ecode3 = SWIG_AsVal_int(obj2, &val3);
37879 if (!SWIG_IsOK(ecode3)) {
37880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37881 }
37882 arg3 = static_cast< int >(val3);
37883 }
37884 if (obj3) {
37885 {
37886 arg4 = wxString_in_helper(obj3);
37887 if (arg4 == NULL) SWIG_fail;
37888 temp4 = true;
37889 }
37890 }
37891 if (obj4) {
37892 {
37893 arg5 = &temp5;
37894 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37895 }
37896 }
37897 if (obj5) {
37898 {
37899 arg6 = &temp6;
37900 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37901 }
37902 }
37903 if (obj6) {
37904 ecode7 = SWIG_AsVal_long(obj6, &val7);
37905 if (!SWIG_IsOK(ecode7)) {
37906 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37907 }
37908 arg7 = static_cast< long >(val7);
37909 }
37910 if (obj7) {
37911 {
37912 arg8 = wxString_in_helper(obj7);
37913 if (arg8 == NULL) SWIG_fail;
37914 temp8 = true;
37915 }
37916 }
37917 if (obj8) {
37918 ecode9 = SWIG_AsVal_int(obj8, &val9);
37919 if (!SWIG_IsOK(ecode9)) {
37920 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37921 }
37922 arg9 = static_cast< int >(val9);
37923 }
37924 if (obj9) {
37925 {
37926 arg10 = wxString_in_helper(obj9);
37927 if (arg10 == NULL) SWIG_fail;
37928 temp10 = true;
37929 }
37930 }
37931 {
37932 PyThreadState* __tstate = wxPyBeginAllowThreads();
37933 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37934 wxPyEndAllowThreads(__tstate);
37935 if (PyErr_Occurred()) SWIG_fail;
37936 }
37937 {
37938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37939 }
37940 {
37941 if (temp4)
37942 delete arg4;
37943 }
37944 {
37945 if (temp8)
37946 delete arg8;
37947 }
37948 {
37949 if (temp10)
37950 delete arg10;
37951 }
37952 return resultobj;
37953 fail:
37954 {
37955 if (temp4)
37956 delete arg4;
37957 }
37958 {
37959 if (temp8)
37960 delete arg8;
37961 }
37962 {
37963 if (temp10)
37964 delete arg10;
37965 }
37966 return NULL;
37967 }
37968
37969
37970 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37971 PyObject *resultobj = 0;
37972 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37973 wxString *arg2 = 0 ;
37974 bool result;
37975 void *argp1 = 0 ;
37976 int res1 = 0 ;
37977 bool temp2 = false ;
37978 PyObject * obj0 = 0 ;
37979 PyObject * obj1 = 0 ;
37980 char * kwnames[] = {
37981 (char *) "self",(char *) "path", NULL
37982 };
37983
37984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37986 if (!SWIG_IsOK(res1)) {
37987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37988 }
37989 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37990 {
37991 arg2 = wxString_in_helper(obj1);
37992 if (arg2 == NULL) SWIG_fail;
37993 temp2 = true;
37994 }
37995 {
37996 PyThreadState* __tstate = wxPyBeginAllowThreads();
37997 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37998 wxPyEndAllowThreads(__tstate);
37999 if (PyErr_Occurred()) SWIG_fail;
38000 }
38001 {
38002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38003 }
38004 {
38005 if (temp2)
38006 delete arg2;
38007 }
38008 return resultobj;
38009 fail:
38010 {
38011 if (temp2)
38012 delete arg2;
38013 }
38014 return NULL;
38015 }
38016
38017
38018 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38019 PyObject *resultobj = 0;
38020 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38021 wxString *arg2 = 0 ;
38022 bool result;
38023 void *argp1 = 0 ;
38024 int res1 = 0 ;
38025 bool temp2 = false ;
38026 PyObject * obj0 = 0 ;
38027 PyObject * obj1 = 0 ;
38028 char * kwnames[] = {
38029 (char *) "self",(char *) "path", NULL
38030 };
38031
38032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38034 if (!SWIG_IsOK(res1)) {
38035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38036 }
38037 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38038 {
38039 arg2 = wxString_in_helper(obj1);
38040 if (arg2 == NULL) SWIG_fail;
38041 temp2 = true;
38042 }
38043 {
38044 PyThreadState* __tstate = wxPyBeginAllowThreads();
38045 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38046 wxPyEndAllowThreads(__tstate);
38047 if (PyErr_Occurred()) SWIG_fail;
38048 }
38049 {
38050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38051 }
38052 {
38053 if (temp2)
38054 delete arg2;
38055 }
38056 return resultobj;
38057 fail:
38058 {
38059 if (temp2)
38060 delete arg2;
38061 }
38062 return NULL;
38063 }
38064
38065
38066 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38067 PyObject *resultobj = 0;
38068 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38069 wxString result;
38070 void *argp1 = 0 ;
38071 int res1 = 0 ;
38072 PyObject *swig_obj[1] ;
38073
38074 if (!args) SWIG_fail;
38075 swig_obj[0] = args;
38076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38077 if (!SWIG_IsOK(res1)) {
38078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38079 }
38080 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38081 {
38082 PyThreadState* __tstate = wxPyBeginAllowThreads();
38083 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38084 wxPyEndAllowThreads(__tstate);
38085 if (PyErr_Occurred()) SWIG_fail;
38086 }
38087 {
38088 #if wxUSE_UNICODE
38089 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38090 #else
38091 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38092 #endif
38093 }
38094 return resultobj;
38095 fail:
38096 return NULL;
38097 }
38098
38099
38100 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38101 PyObject *resultobj = 0;
38102 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38103 wxString *arg2 = 0 ;
38104 void *argp1 = 0 ;
38105 int res1 = 0 ;
38106 bool temp2 = false ;
38107 PyObject * obj0 = 0 ;
38108 PyObject * obj1 = 0 ;
38109 char * kwnames[] = {
38110 (char *) "self",(char *) "path", NULL
38111 };
38112
38113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38115 if (!SWIG_IsOK(res1)) {
38116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38117 }
38118 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38119 {
38120 arg2 = wxString_in_helper(obj1);
38121 if (arg2 == NULL) SWIG_fail;
38122 temp2 = true;
38123 }
38124 {
38125 PyThreadState* __tstate = wxPyBeginAllowThreads();
38126 (arg1)->SetDefaultPath((wxString const &)*arg2);
38127 wxPyEndAllowThreads(__tstate);
38128 if (PyErr_Occurred()) SWIG_fail;
38129 }
38130 resultobj = SWIG_Py_Void();
38131 {
38132 if (temp2)
38133 delete arg2;
38134 }
38135 return resultobj;
38136 fail:
38137 {
38138 if (temp2)
38139 delete arg2;
38140 }
38141 return NULL;
38142 }
38143
38144
38145 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38146 PyObject *resultobj = 0;
38147 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38148 wxString result;
38149 void *argp1 = 0 ;
38150 int res1 = 0 ;
38151 PyObject *swig_obj[1] ;
38152
38153 if (!args) SWIG_fail;
38154 swig_obj[0] = args;
38155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38156 if (!SWIG_IsOK(res1)) {
38157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38158 }
38159 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38160 {
38161 PyThreadState* __tstate = wxPyBeginAllowThreads();
38162 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38163 wxPyEndAllowThreads(__tstate);
38164 if (PyErr_Occurred()) SWIG_fail;
38165 }
38166 {
38167 #if wxUSE_UNICODE
38168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38169 #else
38170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38171 #endif
38172 }
38173 return resultobj;
38174 fail:
38175 return NULL;
38176 }
38177
38178
38179 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38180 PyObject *resultobj = 0;
38181 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38182 wxString result;
38183 void *argp1 = 0 ;
38184 int res1 = 0 ;
38185 PyObject *swig_obj[1] ;
38186
38187 if (!args) SWIG_fail;
38188 swig_obj[0] = args;
38189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38190 if (!SWIG_IsOK(res1)) {
38191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38192 }
38193 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38194 {
38195 PyThreadState* __tstate = wxPyBeginAllowThreads();
38196 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38197 wxPyEndAllowThreads(__tstate);
38198 if (PyErr_Occurred()) SWIG_fail;
38199 }
38200 {
38201 #if wxUSE_UNICODE
38202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38203 #else
38204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38205 #endif
38206 }
38207 return resultobj;
38208 fail:
38209 return NULL;
38210 }
38211
38212
38213 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38214 PyObject *resultobj = 0;
38215 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38216 wxString *arg2 = 0 ;
38217 void *argp1 = 0 ;
38218 int res1 = 0 ;
38219 bool temp2 = false ;
38220 PyObject * obj0 = 0 ;
38221 PyObject * obj1 = 0 ;
38222 char * kwnames[] = {
38223 (char *) "self",(char *) "path", NULL
38224 };
38225
38226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38228 if (!SWIG_IsOK(res1)) {
38229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38230 }
38231 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38232 {
38233 arg2 = wxString_in_helper(obj1);
38234 if (arg2 == NULL) SWIG_fail;
38235 temp2 = true;
38236 }
38237 {
38238 PyThreadState* __tstate = wxPyBeginAllowThreads();
38239 (arg1)->SetPath((wxString const &)*arg2);
38240 wxPyEndAllowThreads(__tstate);
38241 if (PyErr_Occurred()) SWIG_fail;
38242 }
38243 resultobj = SWIG_Py_Void();
38244 {
38245 if (temp2)
38246 delete arg2;
38247 }
38248 return resultobj;
38249 fail:
38250 {
38251 if (temp2)
38252 delete arg2;
38253 }
38254 return NULL;
38255 }
38256
38257
38258 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38259 PyObject *resultobj = 0;
38260 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38261 bool arg2 ;
38262 void *argp1 = 0 ;
38263 int res1 = 0 ;
38264 bool val2 ;
38265 int ecode2 = 0 ;
38266 PyObject * obj0 = 0 ;
38267 PyObject * obj1 = 0 ;
38268 char * kwnames[] = {
38269 (char *) "self",(char *) "show", NULL
38270 };
38271
38272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38274 if (!SWIG_IsOK(res1)) {
38275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38276 }
38277 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38278 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38279 if (!SWIG_IsOK(ecode2)) {
38280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38281 }
38282 arg2 = static_cast< bool >(val2);
38283 {
38284 PyThreadState* __tstate = wxPyBeginAllowThreads();
38285 (arg1)->ShowHidden(arg2);
38286 wxPyEndAllowThreads(__tstate);
38287 if (PyErr_Occurred()) SWIG_fail;
38288 }
38289 resultobj = SWIG_Py_Void();
38290 return resultobj;
38291 fail:
38292 return NULL;
38293 }
38294
38295
38296 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38297 PyObject *resultobj = 0;
38298 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38299 bool result;
38300 void *argp1 = 0 ;
38301 int res1 = 0 ;
38302 PyObject *swig_obj[1] ;
38303
38304 if (!args) SWIG_fail;
38305 swig_obj[0] = args;
38306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38307 if (!SWIG_IsOK(res1)) {
38308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38309 }
38310 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38311 {
38312 PyThreadState* __tstate = wxPyBeginAllowThreads();
38313 result = (bool)(arg1)->GetShowHidden();
38314 wxPyEndAllowThreads(__tstate);
38315 if (PyErr_Occurred()) SWIG_fail;
38316 }
38317 {
38318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38319 }
38320 return resultobj;
38321 fail:
38322 return NULL;
38323 }
38324
38325
38326 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38327 PyObject *resultobj = 0;
38328 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38329 wxString result;
38330 void *argp1 = 0 ;
38331 int res1 = 0 ;
38332 PyObject *swig_obj[1] ;
38333
38334 if (!args) SWIG_fail;
38335 swig_obj[0] = args;
38336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38337 if (!SWIG_IsOK(res1)) {
38338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38339 }
38340 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38341 {
38342 PyThreadState* __tstate = wxPyBeginAllowThreads();
38343 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38344 wxPyEndAllowThreads(__tstate);
38345 if (PyErr_Occurred()) SWIG_fail;
38346 }
38347 {
38348 #if wxUSE_UNICODE
38349 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38350 #else
38351 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38352 #endif
38353 }
38354 return resultobj;
38355 fail:
38356 return NULL;
38357 }
38358
38359
38360 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38361 PyObject *resultobj = 0;
38362 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38363 wxString *arg2 = 0 ;
38364 void *argp1 = 0 ;
38365 int res1 = 0 ;
38366 bool temp2 = false ;
38367 PyObject * obj0 = 0 ;
38368 PyObject * obj1 = 0 ;
38369 char * kwnames[] = {
38370 (char *) "self",(char *) "filter", NULL
38371 };
38372
38373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38375 if (!SWIG_IsOK(res1)) {
38376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38377 }
38378 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38379 {
38380 arg2 = wxString_in_helper(obj1);
38381 if (arg2 == NULL) SWIG_fail;
38382 temp2 = true;
38383 }
38384 {
38385 PyThreadState* __tstate = wxPyBeginAllowThreads();
38386 (arg1)->SetFilter((wxString const &)*arg2);
38387 wxPyEndAllowThreads(__tstate);
38388 if (PyErr_Occurred()) SWIG_fail;
38389 }
38390 resultobj = SWIG_Py_Void();
38391 {
38392 if (temp2)
38393 delete arg2;
38394 }
38395 return resultobj;
38396 fail:
38397 {
38398 if (temp2)
38399 delete arg2;
38400 }
38401 return NULL;
38402 }
38403
38404
38405 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38406 PyObject *resultobj = 0;
38407 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38408 int result;
38409 void *argp1 = 0 ;
38410 int res1 = 0 ;
38411 PyObject *swig_obj[1] ;
38412
38413 if (!args) SWIG_fail;
38414 swig_obj[0] = args;
38415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38416 if (!SWIG_IsOK(res1)) {
38417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38418 }
38419 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38420 {
38421 PyThreadState* __tstate = wxPyBeginAllowThreads();
38422 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38423 wxPyEndAllowThreads(__tstate);
38424 if (PyErr_Occurred()) SWIG_fail;
38425 }
38426 resultobj = SWIG_From_int(static_cast< int >(result));
38427 return resultobj;
38428 fail:
38429 return NULL;
38430 }
38431
38432
38433 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38434 PyObject *resultobj = 0;
38435 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38436 int arg2 ;
38437 void *argp1 = 0 ;
38438 int res1 = 0 ;
38439 int val2 ;
38440 int ecode2 = 0 ;
38441 PyObject * obj0 = 0 ;
38442 PyObject * obj1 = 0 ;
38443 char * kwnames[] = {
38444 (char *) "self",(char *) "n", NULL
38445 };
38446
38447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38449 if (!SWIG_IsOK(res1)) {
38450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38451 }
38452 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38453 ecode2 = SWIG_AsVal_int(obj1, &val2);
38454 if (!SWIG_IsOK(ecode2)) {
38455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38456 }
38457 arg2 = static_cast< int >(val2);
38458 {
38459 PyThreadState* __tstate = wxPyBeginAllowThreads();
38460 (arg1)->SetFilterIndex(arg2);
38461 wxPyEndAllowThreads(__tstate);
38462 if (PyErr_Occurred()) SWIG_fail;
38463 }
38464 resultobj = SWIG_Py_Void();
38465 return resultobj;
38466 fail:
38467 return NULL;
38468 }
38469
38470
38471 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38472 PyObject *resultobj = 0;
38473 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38474 wxTreeItemId result;
38475 void *argp1 = 0 ;
38476 int res1 = 0 ;
38477 PyObject *swig_obj[1] ;
38478
38479 if (!args) SWIG_fail;
38480 swig_obj[0] = args;
38481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38482 if (!SWIG_IsOK(res1)) {
38483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38484 }
38485 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38486 {
38487 PyThreadState* __tstate = wxPyBeginAllowThreads();
38488 result = (arg1)->GetRootId();
38489 wxPyEndAllowThreads(__tstate);
38490 if (PyErr_Occurred()) SWIG_fail;
38491 }
38492 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38493 return resultobj;
38494 fail:
38495 return NULL;
38496 }
38497
38498
38499 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38500 PyObject *resultobj = 0;
38501 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38502 wxPyTreeCtrl *result = 0 ;
38503 void *argp1 = 0 ;
38504 int res1 = 0 ;
38505 PyObject *swig_obj[1] ;
38506
38507 if (!args) SWIG_fail;
38508 swig_obj[0] = args;
38509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38510 if (!SWIG_IsOK(res1)) {
38511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38512 }
38513 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38514 {
38515 PyThreadState* __tstate = wxPyBeginAllowThreads();
38516 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38517 wxPyEndAllowThreads(__tstate);
38518 if (PyErr_Occurred()) SWIG_fail;
38519 }
38520 {
38521 resultobj = wxPyMake_wxObject(result, 0);
38522 }
38523 return resultobj;
38524 fail:
38525 return NULL;
38526 }
38527
38528
38529 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38530 PyObject *resultobj = 0;
38531 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38532 wxDirFilterListCtrl *result = 0 ;
38533 void *argp1 = 0 ;
38534 int res1 = 0 ;
38535 PyObject *swig_obj[1] ;
38536
38537 if (!args) SWIG_fail;
38538 swig_obj[0] = args;
38539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38540 if (!SWIG_IsOK(res1)) {
38541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38542 }
38543 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38544 {
38545 PyThreadState* __tstate = wxPyBeginAllowThreads();
38546 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38551 return resultobj;
38552 fail:
38553 return NULL;
38554 }
38555
38556
38557 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38558 PyObject *resultobj = 0;
38559 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38560 wxTreeItemId arg2 ;
38561 wxString *arg3 = 0 ;
38562 bool *arg4 = 0 ;
38563 wxTreeItemId result;
38564 void *argp1 = 0 ;
38565 int res1 = 0 ;
38566 void *argp2 ;
38567 int res2 = 0 ;
38568 bool temp3 = false ;
38569 bool temp4 ;
38570 int res4 = SWIG_TMPOBJ ;
38571 PyObject * obj0 = 0 ;
38572 PyObject * obj1 = 0 ;
38573 PyObject * obj2 = 0 ;
38574 char * kwnames[] = {
38575 (char *) "self",(char *) "parentId",(char *) "path", NULL
38576 };
38577
38578 arg4 = &temp4;
38579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38581 if (!SWIG_IsOK(res1)) {
38582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38583 }
38584 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38585 {
38586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38587 if (!SWIG_IsOK(res2)) {
38588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38589 }
38590 if (!argp2) {
38591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38592 } else {
38593 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38594 arg2 = *temp;
38595 if (SWIG_IsNewObj(res2)) delete temp;
38596 }
38597 }
38598 {
38599 arg3 = wxString_in_helper(obj2);
38600 if (arg3 == NULL) SWIG_fail;
38601 temp3 = true;
38602 }
38603 {
38604 PyThreadState* __tstate = wxPyBeginAllowThreads();
38605 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38606 wxPyEndAllowThreads(__tstate);
38607 if (PyErr_Occurred()) SWIG_fail;
38608 }
38609 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38610 if (SWIG_IsTmpObj(res4)) {
38611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38612 } else {
38613 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38615 }
38616 {
38617 if (temp3)
38618 delete arg3;
38619 }
38620 return resultobj;
38621 fail:
38622 {
38623 if (temp3)
38624 delete arg3;
38625 }
38626 return NULL;
38627 }
38628
38629
38630 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38631 PyObject *resultobj = 0;
38632 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38633 void *argp1 = 0 ;
38634 int res1 = 0 ;
38635 PyObject *swig_obj[1] ;
38636
38637 if (!args) SWIG_fail;
38638 swig_obj[0] = args;
38639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38640 if (!SWIG_IsOK(res1)) {
38641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38642 }
38643 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38644 {
38645 PyThreadState* __tstate = wxPyBeginAllowThreads();
38646 (arg1)->DoResize();
38647 wxPyEndAllowThreads(__tstate);
38648 if (PyErr_Occurred()) SWIG_fail;
38649 }
38650 resultobj = SWIG_Py_Void();
38651 return resultobj;
38652 fail:
38653 return NULL;
38654 }
38655
38656
38657 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38658 PyObject *resultobj = 0;
38659 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38660 void *argp1 = 0 ;
38661 int res1 = 0 ;
38662 PyObject *swig_obj[1] ;
38663
38664 if (!args) SWIG_fail;
38665 swig_obj[0] = args;
38666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38667 if (!SWIG_IsOK(res1)) {
38668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38669 }
38670 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38671 {
38672 PyThreadState* __tstate = wxPyBeginAllowThreads();
38673 (arg1)->ReCreateTree();
38674 wxPyEndAllowThreads(__tstate);
38675 if (PyErr_Occurred()) SWIG_fail;
38676 }
38677 resultobj = SWIG_Py_Void();
38678 return resultobj;
38679 fail:
38680 return NULL;
38681 }
38682
38683
38684 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38685 PyObject *obj;
38686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38687 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38688 return SWIG_Py_Void();
38689 }
38690
38691 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38692 return SWIG_Python_InitShadowInstance(args);
38693 }
38694
38695 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38696 PyObject *resultobj = 0;
38697 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38698 int arg2 = (int) (int)-1 ;
38699 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38700 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38701 wxSize const &arg4_defvalue = wxDefaultSize ;
38702 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38703 long arg5 = (long) 0 ;
38704 wxDirFilterListCtrl *result = 0 ;
38705 void *argp1 = 0 ;
38706 int res1 = 0 ;
38707 int val2 ;
38708 int ecode2 = 0 ;
38709 wxPoint temp3 ;
38710 wxSize temp4 ;
38711 long val5 ;
38712 int ecode5 = 0 ;
38713 PyObject * obj0 = 0 ;
38714 PyObject * obj1 = 0 ;
38715 PyObject * obj2 = 0 ;
38716 PyObject * obj3 = 0 ;
38717 PyObject * obj4 = 0 ;
38718 char * kwnames[] = {
38719 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38720 };
38721
38722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38724 if (!SWIG_IsOK(res1)) {
38725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38726 }
38727 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38728 if (obj1) {
38729 ecode2 = SWIG_AsVal_int(obj1, &val2);
38730 if (!SWIG_IsOK(ecode2)) {
38731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38732 }
38733 arg2 = static_cast< int >(val2);
38734 }
38735 if (obj2) {
38736 {
38737 arg3 = &temp3;
38738 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38739 }
38740 }
38741 if (obj3) {
38742 {
38743 arg4 = &temp4;
38744 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38745 }
38746 }
38747 if (obj4) {
38748 ecode5 = SWIG_AsVal_long(obj4, &val5);
38749 if (!SWIG_IsOK(ecode5)) {
38750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38751 }
38752 arg5 = static_cast< long >(val5);
38753 }
38754 {
38755 if (!wxPyCheckForApp()) SWIG_fail;
38756 PyThreadState* __tstate = wxPyBeginAllowThreads();
38757 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38758 wxPyEndAllowThreads(__tstate);
38759 if (PyErr_Occurred()) SWIG_fail;
38760 }
38761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38762 return resultobj;
38763 fail:
38764 return NULL;
38765 }
38766
38767
38768 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38769 PyObject *resultobj = 0;
38770 wxDirFilterListCtrl *result = 0 ;
38771
38772 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38773 {
38774 if (!wxPyCheckForApp()) SWIG_fail;
38775 PyThreadState* __tstate = wxPyBeginAllowThreads();
38776 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38777 wxPyEndAllowThreads(__tstate);
38778 if (PyErr_Occurred()) SWIG_fail;
38779 }
38780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38781 return resultobj;
38782 fail:
38783 return NULL;
38784 }
38785
38786
38787 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38788 PyObject *resultobj = 0;
38789 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38790 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38791 int arg3 = (int) (int)-1 ;
38792 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38793 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38794 wxSize const &arg5_defvalue = wxDefaultSize ;
38795 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38796 long arg6 = (long) 0 ;
38797 bool result;
38798 void *argp1 = 0 ;
38799 int res1 = 0 ;
38800 void *argp2 = 0 ;
38801 int res2 = 0 ;
38802 int val3 ;
38803 int ecode3 = 0 ;
38804 wxPoint temp4 ;
38805 wxSize temp5 ;
38806 long val6 ;
38807 int ecode6 = 0 ;
38808 PyObject * obj0 = 0 ;
38809 PyObject * obj1 = 0 ;
38810 PyObject * obj2 = 0 ;
38811 PyObject * obj3 = 0 ;
38812 PyObject * obj4 = 0 ;
38813 PyObject * obj5 = 0 ;
38814 char * kwnames[] = {
38815 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38816 };
38817
38818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38820 if (!SWIG_IsOK(res1)) {
38821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38822 }
38823 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38825 if (!SWIG_IsOK(res2)) {
38826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38827 }
38828 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38829 if (obj2) {
38830 ecode3 = SWIG_AsVal_int(obj2, &val3);
38831 if (!SWIG_IsOK(ecode3)) {
38832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38833 }
38834 arg3 = static_cast< int >(val3);
38835 }
38836 if (obj3) {
38837 {
38838 arg4 = &temp4;
38839 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38840 }
38841 }
38842 if (obj4) {
38843 {
38844 arg5 = &temp5;
38845 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38846 }
38847 }
38848 if (obj5) {
38849 ecode6 = SWIG_AsVal_long(obj5, &val6);
38850 if (!SWIG_IsOK(ecode6)) {
38851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38852 }
38853 arg6 = static_cast< long >(val6);
38854 }
38855 {
38856 PyThreadState* __tstate = wxPyBeginAllowThreads();
38857 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38858 wxPyEndAllowThreads(__tstate);
38859 if (PyErr_Occurred()) SWIG_fail;
38860 }
38861 {
38862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38863 }
38864 return resultobj;
38865 fail:
38866 return NULL;
38867 }
38868
38869
38870 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38871 PyObject *resultobj = 0;
38872 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38873 wxString *arg2 = 0 ;
38874 int arg3 ;
38875 void *argp1 = 0 ;
38876 int res1 = 0 ;
38877 bool temp2 = false ;
38878 int val3 ;
38879 int ecode3 = 0 ;
38880 PyObject * obj0 = 0 ;
38881 PyObject * obj1 = 0 ;
38882 PyObject * obj2 = 0 ;
38883 char * kwnames[] = {
38884 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38885 };
38886
38887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38889 if (!SWIG_IsOK(res1)) {
38890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38891 }
38892 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38893 {
38894 arg2 = wxString_in_helper(obj1);
38895 if (arg2 == NULL) SWIG_fail;
38896 temp2 = true;
38897 }
38898 ecode3 = SWIG_AsVal_int(obj2, &val3);
38899 if (!SWIG_IsOK(ecode3)) {
38900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38901 }
38902 arg3 = static_cast< int >(val3);
38903 {
38904 PyThreadState* __tstate = wxPyBeginAllowThreads();
38905 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 resultobj = SWIG_Py_Void();
38910 {
38911 if (temp2)
38912 delete arg2;
38913 }
38914 return resultobj;
38915 fail:
38916 {
38917 if (temp2)
38918 delete arg2;
38919 }
38920 return NULL;
38921 }
38922
38923
38924 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38925 PyObject *obj;
38926 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38927 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38928 return SWIG_Py_Void();
38929 }
38930
38931 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38932 return SWIG_Python_InitShadowInstance(args);
38933 }
38934
38935 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38936 PyObject *resultobj = 0;
38937 wxWindow *arg1 = (wxWindow *) 0 ;
38938 int arg2 = (int) (int)-1 ;
38939 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38940 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38941 wxSize const &arg4_defvalue = wxDefaultSize ;
38942 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38943 long arg5 = (long) 0 ;
38944 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38945 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38946 wxString const &arg7_defvalue = wxPyControlNameStr ;
38947 wxString *arg7 = (wxString *) &arg7_defvalue ;
38948 wxPyControl *result = 0 ;
38949 void *argp1 = 0 ;
38950 int res1 = 0 ;
38951 int val2 ;
38952 int ecode2 = 0 ;
38953 wxPoint temp3 ;
38954 wxSize temp4 ;
38955 long val5 ;
38956 int ecode5 = 0 ;
38957 void *argp6 = 0 ;
38958 int res6 = 0 ;
38959 bool temp7 = false ;
38960 PyObject * obj0 = 0 ;
38961 PyObject * obj1 = 0 ;
38962 PyObject * obj2 = 0 ;
38963 PyObject * obj3 = 0 ;
38964 PyObject * obj4 = 0 ;
38965 PyObject * obj5 = 0 ;
38966 PyObject * obj6 = 0 ;
38967 char * kwnames[] = {
38968 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38969 };
38970
38971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38973 if (!SWIG_IsOK(res1)) {
38974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38975 }
38976 arg1 = reinterpret_cast< wxWindow * >(argp1);
38977 if (obj1) {
38978 ecode2 = SWIG_AsVal_int(obj1, &val2);
38979 if (!SWIG_IsOK(ecode2)) {
38980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38981 }
38982 arg2 = static_cast< int >(val2);
38983 }
38984 if (obj2) {
38985 {
38986 arg3 = &temp3;
38987 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38988 }
38989 }
38990 if (obj3) {
38991 {
38992 arg4 = &temp4;
38993 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38994 }
38995 }
38996 if (obj4) {
38997 ecode5 = SWIG_AsVal_long(obj4, &val5);
38998 if (!SWIG_IsOK(ecode5)) {
38999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39000 }
39001 arg5 = static_cast< long >(val5);
39002 }
39003 if (obj5) {
39004 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39005 if (!SWIG_IsOK(res6)) {
39006 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39007 }
39008 if (!argp6) {
39009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39010 }
39011 arg6 = reinterpret_cast< wxValidator * >(argp6);
39012 }
39013 if (obj6) {
39014 {
39015 arg7 = wxString_in_helper(obj6);
39016 if (arg7 == NULL) SWIG_fail;
39017 temp7 = true;
39018 }
39019 }
39020 {
39021 if (!wxPyCheckForApp()) SWIG_fail;
39022 PyThreadState* __tstate = wxPyBeginAllowThreads();
39023 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39024 wxPyEndAllowThreads(__tstate);
39025 if (PyErr_Occurred()) SWIG_fail;
39026 }
39027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39028 {
39029 if (temp7)
39030 delete arg7;
39031 }
39032 return resultobj;
39033 fail:
39034 {
39035 if (temp7)
39036 delete arg7;
39037 }
39038 return NULL;
39039 }
39040
39041
39042 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39043 PyObject *resultobj = 0;
39044 wxPyControl *result = 0 ;
39045
39046 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39047 {
39048 if (!wxPyCheckForApp()) SWIG_fail;
39049 PyThreadState* __tstate = wxPyBeginAllowThreads();
39050 result = (wxPyControl *)new wxPyControl();
39051 wxPyEndAllowThreads(__tstate);
39052 if (PyErr_Occurred()) SWIG_fail;
39053 }
39054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39055 return resultobj;
39056 fail:
39057 return NULL;
39058 }
39059
39060
39061 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39062 PyObject *resultobj = 0;
39063 wxPyControl *arg1 = (wxPyControl *) 0 ;
39064 PyObject *arg2 = (PyObject *) 0 ;
39065 PyObject *arg3 = (PyObject *) 0 ;
39066 void *argp1 = 0 ;
39067 int res1 = 0 ;
39068 PyObject * obj0 = 0 ;
39069 PyObject * obj1 = 0 ;
39070 PyObject * obj2 = 0 ;
39071 char * kwnames[] = {
39072 (char *) "self",(char *) "self",(char *) "_class", NULL
39073 };
39074
39075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39077 if (!SWIG_IsOK(res1)) {
39078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39079 }
39080 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39081 arg2 = obj1;
39082 arg3 = obj2;
39083 {
39084 PyThreadState* __tstate = wxPyBeginAllowThreads();
39085 (arg1)->_setCallbackInfo(arg2,arg3);
39086 wxPyEndAllowThreads(__tstate);
39087 if (PyErr_Occurred()) SWIG_fail;
39088 }
39089 resultobj = SWIG_Py_Void();
39090 return resultobj;
39091 fail:
39092 return NULL;
39093 }
39094
39095
39096 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39097 PyObject *resultobj = 0;
39098 wxPyControl *arg1 = (wxPyControl *) 0 ;
39099 wxDC *arg2 = (wxDC *) 0 ;
39100 bool result;
39101 void *argp1 = 0 ;
39102 int res1 = 0 ;
39103 void *argp2 = 0 ;
39104 int res2 = 0 ;
39105 PyObject * obj0 = 0 ;
39106 PyObject * obj1 = 0 ;
39107 char * kwnames[] = {
39108 (char *) "self",(char *) "dc", NULL
39109 };
39110
39111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39113 if (!SWIG_IsOK(res1)) {
39114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39115 }
39116 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39118 if (!SWIG_IsOK(res2)) {
39119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39120 }
39121 arg2 = reinterpret_cast< wxDC * >(argp2);
39122 {
39123 PyThreadState* __tstate = wxPyBeginAllowThreads();
39124 result = (bool)(arg1)->DoEraseBackground(arg2);
39125 wxPyEndAllowThreads(__tstate);
39126 if (PyErr_Occurred()) SWIG_fail;
39127 }
39128 {
39129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39130 }
39131 return resultobj;
39132 fail:
39133 return NULL;
39134 }
39135
39136
39137 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39138 PyObject *resultobj = 0;
39139 wxPyControl *arg1 = (wxPyControl *) 0 ;
39140 int arg2 ;
39141 int arg3 ;
39142 int arg4 ;
39143 int arg5 ;
39144 void *argp1 = 0 ;
39145 int res1 = 0 ;
39146 int val2 ;
39147 int ecode2 = 0 ;
39148 int val3 ;
39149 int ecode3 = 0 ;
39150 int val4 ;
39151 int ecode4 = 0 ;
39152 int val5 ;
39153 int ecode5 = 0 ;
39154 PyObject * obj0 = 0 ;
39155 PyObject * obj1 = 0 ;
39156 PyObject * obj2 = 0 ;
39157 PyObject * obj3 = 0 ;
39158 PyObject * obj4 = 0 ;
39159 char * kwnames[] = {
39160 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39161 };
39162
39163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39165 if (!SWIG_IsOK(res1)) {
39166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39167 }
39168 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39169 ecode2 = SWIG_AsVal_int(obj1, &val2);
39170 if (!SWIG_IsOK(ecode2)) {
39171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39172 }
39173 arg2 = static_cast< int >(val2);
39174 ecode3 = SWIG_AsVal_int(obj2, &val3);
39175 if (!SWIG_IsOK(ecode3)) {
39176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39177 }
39178 arg3 = static_cast< int >(val3);
39179 ecode4 = SWIG_AsVal_int(obj3, &val4);
39180 if (!SWIG_IsOK(ecode4)) {
39181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39182 }
39183 arg4 = static_cast< int >(val4);
39184 ecode5 = SWIG_AsVal_int(obj4, &val5);
39185 if (!SWIG_IsOK(ecode5)) {
39186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39187 }
39188 arg5 = static_cast< int >(val5);
39189 {
39190 PyThreadState* __tstate = wxPyBeginAllowThreads();
39191 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39192 wxPyEndAllowThreads(__tstate);
39193 if (PyErr_Occurred()) SWIG_fail;
39194 }
39195 resultobj = SWIG_Py_Void();
39196 return resultobj;
39197 fail:
39198 return NULL;
39199 }
39200
39201
39202 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39203 PyObject *resultobj = 0;
39204 wxPyControl *arg1 = (wxPyControl *) 0 ;
39205 int arg2 ;
39206 int arg3 ;
39207 int arg4 ;
39208 int arg5 ;
39209 int arg6 = (int) wxSIZE_AUTO ;
39210 void *argp1 = 0 ;
39211 int res1 = 0 ;
39212 int val2 ;
39213 int ecode2 = 0 ;
39214 int val3 ;
39215 int ecode3 = 0 ;
39216 int val4 ;
39217 int ecode4 = 0 ;
39218 int val5 ;
39219 int ecode5 = 0 ;
39220 int val6 ;
39221 int ecode6 = 0 ;
39222 PyObject * obj0 = 0 ;
39223 PyObject * obj1 = 0 ;
39224 PyObject * obj2 = 0 ;
39225 PyObject * obj3 = 0 ;
39226 PyObject * obj4 = 0 ;
39227 PyObject * obj5 = 0 ;
39228 char * kwnames[] = {
39229 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39230 };
39231
39232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39234 if (!SWIG_IsOK(res1)) {
39235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39236 }
39237 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39238 ecode2 = SWIG_AsVal_int(obj1, &val2);
39239 if (!SWIG_IsOK(ecode2)) {
39240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39241 }
39242 arg2 = static_cast< int >(val2);
39243 ecode3 = SWIG_AsVal_int(obj2, &val3);
39244 if (!SWIG_IsOK(ecode3)) {
39245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39246 }
39247 arg3 = static_cast< int >(val3);
39248 ecode4 = SWIG_AsVal_int(obj3, &val4);
39249 if (!SWIG_IsOK(ecode4)) {
39250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39251 }
39252 arg4 = static_cast< int >(val4);
39253 ecode5 = SWIG_AsVal_int(obj4, &val5);
39254 if (!SWIG_IsOK(ecode5)) {
39255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39256 }
39257 arg5 = static_cast< int >(val5);
39258 if (obj5) {
39259 ecode6 = SWIG_AsVal_int(obj5, &val6);
39260 if (!SWIG_IsOK(ecode6)) {
39261 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39262 }
39263 arg6 = static_cast< int >(val6);
39264 }
39265 {
39266 PyThreadState* __tstate = wxPyBeginAllowThreads();
39267 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39268 wxPyEndAllowThreads(__tstate);
39269 if (PyErr_Occurred()) SWIG_fail;
39270 }
39271 resultobj = SWIG_Py_Void();
39272 return resultobj;
39273 fail:
39274 return NULL;
39275 }
39276
39277
39278 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39279 PyObject *resultobj = 0;
39280 wxPyControl *arg1 = (wxPyControl *) 0 ;
39281 int arg2 ;
39282 int arg3 ;
39283 void *argp1 = 0 ;
39284 int res1 = 0 ;
39285 int val2 ;
39286 int ecode2 = 0 ;
39287 int val3 ;
39288 int ecode3 = 0 ;
39289 PyObject * obj0 = 0 ;
39290 PyObject * obj1 = 0 ;
39291 PyObject * obj2 = 0 ;
39292 char * kwnames[] = {
39293 (char *) "self",(char *) "width",(char *) "height", NULL
39294 };
39295
39296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39298 if (!SWIG_IsOK(res1)) {
39299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39300 }
39301 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39302 ecode2 = SWIG_AsVal_int(obj1, &val2);
39303 if (!SWIG_IsOK(ecode2)) {
39304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39305 }
39306 arg2 = static_cast< int >(val2);
39307 ecode3 = SWIG_AsVal_int(obj2, &val3);
39308 if (!SWIG_IsOK(ecode3)) {
39309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39310 }
39311 arg3 = static_cast< int >(val3);
39312 {
39313 PyThreadState* __tstate = wxPyBeginAllowThreads();
39314 (arg1)->DoSetClientSize(arg2,arg3);
39315 wxPyEndAllowThreads(__tstate);
39316 if (PyErr_Occurred()) SWIG_fail;
39317 }
39318 resultobj = SWIG_Py_Void();
39319 return resultobj;
39320 fail:
39321 return NULL;
39322 }
39323
39324
39325 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39326 PyObject *resultobj = 0;
39327 wxPyControl *arg1 = (wxPyControl *) 0 ;
39328 int arg2 ;
39329 int arg3 ;
39330 void *argp1 = 0 ;
39331 int res1 = 0 ;
39332 int val2 ;
39333 int ecode2 = 0 ;
39334 int val3 ;
39335 int ecode3 = 0 ;
39336 PyObject * obj0 = 0 ;
39337 PyObject * obj1 = 0 ;
39338 PyObject * obj2 = 0 ;
39339 char * kwnames[] = {
39340 (char *) "self",(char *) "x",(char *) "y", NULL
39341 };
39342
39343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39345 if (!SWIG_IsOK(res1)) {
39346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39347 }
39348 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39349 ecode2 = SWIG_AsVal_int(obj1, &val2);
39350 if (!SWIG_IsOK(ecode2)) {
39351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39352 }
39353 arg2 = static_cast< int >(val2);
39354 ecode3 = SWIG_AsVal_int(obj2, &val3);
39355 if (!SWIG_IsOK(ecode3)) {
39356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39357 }
39358 arg3 = static_cast< int >(val3);
39359 {
39360 PyThreadState* __tstate = wxPyBeginAllowThreads();
39361 (arg1)->DoSetVirtualSize(arg2,arg3);
39362 wxPyEndAllowThreads(__tstate);
39363 if (PyErr_Occurred()) SWIG_fail;
39364 }
39365 resultobj = SWIG_Py_Void();
39366 return resultobj;
39367 fail:
39368 return NULL;
39369 }
39370
39371
39372 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39373 PyObject *resultobj = 0;
39374 wxPyControl *arg1 = (wxPyControl *) 0 ;
39375 int *arg2 = (int *) 0 ;
39376 int *arg3 = (int *) 0 ;
39377 void *argp1 = 0 ;
39378 int res1 = 0 ;
39379 int temp2 ;
39380 int res2 = SWIG_TMPOBJ ;
39381 int temp3 ;
39382 int res3 = SWIG_TMPOBJ ;
39383 PyObject *swig_obj[1] ;
39384
39385 arg2 = &temp2;
39386 arg3 = &temp3;
39387 if (!args) SWIG_fail;
39388 swig_obj[0] = args;
39389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39390 if (!SWIG_IsOK(res1)) {
39391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39392 }
39393 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39394 {
39395 PyThreadState* __tstate = wxPyBeginAllowThreads();
39396 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39397 wxPyEndAllowThreads(__tstate);
39398 if (PyErr_Occurred()) SWIG_fail;
39399 }
39400 resultobj = SWIG_Py_Void();
39401 if (SWIG_IsTmpObj(res2)) {
39402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39403 } else {
39404 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39406 }
39407 if (SWIG_IsTmpObj(res3)) {
39408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39409 } else {
39410 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39412 }
39413 return resultobj;
39414 fail:
39415 return NULL;
39416 }
39417
39418
39419 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39420 PyObject *resultobj = 0;
39421 wxPyControl *arg1 = (wxPyControl *) 0 ;
39422 int *arg2 = (int *) 0 ;
39423 int *arg3 = (int *) 0 ;
39424 void *argp1 = 0 ;
39425 int res1 = 0 ;
39426 int temp2 ;
39427 int res2 = SWIG_TMPOBJ ;
39428 int temp3 ;
39429 int res3 = SWIG_TMPOBJ ;
39430 PyObject *swig_obj[1] ;
39431
39432 arg2 = &temp2;
39433 arg3 = &temp3;
39434 if (!args) SWIG_fail;
39435 swig_obj[0] = args;
39436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39437 if (!SWIG_IsOK(res1)) {
39438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39439 }
39440 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39441 {
39442 PyThreadState* __tstate = wxPyBeginAllowThreads();
39443 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39444 wxPyEndAllowThreads(__tstate);
39445 if (PyErr_Occurred()) SWIG_fail;
39446 }
39447 resultobj = SWIG_Py_Void();
39448 if (SWIG_IsTmpObj(res2)) {
39449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39450 } else {
39451 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39453 }
39454 if (SWIG_IsTmpObj(res3)) {
39455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39456 } else {
39457 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39459 }
39460 return resultobj;
39461 fail:
39462 return NULL;
39463 }
39464
39465
39466 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39467 PyObject *resultobj = 0;
39468 wxPyControl *arg1 = (wxPyControl *) 0 ;
39469 int *arg2 = (int *) 0 ;
39470 int *arg3 = (int *) 0 ;
39471 void *argp1 = 0 ;
39472 int res1 = 0 ;
39473 int temp2 ;
39474 int res2 = SWIG_TMPOBJ ;
39475 int temp3 ;
39476 int res3 = SWIG_TMPOBJ ;
39477 PyObject *swig_obj[1] ;
39478
39479 arg2 = &temp2;
39480 arg3 = &temp3;
39481 if (!args) SWIG_fail;
39482 swig_obj[0] = args;
39483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39484 if (!SWIG_IsOK(res1)) {
39485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39486 }
39487 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39488 {
39489 PyThreadState* __tstate = wxPyBeginAllowThreads();
39490 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39491 wxPyEndAllowThreads(__tstate);
39492 if (PyErr_Occurred()) SWIG_fail;
39493 }
39494 resultobj = SWIG_Py_Void();
39495 if (SWIG_IsTmpObj(res2)) {
39496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39497 } else {
39498 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39500 }
39501 if (SWIG_IsTmpObj(res3)) {
39502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39503 } else {
39504 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39506 }
39507 return resultobj;
39508 fail:
39509 return NULL;
39510 }
39511
39512
39513 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39514 PyObject *resultobj = 0;
39515 wxPyControl *arg1 = (wxPyControl *) 0 ;
39516 wxSize result;
39517 void *argp1 = 0 ;
39518 int res1 = 0 ;
39519 PyObject *swig_obj[1] ;
39520
39521 if (!args) SWIG_fail;
39522 swig_obj[0] = args;
39523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39524 if (!SWIG_IsOK(res1)) {
39525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39526 }
39527 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39528 {
39529 PyThreadState* __tstate = wxPyBeginAllowThreads();
39530 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39531 wxPyEndAllowThreads(__tstate);
39532 if (PyErr_Occurred()) SWIG_fail;
39533 }
39534 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39535 return resultobj;
39536 fail:
39537 return NULL;
39538 }
39539
39540
39541 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39542 PyObject *resultobj = 0;
39543 wxPyControl *arg1 = (wxPyControl *) 0 ;
39544 wxSize result;
39545 void *argp1 = 0 ;
39546 int res1 = 0 ;
39547 PyObject *swig_obj[1] ;
39548
39549 if (!args) SWIG_fail;
39550 swig_obj[0] = args;
39551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39552 if (!SWIG_IsOK(res1)) {
39553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39554 }
39555 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39556 {
39557 PyThreadState* __tstate = wxPyBeginAllowThreads();
39558 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39559 wxPyEndAllowThreads(__tstate);
39560 if (PyErr_Occurred()) SWIG_fail;
39561 }
39562 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39563 return resultobj;
39564 fail:
39565 return NULL;
39566 }
39567
39568
39569 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39570 PyObject *resultobj = 0;
39571 wxPyControl *arg1 = (wxPyControl *) 0 ;
39572 SwigValueWrapper<wxVisualAttributes > result;
39573 void *argp1 = 0 ;
39574 int res1 = 0 ;
39575 PyObject *swig_obj[1] ;
39576
39577 if (!args) SWIG_fail;
39578 swig_obj[0] = args;
39579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39580 if (!SWIG_IsOK(res1)) {
39581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39582 }
39583 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39584 {
39585 PyThreadState* __tstate = wxPyBeginAllowThreads();
39586 result = (arg1)->GetDefaultAttributes();
39587 wxPyEndAllowThreads(__tstate);
39588 if (PyErr_Occurred()) SWIG_fail;
39589 }
39590 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39591 return resultobj;
39592 fail:
39593 return NULL;
39594 }
39595
39596
39597 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39598 PyObject *resultobj = 0;
39599 wxPyControl *arg1 = (wxPyControl *) 0 ;
39600 void *argp1 = 0 ;
39601 int res1 = 0 ;
39602 PyObject *swig_obj[1] ;
39603
39604 if (!args) SWIG_fail;
39605 swig_obj[0] = args;
39606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39607 if (!SWIG_IsOK(res1)) {
39608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39609 }
39610 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39611 {
39612 PyThreadState* __tstate = wxPyBeginAllowThreads();
39613 (arg1)->OnInternalIdle();
39614 wxPyEndAllowThreads(__tstate);
39615 if (PyErr_Occurred()) SWIG_fail;
39616 }
39617 resultobj = SWIG_Py_Void();
39618 return resultobj;
39619 fail:
39620 return NULL;
39621 }
39622
39623
39624 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39625 PyObject *obj;
39626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39627 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39628 return SWIG_Py_Void();
39629 }
39630
39631 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39632 return SWIG_Python_InitShadowInstance(args);
39633 }
39634
39635 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39636 PyObject *resultobj = 0;
39637 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39638 int arg2 = (int) 0 ;
39639 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39640 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39641 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39642 wxHelpEvent *result = 0 ;
39643 int val1 ;
39644 int ecode1 = 0 ;
39645 int val2 ;
39646 int ecode2 = 0 ;
39647 wxPoint temp3 ;
39648 int val4 ;
39649 int ecode4 = 0 ;
39650 PyObject * obj0 = 0 ;
39651 PyObject * obj1 = 0 ;
39652 PyObject * obj2 = 0 ;
39653 PyObject * obj3 = 0 ;
39654 char * kwnames[] = {
39655 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39656 };
39657
39658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39659 if (obj0) {
39660 ecode1 = SWIG_AsVal_int(obj0, &val1);
39661 if (!SWIG_IsOK(ecode1)) {
39662 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39663 }
39664 arg1 = static_cast< wxEventType >(val1);
39665 }
39666 if (obj1) {
39667 ecode2 = SWIG_AsVal_int(obj1, &val2);
39668 if (!SWIG_IsOK(ecode2)) {
39669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39670 }
39671 arg2 = static_cast< int >(val2);
39672 }
39673 if (obj2) {
39674 {
39675 arg3 = &temp3;
39676 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39677 }
39678 }
39679 if (obj3) {
39680 ecode4 = SWIG_AsVal_int(obj3, &val4);
39681 if (!SWIG_IsOK(ecode4)) {
39682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39683 }
39684 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39685 }
39686 {
39687 PyThreadState* __tstate = wxPyBeginAllowThreads();
39688 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39689 wxPyEndAllowThreads(__tstate);
39690 if (PyErr_Occurred()) SWIG_fail;
39691 }
39692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39693 return resultobj;
39694 fail:
39695 return NULL;
39696 }
39697
39698
39699 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39700 PyObject *resultobj = 0;
39701 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39702 wxPoint result;
39703 void *argp1 = 0 ;
39704 int res1 = 0 ;
39705 PyObject *swig_obj[1] ;
39706
39707 if (!args) SWIG_fail;
39708 swig_obj[0] = args;
39709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39710 if (!SWIG_IsOK(res1)) {
39711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39712 }
39713 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39714 {
39715 PyThreadState* __tstate = wxPyBeginAllowThreads();
39716 result = ((wxHelpEvent const *)arg1)->GetPosition();
39717 wxPyEndAllowThreads(__tstate);
39718 if (PyErr_Occurred()) SWIG_fail;
39719 }
39720 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39721 return resultobj;
39722 fail:
39723 return NULL;
39724 }
39725
39726
39727 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39728 PyObject *resultobj = 0;
39729 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39730 wxPoint *arg2 = 0 ;
39731 void *argp1 = 0 ;
39732 int res1 = 0 ;
39733 wxPoint temp2 ;
39734 PyObject * obj0 = 0 ;
39735 PyObject * obj1 = 0 ;
39736 char * kwnames[] = {
39737 (char *) "self",(char *) "pos", NULL
39738 };
39739
39740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39742 if (!SWIG_IsOK(res1)) {
39743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39744 }
39745 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39746 {
39747 arg2 = &temp2;
39748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39749 }
39750 {
39751 PyThreadState* __tstate = wxPyBeginAllowThreads();
39752 (arg1)->SetPosition((wxPoint const &)*arg2);
39753 wxPyEndAllowThreads(__tstate);
39754 if (PyErr_Occurred()) SWIG_fail;
39755 }
39756 resultobj = SWIG_Py_Void();
39757 return resultobj;
39758 fail:
39759 return NULL;
39760 }
39761
39762
39763 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39764 PyObject *resultobj = 0;
39765 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39766 wxString *result = 0 ;
39767 void *argp1 = 0 ;
39768 int res1 = 0 ;
39769 PyObject *swig_obj[1] ;
39770
39771 if (!args) SWIG_fail;
39772 swig_obj[0] = args;
39773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39774 if (!SWIG_IsOK(res1)) {
39775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39776 }
39777 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39778 {
39779 PyThreadState* __tstate = wxPyBeginAllowThreads();
39780 {
39781 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39782 result = (wxString *) &_result_ref;
39783 }
39784 wxPyEndAllowThreads(__tstate);
39785 if (PyErr_Occurred()) SWIG_fail;
39786 }
39787 {
39788 #if wxUSE_UNICODE
39789 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39790 #else
39791 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39792 #endif
39793 }
39794 return resultobj;
39795 fail:
39796 return NULL;
39797 }
39798
39799
39800 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39801 PyObject *resultobj = 0;
39802 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39803 wxString *arg2 = 0 ;
39804 void *argp1 = 0 ;
39805 int res1 = 0 ;
39806 bool temp2 = false ;
39807 PyObject * obj0 = 0 ;
39808 PyObject * obj1 = 0 ;
39809 char * kwnames[] = {
39810 (char *) "self",(char *) "link", NULL
39811 };
39812
39813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39815 if (!SWIG_IsOK(res1)) {
39816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39817 }
39818 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39819 {
39820 arg2 = wxString_in_helper(obj1);
39821 if (arg2 == NULL) SWIG_fail;
39822 temp2 = true;
39823 }
39824 {
39825 PyThreadState* __tstate = wxPyBeginAllowThreads();
39826 (arg1)->SetLink((wxString const &)*arg2);
39827 wxPyEndAllowThreads(__tstate);
39828 if (PyErr_Occurred()) SWIG_fail;
39829 }
39830 resultobj = SWIG_Py_Void();
39831 {
39832 if (temp2)
39833 delete arg2;
39834 }
39835 return resultobj;
39836 fail:
39837 {
39838 if (temp2)
39839 delete arg2;
39840 }
39841 return NULL;
39842 }
39843
39844
39845 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39846 PyObject *resultobj = 0;
39847 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39848 wxString *result = 0 ;
39849 void *argp1 = 0 ;
39850 int res1 = 0 ;
39851 PyObject *swig_obj[1] ;
39852
39853 if (!args) SWIG_fail;
39854 swig_obj[0] = args;
39855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39856 if (!SWIG_IsOK(res1)) {
39857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39858 }
39859 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39860 {
39861 PyThreadState* __tstate = wxPyBeginAllowThreads();
39862 {
39863 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39864 result = (wxString *) &_result_ref;
39865 }
39866 wxPyEndAllowThreads(__tstate);
39867 if (PyErr_Occurred()) SWIG_fail;
39868 }
39869 {
39870 #if wxUSE_UNICODE
39871 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39872 #else
39873 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39874 #endif
39875 }
39876 return resultobj;
39877 fail:
39878 return NULL;
39879 }
39880
39881
39882 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39883 PyObject *resultobj = 0;
39884 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39885 wxString *arg2 = 0 ;
39886 void *argp1 = 0 ;
39887 int res1 = 0 ;
39888 bool temp2 = false ;
39889 PyObject * obj0 = 0 ;
39890 PyObject * obj1 = 0 ;
39891 char * kwnames[] = {
39892 (char *) "self",(char *) "target", NULL
39893 };
39894
39895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39897 if (!SWIG_IsOK(res1)) {
39898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39899 }
39900 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39901 {
39902 arg2 = wxString_in_helper(obj1);
39903 if (arg2 == NULL) SWIG_fail;
39904 temp2 = true;
39905 }
39906 {
39907 PyThreadState* __tstate = wxPyBeginAllowThreads();
39908 (arg1)->SetTarget((wxString const &)*arg2);
39909 wxPyEndAllowThreads(__tstate);
39910 if (PyErr_Occurred()) SWIG_fail;
39911 }
39912 resultobj = SWIG_Py_Void();
39913 {
39914 if (temp2)
39915 delete arg2;
39916 }
39917 return resultobj;
39918 fail:
39919 {
39920 if (temp2)
39921 delete arg2;
39922 }
39923 return NULL;
39924 }
39925
39926
39927 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39928 PyObject *resultobj = 0;
39929 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39930 wxHelpEvent::Origin result;
39931 void *argp1 = 0 ;
39932 int res1 = 0 ;
39933 PyObject *swig_obj[1] ;
39934
39935 if (!args) SWIG_fail;
39936 swig_obj[0] = args;
39937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39938 if (!SWIG_IsOK(res1)) {
39939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39940 }
39941 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39942 {
39943 PyThreadState* __tstate = wxPyBeginAllowThreads();
39944 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39945 wxPyEndAllowThreads(__tstate);
39946 if (PyErr_Occurred()) SWIG_fail;
39947 }
39948 resultobj = SWIG_From_int(static_cast< int >(result));
39949 return resultobj;
39950 fail:
39951 return NULL;
39952 }
39953
39954
39955 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39956 PyObject *resultobj = 0;
39957 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39958 wxHelpEvent::Origin arg2 ;
39959 void *argp1 = 0 ;
39960 int res1 = 0 ;
39961 int val2 ;
39962 int ecode2 = 0 ;
39963 PyObject * obj0 = 0 ;
39964 PyObject * obj1 = 0 ;
39965 char * kwnames[] = {
39966 (char *) "self",(char *) "origin", NULL
39967 };
39968
39969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39971 if (!SWIG_IsOK(res1)) {
39972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39973 }
39974 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39975 ecode2 = SWIG_AsVal_int(obj1, &val2);
39976 if (!SWIG_IsOK(ecode2)) {
39977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39978 }
39979 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39980 {
39981 PyThreadState* __tstate = wxPyBeginAllowThreads();
39982 (arg1)->SetOrigin(arg2);
39983 wxPyEndAllowThreads(__tstate);
39984 if (PyErr_Occurred()) SWIG_fail;
39985 }
39986 resultobj = SWIG_Py_Void();
39987 return resultobj;
39988 fail:
39989 return NULL;
39990 }
39991
39992
39993 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39994 PyObject *obj;
39995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39996 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39997 return SWIG_Py_Void();
39998 }
39999
40000 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40001 return SWIG_Python_InitShadowInstance(args);
40002 }
40003
40004 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40005 PyObject *resultobj = 0;
40006 wxWindow *arg1 = (wxWindow *) NULL ;
40007 bool arg2 = (bool) true ;
40008 wxContextHelp *result = 0 ;
40009 void *argp1 = 0 ;
40010 int res1 = 0 ;
40011 bool val2 ;
40012 int ecode2 = 0 ;
40013 PyObject * obj0 = 0 ;
40014 PyObject * obj1 = 0 ;
40015 char * kwnames[] = {
40016 (char *) "window",(char *) "doNow", NULL
40017 };
40018
40019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40020 if (obj0) {
40021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40022 if (!SWIG_IsOK(res1)) {
40023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40024 }
40025 arg1 = reinterpret_cast< wxWindow * >(argp1);
40026 }
40027 if (obj1) {
40028 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40029 if (!SWIG_IsOK(ecode2)) {
40030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40031 }
40032 arg2 = static_cast< bool >(val2);
40033 }
40034 {
40035 if (!wxPyCheckForApp()) SWIG_fail;
40036 PyThreadState* __tstate = wxPyBeginAllowThreads();
40037 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40038 wxPyEndAllowThreads(__tstate);
40039 if (PyErr_Occurred()) SWIG_fail;
40040 }
40041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40042 return resultobj;
40043 fail:
40044 return NULL;
40045 }
40046
40047
40048 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40049 PyObject *resultobj = 0;
40050 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40051 void *argp1 = 0 ;
40052 int res1 = 0 ;
40053 PyObject *swig_obj[1] ;
40054
40055 if (!args) SWIG_fail;
40056 swig_obj[0] = args;
40057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40058 if (!SWIG_IsOK(res1)) {
40059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40060 }
40061 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40062 {
40063 PyThreadState* __tstate = wxPyBeginAllowThreads();
40064 delete arg1;
40065
40066 wxPyEndAllowThreads(__tstate);
40067 if (PyErr_Occurred()) SWIG_fail;
40068 }
40069 resultobj = SWIG_Py_Void();
40070 return resultobj;
40071 fail:
40072 return NULL;
40073 }
40074
40075
40076 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40077 PyObject *resultobj = 0;
40078 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40079 wxWindow *arg2 = (wxWindow *) NULL ;
40080 bool result;
40081 void *argp1 = 0 ;
40082 int res1 = 0 ;
40083 void *argp2 = 0 ;
40084 int res2 = 0 ;
40085 PyObject * obj0 = 0 ;
40086 PyObject * obj1 = 0 ;
40087 char * kwnames[] = {
40088 (char *) "self",(char *) "window", NULL
40089 };
40090
40091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40093 if (!SWIG_IsOK(res1)) {
40094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40095 }
40096 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40097 if (obj1) {
40098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40099 if (!SWIG_IsOK(res2)) {
40100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40101 }
40102 arg2 = reinterpret_cast< wxWindow * >(argp2);
40103 }
40104 {
40105 PyThreadState* __tstate = wxPyBeginAllowThreads();
40106 result = (bool)(arg1)->BeginContextHelp(arg2);
40107 wxPyEndAllowThreads(__tstate);
40108 if (PyErr_Occurred()) SWIG_fail;
40109 }
40110 {
40111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40112 }
40113 return resultobj;
40114 fail:
40115 return NULL;
40116 }
40117
40118
40119 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40120 PyObject *resultobj = 0;
40121 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40122 bool result;
40123 void *argp1 = 0 ;
40124 int res1 = 0 ;
40125 PyObject *swig_obj[1] ;
40126
40127 if (!args) SWIG_fail;
40128 swig_obj[0] = args;
40129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40130 if (!SWIG_IsOK(res1)) {
40131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40132 }
40133 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40134 {
40135 PyThreadState* __tstate = wxPyBeginAllowThreads();
40136 result = (bool)(arg1)->EndContextHelp();
40137 wxPyEndAllowThreads(__tstate);
40138 if (PyErr_Occurred()) SWIG_fail;
40139 }
40140 {
40141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40142 }
40143 return resultobj;
40144 fail:
40145 return NULL;
40146 }
40147
40148
40149 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40150 PyObject *obj;
40151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40152 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40153 return SWIG_Py_Void();
40154 }
40155
40156 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40157 return SWIG_Python_InitShadowInstance(args);
40158 }
40159
40160 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40161 PyObject *resultobj = 0;
40162 wxWindow *arg1 = (wxWindow *) 0 ;
40163 int arg2 = (int) wxID_CONTEXT_HELP ;
40164 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40165 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40166 wxSize const &arg4_defvalue = wxDefaultSize ;
40167 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40168 long arg5 = (long) wxBU_AUTODRAW ;
40169 wxContextHelpButton *result = 0 ;
40170 void *argp1 = 0 ;
40171 int res1 = 0 ;
40172 int val2 ;
40173 int ecode2 = 0 ;
40174 wxPoint temp3 ;
40175 wxSize temp4 ;
40176 long val5 ;
40177 int ecode5 = 0 ;
40178 PyObject * obj0 = 0 ;
40179 PyObject * obj1 = 0 ;
40180 PyObject * obj2 = 0 ;
40181 PyObject * obj3 = 0 ;
40182 PyObject * obj4 = 0 ;
40183 char * kwnames[] = {
40184 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40185 };
40186
40187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40189 if (!SWIG_IsOK(res1)) {
40190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40191 }
40192 arg1 = reinterpret_cast< wxWindow * >(argp1);
40193 if (obj1) {
40194 ecode2 = SWIG_AsVal_int(obj1, &val2);
40195 if (!SWIG_IsOK(ecode2)) {
40196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40197 }
40198 arg2 = static_cast< int >(val2);
40199 }
40200 if (obj2) {
40201 {
40202 arg3 = &temp3;
40203 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40204 }
40205 }
40206 if (obj3) {
40207 {
40208 arg4 = &temp4;
40209 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40210 }
40211 }
40212 if (obj4) {
40213 ecode5 = SWIG_AsVal_long(obj4, &val5);
40214 if (!SWIG_IsOK(ecode5)) {
40215 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40216 }
40217 arg5 = static_cast< long >(val5);
40218 }
40219 {
40220 if (!wxPyCheckForApp()) SWIG_fail;
40221 PyThreadState* __tstate = wxPyBeginAllowThreads();
40222 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40223 wxPyEndAllowThreads(__tstate);
40224 if (PyErr_Occurred()) SWIG_fail;
40225 }
40226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40227 return resultobj;
40228 fail:
40229 return NULL;
40230 }
40231
40232
40233 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40234 PyObject *obj;
40235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40236 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40237 return SWIG_Py_Void();
40238 }
40239
40240 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40241 return SWIG_Python_InitShadowInstance(args);
40242 }
40243
40244 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40245 PyObject *resultobj = 0;
40246 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40247 void *argp1 = 0 ;
40248 int res1 = 0 ;
40249 PyObject *swig_obj[1] ;
40250
40251 if (!args) SWIG_fail;
40252 swig_obj[0] = args;
40253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40254 if (!SWIG_IsOK(res1)) {
40255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40256 }
40257 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40258 {
40259 PyThreadState* __tstate = wxPyBeginAllowThreads();
40260 delete arg1;
40261
40262 wxPyEndAllowThreads(__tstate);
40263 if (PyErr_Occurred()) SWIG_fail;
40264 }
40265 resultobj = SWIG_Py_Void();
40266 return resultobj;
40267 fail:
40268 return NULL;
40269 }
40270
40271
40272 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40273 PyObject *resultobj = 0;
40274 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40275 wxHelpProvider *result = 0 ;
40276 int res1 = 0 ;
40277 PyObject * obj0 = 0 ;
40278 char * kwnames[] = {
40279 (char *) "helpProvider", NULL
40280 };
40281
40282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40283 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40284 if (!SWIG_IsOK(res1)) {
40285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40286 }
40287 {
40288 PyThreadState* __tstate = wxPyBeginAllowThreads();
40289 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40290 wxPyEndAllowThreads(__tstate);
40291 if (PyErr_Occurred()) SWIG_fail;
40292 }
40293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40294 return resultobj;
40295 fail:
40296 return NULL;
40297 }
40298
40299
40300 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40301 PyObject *resultobj = 0;
40302 wxHelpProvider *result = 0 ;
40303
40304 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40305 {
40306 PyThreadState* __tstate = wxPyBeginAllowThreads();
40307 result = (wxHelpProvider *)wxHelpProvider::Get();
40308 wxPyEndAllowThreads(__tstate);
40309 if (PyErr_Occurred()) SWIG_fail;
40310 }
40311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40312 return resultobj;
40313 fail:
40314 return NULL;
40315 }
40316
40317
40318 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40319 PyObject *resultobj = 0;
40320 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40321 wxWindow *arg2 = (wxWindow *) 0 ;
40322 wxString result;
40323 void *argp1 = 0 ;
40324 int res1 = 0 ;
40325 void *argp2 = 0 ;
40326 int res2 = 0 ;
40327 PyObject * obj0 = 0 ;
40328 PyObject * obj1 = 0 ;
40329 char * kwnames[] = {
40330 (char *) "self",(char *) "window", NULL
40331 };
40332
40333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40335 if (!SWIG_IsOK(res1)) {
40336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40337 }
40338 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40340 if (!SWIG_IsOK(res2)) {
40341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40342 }
40343 arg2 = reinterpret_cast< wxWindow * >(argp2);
40344 {
40345 PyThreadState* __tstate = wxPyBeginAllowThreads();
40346 result = (arg1)->GetHelp((wxWindow const *)arg2);
40347 wxPyEndAllowThreads(__tstate);
40348 if (PyErr_Occurred()) SWIG_fail;
40349 }
40350 {
40351 #if wxUSE_UNICODE
40352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40353 #else
40354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40355 #endif
40356 }
40357 return resultobj;
40358 fail:
40359 return NULL;
40360 }
40361
40362
40363 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40364 PyObject *resultobj = 0;
40365 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40366 wxWindow *arg2 = (wxWindow *) 0 ;
40367 bool result;
40368 void *argp1 = 0 ;
40369 int res1 = 0 ;
40370 void *argp2 = 0 ;
40371 int res2 = 0 ;
40372 PyObject * obj0 = 0 ;
40373 PyObject * obj1 = 0 ;
40374 char * kwnames[] = {
40375 (char *) "self",(char *) "window", NULL
40376 };
40377
40378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40380 if (!SWIG_IsOK(res1)) {
40381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40382 }
40383 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40385 if (!SWIG_IsOK(res2)) {
40386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40387 }
40388 arg2 = reinterpret_cast< wxWindow * >(argp2);
40389 {
40390 PyThreadState* __tstate = wxPyBeginAllowThreads();
40391 result = (bool)(arg1)->ShowHelp(arg2);
40392 wxPyEndAllowThreads(__tstate);
40393 if (PyErr_Occurred()) SWIG_fail;
40394 }
40395 {
40396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40397 }
40398 return resultobj;
40399 fail:
40400 return NULL;
40401 }
40402
40403
40404 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40405 PyObject *resultobj = 0;
40406 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40407 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40408 wxPoint *arg3 = 0 ;
40409 wxHelpEvent::Origin arg4 ;
40410 bool result;
40411 void *argp1 = 0 ;
40412 int res1 = 0 ;
40413 void *argp2 = 0 ;
40414 int res2 = 0 ;
40415 wxPoint temp3 ;
40416 int val4 ;
40417 int ecode4 = 0 ;
40418 PyObject * obj0 = 0 ;
40419 PyObject * obj1 = 0 ;
40420 PyObject * obj2 = 0 ;
40421 PyObject * obj3 = 0 ;
40422 char * kwnames[] = {
40423 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40424 };
40425
40426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40428 if (!SWIG_IsOK(res1)) {
40429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40430 }
40431 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40432 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40433 if (!SWIG_IsOK(res2)) {
40434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40435 }
40436 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40437 {
40438 arg3 = &temp3;
40439 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40440 }
40441 ecode4 = SWIG_AsVal_int(obj3, &val4);
40442 if (!SWIG_IsOK(ecode4)) {
40443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40444 }
40445 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40446 {
40447 PyThreadState* __tstate = wxPyBeginAllowThreads();
40448 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40449 wxPyEndAllowThreads(__tstate);
40450 if (PyErr_Occurred()) SWIG_fail;
40451 }
40452 {
40453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40454 }
40455 return resultobj;
40456 fail:
40457 return NULL;
40458 }
40459
40460
40461 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40462 PyObject *resultobj = 0;
40463 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40464 wxWindow *arg2 = (wxWindow *) 0 ;
40465 wxString *arg3 = 0 ;
40466 void *argp1 = 0 ;
40467 int res1 = 0 ;
40468 void *argp2 = 0 ;
40469 int res2 = 0 ;
40470 bool temp3 = false ;
40471 PyObject * obj0 = 0 ;
40472 PyObject * obj1 = 0 ;
40473 PyObject * obj2 = 0 ;
40474 char * kwnames[] = {
40475 (char *) "self",(char *) "window",(char *) "text", NULL
40476 };
40477
40478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40480 if (!SWIG_IsOK(res1)) {
40481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40482 }
40483 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40485 if (!SWIG_IsOK(res2)) {
40486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40487 }
40488 arg2 = reinterpret_cast< wxWindow * >(argp2);
40489 {
40490 arg3 = wxString_in_helper(obj2);
40491 if (arg3 == NULL) SWIG_fail;
40492 temp3 = true;
40493 }
40494 {
40495 PyThreadState* __tstate = wxPyBeginAllowThreads();
40496 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40497 wxPyEndAllowThreads(__tstate);
40498 if (PyErr_Occurred()) SWIG_fail;
40499 }
40500 resultobj = SWIG_Py_Void();
40501 {
40502 if (temp3)
40503 delete arg3;
40504 }
40505 return resultobj;
40506 fail:
40507 {
40508 if (temp3)
40509 delete arg3;
40510 }
40511 return NULL;
40512 }
40513
40514
40515 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40516 PyObject *resultobj = 0;
40517 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40518 int arg2 ;
40519 wxString *arg3 = 0 ;
40520 void *argp1 = 0 ;
40521 int res1 = 0 ;
40522 int val2 ;
40523 int ecode2 = 0 ;
40524 bool temp3 = false ;
40525 PyObject * obj0 = 0 ;
40526 PyObject * obj1 = 0 ;
40527 PyObject * obj2 = 0 ;
40528 char * kwnames[] = {
40529 (char *) "self",(char *) "id",(char *) "text", NULL
40530 };
40531
40532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40534 if (!SWIG_IsOK(res1)) {
40535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40536 }
40537 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40538 ecode2 = SWIG_AsVal_int(obj1, &val2);
40539 if (!SWIG_IsOK(ecode2)) {
40540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40541 }
40542 arg2 = static_cast< int >(val2);
40543 {
40544 arg3 = wxString_in_helper(obj2);
40545 if (arg3 == NULL) SWIG_fail;
40546 temp3 = true;
40547 }
40548 {
40549 PyThreadState* __tstate = wxPyBeginAllowThreads();
40550 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40551 wxPyEndAllowThreads(__tstate);
40552 if (PyErr_Occurred()) SWIG_fail;
40553 }
40554 resultobj = SWIG_Py_Void();
40555 {
40556 if (temp3)
40557 delete arg3;
40558 }
40559 return resultobj;
40560 fail:
40561 {
40562 if (temp3)
40563 delete arg3;
40564 }
40565 return NULL;
40566 }
40567
40568
40569 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40570 PyObject *resultobj = 0;
40571 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40572 wxWindow *arg2 = (wxWindow *) 0 ;
40573 void *argp1 = 0 ;
40574 int res1 = 0 ;
40575 void *argp2 = 0 ;
40576 int res2 = 0 ;
40577 PyObject * obj0 = 0 ;
40578 PyObject * obj1 = 0 ;
40579 char * kwnames[] = {
40580 (char *) "self",(char *) "window", NULL
40581 };
40582
40583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40585 if (!SWIG_IsOK(res1)) {
40586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40587 }
40588 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40590 if (!SWIG_IsOK(res2)) {
40591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40592 }
40593 arg2 = reinterpret_cast< wxWindow * >(argp2);
40594 {
40595 PyThreadState* __tstate = wxPyBeginAllowThreads();
40596 (arg1)->RemoveHelp(arg2);
40597 wxPyEndAllowThreads(__tstate);
40598 if (PyErr_Occurred()) SWIG_fail;
40599 }
40600 resultobj = SWIG_Py_Void();
40601 return resultobj;
40602 fail:
40603 return NULL;
40604 }
40605
40606
40607 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40608 PyObject *resultobj = 0;
40609 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40610 void *argp1 = 0 ;
40611 int res1 = 0 ;
40612 PyObject *swig_obj[1] ;
40613
40614 if (!args) SWIG_fail;
40615 swig_obj[0] = args;
40616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40617 if (!SWIG_IsOK(res1)) {
40618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40619 }
40620 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40621 {
40622 PyThreadState* __tstate = wxPyBeginAllowThreads();
40623 wxHelpProvider_Destroy(arg1);
40624 wxPyEndAllowThreads(__tstate);
40625 if (PyErr_Occurred()) SWIG_fail;
40626 }
40627 resultobj = SWIG_Py_Void();
40628 return resultobj;
40629 fail:
40630 return NULL;
40631 }
40632
40633
40634 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40635 PyObject *obj;
40636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40637 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40638 return SWIG_Py_Void();
40639 }
40640
40641 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40642 PyObject *resultobj = 0;
40643 wxSimpleHelpProvider *result = 0 ;
40644
40645 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40646 {
40647 PyThreadState* __tstate = wxPyBeginAllowThreads();
40648 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40649 wxPyEndAllowThreads(__tstate);
40650 if (PyErr_Occurred()) SWIG_fail;
40651 }
40652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40653 return resultobj;
40654 fail:
40655 return NULL;
40656 }
40657
40658
40659 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40660 PyObject *obj;
40661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40662 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40663 return SWIG_Py_Void();
40664 }
40665
40666 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40667 return SWIG_Python_InitShadowInstance(args);
40668 }
40669
40670 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40671 PyObject *resultobj = 0;
40672 wxBitmap *arg1 = 0 ;
40673 wxCursor const &arg2_defvalue = wxNullCursor ;
40674 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40675 wxGenericDragImage *result = 0 ;
40676 void *argp1 = 0 ;
40677 int res1 = 0 ;
40678 void *argp2 = 0 ;
40679 int res2 = 0 ;
40680 PyObject * obj0 = 0 ;
40681 PyObject * obj1 = 0 ;
40682 char * kwnames[] = {
40683 (char *) "image",(char *) "cursor", NULL
40684 };
40685
40686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40687 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40688 if (!SWIG_IsOK(res1)) {
40689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40690 }
40691 if (!argp1) {
40692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40693 }
40694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40695 if (obj1) {
40696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40697 if (!SWIG_IsOK(res2)) {
40698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40699 }
40700 if (!argp2) {
40701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40702 }
40703 arg2 = reinterpret_cast< wxCursor * >(argp2);
40704 }
40705 {
40706 if (!wxPyCheckForApp()) SWIG_fail;
40707 PyThreadState* __tstate = wxPyBeginAllowThreads();
40708 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40709 wxPyEndAllowThreads(__tstate);
40710 if (PyErr_Occurred()) SWIG_fail;
40711 }
40712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40713 return resultobj;
40714 fail:
40715 return NULL;
40716 }
40717
40718
40719 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40720 PyObject *resultobj = 0;
40721 wxIcon *arg1 = 0 ;
40722 wxCursor const &arg2_defvalue = wxNullCursor ;
40723 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40724 wxGenericDragImage *result = 0 ;
40725 void *argp1 = 0 ;
40726 int res1 = 0 ;
40727 void *argp2 = 0 ;
40728 int res2 = 0 ;
40729 PyObject * obj0 = 0 ;
40730 PyObject * obj1 = 0 ;
40731 char * kwnames[] = {
40732 (char *) "image",(char *) "cursor", NULL
40733 };
40734
40735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40736 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40737 if (!SWIG_IsOK(res1)) {
40738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40739 }
40740 if (!argp1) {
40741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40742 }
40743 arg1 = reinterpret_cast< wxIcon * >(argp1);
40744 if (obj1) {
40745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40746 if (!SWIG_IsOK(res2)) {
40747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40748 }
40749 if (!argp2) {
40750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40751 }
40752 arg2 = reinterpret_cast< wxCursor * >(argp2);
40753 }
40754 {
40755 if (!wxPyCheckForApp()) SWIG_fail;
40756 PyThreadState* __tstate = wxPyBeginAllowThreads();
40757 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40758 wxPyEndAllowThreads(__tstate);
40759 if (PyErr_Occurred()) SWIG_fail;
40760 }
40761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40762 return resultobj;
40763 fail:
40764 return NULL;
40765 }
40766
40767
40768 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40769 PyObject *resultobj = 0;
40770 wxString *arg1 = 0 ;
40771 wxCursor const &arg2_defvalue = wxNullCursor ;
40772 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40773 wxGenericDragImage *result = 0 ;
40774 bool temp1 = false ;
40775 void *argp2 = 0 ;
40776 int res2 = 0 ;
40777 PyObject * obj0 = 0 ;
40778 PyObject * obj1 = 0 ;
40779 char * kwnames[] = {
40780 (char *) "str",(char *) "cursor", NULL
40781 };
40782
40783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40784 {
40785 arg1 = wxString_in_helper(obj0);
40786 if (arg1 == NULL) SWIG_fail;
40787 temp1 = true;
40788 }
40789 if (obj1) {
40790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40791 if (!SWIG_IsOK(res2)) {
40792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40793 }
40794 if (!argp2) {
40795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40796 }
40797 arg2 = reinterpret_cast< wxCursor * >(argp2);
40798 }
40799 {
40800 if (!wxPyCheckForApp()) SWIG_fail;
40801 PyThreadState* __tstate = wxPyBeginAllowThreads();
40802 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40803 wxPyEndAllowThreads(__tstate);
40804 if (PyErr_Occurred()) SWIG_fail;
40805 }
40806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40807 {
40808 if (temp1)
40809 delete arg1;
40810 }
40811 return resultobj;
40812 fail:
40813 {
40814 if (temp1)
40815 delete arg1;
40816 }
40817 return NULL;
40818 }
40819
40820
40821 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40822 PyObject *resultobj = 0;
40823 wxPyTreeCtrl *arg1 = 0 ;
40824 wxTreeItemId *arg2 = 0 ;
40825 wxGenericDragImage *result = 0 ;
40826 void *argp1 = 0 ;
40827 int res1 = 0 ;
40828 void *argp2 = 0 ;
40829 int res2 = 0 ;
40830 PyObject * obj0 = 0 ;
40831 PyObject * obj1 = 0 ;
40832 char * kwnames[] = {
40833 (char *) "treeCtrl",(char *) "id", NULL
40834 };
40835
40836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40837 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40838 if (!SWIG_IsOK(res1)) {
40839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40840 }
40841 if (!argp1) {
40842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40843 }
40844 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40846 if (!SWIG_IsOK(res2)) {
40847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40848 }
40849 if (!argp2) {
40850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40851 }
40852 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40853 {
40854 if (!wxPyCheckForApp()) SWIG_fail;
40855 PyThreadState* __tstate = wxPyBeginAllowThreads();
40856 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40857 wxPyEndAllowThreads(__tstate);
40858 if (PyErr_Occurred()) SWIG_fail;
40859 }
40860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40861 return resultobj;
40862 fail:
40863 return NULL;
40864 }
40865
40866
40867 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40868 PyObject *resultobj = 0;
40869 wxPyListCtrl *arg1 = 0 ;
40870 long arg2 ;
40871 wxGenericDragImage *result = 0 ;
40872 void *argp1 = 0 ;
40873 int res1 = 0 ;
40874 long val2 ;
40875 int ecode2 = 0 ;
40876 PyObject * obj0 = 0 ;
40877 PyObject * obj1 = 0 ;
40878 char * kwnames[] = {
40879 (char *) "listCtrl",(char *) "id", NULL
40880 };
40881
40882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40883 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40884 if (!SWIG_IsOK(res1)) {
40885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40886 }
40887 if (!argp1) {
40888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40889 }
40890 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40891 ecode2 = SWIG_AsVal_long(obj1, &val2);
40892 if (!SWIG_IsOK(ecode2)) {
40893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40894 }
40895 arg2 = static_cast< long >(val2);
40896 {
40897 if (!wxPyCheckForApp()) SWIG_fail;
40898 PyThreadState* __tstate = wxPyBeginAllowThreads();
40899 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40900 wxPyEndAllowThreads(__tstate);
40901 if (PyErr_Occurred()) SWIG_fail;
40902 }
40903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40904 return resultobj;
40905 fail:
40906 return NULL;
40907 }
40908
40909
40910 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40911 PyObject *resultobj = 0;
40912 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40913 void *argp1 = 0 ;
40914 int res1 = 0 ;
40915 PyObject *swig_obj[1] ;
40916
40917 if (!args) SWIG_fail;
40918 swig_obj[0] = args;
40919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40920 if (!SWIG_IsOK(res1)) {
40921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40922 }
40923 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40924 {
40925 PyThreadState* __tstate = wxPyBeginAllowThreads();
40926 delete arg1;
40927
40928 wxPyEndAllowThreads(__tstate);
40929 if (PyErr_Occurred()) SWIG_fail;
40930 }
40931 resultobj = SWIG_Py_Void();
40932 return resultobj;
40933 fail:
40934 return NULL;
40935 }
40936
40937
40938 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40939 PyObject *resultobj = 0;
40940 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40941 wxBitmap *arg2 = (wxBitmap *) 0 ;
40942 void *argp1 = 0 ;
40943 int res1 = 0 ;
40944 void *argp2 = 0 ;
40945 int res2 = 0 ;
40946 PyObject * obj0 = 0 ;
40947 PyObject * obj1 = 0 ;
40948 char * kwnames[] = {
40949 (char *) "self",(char *) "bitmap", NULL
40950 };
40951
40952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40954 if (!SWIG_IsOK(res1)) {
40955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40956 }
40957 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40959 if (!SWIG_IsOK(res2)) {
40960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40961 }
40962 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40963 {
40964 PyThreadState* __tstate = wxPyBeginAllowThreads();
40965 (arg1)->SetBackingBitmap(arg2);
40966 wxPyEndAllowThreads(__tstate);
40967 if (PyErr_Occurred()) SWIG_fail;
40968 }
40969 resultobj = SWIG_Py_Void();
40970 return resultobj;
40971 fail:
40972 return NULL;
40973 }
40974
40975
40976 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40977 PyObject *resultobj = 0;
40978 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40979 wxPoint *arg2 = 0 ;
40980 wxWindow *arg3 = (wxWindow *) 0 ;
40981 bool arg4 = (bool) false ;
40982 wxRect *arg5 = (wxRect *) NULL ;
40983 bool result;
40984 void *argp1 = 0 ;
40985 int res1 = 0 ;
40986 wxPoint temp2 ;
40987 void *argp3 = 0 ;
40988 int res3 = 0 ;
40989 bool val4 ;
40990 int ecode4 = 0 ;
40991 void *argp5 = 0 ;
40992 int res5 = 0 ;
40993 PyObject * obj0 = 0 ;
40994 PyObject * obj1 = 0 ;
40995 PyObject * obj2 = 0 ;
40996 PyObject * obj3 = 0 ;
40997 PyObject * obj4 = 0 ;
40998 char * kwnames[] = {
40999 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41000 };
41001
41002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41004 if (!SWIG_IsOK(res1)) {
41005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41006 }
41007 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41008 {
41009 arg2 = &temp2;
41010 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41011 }
41012 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41013 if (!SWIG_IsOK(res3)) {
41014 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41015 }
41016 arg3 = reinterpret_cast< wxWindow * >(argp3);
41017 if (obj3) {
41018 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41019 if (!SWIG_IsOK(ecode4)) {
41020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41021 }
41022 arg4 = static_cast< bool >(val4);
41023 }
41024 if (obj4) {
41025 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41026 if (!SWIG_IsOK(res5)) {
41027 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41028 }
41029 arg5 = reinterpret_cast< wxRect * >(argp5);
41030 }
41031 {
41032 PyThreadState* __tstate = wxPyBeginAllowThreads();
41033 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41034 wxPyEndAllowThreads(__tstate);
41035 if (PyErr_Occurred()) SWIG_fail;
41036 }
41037 {
41038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41039 }
41040 return resultobj;
41041 fail:
41042 return NULL;
41043 }
41044
41045
41046 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41047 PyObject *resultobj = 0;
41048 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41049 wxPoint *arg2 = 0 ;
41050 wxWindow *arg3 = (wxWindow *) 0 ;
41051 wxWindow *arg4 = (wxWindow *) 0 ;
41052 bool result;
41053 void *argp1 = 0 ;
41054 int res1 = 0 ;
41055 wxPoint temp2 ;
41056 void *argp3 = 0 ;
41057 int res3 = 0 ;
41058 void *argp4 = 0 ;
41059 int res4 = 0 ;
41060 PyObject * obj0 = 0 ;
41061 PyObject * obj1 = 0 ;
41062 PyObject * obj2 = 0 ;
41063 PyObject * obj3 = 0 ;
41064 char * kwnames[] = {
41065 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41066 };
41067
41068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41070 if (!SWIG_IsOK(res1)) {
41071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41072 }
41073 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41074 {
41075 arg2 = &temp2;
41076 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41077 }
41078 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41079 if (!SWIG_IsOK(res3)) {
41080 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41081 }
41082 arg3 = reinterpret_cast< wxWindow * >(argp3);
41083 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41084 if (!SWIG_IsOK(res4)) {
41085 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41086 }
41087 arg4 = reinterpret_cast< wxWindow * >(argp4);
41088 {
41089 PyThreadState* __tstate = wxPyBeginAllowThreads();
41090 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41091 wxPyEndAllowThreads(__tstate);
41092 if (PyErr_Occurred()) SWIG_fail;
41093 }
41094 {
41095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41096 }
41097 return resultobj;
41098 fail:
41099 return NULL;
41100 }
41101
41102
41103 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41104 PyObject *resultobj = 0;
41105 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41106 bool result;
41107 void *argp1 = 0 ;
41108 int res1 = 0 ;
41109 PyObject *swig_obj[1] ;
41110
41111 if (!args) SWIG_fail;
41112 swig_obj[0] = args;
41113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41114 if (!SWIG_IsOK(res1)) {
41115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41116 }
41117 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41118 {
41119 PyThreadState* __tstate = wxPyBeginAllowThreads();
41120 result = (bool)(arg1)->EndDrag();
41121 wxPyEndAllowThreads(__tstate);
41122 if (PyErr_Occurred()) SWIG_fail;
41123 }
41124 {
41125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41126 }
41127 return resultobj;
41128 fail:
41129 return NULL;
41130 }
41131
41132
41133 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41134 PyObject *resultobj = 0;
41135 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41136 wxPoint *arg2 = 0 ;
41137 bool result;
41138 void *argp1 = 0 ;
41139 int res1 = 0 ;
41140 wxPoint temp2 ;
41141 PyObject * obj0 = 0 ;
41142 PyObject * obj1 = 0 ;
41143 char * kwnames[] = {
41144 (char *) "self",(char *) "pt", NULL
41145 };
41146
41147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41149 if (!SWIG_IsOK(res1)) {
41150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41151 }
41152 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41153 {
41154 arg2 = &temp2;
41155 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41156 }
41157 {
41158 PyThreadState* __tstate = wxPyBeginAllowThreads();
41159 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41160 wxPyEndAllowThreads(__tstate);
41161 if (PyErr_Occurred()) SWIG_fail;
41162 }
41163 {
41164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41165 }
41166 return resultobj;
41167 fail:
41168 return NULL;
41169 }
41170
41171
41172 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41173 PyObject *resultobj = 0;
41174 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41175 bool result;
41176 void *argp1 = 0 ;
41177 int res1 = 0 ;
41178 PyObject *swig_obj[1] ;
41179
41180 if (!args) SWIG_fail;
41181 swig_obj[0] = args;
41182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41183 if (!SWIG_IsOK(res1)) {
41184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41185 }
41186 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41187 {
41188 PyThreadState* __tstate = wxPyBeginAllowThreads();
41189 result = (bool)(arg1)->Show();
41190 wxPyEndAllowThreads(__tstate);
41191 if (PyErr_Occurred()) SWIG_fail;
41192 }
41193 {
41194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41195 }
41196 return resultobj;
41197 fail:
41198 return NULL;
41199 }
41200
41201
41202 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41203 PyObject *resultobj = 0;
41204 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41205 bool result;
41206 void *argp1 = 0 ;
41207 int res1 = 0 ;
41208 PyObject *swig_obj[1] ;
41209
41210 if (!args) SWIG_fail;
41211 swig_obj[0] = args;
41212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41213 if (!SWIG_IsOK(res1)) {
41214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41215 }
41216 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41217 {
41218 PyThreadState* __tstate = wxPyBeginAllowThreads();
41219 result = (bool)(arg1)->Hide();
41220 wxPyEndAllowThreads(__tstate);
41221 if (PyErr_Occurred()) SWIG_fail;
41222 }
41223 {
41224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41225 }
41226 return resultobj;
41227 fail:
41228 return NULL;
41229 }
41230
41231
41232 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41233 PyObject *resultobj = 0;
41234 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41235 wxPoint *arg2 = 0 ;
41236 wxRect result;
41237 void *argp1 = 0 ;
41238 int res1 = 0 ;
41239 wxPoint temp2 ;
41240 PyObject * obj0 = 0 ;
41241 PyObject * obj1 = 0 ;
41242 char * kwnames[] = {
41243 (char *) "self",(char *) "pos", NULL
41244 };
41245
41246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41248 if (!SWIG_IsOK(res1)) {
41249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41250 }
41251 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41252 {
41253 arg2 = &temp2;
41254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41255 }
41256 {
41257 PyThreadState* __tstate = wxPyBeginAllowThreads();
41258 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41259 wxPyEndAllowThreads(__tstate);
41260 if (PyErr_Occurred()) SWIG_fail;
41261 }
41262 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41263 return resultobj;
41264 fail:
41265 return NULL;
41266 }
41267
41268
41269 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41270 PyObject *resultobj = 0;
41271 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41272 wxDC *arg2 = 0 ;
41273 wxPoint *arg3 = 0 ;
41274 bool result;
41275 void *argp1 = 0 ;
41276 int res1 = 0 ;
41277 void *argp2 = 0 ;
41278 int res2 = 0 ;
41279 wxPoint temp3 ;
41280 PyObject * obj0 = 0 ;
41281 PyObject * obj1 = 0 ;
41282 PyObject * obj2 = 0 ;
41283 char * kwnames[] = {
41284 (char *) "self",(char *) "dc",(char *) "pos", NULL
41285 };
41286
41287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41289 if (!SWIG_IsOK(res1)) {
41290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41291 }
41292 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41294 if (!SWIG_IsOK(res2)) {
41295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41296 }
41297 if (!argp2) {
41298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41299 }
41300 arg2 = reinterpret_cast< wxDC * >(argp2);
41301 {
41302 arg3 = &temp3;
41303 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41304 }
41305 {
41306 PyThreadState* __tstate = wxPyBeginAllowThreads();
41307 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41308 wxPyEndAllowThreads(__tstate);
41309 if (PyErr_Occurred()) SWIG_fail;
41310 }
41311 {
41312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41313 }
41314 return resultobj;
41315 fail:
41316 return NULL;
41317 }
41318
41319
41320 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41321 PyObject *resultobj = 0;
41322 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41323 wxDC *arg2 = 0 ;
41324 wxMemoryDC *arg3 = 0 ;
41325 wxRect *arg4 = 0 ;
41326 wxRect *arg5 = 0 ;
41327 bool result;
41328 void *argp1 = 0 ;
41329 int res1 = 0 ;
41330 void *argp2 = 0 ;
41331 int res2 = 0 ;
41332 void *argp3 = 0 ;
41333 int res3 = 0 ;
41334 wxRect temp4 ;
41335 wxRect temp5 ;
41336 PyObject * obj0 = 0 ;
41337 PyObject * obj1 = 0 ;
41338 PyObject * obj2 = 0 ;
41339 PyObject * obj3 = 0 ;
41340 PyObject * obj4 = 0 ;
41341 char * kwnames[] = {
41342 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41343 };
41344
41345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41347 if (!SWIG_IsOK(res1)) {
41348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41349 }
41350 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41352 if (!SWIG_IsOK(res2)) {
41353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41354 }
41355 if (!argp2) {
41356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41357 }
41358 arg2 = reinterpret_cast< wxDC * >(argp2);
41359 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41360 if (!SWIG_IsOK(res3)) {
41361 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41362 }
41363 if (!argp3) {
41364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41365 }
41366 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41367 {
41368 arg4 = &temp4;
41369 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41370 }
41371 {
41372 arg5 = &temp5;
41373 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41374 }
41375 {
41376 PyThreadState* __tstate = wxPyBeginAllowThreads();
41377 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41378 wxPyEndAllowThreads(__tstate);
41379 if (PyErr_Occurred()) SWIG_fail;
41380 }
41381 {
41382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41383 }
41384 return resultobj;
41385 fail:
41386 return NULL;
41387 }
41388
41389
41390 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41391 PyObject *resultobj = 0;
41392 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41393 wxPoint *arg2 = 0 ;
41394 wxPoint *arg3 = 0 ;
41395 bool arg4 ;
41396 bool arg5 ;
41397 bool result;
41398 void *argp1 = 0 ;
41399 int res1 = 0 ;
41400 wxPoint temp2 ;
41401 wxPoint temp3 ;
41402 bool val4 ;
41403 int ecode4 = 0 ;
41404 bool val5 ;
41405 int ecode5 = 0 ;
41406 PyObject * obj0 = 0 ;
41407 PyObject * obj1 = 0 ;
41408 PyObject * obj2 = 0 ;
41409 PyObject * obj3 = 0 ;
41410 PyObject * obj4 = 0 ;
41411 char * kwnames[] = {
41412 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41413 };
41414
41415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41417 if (!SWIG_IsOK(res1)) {
41418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41419 }
41420 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41421 {
41422 arg2 = &temp2;
41423 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41424 }
41425 {
41426 arg3 = &temp3;
41427 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41428 }
41429 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41430 if (!SWIG_IsOK(ecode4)) {
41431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41432 }
41433 arg4 = static_cast< bool >(val4);
41434 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41435 if (!SWIG_IsOK(ecode5)) {
41436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41437 }
41438 arg5 = static_cast< bool >(val5);
41439 {
41440 PyThreadState* __tstate = wxPyBeginAllowThreads();
41441 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41442 wxPyEndAllowThreads(__tstate);
41443 if (PyErr_Occurred()) SWIG_fail;
41444 }
41445 {
41446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41447 }
41448 return resultobj;
41449 fail:
41450 return NULL;
41451 }
41452
41453
41454 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41455 PyObject *obj;
41456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41457 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41458 return SWIG_Py_Void();
41459 }
41460
41461 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41462 return SWIG_Python_InitShadowInstance(args);
41463 }
41464
41465 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41466 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41467 return 1;
41468 }
41469
41470
41471 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41472 PyObject *pyobj = 0;
41473
41474 {
41475 #if wxUSE_UNICODE
41476 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41477 #else
41478 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41479 #endif
41480 }
41481 return pyobj;
41482 }
41483
41484
41485 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41486 PyObject *resultobj = 0;
41487 wxWindow *arg1 = (wxWindow *) 0 ;
41488 int arg2 = (int) -1 ;
41489 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41490 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41493 wxSize const &arg5_defvalue = wxDefaultSize ;
41494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41495 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41496 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41497 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41498 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41499 wxString *arg8 = (wxString *) &arg8_defvalue ;
41500 wxDatePickerCtrl *result = 0 ;
41501 void *argp1 = 0 ;
41502 int res1 = 0 ;
41503 int val2 ;
41504 int ecode2 = 0 ;
41505 void *argp3 = 0 ;
41506 int res3 = 0 ;
41507 wxPoint temp4 ;
41508 wxSize temp5 ;
41509 long val6 ;
41510 int ecode6 = 0 ;
41511 void *argp7 = 0 ;
41512 int res7 = 0 ;
41513 bool temp8 = false ;
41514 PyObject * obj0 = 0 ;
41515 PyObject * obj1 = 0 ;
41516 PyObject * obj2 = 0 ;
41517 PyObject * obj3 = 0 ;
41518 PyObject * obj4 = 0 ;
41519 PyObject * obj5 = 0 ;
41520 PyObject * obj6 = 0 ;
41521 PyObject * obj7 = 0 ;
41522 char * kwnames[] = {
41523 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41524 };
41525
41526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41528 if (!SWIG_IsOK(res1)) {
41529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41530 }
41531 arg1 = reinterpret_cast< wxWindow * >(argp1);
41532 if (obj1) {
41533 ecode2 = SWIG_AsVal_int(obj1, &val2);
41534 if (!SWIG_IsOK(ecode2)) {
41535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41536 }
41537 arg2 = static_cast< int >(val2);
41538 }
41539 if (obj2) {
41540 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41541 if (!SWIG_IsOK(res3)) {
41542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41543 }
41544 if (!argp3) {
41545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41546 }
41547 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41548 }
41549 if (obj3) {
41550 {
41551 arg4 = &temp4;
41552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41553 }
41554 }
41555 if (obj4) {
41556 {
41557 arg5 = &temp5;
41558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41559 }
41560 }
41561 if (obj5) {
41562 ecode6 = SWIG_AsVal_long(obj5, &val6);
41563 if (!SWIG_IsOK(ecode6)) {
41564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41565 }
41566 arg6 = static_cast< long >(val6);
41567 }
41568 if (obj6) {
41569 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41570 if (!SWIG_IsOK(res7)) {
41571 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41572 }
41573 if (!argp7) {
41574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41575 }
41576 arg7 = reinterpret_cast< wxValidator * >(argp7);
41577 }
41578 if (obj7) {
41579 {
41580 arg8 = wxString_in_helper(obj7);
41581 if (arg8 == NULL) SWIG_fail;
41582 temp8 = true;
41583 }
41584 }
41585 {
41586 if (!wxPyCheckForApp()) SWIG_fail;
41587 PyThreadState* __tstate = wxPyBeginAllowThreads();
41588 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41589 wxPyEndAllowThreads(__tstate);
41590 if (PyErr_Occurred()) SWIG_fail;
41591 }
41592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41593 {
41594 if (temp8)
41595 delete arg8;
41596 }
41597 return resultobj;
41598 fail:
41599 {
41600 if (temp8)
41601 delete arg8;
41602 }
41603 return NULL;
41604 }
41605
41606
41607 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41608 PyObject *resultobj = 0;
41609 wxDatePickerCtrl *result = 0 ;
41610
41611 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41612 {
41613 if (!wxPyCheckForApp()) SWIG_fail;
41614 PyThreadState* __tstate = wxPyBeginAllowThreads();
41615 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41616 wxPyEndAllowThreads(__tstate);
41617 if (PyErr_Occurred()) SWIG_fail;
41618 }
41619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41620 return resultobj;
41621 fail:
41622 return NULL;
41623 }
41624
41625
41626 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41627 PyObject *resultobj = 0;
41628 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41629 wxWindow *arg2 = (wxWindow *) 0 ;
41630 int arg3 = (int) -1 ;
41631 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41632 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41633 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41634 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41635 wxSize const &arg6_defvalue = wxDefaultSize ;
41636 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41637 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41638 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41639 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41640 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41641 wxString *arg9 = (wxString *) &arg9_defvalue ;
41642 bool result;
41643 void *argp1 = 0 ;
41644 int res1 = 0 ;
41645 void *argp2 = 0 ;
41646 int res2 = 0 ;
41647 int val3 ;
41648 int ecode3 = 0 ;
41649 void *argp4 = 0 ;
41650 int res4 = 0 ;
41651 wxPoint temp5 ;
41652 wxSize temp6 ;
41653 long val7 ;
41654 int ecode7 = 0 ;
41655 void *argp8 = 0 ;
41656 int res8 = 0 ;
41657 bool temp9 = false ;
41658 PyObject * obj0 = 0 ;
41659 PyObject * obj1 = 0 ;
41660 PyObject * obj2 = 0 ;
41661 PyObject * obj3 = 0 ;
41662 PyObject * obj4 = 0 ;
41663 PyObject * obj5 = 0 ;
41664 PyObject * obj6 = 0 ;
41665 PyObject * obj7 = 0 ;
41666 PyObject * obj8 = 0 ;
41667 char * kwnames[] = {
41668 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41669 };
41670
41671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41673 if (!SWIG_IsOK(res1)) {
41674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41675 }
41676 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41678 if (!SWIG_IsOK(res2)) {
41679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41680 }
41681 arg2 = reinterpret_cast< wxWindow * >(argp2);
41682 if (obj2) {
41683 ecode3 = SWIG_AsVal_int(obj2, &val3);
41684 if (!SWIG_IsOK(ecode3)) {
41685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41686 }
41687 arg3 = static_cast< int >(val3);
41688 }
41689 if (obj3) {
41690 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41691 if (!SWIG_IsOK(res4)) {
41692 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41693 }
41694 if (!argp4) {
41695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41696 }
41697 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41698 }
41699 if (obj4) {
41700 {
41701 arg5 = &temp5;
41702 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41703 }
41704 }
41705 if (obj5) {
41706 {
41707 arg6 = &temp6;
41708 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41709 }
41710 }
41711 if (obj6) {
41712 ecode7 = SWIG_AsVal_long(obj6, &val7);
41713 if (!SWIG_IsOK(ecode7)) {
41714 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41715 }
41716 arg7 = static_cast< long >(val7);
41717 }
41718 if (obj7) {
41719 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41720 if (!SWIG_IsOK(res8)) {
41721 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41722 }
41723 if (!argp8) {
41724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41725 }
41726 arg8 = reinterpret_cast< wxValidator * >(argp8);
41727 }
41728 if (obj8) {
41729 {
41730 arg9 = wxString_in_helper(obj8);
41731 if (arg9 == NULL) SWIG_fail;
41732 temp9 = true;
41733 }
41734 }
41735 {
41736 PyThreadState* __tstate = wxPyBeginAllowThreads();
41737 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41738 wxPyEndAllowThreads(__tstate);
41739 if (PyErr_Occurred()) SWIG_fail;
41740 }
41741 {
41742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41743 }
41744 {
41745 if (temp9)
41746 delete arg9;
41747 }
41748 return resultobj;
41749 fail:
41750 {
41751 if (temp9)
41752 delete arg9;
41753 }
41754 return NULL;
41755 }
41756
41757
41758 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41759 PyObject *resultobj = 0;
41760 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41761 wxDateTime *arg2 = 0 ;
41762 void *argp1 = 0 ;
41763 int res1 = 0 ;
41764 void *argp2 = 0 ;
41765 int res2 = 0 ;
41766 PyObject * obj0 = 0 ;
41767 PyObject * obj1 = 0 ;
41768 char * kwnames[] = {
41769 (char *) "self",(char *) "dt", NULL
41770 };
41771
41772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41774 if (!SWIG_IsOK(res1)) {
41775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41776 }
41777 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41779 if (!SWIG_IsOK(res2)) {
41780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41781 }
41782 if (!argp2) {
41783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41784 }
41785 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41786 {
41787 PyThreadState* __tstate = wxPyBeginAllowThreads();
41788 (arg1)->SetValue((wxDateTime const &)*arg2);
41789 wxPyEndAllowThreads(__tstate);
41790 if (PyErr_Occurred()) SWIG_fail;
41791 }
41792 resultobj = SWIG_Py_Void();
41793 return resultobj;
41794 fail:
41795 return NULL;
41796 }
41797
41798
41799 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41800 PyObject *resultobj = 0;
41801 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41802 wxDateTime result;
41803 void *argp1 = 0 ;
41804 int res1 = 0 ;
41805 PyObject *swig_obj[1] ;
41806
41807 if (!args) SWIG_fail;
41808 swig_obj[0] = args;
41809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41810 if (!SWIG_IsOK(res1)) {
41811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41812 }
41813 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41814 {
41815 PyThreadState* __tstate = wxPyBeginAllowThreads();
41816 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41817 wxPyEndAllowThreads(__tstate);
41818 if (PyErr_Occurred()) SWIG_fail;
41819 }
41820 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41821 return resultobj;
41822 fail:
41823 return NULL;
41824 }
41825
41826
41827 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41828 PyObject *resultobj = 0;
41829 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41830 wxDateTime *arg2 = 0 ;
41831 wxDateTime *arg3 = 0 ;
41832 void *argp1 = 0 ;
41833 int res1 = 0 ;
41834 void *argp2 = 0 ;
41835 int res2 = 0 ;
41836 void *argp3 = 0 ;
41837 int res3 = 0 ;
41838 PyObject * obj0 = 0 ;
41839 PyObject * obj1 = 0 ;
41840 PyObject * obj2 = 0 ;
41841 char * kwnames[] = {
41842 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41843 };
41844
41845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41847 if (!SWIG_IsOK(res1)) {
41848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41849 }
41850 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41852 if (!SWIG_IsOK(res2)) {
41853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41854 }
41855 if (!argp2) {
41856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41857 }
41858 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41859 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41860 if (!SWIG_IsOK(res3)) {
41861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41862 }
41863 if (!argp3) {
41864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41865 }
41866 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41867 {
41868 PyThreadState* __tstate = wxPyBeginAllowThreads();
41869 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41870 wxPyEndAllowThreads(__tstate);
41871 if (PyErr_Occurred()) SWIG_fail;
41872 }
41873 resultobj = SWIG_Py_Void();
41874 return resultobj;
41875 fail:
41876 return NULL;
41877 }
41878
41879
41880 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41881 PyObject *resultobj = 0;
41882 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41883 wxDateTime result;
41884 void *argp1 = 0 ;
41885 int res1 = 0 ;
41886 PyObject *swig_obj[1] ;
41887
41888 if (!args) SWIG_fail;
41889 swig_obj[0] = args;
41890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41891 if (!SWIG_IsOK(res1)) {
41892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41893 }
41894 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41895 {
41896 PyThreadState* __tstate = wxPyBeginAllowThreads();
41897 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41898 wxPyEndAllowThreads(__tstate);
41899 if (PyErr_Occurred()) SWIG_fail;
41900 }
41901 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41902 return resultobj;
41903 fail:
41904 return NULL;
41905 }
41906
41907
41908 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41909 PyObject *resultobj = 0;
41910 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41911 wxDateTime result;
41912 void *argp1 = 0 ;
41913 int res1 = 0 ;
41914 PyObject *swig_obj[1] ;
41915
41916 if (!args) SWIG_fail;
41917 swig_obj[0] = args;
41918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41919 if (!SWIG_IsOK(res1)) {
41920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41921 }
41922 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41923 {
41924 PyThreadState* __tstate = wxPyBeginAllowThreads();
41925 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41926 wxPyEndAllowThreads(__tstate);
41927 if (PyErr_Occurred()) SWIG_fail;
41928 }
41929 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41930 return resultobj;
41931 fail:
41932 return NULL;
41933 }
41934
41935
41936 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41937 PyObject *obj;
41938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41939 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41940 return SWIG_Py_Void();
41941 }
41942
41943 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41944 return SWIG_Python_InitShadowInstance(args);
41945 }
41946
41947 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41948 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41949 return 1;
41950 }
41951
41952
41953 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41954 PyObject *pyobj = 0;
41955
41956 {
41957 #if wxUSE_UNICODE
41958 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41959 #else
41960 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41961 #endif
41962 }
41963 return pyobj;
41964 }
41965
41966
41967 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41968 PyObject *resultobj = 0;
41969 wxWindow *arg1 = (wxWindow *) 0 ;
41970 int arg2 ;
41971 wxString *arg3 = 0 ;
41972 wxString *arg4 = 0 ;
41973 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41974 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41975 wxSize const &arg6_defvalue = wxDefaultSize ;
41976 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41977 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41978 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41979 wxString *arg8 = (wxString *) &arg8_defvalue ;
41980 wxHyperlinkCtrl *result = 0 ;
41981 void *argp1 = 0 ;
41982 int res1 = 0 ;
41983 int val2 ;
41984 int ecode2 = 0 ;
41985 bool temp3 = false ;
41986 bool temp4 = false ;
41987 wxPoint temp5 ;
41988 wxSize temp6 ;
41989 long val7 ;
41990 int ecode7 = 0 ;
41991 bool temp8 = false ;
41992 PyObject * obj0 = 0 ;
41993 PyObject * obj1 = 0 ;
41994 PyObject * obj2 = 0 ;
41995 PyObject * obj3 = 0 ;
41996 PyObject * obj4 = 0 ;
41997 PyObject * obj5 = 0 ;
41998 PyObject * obj6 = 0 ;
41999 PyObject * obj7 = 0 ;
42000 char * kwnames[] = {
42001 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42002 };
42003
42004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42006 if (!SWIG_IsOK(res1)) {
42007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42008 }
42009 arg1 = reinterpret_cast< wxWindow * >(argp1);
42010 ecode2 = SWIG_AsVal_int(obj1, &val2);
42011 if (!SWIG_IsOK(ecode2)) {
42012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42013 }
42014 arg2 = static_cast< int >(val2);
42015 {
42016 arg3 = wxString_in_helper(obj2);
42017 if (arg3 == NULL) SWIG_fail;
42018 temp3 = true;
42019 }
42020 {
42021 arg4 = wxString_in_helper(obj3);
42022 if (arg4 == NULL) SWIG_fail;
42023 temp4 = true;
42024 }
42025 if (obj4) {
42026 {
42027 arg5 = &temp5;
42028 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42029 }
42030 }
42031 if (obj5) {
42032 {
42033 arg6 = &temp6;
42034 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42035 }
42036 }
42037 if (obj6) {
42038 ecode7 = SWIG_AsVal_long(obj6, &val7);
42039 if (!SWIG_IsOK(ecode7)) {
42040 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42041 }
42042 arg7 = static_cast< long >(val7);
42043 }
42044 if (obj7) {
42045 {
42046 arg8 = wxString_in_helper(obj7);
42047 if (arg8 == NULL) SWIG_fail;
42048 temp8 = true;
42049 }
42050 }
42051 {
42052 if (!wxPyCheckForApp()) SWIG_fail;
42053 PyThreadState* __tstate = wxPyBeginAllowThreads();
42054 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42055 wxPyEndAllowThreads(__tstate);
42056 if (PyErr_Occurred()) SWIG_fail;
42057 }
42058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42059 {
42060 if (temp3)
42061 delete arg3;
42062 }
42063 {
42064 if (temp4)
42065 delete arg4;
42066 }
42067 {
42068 if (temp8)
42069 delete arg8;
42070 }
42071 return resultobj;
42072 fail:
42073 {
42074 if (temp3)
42075 delete arg3;
42076 }
42077 {
42078 if (temp4)
42079 delete arg4;
42080 }
42081 {
42082 if (temp8)
42083 delete arg8;
42084 }
42085 return NULL;
42086 }
42087
42088
42089 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42090 PyObject *resultobj = 0;
42091 wxHyperlinkCtrl *result = 0 ;
42092
42093 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42094 {
42095 if (!wxPyCheckForApp()) SWIG_fail;
42096 PyThreadState* __tstate = wxPyBeginAllowThreads();
42097 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42098 wxPyEndAllowThreads(__tstate);
42099 if (PyErr_Occurred()) SWIG_fail;
42100 }
42101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42102 return resultobj;
42103 fail:
42104 return NULL;
42105 }
42106
42107
42108 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42109 PyObject *resultobj = 0;
42110 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42111 wxWindow *arg2 = (wxWindow *) 0 ;
42112 int arg3 ;
42113 wxString *arg4 = 0 ;
42114 wxString *arg5 = 0 ;
42115 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42116 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42117 wxSize const &arg7_defvalue = wxDefaultSize ;
42118 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42119 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42120 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42121 wxString *arg9 = (wxString *) &arg9_defvalue ;
42122 bool result;
42123 void *argp1 = 0 ;
42124 int res1 = 0 ;
42125 void *argp2 = 0 ;
42126 int res2 = 0 ;
42127 int val3 ;
42128 int ecode3 = 0 ;
42129 bool temp4 = false ;
42130 bool temp5 = false ;
42131 wxPoint temp6 ;
42132 wxSize temp7 ;
42133 long val8 ;
42134 int ecode8 = 0 ;
42135 bool temp9 = false ;
42136 PyObject * obj0 = 0 ;
42137 PyObject * obj1 = 0 ;
42138 PyObject * obj2 = 0 ;
42139 PyObject * obj3 = 0 ;
42140 PyObject * obj4 = 0 ;
42141 PyObject * obj5 = 0 ;
42142 PyObject * obj6 = 0 ;
42143 PyObject * obj7 = 0 ;
42144 PyObject * obj8 = 0 ;
42145 char * kwnames[] = {
42146 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42147 };
42148
42149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42151 if (!SWIG_IsOK(res1)) {
42152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42153 }
42154 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42156 if (!SWIG_IsOK(res2)) {
42157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42158 }
42159 arg2 = reinterpret_cast< wxWindow * >(argp2);
42160 ecode3 = SWIG_AsVal_int(obj2, &val3);
42161 if (!SWIG_IsOK(ecode3)) {
42162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42163 }
42164 arg3 = static_cast< int >(val3);
42165 {
42166 arg4 = wxString_in_helper(obj3);
42167 if (arg4 == NULL) SWIG_fail;
42168 temp4 = true;
42169 }
42170 {
42171 arg5 = wxString_in_helper(obj4);
42172 if (arg5 == NULL) SWIG_fail;
42173 temp5 = true;
42174 }
42175 if (obj5) {
42176 {
42177 arg6 = &temp6;
42178 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42179 }
42180 }
42181 if (obj6) {
42182 {
42183 arg7 = &temp7;
42184 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42185 }
42186 }
42187 if (obj7) {
42188 ecode8 = SWIG_AsVal_long(obj7, &val8);
42189 if (!SWIG_IsOK(ecode8)) {
42190 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42191 }
42192 arg8 = static_cast< long >(val8);
42193 }
42194 if (obj8) {
42195 {
42196 arg9 = wxString_in_helper(obj8);
42197 if (arg9 == NULL) SWIG_fail;
42198 temp9 = true;
42199 }
42200 }
42201 {
42202 PyThreadState* __tstate = wxPyBeginAllowThreads();
42203 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42204 wxPyEndAllowThreads(__tstate);
42205 if (PyErr_Occurred()) SWIG_fail;
42206 }
42207 {
42208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42209 }
42210 {
42211 if (temp4)
42212 delete arg4;
42213 }
42214 {
42215 if (temp5)
42216 delete arg5;
42217 }
42218 {
42219 if (temp9)
42220 delete arg9;
42221 }
42222 return resultobj;
42223 fail:
42224 {
42225 if (temp4)
42226 delete arg4;
42227 }
42228 {
42229 if (temp5)
42230 delete arg5;
42231 }
42232 {
42233 if (temp9)
42234 delete arg9;
42235 }
42236 return NULL;
42237 }
42238
42239
42240 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42241 PyObject *resultobj = 0;
42242 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42243 wxColour result;
42244 void *argp1 = 0 ;
42245 int res1 = 0 ;
42246 PyObject *swig_obj[1] ;
42247
42248 if (!args) SWIG_fail;
42249 swig_obj[0] = args;
42250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42251 if (!SWIG_IsOK(res1)) {
42252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42253 }
42254 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42255 {
42256 PyThreadState* __tstate = wxPyBeginAllowThreads();
42257 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42258 wxPyEndAllowThreads(__tstate);
42259 if (PyErr_Occurred()) SWIG_fail;
42260 }
42261 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42262 return resultobj;
42263 fail:
42264 return NULL;
42265 }
42266
42267
42268 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42269 PyObject *resultobj = 0;
42270 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42271 wxColour *arg2 = 0 ;
42272 void *argp1 = 0 ;
42273 int res1 = 0 ;
42274 wxColour temp2 ;
42275 PyObject * obj0 = 0 ;
42276 PyObject * obj1 = 0 ;
42277 char * kwnames[] = {
42278 (char *) "self",(char *) "colour", NULL
42279 };
42280
42281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42283 if (!SWIG_IsOK(res1)) {
42284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42285 }
42286 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42287 {
42288 arg2 = &temp2;
42289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42290 }
42291 {
42292 PyThreadState* __tstate = wxPyBeginAllowThreads();
42293 (arg1)->SetHoverColour((wxColour const &)*arg2);
42294 wxPyEndAllowThreads(__tstate);
42295 if (PyErr_Occurred()) SWIG_fail;
42296 }
42297 resultobj = SWIG_Py_Void();
42298 return resultobj;
42299 fail:
42300 return NULL;
42301 }
42302
42303
42304 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42305 PyObject *resultobj = 0;
42306 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42307 wxColour result;
42308 void *argp1 = 0 ;
42309 int res1 = 0 ;
42310 PyObject *swig_obj[1] ;
42311
42312 if (!args) SWIG_fail;
42313 swig_obj[0] = args;
42314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42315 if (!SWIG_IsOK(res1)) {
42316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42317 }
42318 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42319 {
42320 PyThreadState* __tstate = wxPyBeginAllowThreads();
42321 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42322 wxPyEndAllowThreads(__tstate);
42323 if (PyErr_Occurred()) SWIG_fail;
42324 }
42325 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42326 return resultobj;
42327 fail:
42328 return NULL;
42329 }
42330
42331
42332 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42333 PyObject *resultobj = 0;
42334 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42335 wxColour *arg2 = 0 ;
42336 void *argp1 = 0 ;
42337 int res1 = 0 ;
42338 wxColour temp2 ;
42339 PyObject * obj0 = 0 ;
42340 PyObject * obj1 = 0 ;
42341 char * kwnames[] = {
42342 (char *) "self",(char *) "colour", NULL
42343 };
42344
42345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42347 if (!SWIG_IsOK(res1)) {
42348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42349 }
42350 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42351 {
42352 arg2 = &temp2;
42353 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42354 }
42355 {
42356 PyThreadState* __tstate = wxPyBeginAllowThreads();
42357 (arg1)->SetNormalColour((wxColour const &)*arg2);
42358 wxPyEndAllowThreads(__tstate);
42359 if (PyErr_Occurred()) SWIG_fail;
42360 }
42361 resultobj = SWIG_Py_Void();
42362 return resultobj;
42363 fail:
42364 return NULL;
42365 }
42366
42367
42368 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42369 PyObject *resultobj = 0;
42370 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42371 wxColour result;
42372 void *argp1 = 0 ;
42373 int res1 = 0 ;
42374 PyObject *swig_obj[1] ;
42375
42376 if (!args) SWIG_fail;
42377 swig_obj[0] = args;
42378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42379 if (!SWIG_IsOK(res1)) {
42380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42381 }
42382 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42383 {
42384 PyThreadState* __tstate = wxPyBeginAllowThreads();
42385 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42386 wxPyEndAllowThreads(__tstate);
42387 if (PyErr_Occurred()) SWIG_fail;
42388 }
42389 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42390 return resultobj;
42391 fail:
42392 return NULL;
42393 }
42394
42395
42396 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42397 PyObject *resultobj = 0;
42398 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42399 wxColour *arg2 = 0 ;
42400 void *argp1 = 0 ;
42401 int res1 = 0 ;
42402 wxColour temp2 ;
42403 PyObject * obj0 = 0 ;
42404 PyObject * obj1 = 0 ;
42405 char * kwnames[] = {
42406 (char *) "self",(char *) "colour", NULL
42407 };
42408
42409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42411 if (!SWIG_IsOK(res1)) {
42412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42413 }
42414 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42415 {
42416 arg2 = &temp2;
42417 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42418 }
42419 {
42420 PyThreadState* __tstate = wxPyBeginAllowThreads();
42421 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42422 wxPyEndAllowThreads(__tstate);
42423 if (PyErr_Occurred()) SWIG_fail;
42424 }
42425 resultobj = SWIG_Py_Void();
42426 return resultobj;
42427 fail:
42428 return NULL;
42429 }
42430
42431
42432 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42433 PyObject *resultobj = 0;
42434 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42435 wxString result;
42436 void *argp1 = 0 ;
42437 int res1 = 0 ;
42438 PyObject *swig_obj[1] ;
42439
42440 if (!args) SWIG_fail;
42441 swig_obj[0] = args;
42442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42443 if (!SWIG_IsOK(res1)) {
42444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42445 }
42446 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42447 {
42448 PyThreadState* __tstate = wxPyBeginAllowThreads();
42449 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42450 wxPyEndAllowThreads(__tstate);
42451 if (PyErr_Occurred()) SWIG_fail;
42452 }
42453 {
42454 #if wxUSE_UNICODE
42455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42456 #else
42457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42458 #endif
42459 }
42460 return resultobj;
42461 fail:
42462 return NULL;
42463 }
42464
42465
42466 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42467 PyObject *resultobj = 0;
42468 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42469 wxString *arg2 = 0 ;
42470 void *argp1 = 0 ;
42471 int res1 = 0 ;
42472 bool temp2 = false ;
42473 PyObject * obj0 = 0 ;
42474 PyObject * obj1 = 0 ;
42475 char * kwnames[] = {
42476 (char *) "self",(char *) "url", NULL
42477 };
42478
42479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42481 if (!SWIG_IsOK(res1)) {
42482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42483 }
42484 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42485 {
42486 arg2 = wxString_in_helper(obj1);
42487 if (arg2 == NULL) SWIG_fail;
42488 temp2 = true;
42489 }
42490 {
42491 PyThreadState* __tstate = wxPyBeginAllowThreads();
42492 (arg1)->SetURL((wxString const &)*arg2);
42493 wxPyEndAllowThreads(__tstate);
42494 if (PyErr_Occurred()) SWIG_fail;
42495 }
42496 resultobj = SWIG_Py_Void();
42497 {
42498 if (temp2)
42499 delete arg2;
42500 }
42501 return resultobj;
42502 fail:
42503 {
42504 if (temp2)
42505 delete arg2;
42506 }
42507 return NULL;
42508 }
42509
42510
42511 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42512 PyObject *resultobj = 0;
42513 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42514 bool arg2 = (bool) true ;
42515 void *argp1 = 0 ;
42516 int res1 = 0 ;
42517 bool val2 ;
42518 int ecode2 = 0 ;
42519 PyObject * obj0 = 0 ;
42520 PyObject * obj1 = 0 ;
42521 char * kwnames[] = {
42522 (char *) "self",(char *) "visited", NULL
42523 };
42524
42525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42527 if (!SWIG_IsOK(res1)) {
42528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42529 }
42530 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42531 if (obj1) {
42532 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42533 if (!SWIG_IsOK(ecode2)) {
42534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42535 }
42536 arg2 = static_cast< bool >(val2);
42537 }
42538 {
42539 PyThreadState* __tstate = wxPyBeginAllowThreads();
42540 (arg1)->SetVisited(arg2);
42541 wxPyEndAllowThreads(__tstate);
42542 if (PyErr_Occurred()) SWIG_fail;
42543 }
42544 resultobj = SWIG_Py_Void();
42545 return resultobj;
42546 fail:
42547 return NULL;
42548 }
42549
42550
42551 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42552 PyObject *resultobj = 0;
42553 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42554 bool result;
42555 void *argp1 = 0 ;
42556 int res1 = 0 ;
42557 PyObject *swig_obj[1] ;
42558
42559 if (!args) SWIG_fail;
42560 swig_obj[0] = args;
42561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42562 if (!SWIG_IsOK(res1)) {
42563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42564 }
42565 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42566 {
42567 PyThreadState* __tstate = wxPyBeginAllowThreads();
42568 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42569 wxPyEndAllowThreads(__tstate);
42570 if (PyErr_Occurred()) SWIG_fail;
42571 }
42572 {
42573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42574 }
42575 return resultobj;
42576 fail:
42577 return NULL;
42578 }
42579
42580
42581 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42582 PyObject *obj;
42583 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42584 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42585 return SWIG_Py_Void();
42586 }
42587
42588 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42589 return SWIG_Python_InitShadowInstance(args);
42590 }
42591
42592 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42593 PyObject *resultobj = 0;
42594 wxObject *arg1 = (wxObject *) 0 ;
42595 int arg2 ;
42596 wxString *arg3 = 0 ;
42597 wxHyperlinkEvent *result = 0 ;
42598 void *argp1 = 0 ;
42599 int res1 = 0 ;
42600 int val2 ;
42601 int ecode2 = 0 ;
42602 bool temp3 = false ;
42603 PyObject * obj0 = 0 ;
42604 PyObject * obj1 = 0 ;
42605 PyObject * obj2 = 0 ;
42606 char * kwnames[] = {
42607 (char *) "generator",(char *) "id",(char *) "url", NULL
42608 };
42609
42610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42612 if (!SWIG_IsOK(res1)) {
42613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42614 }
42615 arg1 = reinterpret_cast< wxObject * >(argp1);
42616 ecode2 = SWIG_AsVal_int(obj1, &val2);
42617 if (!SWIG_IsOK(ecode2)) {
42618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42619 }
42620 arg2 = static_cast< int >(val2);
42621 {
42622 arg3 = wxString_in_helper(obj2);
42623 if (arg3 == NULL) SWIG_fail;
42624 temp3 = true;
42625 }
42626 {
42627 PyThreadState* __tstate = wxPyBeginAllowThreads();
42628 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42629 wxPyEndAllowThreads(__tstate);
42630 if (PyErr_Occurred()) SWIG_fail;
42631 }
42632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42633 {
42634 if (temp3)
42635 delete arg3;
42636 }
42637 return resultobj;
42638 fail:
42639 {
42640 if (temp3)
42641 delete arg3;
42642 }
42643 return NULL;
42644 }
42645
42646
42647 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42648 PyObject *resultobj = 0;
42649 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42650 wxString result;
42651 void *argp1 = 0 ;
42652 int res1 = 0 ;
42653 PyObject *swig_obj[1] ;
42654
42655 if (!args) SWIG_fail;
42656 swig_obj[0] = args;
42657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42658 if (!SWIG_IsOK(res1)) {
42659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42660 }
42661 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42662 {
42663 PyThreadState* __tstate = wxPyBeginAllowThreads();
42664 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42665 wxPyEndAllowThreads(__tstate);
42666 if (PyErr_Occurred()) SWIG_fail;
42667 }
42668 {
42669 #if wxUSE_UNICODE
42670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42671 #else
42672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42673 #endif
42674 }
42675 return resultobj;
42676 fail:
42677 return NULL;
42678 }
42679
42680
42681 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42682 PyObject *resultobj = 0;
42683 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42684 wxString *arg2 = 0 ;
42685 void *argp1 = 0 ;
42686 int res1 = 0 ;
42687 bool temp2 = false ;
42688 PyObject * obj0 = 0 ;
42689 PyObject * obj1 = 0 ;
42690 char * kwnames[] = {
42691 (char *) "self",(char *) "url", NULL
42692 };
42693
42694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42696 if (!SWIG_IsOK(res1)) {
42697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42698 }
42699 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42700 {
42701 arg2 = wxString_in_helper(obj1);
42702 if (arg2 == NULL) SWIG_fail;
42703 temp2 = true;
42704 }
42705 {
42706 PyThreadState* __tstate = wxPyBeginAllowThreads();
42707 (arg1)->SetURL((wxString const &)*arg2);
42708 wxPyEndAllowThreads(__tstate);
42709 if (PyErr_Occurred()) SWIG_fail;
42710 }
42711 resultobj = SWIG_Py_Void();
42712 {
42713 if (temp2)
42714 delete arg2;
42715 }
42716 return resultobj;
42717 fail:
42718 {
42719 if (temp2)
42720 delete arg2;
42721 }
42722 return NULL;
42723 }
42724
42725
42726 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42727 PyObject *obj;
42728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42729 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42730 return SWIG_Py_Void();
42731 }
42732
42733 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42734 return SWIG_Python_InitShadowInstance(args);
42735 }
42736
42737 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42738 PyObject *resultobj = 0;
42739 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42740 wxWindow *arg2 = (wxWindow *) 0 ;
42741 int arg3 ;
42742 wxString const &arg4_defvalue = wxEmptyString ;
42743 wxString *arg4 = (wxString *) &arg4_defvalue ;
42744 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42745 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42746 wxSize const &arg6_defvalue = wxDefaultSize ;
42747 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42748 long arg7 = (long) 0 ;
42749 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42750 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42751 wxString const &arg9_defvalue = wxButtonNameStr ;
42752 wxString *arg9 = (wxString *) &arg9_defvalue ;
42753 bool result;
42754 void *argp1 = 0 ;
42755 int res1 = 0 ;
42756 void *argp2 = 0 ;
42757 int res2 = 0 ;
42758 int val3 ;
42759 int ecode3 = 0 ;
42760 bool temp4 = false ;
42761 wxPoint temp5 ;
42762 wxSize temp6 ;
42763 long val7 ;
42764 int ecode7 = 0 ;
42765 void *argp8 = 0 ;
42766 int res8 = 0 ;
42767 bool temp9 = false ;
42768 PyObject * obj0 = 0 ;
42769 PyObject * obj1 = 0 ;
42770 PyObject * obj2 = 0 ;
42771 PyObject * obj3 = 0 ;
42772 PyObject * obj4 = 0 ;
42773 PyObject * obj5 = 0 ;
42774 PyObject * obj6 = 0 ;
42775 PyObject * obj7 = 0 ;
42776 PyObject * obj8 = 0 ;
42777 char * kwnames[] = {
42778 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42779 };
42780
42781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42783 if (!SWIG_IsOK(res1)) {
42784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42785 }
42786 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42787 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42788 if (!SWIG_IsOK(res2)) {
42789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42790 }
42791 arg2 = reinterpret_cast< wxWindow * >(argp2);
42792 ecode3 = SWIG_AsVal_int(obj2, &val3);
42793 if (!SWIG_IsOK(ecode3)) {
42794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42795 }
42796 arg3 = static_cast< int >(val3);
42797 if (obj3) {
42798 {
42799 arg4 = wxString_in_helper(obj3);
42800 if (arg4 == NULL) SWIG_fail;
42801 temp4 = true;
42802 }
42803 }
42804 if (obj4) {
42805 {
42806 arg5 = &temp5;
42807 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42808 }
42809 }
42810 if (obj5) {
42811 {
42812 arg6 = &temp6;
42813 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42814 }
42815 }
42816 if (obj6) {
42817 ecode7 = SWIG_AsVal_long(obj6, &val7);
42818 if (!SWIG_IsOK(ecode7)) {
42819 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42820 }
42821 arg7 = static_cast< long >(val7);
42822 }
42823 if (obj7) {
42824 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42825 if (!SWIG_IsOK(res8)) {
42826 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42827 }
42828 if (!argp8) {
42829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42830 }
42831 arg8 = reinterpret_cast< wxValidator * >(argp8);
42832 }
42833 if (obj8) {
42834 {
42835 arg9 = wxString_in_helper(obj8);
42836 if (arg9 == NULL) SWIG_fail;
42837 temp9 = true;
42838 }
42839 }
42840 {
42841 PyThreadState* __tstate = wxPyBeginAllowThreads();
42842 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42843 wxPyEndAllowThreads(__tstate);
42844 if (PyErr_Occurred()) SWIG_fail;
42845 }
42846 {
42847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42848 }
42849 {
42850 if (temp4)
42851 delete arg4;
42852 }
42853 {
42854 if (temp9)
42855 delete arg9;
42856 }
42857 return resultobj;
42858 fail:
42859 {
42860 if (temp4)
42861 delete arg4;
42862 }
42863 {
42864 if (temp9)
42865 delete arg9;
42866 }
42867 return NULL;
42868 }
42869
42870
42871 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42872 PyObject *resultobj = 0;
42873 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42874 int arg2 ;
42875 void *argp1 = 0 ;
42876 int res1 = 0 ;
42877 int val2 ;
42878 int ecode2 = 0 ;
42879 PyObject * obj0 = 0 ;
42880 PyObject * obj1 = 0 ;
42881 char * kwnames[] = {
42882 (char *) "self",(char *) "newmargin", NULL
42883 };
42884
42885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42887 if (!SWIG_IsOK(res1)) {
42888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42889 }
42890 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42891 ecode2 = SWIG_AsVal_int(obj1, &val2);
42892 if (!SWIG_IsOK(ecode2)) {
42893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42894 }
42895 arg2 = static_cast< int >(val2);
42896 {
42897 PyThreadState* __tstate = wxPyBeginAllowThreads();
42898 (arg1)->SetInternalMargin(arg2);
42899 wxPyEndAllowThreads(__tstate);
42900 if (PyErr_Occurred()) SWIG_fail;
42901 }
42902 resultobj = SWIG_Py_Void();
42903 return resultobj;
42904 fail:
42905 return NULL;
42906 }
42907
42908
42909 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42910 PyObject *resultobj = 0;
42911 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42912 int result;
42913 void *argp1 = 0 ;
42914 int res1 = 0 ;
42915 PyObject *swig_obj[1] ;
42916
42917 if (!args) SWIG_fail;
42918 swig_obj[0] = args;
42919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42920 if (!SWIG_IsOK(res1)) {
42921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42922 }
42923 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42924 {
42925 PyThreadState* __tstate = wxPyBeginAllowThreads();
42926 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42927 wxPyEndAllowThreads(__tstate);
42928 if (PyErr_Occurred()) SWIG_fail;
42929 }
42930 resultobj = SWIG_From_int(static_cast< int >(result));
42931 return resultobj;
42932 fail:
42933 return NULL;
42934 }
42935
42936
42937 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42938 PyObject *resultobj = 0;
42939 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42940 int arg2 ;
42941 void *argp1 = 0 ;
42942 int res1 = 0 ;
42943 int val2 ;
42944 int ecode2 = 0 ;
42945 PyObject * obj0 = 0 ;
42946 PyObject * obj1 = 0 ;
42947 char * kwnames[] = {
42948 (char *) "self",(char *) "prop", NULL
42949 };
42950
42951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42953 if (!SWIG_IsOK(res1)) {
42954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42955 }
42956 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42957 ecode2 = SWIG_AsVal_int(obj1, &val2);
42958 if (!SWIG_IsOK(ecode2)) {
42959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42960 }
42961 arg2 = static_cast< int >(val2);
42962 {
42963 PyThreadState* __tstate = wxPyBeginAllowThreads();
42964 (arg1)->SetTextCtrlProportion(arg2);
42965 wxPyEndAllowThreads(__tstate);
42966 if (PyErr_Occurred()) SWIG_fail;
42967 }
42968 resultobj = SWIG_Py_Void();
42969 return resultobj;
42970 fail:
42971 return NULL;
42972 }
42973
42974
42975 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42976 PyObject *resultobj = 0;
42977 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42978 int result;
42979 void *argp1 = 0 ;
42980 int res1 = 0 ;
42981 PyObject *swig_obj[1] ;
42982
42983 if (!args) SWIG_fail;
42984 swig_obj[0] = args;
42985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42986 if (!SWIG_IsOK(res1)) {
42987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42988 }
42989 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42990 {
42991 PyThreadState* __tstate = wxPyBeginAllowThreads();
42992 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42993 wxPyEndAllowThreads(__tstate);
42994 if (PyErr_Occurred()) SWIG_fail;
42995 }
42996 resultobj = SWIG_From_int(static_cast< int >(result));
42997 return resultobj;
42998 fail:
42999 return NULL;
43000 }
43001
43002
43003 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43004 PyObject *resultobj = 0;
43005 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43006 int arg2 ;
43007 void *argp1 = 0 ;
43008 int res1 = 0 ;
43009 int val2 ;
43010 int ecode2 = 0 ;
43011 PyObject * obj0 = 0 ;
43012 PyObject * obj1 = 0 ;
43013 char * kwnames[] = {
43014 (char *) "self",(char *) "prop", NULL
43015 };
43016
43017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43019 if (!SWIG_IsOK(res1)) {
43020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43021 }
43022 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43023 ecode2 = SWIG_AsVal_int(obj1, &val2);
43024 if (!SWIG_IsOK(ecode2)) {
43025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43026 }
43027 arg2 = static_cast< int >(val2);
43028 {
43029 PyThreadState* __tstate = wxPyBeginAllowThreads();
43030 (arg1)->SetPickerCtrlProportion(arg2);
43031 wxPyEndAllowThreads(__tstate);
43032 if (PyErr_Occurred()) SWIG_fail;
43033 }
43034 resultobj = SWIG_Py_Void();
43035 return resultobj;
43036 fail:
43037 return NULL;
43038 }
43039
43040
43041 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43042 PyObject *resultobj = 0;
43043 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43044 int result;
43045 void *argp1 = 0 ;
43046 int res1 = 0 ;
43047 PyObject *swig_obj[1] ;
43048
43049 if (!args) SWIG_fail;
43050 swig_obj[0] = args;
43051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43052 if (!SWIG_IsOK(res1)) {
43053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43054 }
43055 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43056 {
43057 PyThreadState* __tstate = wxPyBeginAllowThreads();
43058 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43059 wxPyEndAllowThreads(__tstate);
43060 if (PyErr_Occurred()) SWIG_fail;
43061 }
43062 resultobj = SWIG_From_int(static_cast< int >(result));
43063 return resultobj;
43064 fail:
43065 return NULL;
43066 }
43067
43068
43069 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43070 PyObject *resultobj = 0;
43071 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43072 bool result;
43073 void *argp1 = 0 ;
43074 int res1 = 0 ;
43075 PyObject *swig_obj[1] ;
43076
43077 if (!args) SWIG_fail;
43078 swig_obj[0] = args;
43079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43080 if (!SWIG_IsOK(res1)) {
43081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43082 }
43083 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43084 {
43085 PyThreadState* __tstate = wxPyBeginAllowThreads();
43086 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43087 wxPyEndAllowThreads(__tstate);
43088 if (PyErr_Occurred()) SWIG_fail;
43089 }
43090 {
43091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43092 }
43093 return resultobj;
43094 fail:
43095 return NULL;
43096 }
43097
43098
43099 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43100 PyObject *resultobj = 0;
43101 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43102 bool arg2 = (bool) true ;
43103 void *argp1 = 0 ;
43104 int res1 = 0 ;
43105 bool val2 ;
43106 int ecode2 = 0 ;
43107 PyObject * obj0 = 0 ;
43108 PyObject * obj1 = 0 ;
43109 char * kwnames[] = {
43110 (char *) "self",(char *) "grow", NULL
43111 };
43112
43113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43115 if (!SWIG_IsOK(res1)) {
43116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43117 }
43118 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43119 if (obj1) {
43120 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43121 if (!SWIG_IsOK(ecode2)) {
43122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43123 }
43124 arg2 = static_cast< bool >(val2);
43125 }
43126 {
43127 PyThreadState* __tstate = wxPyBeginAllowThreads();
43128 (arg1)->SetTextCtrlGrowable(arg2);
43129 wxPyEndAllowThreads(__tstate);
43130 if (PyErr_Occurred()) SWIG_fail;
43131 }
43132 resultobj = SWIG_Py_Void();
43133 return resultobj;
43134 fail:
43135 return NULL;
43136 }
43137
43138
43139 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43140 PyObject *resultobj = 0;
43141 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43142 bool result;
43143 void *argp1 = 0 ;
43144 int res1 = 0 ;
43145 PyObject *swig_obj[1] ;
43146
43147 if (!args) SWIG_fail;
43148 swig_obj[0] = args;
43149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43150 if (!SWIG_IsOK(res1)) {
43151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43152 }
43153 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43154 {
43155 PyThreadState* __tstate = wxPyBeginAllowThreads();
43156 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43157 wxPyEndAllowThreads(__tstate);
43158 if (PyErr_Occurred()) SWIG_fail;
43159 }
43160 {
43161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43162 }
43163 return resultobj;
43164 fail:
43165 return NULL;
43166 }
43167
43168
43169 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43170 PyObject *resultobj = 0;
43171 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43172 bool arg2 = (bool) true ;
43173 void *argp1 = 0 ;
43174 int res1 = 0 ;
43175 bool val2 ;
43176 int ecode2 = 0 ;
43177 PyObject * obj0 = 0 ;
43178 PyObject * obj1 = 0 ;
43179 char * kwnames[] = {
43180 (char *) "self",(char *) "grow", NULL
43181 };
43182
43183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43185 if (!SWIG_IsOK(res1)) {
43186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43187 }
43188 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43189 if (obj1) {
43190 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43191 if (!SWIG_IsOK(ecode2)) {
43192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43193 }
43194 arg2 = static_cast< bool >(val2);
43195 }
43196 {
43197 PyThreadState* __tstate = wxPyBeginAllowThreads();
43198 (arg1)->SetPickerCtrlGrowable(arg2);
43199 wxPyEndAllowThreads(__tstate);
43200 if (PyErr_Occurred()) SWIG_fail;
43201 }
43202 resultobj = SWIG_Py_Void();
43203 return resultobj;
43204 fail:
43205 return NULL;
43206 }
43207
43208
43209 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43210 PyObject *resultobj = 0;
43211 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43212 bool result;
43213 void *argp1 = 0 ;
43214 int res1 = 0 ;
43215 PyObject *swig_obj[1] ;
43216
43217 if (!args) SWIG_fail;
43218 swig_obj[0] = args;
43219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43220 if (!SWIG_IsOK(res1)) {
43221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43222 }
43223 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43224 {
43225 PyThreadState* __tstate = wxPyBeginAllowThreads();
43226 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43227 wxPyEndAllowThreads(__tstate);
43228 if (PyErr_Occurred()) SWIG_fail;
43229 }
43230 {
43231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43232 }
43233 return resultobj;
43234 fail:
43235 return NULL;
43236 }
43237
43238
43239 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43240 PyObject *resultobj = 0;
43241 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43242 wxTextCtrl *result = 0 ;
43243 void *argp1 = 0 ;
43244 int res1 = 0 ;
43245 PyObject *swig_obj[1] ;
43246
43247 if (!args) SWIG_fail;
43248 swig_obj[0] = args;
43249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43250 if (!SWIG_IsOK(res1)) {
43251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43252 }
43253 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43254 {
43255 PyThreadState* __tstate = wxPyBeginAllowThreads();
43256 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43257 wxPyEndAllowThreads(__tstate);
43258 if (PyErr_Occurred()) SWIG_fail;
43259 }
43260 {
43261 resultobj = wxPyMake_wxObject(result, 0);
43262 }
43263 return resultobj;
43264 fail:
43265 return NULL;
43266 }
43267
43268
43269 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43270 PyObject *resultobj = 0;
43271 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43272 wxControl *result = 0 ;
43273 void *argp1 = 0 ;
43274 int res1 = 0 ;
43275 PyObject *swig_obj[1] ;
43276
43277 if (!args) SWIG_fail;
43278 swig_obj[0] = args;
43279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43280 if (!SWIG_IsOK(res1)) {
43281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43282 }
43283 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43284 {
43285 PyThreadState* __tstate = wxPyBeginAllowThreads();
43286 result = (wxControl *)(arg1)->GetPickerCtrl();
43287 wxPyEndAllowThreads(__tstate);
43288 if (PyErr_Occurred()) SWIG_fail;
43289 }
43290 {
43291 resultobj = wxPyMake_wxObject(result, 0);
43292 }
43293 return resultobj;
43294 fail:
43295 return NULL;
43296 }
43297
43298
43299 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43300 PyObject *obj;
43301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43302 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43303 return SWIG_Py_Void();
43304 }
43305
43306 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43307 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43308 return 1;
43309 }
43310
43311
43312 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43313 PyObject *pyobj = 0;
43314
43315 {
43316 #if wxUSE_UNICODE
43317 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43318 #else
43319 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43320 #endif
43321 }
43322 return pyobj;
43323 }
43324
43325
43326 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43327 PyObject *resultobj = 0;
43328 wxWindow *arg1 = (wxWindow *) 0 ;
43329 int arg2 = (int) -1 ;
43330 wxColour const &arg3_defvalue = *wxBLACK ;
43331 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43332 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43333 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43334 wxSize const &arg5_defvalue = wxDefaultSize ;
43335 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43336 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43337 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43338 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43339 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43340 wxString *arg8 = (wxString *) &arg8_defvalue ;
43341 wxColourPickerCtrl *result = 0 ;
43342 void *argp1 = 0 ;
43343 int res1 = 0 ;
43344 int val2 ;
43345 int ecode2 = 0 ;
43346 wxColour temp3 ;
43347 wxPoint temp4 ;
43348 wxSize temp5 ;
43349 long val6 ;
43350 int ecode6 = 0 ;
43351 void *argp7 = 0 ;
43352 int res7 = 0 ;
43353 bool temp8 = false ;
43354 PyObject * obj0 = 0 ;
43355 PyObject * obj1 = 0 ;
43356 PyObject * obj2 = 0 ;
43357 PyObject * obj3 = 0 ;
43358 PyObject * obj4 = 0 ;
43359 PyObject * obj5 = 0 ;
43360 PyObject * obj6 = 0 ;
43361 PyObject * obj7 = 0 ;
43362 char * kwnames[] = {
43363 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43364 };
43365
43366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43368 if (!SWIG_IsOK(res1)) {
43369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43370 }
43371 arg1 = reinterpret_cast< wxWindow * >(argp1);
43372 if (obj1) {
43373 ecode2 = SWIG_AsVal_int(obj1, &val2);
43374 if (!SWIG_IsOK(ecode2)) {
43375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43376 }
43377 arg2 = static_cast< int >(val2);
43378 }
43379 if (obj2) {
43380 {
43381 arg3 = &temp3;
43382 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43383 }
43384 }
43385 if (obj3) {
43386 {
43387 arg4 = &temp4;
43388 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43389 }
43390 }
43391 if (obj4) {
43392 {
43393 arg5 = &temp5;
43394 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43395 }
43396 }
43397 if (obj5) {
43398 ecode6 = SWIG_AsVal_long(obj5, &val6);
43399 if (!SWIG_IsOK(ecode6)) {
43400 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43401 }
43402 arg6 = static_cast< long >(val6);
43403 }
43404 if (obj6) {
43405 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43406 if (!SWIG_IsOK(res7)) {
43407 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43408 }
43409 if (!argp7) {
43410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43411 }
43412 arg7 = reinterpret_cast< wxValidator * >(argp7);
43413 }
43414 if (obj7) {
43415 {
43416 arg8 = wxString_in_helper(obj7);
43417 if (arg8 == NULL) SWIG_fail;
43418 temp8 = true;
43419 }
43420 }
43421 {
43422 if (!wxPyCheckForApp()) SWIG_fail;
43423 PyThreadState* __tstate = wxPyBeginAllowThreads();
43424 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43425 wxPyEndAllowThreads(__tstate);
43426 if (PyErr_Occurred()) SWIG_fail;
43427 }
43428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43429 {
43430 if (temp8)
43431 delete arg8;
43432 }
43433 return resultobj;
43434 fail:
43435 {
43436 if (temp8)
43437 delete arg8;
43438 }
43439 return NULL;
43440 }
43441
43442
43443 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43444 PyObject *resultobj = 0;
43445 wxColourPickerCtrl *result = 0 ;
43446
43447 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43448 {
43449 if (!wxPyCheckForApp()) SWIG_fail;
43450 PyThreadState* __tstate = wxPyBeginAllowThreads();
43451 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43452 wxPyEndAllowThreads(__tstate);
43453 if (PyErr_Occurred()) SWIG_fail;
43454 }
43455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43456 return resultobj;
43457 fail:
43458 return NULL;
43459 }
43460
43461
43462 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43463 PyObject *resultobj = 0;
43464 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43465 wxWindow *arg2 = (wxWindow *) 0 ;
43466 int arg3 ;
43467 wxColour const &arg4_defvalue = *wxBLACK ;
43468 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43469 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43470 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43471 wxSize const &arg6_defvalue = wxDefaultSize ;
43472 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43473 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43474 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43475 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43476 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43477 wxString *arg9 = (wxString *) &arg9_defvalue ;
43478 bool result;
43479 void *argp1 = 0 ;
43480 int res1 = 0 ;
43481 void *argp2 = 0 ;
43482 int res2 = 0 ;
43483 int val3 ;
43484 int ecode3 = 0 ;
43485 wxColour temp4 ;
43486 wxPoint temp5 ;
43487 wxSize temp6 ;
43488 long val7 ;
43489 int ecode7 = 0 ;
43490 void *argp8 = 0 ;
43491 int res8 = 0 ;
43492 bool temp9 = false ;
43493 PyObject * obj0 = 0 ;
43494 PyObject * obj1 = 0 ;
43495 PyObject * obj2 = 0 ;
43496 PyObject * obj3 = 0 ;
43497 PyObject * obj4 = 0 ;
43498 PyObject * obj5 = 0 ;
43499 PyObject * obj6 = 0 ;
43500 PyObject * obj7 = 0 ;
43501 PyObject * obj8 = 0 ;
43502 char * kwnames[] = {
43503 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43504 };
43505
43506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43508 if (!SWIG_IsOK(res1)) {
43509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43510 }
43511 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43512 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43513 if (!SWIG_IsOK(res2)) {
43514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43515 }
43516 arg2 = reinterpret_cast< wxWindow * >(argp2);
43517 ecode3 = SWIG_AsVal_int(obj2, &val3);
43518 if (!SWIG_IsOK(ecode3)) {
43519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43520 }
43521 arg3 = static_cast< int >(val3);
43522 if (obj3) {
43523 {
43524 arg4 = &temp4;
43525 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43526 }
43527 }
43528 if (obj4) {
43529 {
43530 arg5 = &temp5;
43531 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43532 }
43533 }
43534 if (obj5) {
43535 {
43536 arg6 = &temp6;
43537 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43538 }
43539 }
43540 if (obj6) {
43541 ecode7 = SWIG_AsVal_long(obj6, &val7);
43542 if (!SWIG_IsOK(ecode7)) {
43543 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43544 }
43545 arg7 = static_cast< long >(val7);
43546 }
43547 if (obj7) {
43548 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43549 if (!SWIG_IsOK(res8)) {
43550 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43551 }
43552 if (!argp8) {
43553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43554 }
43555 arg8 = reinterpret_cast< wxValidator * >(argp8);
43556 }
43557 if (obj8) {
43558 {
43559 arg9 = wxString_in_helper(obj8);
43560 if (arg9 == NULL) SWIG_fail;
43561 temp9 = true;
43562 }
43563 }
43564 {
43565 PyThreadState* __tstate = wxPyBeginAllowThreads();
43566 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43567 wxPyEndAllowThreads(__tstate);
43568 if (PyErr_Occurred()) SWIG_fail;
43569 }
43570 {
43571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43572 }
43573 {
43574 if (temp9)
43575 delete arg9;
43576 }
43577 return resultobj;
43578 fail:
43579 {
43580 if (temp9)
43581 delete arg9;
43582 }
43583 return NULL;
43584 }
43585
43586
43587 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43588 PyObject *resultobj = 0;
43589 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43590 wxColour result;
43591 void *argp1 = 0 ;
43592 int res1 = 0 ;
43593 PyObject *swig_obj[1] ;
43594
43595 if (!args) SWIG_fail;
43596 swig_obj[0] = args;
43597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43598 if (!SWIG_IsOK(res1)) {
43599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43600 }
43601 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43602 {
43603 PyThreadState* __tstate = wxPyBeginAllowThreads();
43604 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43605 wxPyEndAllowThreads(__tstate);
43606 if (PyErr_Occurred()) SWIG_fail;
43607 }
43608 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43609 return resultobj;
43610 fail:
43611 return NULL;
43612 }
43613
43614
43615 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43616 PyObject *resultobj = 0;
43617 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43618 wxColour *arg2 = 0 ;
43619 void *argp1 = 0 ;
43620 int res1 = 0 ;
43621 wxColour temp2 ;
43622 PyObject * obj0 = 0 ;
43623 PyObject * obj1 = 0 ;
43624 char * kwnames[] = {
43625 (char *) "self",(char *) "col", NULL
43626 };
43627
43628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43630 if (!SWIG_IsOK(res1)) {
43631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43632 }
43633 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43634 {
43635 arg2 = &temp2;
43636 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43637 }
43638 {
43639 PyThreadState* __tstate = wxPyBeginAllowThreads();
43640 (arg1)->SetColour((wxColour const &)*arg2);
43641 wxPyEndAllowThreads(__tstate);
43642 if (PyErr_Occurred()) SWIG_fail;
43643 }
43644 resultobj = SWIG_Py_Void();
43645 return resultobj;
43646 fail:
43647 return NULL;
43648 }
43649
43650
43651 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43652 PyObject *obj;
43653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43654 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43655 return SWIG_Py_Void();
43656 }
43657
43658 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43659 return SWIG_Python_InitShadowInstance(args);
43660 }
43661
43662 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43663 PyObject *resultobj = 0;
43664 wxObject *arg1 = (wxObject *) 0 ;
43665 int arg2 ;
43666 wxColour *arg3 = 0 ;
43667 wxColourPickerEvent *result = 0 ;
43668 void *argp1 = 0 ;
43669 int res1 = 0 ;
43670 int val2 ;
43671 int ecode2 = 0 ;
43672 wxColour temp3 ;
43673 PyObject * obj0 = 0 ;
43674 PyObject * obj1 = 0 ;
43675 PyObject * obj2 = 0 ;
43676 char * kwnames[] = {
43677 (char *) "generator",(char *) "id",(char *) "col", NULL
43678 };
43679
43680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43682 if (!SWIG_IsOK(res1)) {
43683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43684 }
43685 arg1 = reinterpret_cast< wxObject * >(argp1);
43686 ecode2 = SWIG_AsVal_int(obj1, &val2);
43687 if (!SWIG_IsOK(ecode2)) {
43688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43689 }
43690 arg2 = static_cast< int >(val2);
43691 {
43692 arg3 = &temp3;
43693 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43694 }
43695 {
43696 PyThreadState* __tstate = wxPyBeginAllowThreads();
43697 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43698 wxPyEndAllowThreads(__tstate);
43699 if (PyErr_Occurred()) SWIG_fail;
43700 }
43701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43702 return resultobj;
43703 fail:
43704 return NULL;
43705 }
43706
43707
43708 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43709 PyObject *resultobj = 0;
43710 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43711 wxColour result;
43712 void *argp1 = 0 ;
43713 int res1 = 0 ;
43714 PyObject *swig_obj[1] ;
43715
43716 if (!args) SWIG_fail;
43717 swig_obj[0] = args;
43718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43719 if (!SWIG_IsOK(res1)) {
43720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43721 }
43722 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43723 {
43724 PyThreadState* __tstate = wxPyBeginAllowThreads();
43725 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43726 wxPyEndAllowThreads(__tstate);
43727 if (PyErr_Occurred()) SWIG_fail;
43728 }
43729 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43730 return resultobj;
43731 fail:
43732 return NULL;
43733 }
43734
43735
43736 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43737 PyObject *resultobj = 0;
43738 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43739 wxColour *arg2 = 0 ;
43740 void *argp1 = 0 ;
43741 int res1 = 0 ;
43742 wxColour temp2 ;
43743 PyObject * obj0 = 0 ;
43744 PyObject * obj1 = 0 ;
43745 char * kwnames[] = {
43746 (char *) "self",(char *) "c", NULL
43747 };
43748
43749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43751 if (!SWIG_IsOK(res1)) {
43752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43753 }
43754 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43755 {
43756 arg2 = &temp2;
43757 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43758 }
43759 {
43760 PyThreadState* __tstate = wxPyBeginAllowThreads();
43761 (arg1)->SetColour((wxColour const &)*arg2);
43762 wxPyEndAllowThreads(__tstate);
43763 if (PyErr_Occurred()) SWIG_fail;
43764 }
43765 resultobj = SWIG_Py_Void();
43766 return resultobj;
43767 fail:
43768 return NULL;
43769 }
43770
43771
43772 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43773 PyObject *obj;
43774 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43775 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43776 return SWIG_Py_Void();
43777 }
43778
43779 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43780 return SWIG_Python_InitShadowInstance(args);
43781 }
43782
43783 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43784 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43785 return 1;
43786 }
43787
43788
43789 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43790 PyObject *pyobj = 0;
43791
43792 {
43793 #if wxUSE_UNICODE
43794 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43795 #else
43796 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43797 #endif
43798 }
43799 return pyobj;
43800 }
43801
43802
43803 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43804 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43805 return 1;
43806 }
43807
43808
43809 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43810 PyObject *pyobj = 0;
43811
43812 {
43813 #if wxUSE_UNICODE
43814 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43815 #else
43816 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43817 #endif
43818 }
43819 return pyobj;
43820 }
43821
43822
43823 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43824 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43825 return 1;
43826 }
43827
43828
43829 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43830 PyObject *pyobj = 0;
43831
43832 {
43833 #if wxUSE_UNICODE
43834 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43835 #else
43836 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43837 #endif
43838 }
43839 return pyobj;
43840 }
43841
43842
43843 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43844 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43845 return 1;
43846 }
43847
43848
43849 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43850 PyObject *pyobj = 0;
43851
43852 {
43853 #if wxUSE_UNICODE
43854 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43855 #else
43856 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43857 #endif
43858 }
43859 return pyobj;
43860 }
43861
43862
43863 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43864 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43865 return 1;
43866 }
43867
43868
43869 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43870 PyObject *pyobj = 0;
43871
43872 {
43873 #if wxUSE_UNICODE
43874 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43875 #else
43876 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43877 #endif
43878 }
43879 return pyobj;
43880 }
43881
43882
43883 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43884 PyObject *resultobj = 0;
43885 wxWindow *arg1 = (wxWindow *) 0 ;
43886 int arg2 = (int) -1 ;
43887 wxString const &arg3_defvalue = wxPyEmptyString ;
43888 wxString *arg3 = (wxString *) &arg3_defvalue ;
43889 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43890 wxString *arg4 = (wxString *) &arg4_defvalue ;
43891 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43892 wxString *arg5 = (wxString *) &arg5_defvalue ;
43893 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43894 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43895 wxSize const &arg7_defvalue = wxDefaultSize ;
43896 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43897 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43898 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43899 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43900 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43901 wxString *arg10 = (wxString *) &arg10_defvalue ;
43902 wxFilePickerCtrl *result = 0 ;
43903 void *argp1 = 0 ;
43904 int res1 = 0 ;
43905 int val2 ;
43906 int ecode2 = 0 ;
43907 bool temp3 = false ;
43908 bool temp4 = false ;
43909 bool temp5 = false ;
43910 wxPoint temp6 ;
43911 wxSize temp7 ;
43912 long val8 ;
43913 int ecode8 = 0 ;
43914 void *argp9 = 0 ;
43915 int res9 = 0 ;
43916 bool temp10 = false ;
43917 PyObject * obj0 = 0 ;
43918 PyObject * obj1 = 0 ;
43919 PyObject * obj2 = 0 ;
43920 PyObject * obj3 = 0 ;
43921 PyObject * obj4 = 0 ;
43922 PyObject * obj5 = 0 ;
43923 PyObject * obj6 = 0 ;
43924 PyObject * obj7 = 0 ;
43925 PyObject * obj8 = 0 ;
43926 PyObject * obj9 = 0 ;
43927 char * kwnames[] = {
43928 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43929 };
43930
43931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43933 if (!SWIG_IsOK(res1)) {
43934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43935 }
43936 arg1 = reinterpret_cast< wxWindow * >(argp1);
43937 if (obj1) {
43938 ecode2 = SWIG_AsVal_int(obj1, &val2);
43939 if (!SWIG_IsOK(ecode2)) {
43940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43941 }
43942 arg2 = static_cast< int >(val2);
43943 }
43944 if (obj2) {
43945 {
43946 arg3 = wxString_in_helper(obj2);
43947 if (arg3 == NULL) SWIG_fail;
43948 temp3 = true;
43949 }
43950 }
43951 if (obj3) {
43952 {
43953 arg4 = wxString_in_helper(obj3);
43954 if (arg4 == NULL) SWIG_fail;
43955 temp4 = true;
43956 }
43957 }
43958 if (obj4) {
43959 {
43960 arg5 = wxString_in_helper(obj4);
43961 if (arg5 == NULL) SWIG_fail;
43962 temp5 = true;
43963 }
43964 }
43965 if (obj5) {
43966 {
43967 arg6 = &temp6;
43968 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43969 }
43970 }
43971 if (obj6) {
43972 {
43973 arg7 = &temp7;
43974 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43975 }
43976 }
43977 if (obj7) {
43978 ecode8 = SWIG_AsVal_long(obj7, &val8);
43979 if (!SWIG_IsOK(ecode8)) {
43980 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43981 }
43982 arg8 = static_cast< long >(val8);
43983 }
43984 if (obj8) {
43985 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43986 if (!SWIG_IsOK(res9)) {
43987 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43988 }
43989 if (!argp9) {
43990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43991 }
43992 arg9 = reinterpret_cast< wxValidator * >(argp9);
43993 }
43994 if (obj9) {
43995 {
43996 arg10 = wxString_in_helper(obj9);
43997 if (arg10 == NULL) SWIG_fail;
43998 temp10 = true;
43999 }
44000 }
44001 {
44002 if (!wxPyCheckForApp()) SWIG_fail;
44003 PyThreadState* __tstate = wxPyBeginAllowThreads();
44004 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);
44005 wxPyEndAllowThreads(__tstate);
44006 if (PyErr_Occurred()) SWIG_fail;
44007 }
44008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44009 {
44010 if (temp3)
44011 delete arg3;
44012 }
44013 {
44014 if (temp4)
44015 delete arg4;
44016 }
44017 {
44018 if (temp5)
44019 delete arg5;
44020 }
44021 {
44022 if (temp10)
44023 delete arg10;
44024 }
44025 return resultobj;
44026 fail:
44027 {
44028 if (temp3)
44029 delete arg3;
44030 }
44031 {
44032 if (temp4)
44033 delete arg4;
44034 }
44035 {
44036 if (temp5)
44037 delete arg5;
44038 }
44039 {
44040 if (temp10)
44041 delete arg10;
44042 }
44043 return NULL;
44044 }
44045
44046
44047 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44048 PyObject *resultobj = 0;
44049 wxFilePickerCtrl *result = 0 ;
44050
44051 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44052 {
44053 if (!wxPyCheckForApp()) SWIG_fail;
44054 PyThreadState* __tstate = wxPyBeginAllowThreads();
44055 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44056 wxPyEndAllowThreads(__tstate);
44057 if (PyErr_Occurred()) SWIG_fail;
44058 }
44059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44060 return resultobj;
44061 fail:
44062 return NULL;
44063 }
44064
44065
44066 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44067 PyObject *resultobj = 0;
44068 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44069 wxWindow *arg2 = (wxWindow *) 0 ;
44070 int arg3 = (int) -1 ;
44071 wxString const &arg4_defvalue = wxPyEmptyString ;
44072 wxString *arg4 = (wxString *) &arg4_defvalue ;
44073 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44074 wxString *arg5 = (wxString *) &arg5_defvalue ;
44075 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44076 wxString *arg6 = (wxString *) &arg6_defvalue ;
44077 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44078 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44079 wxSize const &arg8_defvalue = wxDefaultSize ;
44080 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44081 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44082 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44083 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44084 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44085 wxString *arg11 = (wxString *) &arg11_defvalue ;
44086 bool result;
44087 void *argp1 = 0 ;
44088 int res1 = 0 ;
44089 void *argp2 = 0 ;
44090 int res2 = 0 ;
44091 int val3 ;
44092 int ecode3 = 0 ;
44093 bool temp4 = false ;
44094 bool temp5 = false ;
44095 bool temp6 = false ;
44096 wxPoint temp7 ;
44097 wxSize temp8 ;
44098 long val9 ;
44099 int ecode9 = 0 ;
44100 void *argp10 = 0 ;
44101 int res10 = 0 ;
44102 bool temp11 = false ;
44103 PyObject * obj0 = 0 ;
44104 PyObject * obj1 = 0 ;
44105 PyObject * obj2 = 0 ;
44106 PyObject * obj3 = 0 ;
44107 PyObject * obj4 = 0 ;
44108 PyObject * obj5 = 0 ;
44109 PyObject * obj6 = 0 ;
44110 PyObject * obj7 = 0 ;
44111 PyObject * obj8 = 0 ;
44112 PyObject * obj9 = 0 ;
44113 PyObject * obj10 = 0 ;
44114 char * kwnames[] = {
44115 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44116 };
44117
44118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44120 if (!SWIG_IsOK(res1)) {
44121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44122 }
44123 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44125 if (!SWIG_IsOK(res2)) {
44126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44127 }
44128 arg2 = reinterpret_cast< wxWindow * >(argp2);
44129 if (obj2) {
44130 ecode3 = SWIG_AsVal_int(obj2, &val3);
44131 if (!SWIG_IsOK(ecode3)) {
44132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44133 }
44134 arg3 = static_cast< int >(val3);
44135 }
44136 if (obj3) {
44137 {
44138 arg4 = wxString_in_helper(obj3);
44139 if (arg4 == NULL) SWIG_fail;
44140 temp4 = true;
44141 }
44142 }
44143 if (obj4) {
44144 {
44145 arg5 = wxString_in_helper(obj4);
44146 if (arg5 == NULL) SWIG_fail;
44147 temp5 = true;
44148 }
44149 }
44150 if (obj5) {
44151 {
44152 arg6 = wxString_in_helper(obj5);
44153 if (arg6 == NULL) SWIG_fail;
44154 temp6 = true;
44155 }
44156 }
44157 if (obj6) {
44158 {
44159 arg7 = &temp7;
44160 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44161 }
44162 }
44163 if (obj7) {
44164 {
44165 arg8 = &temp8;
44166 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44167 }
44168 }
44169 if (obj8) {
44170 ecode9 = SWIG_AsVal_long(obj8, &val9);
44171 if (!SWIG_IsOK(ecode9)) {
44172 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44173 }
44174 arg9 = static_cast< long >(val9);
44175 }
44176 if (obj9) {
44177 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44178 if (!SWIG_IsOK(res10)) {
44179 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44180 }
44181 if (!argp10) {
44182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44183 }
44184 arg10 = reinterpret_cast< wxValidator * >(argp10);
44185 }
44186 if (obj10) {
44187 {
44188 arg11 = wxString_in_helper(obj10);
44189 if (arg11 == NULL) SWIG_fail;
44190 temp11 = true;
44191 }
44192 }
44193 {
44194 PyThreadState* __tstate = wxPyBeginAllowThreads();
44195 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);
44196 wxPyEndAllowThreads(__tstate);
44197 if (PyErr_Occurred()) SWIG_fail;
44198 }
44199 {
44200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44201 }
44202 {
44203 if (temp4)
44204 delete arg4;
44205 }
44206 {
44207 if (temp5)
44208 delete arg5;
44209 }
44210 {
44211 if (temp6)
44212 delete arg6;
44213 }
44214 {
44215 if (temp11)
44216 delete arg11;
44217 }
44218 return resultobj;
44219 fail:
44220 {
44221 if (temp4)
44222 delete arg4;
44223 }
44224 {
44225 if (temp5)
44226 delete arg5;
44227 }
44228 {
44229 if (temp6)
44230 delete arg6;
44231 }
44232 {
44233 if (temp11)
44234 delete arg11;
44235 }
44236 return NULL;
44237 }
44238
44239
44240 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44241 PyObject *resultobj = 0;
44242 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44243 wxString result;
44244 void *argp1 = 0 ;
44245 int res1 = 0 ;
44246 PyObject *swig_obj[1] ;
44247
44248 if (!args) SWIG_fail;
44249 swig_obj[0] = args;
44250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44251 if (!SWIG_IsOK(res1)) {
44252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44253 }
44254 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44255 {
44256 PyThreadState* __tstate = wxPyBeginAllowThreads();
44257 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44258 wxPyEndAllowThreads(__tstate);
44259 if (PyErr_Occurred()) SWIG_fail;
44260 }
44261 {
44262 #if wxUSE_UNICODE
44263 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44264 #else
44265 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44266 #endif
44267 }
44268 return resultobj;
44269 fail:
44270 return NULL;
44271 }
44272
44273
44274 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44275 PyObject *resultobj = 0;
44276 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44277 wxString *arg2 = 0 ;
44278 void *argp1 = 0 ;
44279 int res1 = 0 ;
44280 bool temp2 = false ;
44281 PyObject * obj0 = 0 ;
44282 PyObject * obj1 = 0 ;
44283 char * kwnames[] = {
44284 (char *) "self",(char *) "str", NULL
44285 };
44286
44287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44289 if (!SWIG_IsOK(res1)) {
44290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44291 }
44292 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44293 {
44294 arg2 = wxString_in_helper(obj1);
44295 if (arg2 == NULL) SWIG_fail;
44296 temp2 = true;
44297 }
44298 {
44299 PyThreadState* __tstate = wxPyBeginAllowThreads();
44300 (arg1)->SetPath((wxString const &)*arg2);
44301 wxPyEndAllowThreads(__tstate);
44302 if (PyErr_Occurred()) SWIG_fail;
44303 }
44304 resultobj = SWIG_Py_Void();
44305 {
44306 if (temp2)
44307 delete arg2;
44308 }
44309 return resultobj;
44310 fail:
44311 {
44312 if (temp2)
44313 delete arg2;
44314 }
44315 return NULL;
44316 }
44317
44318
44319 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44320 PyObject *resultobj = 0;
44321 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44322 wxString *arg2 = 0 ;
44323 bool result;
44324 void *argp1 = 0 ;
44325 int res1 = 0 ;
44326 bool temp2 = false ;
44327 PyObject * obj0 = 0 ;
44328 PyObject * obj1 = 0 ;
44329 char * kwnames[] = {
44330 (char *) "self",(char *) "path", NULL
44331 };
44332
44333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44335 if (!SWIG_IsOK(res1)) {
44336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44337 }
44338 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44339 {
44340 arg2 = wxString_in_helper(obj1);
44341 if (arg2 == NULL) SWIG_fail;
44342 temp2 = true;
44343 }
44344 {
44345 PyThreadState* __tstate = wxPyBeginAllowThreads();
44346 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44347 wxPyEndAllowThreads(__tstate);
44348 if (PyErr_Occurred()) SWIG_fail;
44349 }
44350 {
44351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44352 }
44353 {
44354 if (temp2)
44355 delete arg2;
44356 }
44357 return resultobj;
44358 fail:
44359 {
44360 if (temp2)
44361 delete arg2;
44362 }
44363 return NULL;
44364 }
44365
44366
44367 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44368 PyObject *resultobj = 0;
44369 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44370 wxString result;
44371 void *argp1 = 0 ;
44372 int res1 = 0 ;
44373 PyObject *swig_obj[1] ;
44374
44375 if (!args) SWIG_fail;
44376 swig_obj[0] = args;
44377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44378 if (!SWIG_IsOK(res1)) {
44379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44380 }
44381 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44382 {
44383 PyThreadState* __tstate = wxPyBeginAllowThreads();
44384 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44385 wxPyEndAllowThreads(__tstate);
44386 if (PyErr_Occurred()) SWIG_fail;
44387 }
44388 {
44389 #if wxUSE_UNICODE
44390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44391 #else
44392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44393 #endif
44394 }
44395 return resultobj;
44396 fail:
44397 return NULL;
44398 }
44399
44400
44401 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44402 PyObject *obj;
44403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44404 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44405 return SWIG_Py_Void();
44406 }
44407
44408 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44409 return SWIG_Python_InitShadowInstance(args);
44410 }
44411
44412 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44413 PyObject *resultobj = 0;
44414 wxWindow *arg1 = (wxWindow *) 0 ;
44415 int arg2 = (int) -1 ;
44416 wxString const &arg3_defvalue = wxPyEmptyString ;
44417 wxString *arg3 = (wxString *) &arg3_defvalue ;
44418 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44419 wxString *arg4 = (wxString *) &arg4_defvalue ;
44420 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44421 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44422 wxSize const &arg6_defvalue = wxDefaultSize ;
44423 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44424 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44425 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44426 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44427 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44428 wxString *arg9 = (wxString *) &arg9_defvalue ;
44429 wxDirPickerCtrl *result = 0 ;
44430 void *argp1 = 0 ;
44431 int res1 = 0 ;
44432 int val2 ;
44433 int ecode2 = 0 ;
44434 bool temp3 = false ;
44435 bool temp4 = false ;
44436 wxPoint temp5 ;
44437 wxSize temp6 ;
44438 long val7 ;
44439 int ecode7 = 0 ;
44440 void *argp8 = 0 ;
44441 int res8 = 0 ;
44442 bool temp9 = false ;
44443 PyObject * obj0 = 0 ;
44444 PyObject * obj1 = 0 ;
44445 PyObject * obj2 = 0 ;
44446 PyObject * obj3 = 0 ;
44447 PyObject * obj4 = 0 ;
44448 PyObject * obj5 = 0 ;
44449 PyObject * obj6 = 0 ;
44450 PyObject * obj7 = 0 ;
44451 PyObject * obj8 = 0 ;
44452 char * kwnames[] = {
44453 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44454 };
44455
44456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44458 if (!SWIG_IsOK(res1)) {
44459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44460 }
44461 arg1 = reinterpret_cast< wxWindow * >(argp1);
44462 if (obj1) {
44463 ecode2 = SWIG_AsVal_int(obj1, &val2);
44464 if (!SWIG_IsOK(ecode2)) {
44465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44466 }
44467 arg2 = static_cast< int >(val2);
44468 }
44469 if (obj2) {
44470 {
44471 arg3 = wxString_in_helper(obj2);
44472 if (arg3 == NULL) SWIG_fail;
44473 temp3 = true;
44474 }
44475 }
44476 if (obj3) {
44477 {
44478 arg4 = wxString_in_helper(obj3);
44479 if (arg4 == NULL) SWIG_fail;
44480 temp4 = true;
44481 }
44482 }
44483 if (obj4) {
44484 {
44485 arg5 = &temp5;
44486 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44487 }
44488 }
44489 if (obj5) {
44490 {
44491 arg6 = &temp6;
44492 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44493 }
44494 }
44495 if (obj6) {
44496 ecode7 = SWIG_AsVal_long(obj6, &val7);
44497 if (!SWIG_IsOK(ecode7)) {
44498 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44499 }
44500 arg7 = static_cast< long >(val7);
44501 }
44502 if (obj7) {
44503 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44504 if (!SWIG_IsOK(res8)) {
44505 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44506 }
44507 if (!argp8) {
44508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44509 }
44510 arg8 = reinterpret_cast< wxValidator * >(argp8);
44511 }
44512 if (obj8) {
44513 {
44514 arg9 = wxString_in_helper(obj8);
44515 if (arg9 == NULL) SWIG_fail;
44516 temp9 = true;
44517 }
44518 }
44519 {
44520 if (!wxPyCheckForApp()) SWIG_fail;
44521 PyThreadState* __tstate = wxPyBeginAllowThreads();
44522 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);
44523 wxPyEndAllowThreads(__tstate);
44524 if (PyErr_Occurred()) SWIG_fail;
44525 }
44526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44527 {
44528 if (temp3)
44529 delete arg3;
44530 }
44531 {
44532 if (temp4)
44533 delete arg4;
44534 }
44535 {
44536 if (temp9)
44537 delete arg9;
44538 }
44539 return resultobj;
44540 fail:
44541 {
44542 if (temp3)
44543 delete arg3;
44544 }
44545 {
44546 if (temp4)
44547 delete arg4;
44548 }
44549 {
44550 if (temp9)
44551 delete arg9;
44552 }
44553 return NULL;
44554 }
44555
44556
44557 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44558 PyObject *resultobj = 0;
44559 wxDirPickerCtrl *result = 0 ;
44560
44561 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44562 {
44563 if (!wxPyCheckForApp()) SWIG_fail;
44564 PyThreadState* __tstate = wxPyBeginAllowThreads();
44565 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44566 wxPyEndAllowThreads(__tstate);
44567 if (PyErr_Occurred()) SWIG_fail;
44568 }
44569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44570 return resultobj;
44571 fail:
44572 return NULL;
44573 }
44574
44575
44576 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44577 PyObject *resultobj = 0;
44578 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44579 wxWindow *arg2 = (wxWindow *) 0 ;
44580 int arg3 = (int) -1 ;
44581 wxString const &arg4_defvalue = wxPyEmptyString ;
44582 wxString *arg4 = (wxString *) &arg4_defvalue ;
44583 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44584 wxString *arg5 = (wxString *) &arg5_defvalue ;
44585 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44586 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44587 wxSize const &arg7_defvalue = wxDefaultSize ;
44588 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44589 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44590 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44591 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44592 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44593 wxString *arg10 = (wxString *) &arg10_defvalue ;
44594 bool result;
44595 void *argp1 = 0 ;
44596 int res1 = 0 ;
44597 void *argp2 = 0 ;
44598 int res2 = 0 ;
44599 int val3 ;
44600 int ecode3 = 0 ;
44601 bool temp4 = false ;
44602 bool temp5 = false ;
44603 wxPoint temp6 ;
44604 wxSize temp7 ;
44605 long val8 ;
44606 int ecode8 = 0 ;
44607 void *argp9 = 0 ;
44608 int res9 = 0 ;
44609 bool temp10 = false ;
44610 PyObject * obj0 = 0 ;
44611 PyObject * obj1 = 0 ;
44612 PyObject * obj2 = 0 ;
44613 PyObject * obj3 = 0 ;
44614 PyObject * obj4 = 0 ;
44615 PyObject * obj5 = 0 ;
44616 PyObject * obj6 = 0 ;
44617 PyObject * obj7 = 0 ;
44618 PyObject * obj8 = 0 ;
44619 PyObject * obj9 = 0 ;
44620 char * kwnames[] = {
44621 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44622 };
44623
44624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44626 if (!SWIG_IsOK(res1)) {
44627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44628 }
44629 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44631 if (!SWIG_IsOK(res2)) {
44632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44633 }
44634 arg2 = reinterpret_cast< wxWindow * >(argp2);
44635 if (obj2) {
44636 ecode3 = SWIG_AsVal_int(obj2, &val3);
44637 if (!SWIG_IsOK(ecode3)) {
44638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44639 }
44640 arg3 = static_cast< int >(val3);
44641 }
44642 if (obj3) {
44643 {
44644 arg4 = wxString_in_helper(obj3);
44645 if (arg4 == NULL) SWIG_fail;
44646 temp4 = true;
44647 }
44648 }
44649 if (obj4) {
44650 {
44651 arg5 = wxString_in_helper(obj4);
44652 if (arg5 == NULL) SWIG_fail;
44653 temp5 = true;
44654 }
44655 }
44656 if (obj5) {
44657 {
44658 arg6 = &temp6;
44659 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44660 }
44661 }
44662 if (obj6) {
44663 {
44664 arg7 = &temp7;
44665 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44666 }
44667 }
44668 if (obj7) {
44669 ecode8 = SWIG_AsVal_long(obj7, &val8);
44670 if (!SWIG_IsOK(ecode8)) {
44671 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44672 }
44673 arg8 = static_cast< long >(val8);
44674 }
44675 if (obj8) {
44676 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44677 if (!SWIG_IsOK(res9)) {
44678 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44679 }
44680 if (!argp9) {
44681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44682 }
44683 arg9 = reinterpret_cast< wxValidator * >(argp9);
44684 }
44685 if (obj9) {
44686 {
44687 arg10 = wxString_in_helper(obj9);
44688 if (arg10 == NULL) SWIG_fail;
44689 temp10 = true;
44690 }
44691 }
44692 {
44693 PyThreadState* __tstate = wxPyBeginAllowThreads();
44694 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);
44695 wxPyEndAllowThreads(__tstate);
44696 if (PyErr_Occurred()) SWIG_fail;
44697 }
44698 {
44699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44700 }
44701 {
44702 if (temp4)
44703 delete arg4;
44704 }
44705 {
44706 if (temp5)
44707 delete arg5;
44708 }
44709 {
44710 if (temp10)
44711 delete arg10;
44712 }
44713 return resultobj;
44714 fail:
44715 {
44716 if (temp4)
44717 delete arg4;
44718 }
44719 {
44720 if (temp5)
44721 delete arg5;
44722 }
44723 {
44724 if (temp10)
44725 delete arg10;
44726 }
44727 return NULL;
44728 }
44729
44730
44731 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44732 PyObject *resultobj = 0;
44733 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44734 wxString result;
44735 void *argp1 = 0 ;
44736 int res1 = 0 ;
44737 PyObject *swig_obj[1] ;
44738
44739 if (!args) SWIG_fail;
44740 swig_obj[0] = args;
44741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44742 if (!SWIG_IsOK(res1)) {
44743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44744 }
44745 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44746 {
44747 PyThreadState* __tstate = wxPyBeginAllowThreads();
44748 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44749 wxPyEndAllowThreads(__tstate);
44750 if (PyErr_Occurred()) SWIG_fail;
44751 }
44752 {
44753 #if wxUSE_UNICODE
44754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44755 #else
44756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44757 #endif
44758 }
44759 return resultobj;
44760 fail:
44761 return NULL;
44762 }
44763
44764
44765 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44766 PyObject *resultobj = 0;
44767 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44768 wxString *arg2 = 0 ;
44769 void *argp1 = 0 ;
44770 int res1 = 0 ;
44771 bool temp2 = false ;
44772 PyObject * obj0 = 0 ;
44773 PyObject * obj1 = 0 ;
44774 char * kwnames[] = {
44775 (char *) "self",(char *) "str", NULL
44776 };
44777
44778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44780 if (!SWIG_IsOK(res1)) {
44781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44782 }
44783 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44784 {
44785 arg2 = wxString_in_helper(obj1);
44786 if (arg2 == NULL) SWIG_fail;
44787 temp2 = true;
44788 }
44789 {
44790 PyThreadState* __tstate = wxPyBeginAllowThreads();
44791 (arg1)->SetPath((wxString const &)*arg2);
44792 wxPyEndAllowThreads(__tstate);
44793 if (PyErr_Occurred()) SWIG_fail;
44794 }
44795 resultobj = SWIG_Py_Void();
44796 {
44797 if (temp2)
44798 delete arg2;
44799 }
44800 return resultobj;
44801 fail:
44802 {
44803 if (temp2)
44804 delete arg2;
44805 }
44806 return NULL;
44807 }
44808
44809
44810 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44811 PyObject *resultobj = 0;
44812 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44813 wxString *arg2 = 0 ;
44814 bool result;
44815 void *argp1 = 0 ;
44816 int res1 = 0 ;
44817 bool temp2 = false ;
44818 PyObject * obj0 = 0 ;
44819 PyObject * obj1 = 0 ;
44820 char * kwnames[] = {
44821 (char *) "self",(char *) "path", NULL
44822 };
44823
44824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44826 if (!SWIG_IsOK(res1)) {
44827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44828 }
44829 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44830 {
44831 arg2 = wxString_in_helper(obj1);
44832 if (arg2 == NULL) SWIG_fail;
44833 temp2 = true;
44834 }
44835 {
44836 PyThreadState* __tstate = wxPyBeginAllowThreads();
44837 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44838 wxPyEndAllowThreads(__tstate);
44839 if (PyErr_Occurred()) SWIG_fail;
44840 }
44841 {
44842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44843 }
44844 {
44845 if (temp2)
44846 delete arg2;
44847 }
44848 return resultobj;
44849 fail:
44850 {
44851 if (temp2)
44852 delete arg2;
44853 }
44854 return NULL;
44855 }
44856
44857
44858 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44859 PyObject *resultobj = 0;
44860 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44861 wxString result;
44862 void *argp1 = 0 ;
44863 int res1 = 0 ;
44864 PyObject *swig_obj[1] ;
44865
44866 if (!args) SWIG_fail;
44867 swig_obj[0] = args;
44868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44869 if (!SWIG_IsOK(res1)) {
44870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44871 }
44872 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44873 {
44874 PyThreadState* __tstate = wxPyBeginAllowThreads();
44875 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44876 wxPyEndAllowThreads(__tstate);
44877 if (PyErr_Occurred()) SWIG_fail;
44878 }
44879 {
44880 #if wxUSE_UNICODE
44881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44882 #else
44883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44884 #endif
44885 }
44886 return resultobj;
44887 fail:
44888 return NULL;
44889 }
44890
44891
44892 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44893 PyObject *obj;
44894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44895 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44896 return SWIG_Py_Void();
44897 }
44898
44899 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44900 return SWIG_Python_InitShadowInstance(args);
44901 }
44902
44903 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44904 PyObject *resultobj = 0;
44905 wxEventType arg1 ;
44906 wxObject *arg2 = (wxObject *) 0 ;
44907 int arg3 ;
44908 wxString *arg4 = 0 ;
44909 wxFileDirPickerEvent *result = 0 ;
44910 int val1 ;
44911 int ecode1 = 0 ;
44912 void *argp2 = 0 ;
44913 int res2 = 0 ;
44914 int val3 ;
44915 int ecode3 = 0 ;
44916 bool temp4 = false ;
44917 PyObject * obj0 = 0 ;
44918 PyObject * obj1 = 0 ;
44919 PyObject * obj2 = 0 ;
44920 PyObject * obj3 = 0 ;
44921 char * kwnames[] = {
44922 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44923 };
44924
44925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44926 ecode1 = SWIG_AsVal_int(obj0, &val1);
44927 if (!SWIG_IsOK(ecode1)) {
44928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44929 }
44930 arg1 = static_cast< wxEventType >(val1);
44931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44932 if (!SWIG_IsOK(res2)) {
44933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44934 }
44935 arg2 = reinterpret_cast< wxObject * >(argp2);
44936 ecode3 = SWIG_AsVal_int(obj2, &val3);
44937 if (!SWIG_IsOK(ecode3)) {
44938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44939 }
44940 arg3 = static_cast< int >(val3);
44941 {
44942 arg4 = wxString_in_helper(obj3);
44943 if (arg4 == NULL) SWIG_fail;
44944 temp4 = true;
44945 }
44946 {
44947 PyThreadState* __tstate = wxPyBeginAllowThreads();
44948 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44949 wxPyEndAllowThreads(__tstate);
44950 if (PyErr_Occurred()) SWIG_fail;
44951 }
44952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44953 {
44954 if (temp4)
44955 delete arg4;
44956 }
44957 return resultobj;
44958 fail:
44959 {
44960 if (temp4)
44961 delete arg4;
44962 }
44963 return NULL;
44964 }
44965
44966
44967 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44968 PyObject *resultobj = 0;
44969 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44970 wxString result;
44971 void *argp1 = 0 ;
44972 int res1 = 0 ;
44973 PyObject *swig_obj[1] ;
44974
44975 if (!args) SWIG_fail;
44976 swig_obj[0] = args;
44977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44978 if (!SWIG_IsOK(res1)) {
44979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44980 }
44981 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44982 {
44983 PyThreadState* __tstate = wxPyBeginAllowThreads();
44984 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44985 wxPyEndAllowThreads(__tstate);
44986 if (PyErr_Occurred()) SWIG_fail;
44987 }
44988 {
44989 #if wxUSE_UNICODE
44990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44991 #else
44992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44993 #endif
44994 }
44995 return resultobj;
44996 fail:
44997 return NULL;
44998 }
44999
45000
45001 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45002 PyObject *resultobj = 0;
45003 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45004 wxString *arg2 = 0 ;
45005 void *argp1 = 0 ;
45006 int res1 = 0 ;
45007 bool temp2 = false ;
45008 PyObject * obj0 = 0 ;
45009 PyObject * obj1 = 0 ;
45010 char * kwnames[] = {
45011 (char *) "self",(char *) "p", NULL
45012 };
45013
45014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45016 if (!SWIG_IsOK(res1)) {
45017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45018 }
45019 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45020 {
45021 arg2 = wxString_in_helper(obj1);
45022 if (arg2 == NULL) SWIG_fail;
45023 temp2 = true;
45024 }
45025 {
45026 PyThreadState* __tstate = wxPyBeginAllowThreads();
45027 (arg1)->SetPath((wxString const &)*arg2);
45028 wxPyEndAllowThreads(__tstate);
45029 if (PyErr_Occurred()) SWIG_fail;
45030 }
45031 resultobj = SWIG_Py_Void();
45032 {
45033 if (temp2)
45034 delete arg2;
45035 }
45036 return resultobj;
45037 fail:
45038 {
45039 if (temp2)
45040 delete arg2;
45041 }
45042 return NULL;
45043 }
45044
45045
45046 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45047 PyObject *obj;
45048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45049 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45050 return SWIG_Py_Void();
45051 }
45052
45053 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45054 return SWIG_Python_InitShadowInstance(args);
45055 }
45056
45057 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45058 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45059 return 1;
45060 }
45061
45062
45063 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45064 PyObject *pyobj = 0;
45065
45066 {
45067 #if wxUSE_UNICODE
45068 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45069 #else
45070 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45071 #endif
45072 }
45073 return pyobj;
45074 }
45075
45076
45077 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45078 PyObject *resultobj = 0;
45079 wxWindow *arg1 = (wxWindow *) 0 ;
45080 int arg2 = (int) -1 ;
45081 wxFont const &arg3_defvalue = wxNullFont ;
45082 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45083 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45084 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45085 wxSize const &arg5_defvalue = wxDefaultSize ;
45086 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45087 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45088 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45089 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45090 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45091 wxString *arg8 = (wxString *) &arg8_defvalue ;
45092 wxFontPickerCtrl *result = 0 ;
45093 void *argp1 = 0 ;
45094 int res1 = 0 ;
45095 int val2 ;
45096 int ecode2 = 0 ;
45097 void *argp3 = 0 ;
45098 int res3 = 0 ;
45099 wxPoint temp4 ;
45100 wxSize temp5 ;
45101 long val6 ;
45102 int ecode6 = 0 ;
45103 void *argp7 = 0 ;
45104 int res7 = 0 ;
45105 bool temp8 = false ;
45106 PyObject * obj0 = 0 ;
45107 PyObject * obj1 = 0 ;
45108 PyObject * obj2 = 0 ;
45109 PyObject * obj3 = 0 ;
45110 PyObject * obj4 = 0 ;
45111 PyObject * obj5 = 0 ;
45112 PyObject * obj6 = 0 ;
45113 PyObject * obj7 = 0 ;
45114 char * kwnames[] = {
45115 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45116 };
45117
45118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45120 if (!SWIG_IsOK(res1)) {
45121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45122 }
45123 arg1 = reinterpret_cast< wxWindow * >(argp1);
45124 if (obj1) {
45125 ecode2 = SWIG_AsVal_int(obj1, &val2);
45126 if (!SWIG_IsOK(ecode2)) {
45127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45128 }
45129 arg2 = static_cast< int >(val2);
45130 }
45131 if (obj2) {
45132 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45133 if (!SWIG_IsOK(res3)) {
45134 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45135 }
45136 if (!argp3) {
45137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45138 }
45139 arg3 = reinterpret_cast< wxFont * >(argp3);
45140 }
45141 if (obj3) {
45142 {
45143 arg4 = &temp4;
45144 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45145 }
45146 }
45147 if (obj4) {
45148 {
45149 arg5 = &temp5;
45150 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45151 }
45152 }
45153 if (obj5) {
45154 ecode6 = SWIG_AsVal_long(obj5, &val6);
45155 if (!SWIG_IsOK(ecode6)) {
45156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45157 }
45158 arg6 = static_cast< long >(val6);
45159 }
45160 if (obj6) {
45161 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45162 if (!SWIG_IsOK(res7)) {
45163 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45164 }
45165 if (!argp7) {
45166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45167 }
45168 arg7 = reinterpret_cast< wxValidator * >(argp7);
45169 }
45170 if (obj7) {
45171 {
45172 arg8 = wxString_in_helper(obj7);
45173 if (arg8 == NULL) SWIG_fail;
45174 temp8 = true;
45175 }
45176 }
45177 {
45178 if (!wxPyCheckForApp()) SWIG_fail;
45179 PyThreadState* __tstate = wxPyBeginAllowThreads();
45180 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45181 wxPyEndAllowThreads(__tstate);
45182 if (PyErr_Occurred()) SWIG_fail;
45183 }
45184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45185 {
45186 if (temp8)
45187 delete arg8;
45188 }
45189 return resultobj;
45190 fail:
45191 {
45192 if (temp8)
45193 delete arg8;
45194 }
45195 return NULL;
45196 }
45197
45198
45199 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45200 PyObject *resultobj = 0;
45201 wxFontPickerCtrl *result = 0 ;
45202
45203 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45204 {
45205 if (!wxPyCheckForApp()) SWIG_fail;
45206 PyThreadState* __tstate = wxPyBeginAllowThreads();
45207 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45208 wxPyEndAllowThreads(__tstate);
45209 if (PyErr_Occurred()) SWIG_fail;
45210 }
45211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45212 return resultobj;
45213 fail:
45214 return NULL;
45215 }
45216
45217
45218 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45219 PyObject *resultobj = 0;
45220 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45221 wxWindow *arg2 = (wxWindow *) 0 ;
45222 int arg3 = (int) -1 ;
45223 wxFont const &arg4_defvalue = wxNullFont ;
45224 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45225 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45226 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45227 wxSize const &arg6_defvalue = wxDefaultSize ;
45228 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45229 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45230 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45231 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45232 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45233 wxString *arg9 = (wxString *) &arg9_defvalue ;
45234 bool result;
45235 void *argp1 = 0 ;
45236 int res1 = 0 ;
45237 void *argp2 = 0 ;
45238 int res2 = 0 ;
45239 int val3 ;
45240 int ecode3 = 0 ;
45241 void *argp4 = 0 ;
45242 int res4 = 0 ;
45243 wxPoint temp5 ;
45244 wxSize temp6 ;
45245 long val7 ;
45246 int ecode7 = 0 ;
45247 void *argp8 = 0 ;
45248 int res8 = 0 ;
45249 bool temp9 = false ;
45250 PyObject * obj0 = 0 ;
45251 PyObject * obj1 = 0 ;
45252 PyObject * obj2 = 0 ;
45253 PyObject * obj3 = 0 ;
45254 PyObject * obj4 = 0 ;
45255 PyObject * obj5 = 0 ;
45256 PyObject * obj6 = 0 ;
45257 PyObject * obj7 = 0 ;
45258 PyObject * obj8 = 0 ;
45259 char * kwnames[] = {
45260 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45261 };
45262
45263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45265 if (!SWIG_IsOK(res1)) {
45266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45267 }
45268 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45270 if (!SWIG_IsOK(res2)) {
45271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45272 }
45273 arg2 = reinterpret_cast< wxWindow * >(argp2);
45274 if (obj2) {
45275 ecode3 = SWIG_AsVal_int(obj2, &val3);
45276 if (!SWIG_IsOK(ecode3)) {
45277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45278 }
45279 arg3 = static_cast< int >(val3);
45280 }
45281 if (obj3) {
45282 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45283 if (!SWIG_IsOK(res4)) {
45284 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45285 }
45286 if (!argp4) {
45287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45288 }
45289 arg4 = reinterpret_cast< wxFont * >(argp4);
45290 }
45291 if (obj4) {
45292 {
45293 arg5 = &temp5;
45294 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45295 }
45296 }
45297 if (obj5) {
45298 {
45299 arg6 = &temp6;
45300 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45301 }
45302 }
45303 if (obj6) {
45304 ecode7 = SWIG_AsVal_long(obj6, &val7);
45305 if (!SWIG_IsOK(ecode7)) {
45306 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45307 }
45308 arg7 = static_cast< long >(val7);
45309 }
45310 if (obj7) {
45311 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45312 if (!SWIG_IsOK(res8)) {
45313 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45314 }
45315 if (!argp8) {
45316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45317 }
45318 arg8 = reinterpret_cast< wxValidator * >(argp8);
45319 }
45320 if (obj8) {
45321 {
45322 arg9 = wxString_in_helper(obj8);
45323 if (arg9 == NULL) SWIG_fail;
45324 temp9 = true;
45325 }
45326 }
45327 {
45328 PyThreadState* __tstate = wxPyBeginAllowThreads();
45329 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45330 wxPyEndAllowThreads(__tstate);
45331 if (PyErr_Occurred()) SWIG_fail;
45332 }
45333 {
45334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45335 }
45336 {
45337 if (temp9)
45338 delete arg9;
45339 }
45340 return resultobj;
45341 fail:
45342 {
45343 if (temp9)
45344 delete arg9;
45345 }
45346 return NULL;
45347 }
45348
45349
45350 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45351 PyObject *resultobj = 0;
45352 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45353 wxFont result;
45354 void *argp1 = 0 ;
45355 int res1 = 0 ;
45356 PyObject *swig_obj[1] ;
45357
45358 if (!args) SWIG_fail;
45359 swig_obj[0] = args;
45360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45361 if (!SWIG_IsOK(res1)) {
45362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45363 }
45364 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45365 {
45366 PyThreadState* __tstate = wxPyBeginAllowThreads();
45367 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45368 wxPyEndAllowThreads(__tstate);
45369 if (PyErr_Occurred()) SWIG_fail;
45370 }
45371 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45372 return resultobj;
45373 fail:
45374 return NULL;
45375 }
45376
45377
45378 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45379 PyObject *resultobj = 0;
45380 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45381 wxFont *arg2 = 0 ;
45382 void *argp1 = 0 ;
45383 int res1 = 0 ;
45384 void *argp2 = 0 ;
45385 int res2 = 0 ;
45386 PyObject * obj0 = 0 ;
45387 PyObject * obj1 = 0 ;
45388 char * kwnames[] = {
45389 (char *) "self",(char *) "f", NULL
45390 };
45391
45392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45394 if (!SWIG_IsOK(res1)) {
45395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45396 }
45397 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45399 if (!SWIG_IsOK(res2)) {
45400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45401 }
45402 if (!argp2) {
45403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45404 }
45405 arg2 = reinterpret_cast< wxFont * >(argp2);
45406 {
45407 PyThreadState* __tstate = wxPyBeginAllowThreads();
45408 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45409 wxPyEndAllowThreads(__tstate);
45410 if (PyErr_Occurred()) SWIG_fail;
45411 }
45412 resultobj = SWIG_Py_Void();
45413 return resultobj;
45414 fail:
45415 return NULL;
45416 }
45417
45418
45419 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45420 PyObject *resultobj = 0;
45421 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45422 unsigned int arg2 ;
45423 void *argp1 = 0 ;
45424 int res1 = 0 ;
45425 unsigned int val2 ;
45426 int ecode2 = 0 ;
45427 PyObject * obj0 = 0 ;
45428 PyObject * obj1 = 0 ;
45429 char * kwnames[] = {
45430 (char *) "self",(char *) "max", NULL
45431 };
45432
45433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45435 if (!SWIG_IsOK(res1)) {
45436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45437 }
45438 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45439 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45440 if (!SWIG_IsOK(ecode2)) {
45441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45442 }
45443 arg2 = static_cast< unsigned int >(val2);
45444 {
45445 PyThreadState* __tstate = wxPyBeginAllowThreads();
45446 (arg1)->SetMaxPointSize(arg2);
45447 wxPyEndAllowThreads(__tstate);
45448 if (PyErr_Occurred()) SWIG_fail;
45449 }
45450 resultobj = SWIG_Py_Void();
45451 return resultobj;
45452 fail:
45453 return NULL;
45454 }
45455
45456
45457 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45458 PyObject *resultobj = 0;
45459 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45460 unsigned int result;
45461 void *argp1 = 0 ;
45462 int res1 = 0 ;
45463 PyObject *swig_obj[1] ;
45464
45465 if (!args) SWIG_fail;
45466 swig_obj[0] = args;
45467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45468 if (!SWIG_IsOK(res1)) {
45469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45470 }
45471 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45472 {
45473 PyThreadState* __tstate = wxPyBeginAllowThreads();
45474 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45475 wxPyEndAllowThreads(__tstate);
45476 if (PyErr_Occurred()) SWIG_fail;
45477 }
45478 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45479 return resultobj;
45480 fail:
45481 return NULL;
45482 }
45483
45484
45485 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45486 PyObject *obj;
45487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45488 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45489 return SWIG_Py_Void();
45490 }
45491
45492 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45493 return SWIG_Python_InitShadowInstance(args);
45494 }
45495
45496 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45497 PyObject *resultobj = 0;
45498 wxObject *arg1 = (wxObject *) 0 ;
45499 int arg2 ;
45500 wxFont *arg3 = 0 ;
45501 wxFontPickerEvent *result = 0 ;
45502 void *argp1 = 0 ;
45503 int res1 = 0 ;
45504 int val2 ;
45505 int ecode2 = 0 ;
45506 void *argp3 = 0 ;
45507 int res3 = 0 ;
45508 PyObject * obj0 = 0 ;
45509 PyObject * obj1 = 0 ;
45510 PyObject * obj2 = 0 ;
45511 char * kwnames[] = {
45512 (char *) "generator",(char *) "id",(char *) "f", NULL
45513 };
45514
45515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45517 if (!SWIG_IsOK(res1)) {
45518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45519 }
45520 arg1 = reinterpret_cast< wxObject * >(argp1);
45521 ecode2 = SWIG_AsVal_int(obj1, &val2);
45522 if (!SWIG_IsOK(ecode2)) {
45523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45524 }
45525 arg2 = static_cast< int >(val2);
45526 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45527 if (!SWIG_IsOK(res3)) {
45528 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45529 }
45530 if (!argp3) {
45531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45532 }
45533 arg3 = reinterpret_cast< wxFont * >(argp3);
45534 {
45535 PyThreadState* __tstate = wxPyBeginAllowThreads();
45536 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45537 wxPyEndAllowThreads(__tstate);
45538 if (PyErr_Occurred()) SWIG_fail;
45539 }
45540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45541 return resultobj;
45542 fail:
45543 return NULL;
45544 }
45545
45546
45547 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45548 PyObject *resultobj = 0;
45549 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45550 wxFont result;
45551 void *argp1 = 0 ;
45552 int res1 = 0 ;
45553 PyObject *swig_obj[1] ;
45554
45555 if (!args) SWIG_fail;
45556 swig_obj[0] = args;
45557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45558 if (!SWIG_IsOK(res1)) {
45559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45560 }
45561 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45562 {
45563 PyThreadState* __tstate = wxPyBeginAllowThreads();
45564 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45565 wxPyEndAllowThreads(__tstate);
45566 if (PyErr_Occurred()) SWIG_fail;
45567 }
45568 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45569 return resultobj;
45570 fail:
45571 return NULL;
45572 }
45573
45574
45575 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45576 PyObject *resultobj = 0;
45577 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45578 wxFont *arg2 = 0 ;
45579 void *argp1 = 0 ;
45580 int res1 = 0 ;
45581 void *argp2 = 0 ;
45582 int res2 = 0 ;
45583 PyObject * obj0 = 0 ;
45584 PyObject * obj1 = 0 ;
45585 char * kwnames[] = {
45586 (char *) "self",(char *) "c", NULL
45587 };
45588
45589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45591 if (!SWIG_IsOK(res1)) {
45592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45593 }
45594 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45596 if (!SWIG_IsOK(res2)) {
45597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45598 }
45599 if (!argp2) {
45600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45601 }
45602 arg2 = reinterpret_cast< wxFont * >(argp2);
45603 {
45604 PyThreadState* __tstate = wxPyBeginAllowThreads();
45605 (arg1)->SetFont((wxFont const &)*arg2);
45606 wxPyEndAllowThreads(__tstate);
45607 if (PyErr_Occurred()) SWIG_fail;
45608 }
45609 resultobj = SWIG_Py_Void();
45610 return resultobj;
45611 fail:
45612 return NULL;
45613 }
45614
45615
45616 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45617 PyObject *obj;
45618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45619 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45620 return SWIG_Py_Void();
45621 }
45622
45623 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45624 return SWIG_Python_InitShadowInstance(args);
45625 }
45626
45627 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45628 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45629 return 1;
45630 }
45631
45632
45633 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45634 PyObject *pyobj = 0;
45635
45636 {
45637 #if wxUSE_UNICODE
45638 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45639 #else
45640 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45641 #endif
45642 }
45643 return pyobj;
45644 }
45645
45646
45647 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45648 PyObject *resultobj = 0;
45649 wxWindow *arg1 = (wxWindow *) 0 ;
45650 int arg2 = (int) -1 ;
45651 wxString const &arg3_defvalue = wxPyEmptyString ;
45652 wxString *arg3 = (wxString *) &arg3_defvalue ;
45653 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45654 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45655 wxSize const &arg5_defvalue = wxDefaultSize ;
45656 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45657 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45658 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45659 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45660 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45661 wxString *arg8 = (wxString *) &arg8_defvalue ;
45662 wxCollapsiblePane *result = 0 ;
45663 void *argp1 = 0 ;
45664 int res1 = 0 ;
45665 int val2 ;
45666 int ecode2 = 0 ;
45667 bool temp3 = false ;
45668 wxPoint temp4 ;
45669 wxSize temp5 ;
45670 long val6 ;
45671 int ecode6 = 0 ;
45672 void *argp7 = 0 ;
45673 int res7 = 0 ;
45674 bool temp8 = false ;
45675 PyObject * obj0 = 0 ;
45676 PyObject * obj1 = 0 ;
45677 PyObject * obj2 = 0 ;
45678 PyObject * obj3 = 0 ;
45679 PyObject * obj4 = 0 ;
45680 PyObject * obj5 = 0 ;
45681 PyObject * obj6 = 0 ;
45682 PyObject * obj7 = 0 ;
45683 char * kwnames[] = {
45684 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45685 };
45686
45687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45689 if (!SWIG_IsOK(res1)) {
45690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45691 }
45692 arg1 = reinterpret_cast< wxWindow * >(argp1);
45693 if (obj1) {
45694 ecode2 = SWIG_AsVal_int(obj1, &val2);
45695 if (!SWIG_IsOK(ecode2)) {
45696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45697 }
45698 arg2 = static_cast< int >(val2);
45699 }
45700 if (obj2) {
45701 {
45702 arg3 = wxString_in_helper(obj2);
45703 if (arg3 == NULL) SWIG_fail;
45704 temp3 = true;
45705 }
45706 }
45707 if (obj3) {
45708 {
45709 arg4 = &temp4;
45710 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45711 }
45712 }
45713 if (obj4) {
45714 {
45715 arg5 = &temp5;
45716 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45717 }
45718 }
45719 if (obj5) {
45720 ecode6 = SWIG_AsVal_long(obj5, &val6);
45721 if (!SWIG_IsOK(ecode6)) {
45722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45723 }
45724 arg6 = static_cast< long >(val6);
45725 }
45726 if (obj6) {
45727 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45728 if (!SWIG_IsOK(res7)) {
45729 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45730 }
45731 if (!argp7) {
45732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45733 }
45734 arg7 = reinterpret_cast< wxValidator * >(argp7);
45735 }
45736 if (obj7) {
45737 {
45738 arg8 = wxString_in_helper(obj7);
45739 if (arg8 == NULL) SWIG_fail;
45740 temp8 = true;
45741 }
45742 }
45743 {
45744 if (!wxPyCheckForApp()) SWIG_fail;
45745 PyThreadState* __tstate = wxPyBeginAllowThreads();
45746 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45747 wxPyEndAllowThreads(__tstate);
45748 if (PyErr_Occurred()) SWIG_fail;
45749 }
45750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45751 {
45752 if (temp3)
45753 delete arg3;
45754 }
45755 {
45756 if (temp8)
45757 delete arg8;
45758 }
45759 return resultobj;
45760 fail:
45761 {
45762 if (temp3)
45763 delete arg3;
45764 }
45765 {
45766 if (temp8)
45767 delete arg8;
45768 }
45769 return NULL;
45770 }
45771
45772
45773 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45774 PyObject *resultobj = 0;
45775 wxCollapsiblePane *result = 0 ;
45776
45777 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45778 {
45779 if (!wxPyCheckForApp()) SWIG_fail;
45780 PyThreadState* __tstate = wxPyBeginAllowThreads();
45781 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45782 wxPyEndAllowThreads(__tstate);
45783 if (PyErr_Occurred()) SWIG_fail;
45784 }
45785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45786 return resultobj;
45787 fail:
45788 return NULL;
45789 }
45790
45791
45792 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45793 PyObject *resultobj = 0;
45794 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45795 wxWindow *arg2 = (wxWindow *) 0 ;
45796 int arg3 = (int) -1 ;
45797 wxString const &arg4_defvalue = wxPyEmptyString ;
45798 wxString *arg4 = (wxString *) &arg4_defvalue ;
45799 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45800 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45801 wxSize const &arg6_defvalue = wxDefaultSize ;
45802 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45803 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45804 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45805 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45806 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45807 wxString *arg9 = (wxString *) &arg9_defvalue ;
45808 bool result;
45809 void *argp1 = 0 ;
45810 int res1 = 0 ;
45811 void *argp2 = 0 ;
45812 int res2 = 0 ;
45813 int val3 ;
45814 int ecode3 = 0 ;
45815 bool temp4 = false ;
45816 wxPoint temp5 ;
45817 wxSize temp6 ;
45818 long val7 ;
45819 int ecode7 = 0 ;
45820 void *argp8 = 0 ;
45821 int res8 = 0 ;
45822 bool temp9 = false ;
45823 PyObject * obj0 = 0 ;
45824 PyObject * obj1 = 0 ;
45825 PyObject * obj2 = 0 ;
45826 PyObject * obj3 = 0 ;
45827 PyObject * obj4 = 0 ;
45828 PyObject * obj5 = 0 ;
45829 PyObject * obj6 = 0 ;
45830 PyObject * obj7 = 0 ;
45831 PyObject * obj8 = 0 ;
45832 char * kwnames[] = {
45833 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45834 };
45835
45836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45838 if (!SWIG_IsOK(res1)) {
45839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45840 }
45841 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45843 if (!SWIG_IsOK(res2)) {
45844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45845 }
45846 arg2 = reinterpret_cast< wxWindow * >(argp2);
45847 if (obj2) {
45848 ecode3 = SWIG_AsVal_int(obj2, &val3);
45849 if (!SWIG_IsOK(ecode3)) {
45850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45851 }
45852 arg3 = static_cast< int >(val3);
45853 }
45854 if (obj3) {
45855 {
45856 arg4 = wxString_in_helper(obj3);
45857 if (arg4 == NULL) SWIG_fail;
45858 temp4 = true;
45859 }
45860 }
45861 if (obj4) {
45862 {
45863 arg5 = &temp5;
45864 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45865 }
45866 }
45867 if (obj5) {
45868 {
45869 arg6 = &temp6;
45870 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45871 }
45872 }
45873 if (obj6) {
45874 ecode7 = SWIG_AsVal_long(obj6, &val7);
45875 if (!SWIG_IsOK(ecode7)) {
45876 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45877 }
45878 arg7 = static_cast< long >(val7);
45879 }
45880 if (obj7) {
45881 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45882 if (!SWIG_IsOK(res8)) {
45883 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45884 }
45885 if (!argp8) {
45886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45887 }
45888 arg8 = reinterpret_cast< wxValidator * >(argp8);
45889 }
45890 if (obj8) {
45891 {
45892 arg9 = wxString_in_helper(obj8);
45893 if (arg9 == NULL) SWIG_fail;
45894 temp9 = true;
45895 }
45896 }
45897 {
45898 PyThreadState* __tstate = wxPyBeginAllowThreads();
45899 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45900 wxPyEndAllowThreads(__tstate);
45901 if (PyErr_Occurred()) SWIG_fail;
45902 }
45903 {
45904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45905 }
45906 {
45907 if (temp4)
45908 delete arg4;
45909 }
45910 {
45911 if (temp9)
45912 delete arg9;
45913 }
45914 return resultobj;
45915 fail:
45916 {
45917 if (temp4)
45918 delete arg4;
45919 }
45920 {
45921 if (temp9)
45922 delete arg9;
45923 }
45924 return NULL;
45925 }
45926
45927
45928 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45929 PyObject *resultobj = 0;
45930 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45931 bool arg2 = (bool) true ;
45932 void *argp1 = 0 ;
45933 int res1 = 0 ;
45934 bool val2 ;
45935 int ecode2 = 0 ;
45936 PyObject * obj0 = 0 ;
45937 PyObject * obj1 = 0 ;
45938 char * kwnames[] = {
45939 (char *) "self",(char *) "collapse", NULL
45940 };
45941
45942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45944 if (!SWIG_IsOK(res1)) {
45945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45946 }
45947 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45948 if (obj1) {
45949 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45950 if (!SWIG_IsOK(ecode2)) {
45951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45952 }
45953 arg2 = static_cast< bool >(val2);
45954 }
45955 {
45956 PyThreadState* __tstate = wxPyBeginAllowThreads();
45957 (arg1)->Collapse(arg2);
45958 wxPyEndAllowThreads(__tstate);
45959 if (PyErr_Occurred()) SWIG_fail;
45960 }
45961 resultobj = SWIG_Py_Void();
45962 return resultobj;
45963 fail:
45964 return NULL;
45965 }
45966
45967
45968 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45969 PyObject *resultobj = 0;
45970 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45971 void *argp1 = 0 ;
45972 int res1 = 0 ;
45973 PyObject *swig_obj[1] ;
45974
45975 if (!args) SWIG_fail;
45976 swig_obj[0] = args;
45977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45978 if (!SWIG_IsOK(res1)) {
45979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45980 }
45981 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45982 {
45983 PyThreadState* __tstate = wxPyBeginAllowThreads();
45984 (arg1)->Expand();
45985 wxPyEndAllowThreads(__tstate);
45986 if (PyErr_Occurred()) SWIG_fail;
45987 }
45988 resultobj = SWIG_Py_Void();
45989 return resultobj;
45990 fail:
45991 return NULL;
45992 }
45993
45994
45995 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45996 PyObject *resultobj = 0;
45997 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45998 bool result;
45999 void *argp1 = 0 ;
46000 int res1 = 0 ;
46001 PyObject *swig_obj[1] ;
46002
46003 if (!args) SWIG_fail;
46004 swig_obj[0] = args;
46005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46006 if (!SWIG_IsOK(res1)) {
46007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46008 }
46009 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46010 {
46011 PyThreadState* __tstate = wxPyBeginAllowThreads();
46012 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46013 wxPyEndAllowThreads(__tstate);
46014 if (PyErr_Occurred()) SWIG_fail;
46015 }
46016 {
46017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46018 }
46019 return resultobj;
46020 fail:
46021 return NULL;
46022 }
46023
46024
46025 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46026 PyObject *resultobj = 0;
46027 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46028 bool result;
46029 void *argp1 = 0 ;
46030 int res1 = 0 ;
46031 PyObject *swig_obj[1] ;
46032
46033 if (!args) SWIG_fail;
46034 swig_obj[0] = args;
46035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46036 if (!SWIG_IsOK(res1)) {
46037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46038 }
46039 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46040 {
46041 PyThreadState* __tstate = wxPyBeginAllowThreads();
46042 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46043 wxPyEndAllowThreads(__tstate);
46044 if (PyErr_Occurred()) SWIG_fail;
46045 }
46046 {
46047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46048 }
46049 return resultobj;
46050 fail:
46051 return NULL;
46052 }
46053
46054
46055 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46056 PyObject *resultobj = 0;
46057 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46058 wxWindow *result = 0 ;
46059 void *argp1 = 0 ;
46060 int res1 = 0 ;
46061 PyObject *swig_obj[1] ;
46062
46063 if (!args) SWIG_fail;
46064 swig_obj[0] = args;
46065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46066 if (!SWIG_IsOK(res1)) {
46067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46068 }
46069 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46070 {
46071 PyThreadState* __tstate = wxPyBeginAllowThreads();
46072 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46073 wxPyEndAllowThreads(__tstate);
46074 if (PyErr_Occurred()) SWIG_fail;
46075 }
46076 {
46077 resultobj = wxPyMake_wxObject(result, 0);
46078 }
46079 return resultobj;
46080 fail:
46081 return NULL;
46082 }
46083
46084
46085 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46086 PyObject *obj;
46087 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46088 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46089 return SWIG_Py_Void();
46090 }
46091
46092 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46093 return SWIG_Python_InitShadowInstance(args);
46094 }
46095
46096 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46097 PyObject *resultobj = 0;
46098 wxObject *arg1 = (wxObject *) 0 ;
46099 int arg2 ;
46100 bool arg3 ;
46101 wxCollapsiblePaneEvent *result = 0 ;
46102 void *argp1 = 0 ;
46103 int res1 = 0 ;
46104 int val2 ;
46105 int ecode2 = 0 ;
46106 bool val3 ;
46107 int ecode3 = 0 ;
46108 PyObject * obj0 = 0 ;
46109 PyObject * obj1 = 0 ;
46110 PyObject * obj2 = 0 ;
46111 char * kwnames[] = {
46112 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46113 };
46114
46115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46117 if (!SWIG_IsOK(res1)) {
46118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46119 }
46120 arg1 = reinterpret_cast< wxObject * >(argp1);
46121 ecode2 = SWIG_AsVal_int(obj1, &val2);
46122 if (!SWIG_IsOK(ecode2)) {
46123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46124 }
46125 arg2 = static_cast< int >(val2);
46126 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46127 if (!SWIG_IsOK(ecode3)) {
46128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46129 }
46130 arg3 = static_cast< bool >(val3);
46131 {
46132 PyThreadState* __tstate = wxPyBeginAllowThreads();
46133 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46134 wxPyEndAllowThreads(__tstate);
46135 if (PyErr_Occurred()) SWIG_fail;
46136 }
46137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46138 return resultobj;
46139 fail:
46140 return NULL;
46141 }
46142
46143
46144 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46145 PyObject *resultobj = 0;
46146 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46147 bool result;
46148 void *argp1 = 0 ;
46149 int res1 = 0 ;
46150 PyObject *swig_obj[1] ;
46151
46152 if (!args) SWIG_fail;
46153 swig_obj[0] = args;
46154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46155 if (!SWIG_IsOK(res1)) {
46156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46157 }
46158 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46159 {
46160 PyThreadState* __tstate = wxPyBeginAllowThreads();
46161 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46162 wxPyEndAllowThreads(__tstate);
46163 if (PyErr_Occurred()) SWIG_fail;
46164 }
46165 {
46166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46167 }
46168 return resultobj;
46169 fail:
46170 return NULL;
46171 }
46172
46173
46174 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46175 PyObject *resultobj = 0;
46176 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46177 bool arg2 ;
46178 void *argp1 = 0 ;
46179 int res1 = 0 ;
46180 bool val2 ;
46181 int ecode2 = 0 ;
46182 PyObject * obj0 = 0 ;
46183 PyObject * obj1 = 0 ;
46184 char * kwnames[] = {
46185 (char *) "self",(char *) "c", NULL
46186 };
46187
46188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46190 if (!SWIG_IsOK(res1)) {
46191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46192 }
46193 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46194 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46195 if (!SWIG_IsOK(ecode2)) {
46196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46197 }
46198 arg2 = static_cast< bool >(val2);
46199 {
46200 PyThreadState* __tstate = wxPyBeginAllowThreads();
46201 (arg1)->SetCollapsed(arg2);
46202 wxPyEndAllowThreads(__tstate);
46203 if (PyErr_Occurred()) SWIG_fail;
46204 }
46205 resultobj = SWIG_Py_Void();
46206 return resultobj;
46207 fail:
46208 return NULL;
46209 }
46210
46211
46212 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46213 PyObject *obj;
46214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46215 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46216 return SWIG_Py_Void();
46217 }
46218
46219 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46220 return SWIG_Python_InitShadowInstance(args);
46221 }
46222
46223 static PyMethodDef SwigMethods[] = {
46224 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46226 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46228 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46229 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46231 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46232 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46234 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46236 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46237 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46238 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46239 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46240 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46241 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46244 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46247 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46248 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46249 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46250 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46252 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46254 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46255 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46257 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46259 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46260 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46262 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46263 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46264 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46265 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46267 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46269 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46270 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46271 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46272 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46274 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46276 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46277 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46278 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46280 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46281 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46282 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46284 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46285 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46286 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46289 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46291 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46292 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46293 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46294 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46295 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46296 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46297 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46298 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46299 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46301 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46302 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46304 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46306 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46307 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
46309 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
46310 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46311 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46312 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46313 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46314 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46315 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46317 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46318 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46320 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46321 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46323 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46324 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46326 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46328 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46329 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46331 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46332 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46334 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46335 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46338 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46339 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46341 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46343 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46347 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46348 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46350 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46351 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46356 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46357 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46359 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46361 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46364 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46366 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46369 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46372 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46373 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46374 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46375 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46376 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46377 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46378 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46379 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46380 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46381 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46382 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46383 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46384 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46386 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46387 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46388 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46390 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46392 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46393 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46394 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46395 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46396 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46397 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46398 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46399 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46400 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46401 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46402 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46403 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46404 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46405 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46406 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46407 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46408 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46409 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46410 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46411 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46412 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46413 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46414 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46416 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46417 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46418 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46419 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46420 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
46421 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46422 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46423 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46424 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46425 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46426 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46427 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46428 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46429 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46430 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46431 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46432 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46434 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46435 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46436 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46437 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
46438 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46444 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46445 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46446 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46447 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46449 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46450 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46452 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46453 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46454 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46455 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46456 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46457 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46458 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46459 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46460 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46461 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46462 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46463 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46464 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46465 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46466 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46467 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46468 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46469 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
46470 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
46471 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
46472 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46473 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46474 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46475 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46476 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46477 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46478 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46479 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46480 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46481 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46482 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46483 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46484 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46485 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46486 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46487 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46488 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46489 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46490 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46491 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46492 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46494 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46495 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46496 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46497 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46498 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46499 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46500 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46501 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46502 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46503 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46504 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46505 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46506 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46507 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46508 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46509 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46510 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46511 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46512 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46513 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46514 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46515 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46516 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46517 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46518 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46519 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46520 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46521 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46522 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46523 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46524 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46525 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46526 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46527 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46528 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46529 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46530 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46531 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46532 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46533 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46534 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46535 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46536 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46537 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46538 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46539 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46540 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46541 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46542 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46543 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46544 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46545 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46546 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46547 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46548 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46549 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46550 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46551 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46552 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46553 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46554 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46555 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46556 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46557 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46558 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46559 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46560 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46561 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46562 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46563 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46564 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46565 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46566 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46567 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46568 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46569 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46570 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46571 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46572 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46573 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46574 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46575 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46576 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46577 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46578 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46579 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46580 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46581 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46582 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46583 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46584 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46585 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46586 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46587 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46588 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46589 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46590 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46591 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46592 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46593 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46594 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46595 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46596 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46597 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46598 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46599 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46600 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46601 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46602 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46604 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46605 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46606 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46607 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46608 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46609 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46610 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
46611 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46612 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
46613 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46614 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
46615 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
46616 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46618 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46619 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46620 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46621 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46622 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46624 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46625 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46626 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46627 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46628 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46629 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46631 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46633 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46634 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46635 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46636 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46637 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46638 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46639 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
46640 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46641 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46642 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46643 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46645 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46646 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46648 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46649 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46650 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46651 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46652 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46653 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46654 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46655 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46656 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46657 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46658 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46659 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46660 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46661 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46662 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46663 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46664 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46666 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46667 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46669 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46671 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46672 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46674 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46675 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46677 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46678 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46679 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46680 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46681 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46682 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46683 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46684 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46685 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46686 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46687 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46688 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46689 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46691 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46692 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46693 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46694 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46695 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46696 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46697 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46698 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46699 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46700 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46701 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46702 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46703 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46704 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46705 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46706 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46707 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46708 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46709 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46711 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46718 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46720 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46722 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46723 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46724 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46726 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46727 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46729 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46730 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46731 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46732 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46733 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46735 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46736 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46739 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46741 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46743 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46747 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46750 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46751 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46752 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46753 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46754 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46755 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46756 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46757 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46759 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46760 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46761 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46762 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46763 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46764 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46765 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46766 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46767 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46768 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46769 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46770 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46772 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46773 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46774 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46775 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46776 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46777 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46779 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46780 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46781 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46782 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46783 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46784 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46785 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46786 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46787 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46788 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46789 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46790 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46791 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46792 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46793 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46794 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46807 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46808 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46809 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46810 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46811 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46812 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46813 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46814 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46815 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46816 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46817 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46818 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46819 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46820 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46821 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46822 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46823 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46824 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46825 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46826 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46827 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46828 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46829 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46830 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46831 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46832 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46833 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46834 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46835 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46836 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46837 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46838 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46839 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46840 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46841 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46842 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46843 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46844 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46845 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46846 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46847 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46848 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46849 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46850 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46851 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46852 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46853 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46854 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46855 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46856 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46857 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46858 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46859 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46860 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46861 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46862 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46863 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46864 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46865 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46866 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46867 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46869 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46870 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46871 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46872 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46876 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46879 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46880 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46881 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46882 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46887 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46889 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46893 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46895 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46896 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46897 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46898 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46899 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46900 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46901 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46902 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46904 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46906 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46908 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46909 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46910 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46911 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46913 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46914 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46915 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46916 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46917 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46920 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46922 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46923 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
46925 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46929 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46934 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46941 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46943 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46944 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46946 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46947 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46950 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46951 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46952 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46953 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46954 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46956 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46957 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46958 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46959 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46960 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46962 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46963 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46964 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46965 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46966 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46967 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46968 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46969 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46971 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46972 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46973 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46974 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
46975 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
46976 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46977 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46979 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46980 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46981 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46982 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46983 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46984 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46985 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46986 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46987 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46988 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46989 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46990 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46991 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46992 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46993 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46995 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46996 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46997 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46998 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46999 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47000 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47001 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47002 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47003 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47004 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47006 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47007 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47009 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47011 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47013 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47014 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47016 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47017 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47019 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47021 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47022 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47025 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47027 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47029 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47031 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47032 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47033 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47034 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47036 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47037 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47039 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47040 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47041 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47042 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47044 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47046 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47047 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47048 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47049 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47050 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47051 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47052 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47053 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47054 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47055 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47056 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47057 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47058 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47059 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47060 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47061 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47062 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47063 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47064 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47065 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47066 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47069 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47070 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47073 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47074 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47075 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47076 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47077 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47078 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47079 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47080 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47082 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47083 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47084 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47085 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47086 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47087 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47088 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47089 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47090 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47091 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47092 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47093 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47094 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47095 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47096 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47097 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47098 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47099 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47100 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47101 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47103 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47104 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47106 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47107 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47109 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47111 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47114 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47115 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47116 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47117 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47118 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47119 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47120 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47121 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47122 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47123 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47124 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47125 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47126 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47127 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47128 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47129 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47130 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
47131 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47132 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47134 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47135 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47136 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47137 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47139 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47140 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47141 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47142 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47143 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
47144 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
47145 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47147 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47150 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47151 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47153 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47154 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47155 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47156 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47157 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47158 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47163 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47164 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47165 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47167 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47168 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47169 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47170 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47171 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47173 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47175 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47176 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47177 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47179 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47180 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47181 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47182 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47183 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47184 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47185 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47186 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
47187 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47188 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47189 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47190 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47191 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47192 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47193 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47194 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47195 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47197 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47198 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47200 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47201 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47202 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47204 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47205 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47206 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
47207 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47209 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47210 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47211 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
47212 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47213 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
47214 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47215 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47216 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47217 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47218 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47219 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47220 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47221 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47222 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47224 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47225 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47226 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47228 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47229 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47231 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47233 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47234 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47235 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47236 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47238 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47240 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
47241 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47242 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47243 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47245 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47246 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47247 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47249 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
47250 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47251 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47252 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47253 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47254 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47255 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47256 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47257 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47258 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47259 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47261 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47262 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47263 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47264 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47265 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47266 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47268 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47270 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
47271 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47273 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47276 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47277 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47278 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47279 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47280 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47281 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47283 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47284 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47285 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
47286 { NULL, NULL, 0, NULL }
47287 };
47288
47289
47290 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47291
47292 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47293 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47294 }
47295 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47296 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47297 }
47298 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47299 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47300 }
47301 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47302 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47303 }
47304 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47305 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47306 }
47307 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47308 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47309 }
47310 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47311 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47312 }
47313 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47314 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47315 }
47316 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47317 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47318 }
47319 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47320 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47321 }
47322 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47323 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47324 }
47325 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47326 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47327 }
47328 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47329 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47330 }
47331 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47332 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47333 }
47334 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47335 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47336 }
47337 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47338 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47339 }
47340 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47341 return (void *)((wxEvent *) ((wxPyEvent *) x));
47342 }
47343 static void *_p_wxListEventTo_p_wxEvent(void *x) {
47344 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47345 }
47346 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47347 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47348 }
47349 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47350 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47351 }
47352 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47353 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47354 }
47355 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47356 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47357 }
47358 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47359 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47360 }
47361 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47362 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47363 }
47364 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47365 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47366 }
47367 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47368 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47369 }
47370 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47371 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47372 }
47373 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47374 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47375 }
47376 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47377 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47378 }
47379 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47380 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47381 }
47382 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47383 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47384 }
47385 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47386 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47387 }
47388 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47389 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47390 }
47391 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47392 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47393 }
47394 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47395 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47396 }
47397 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47398 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47399 }
47400 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47401 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47402 }
47403 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47404 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47405 }
47406 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47407 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47408 }
47409 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47410 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47411 }
47412 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47413 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47414 }
47415 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47416 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47417 }
47418 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47419 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47420 }
47421 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47422 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47423 }
47424 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47425 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47426 }
47427 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47428 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47429 }
47430 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47431 return (void *)((wxEvent *) ((wxShowEvent *) x));
47432 }
47433 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47434 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47435 }
47436 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47437 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47438 }
47439 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47440 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47441 }
47442 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47443 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47444 }
47445 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47446 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47447 }
47448 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47449 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47450 }
47451 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47452 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47453 }
47454 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47455 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47456 }
47457 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47458 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47459 }
47460 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47461 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47462 }
47463 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47464 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47465 }
47466 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47467 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47468 }
47469 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47470 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47471 }
47472 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47473 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47474 }
47475 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47476 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47477 }
47478 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47479 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47480 }
47481 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47482 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47483 }
47484 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47485 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47486 }
47487 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47488 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47489 }
47490 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47491 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47492 }
47493 static void *_p_wxToolBarTo_p_wxControl(void *x) {
47494 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47495 }
47496 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47497 return (void *)((wxControl *) ((wxPickerBase *) x));
47498 }
47499 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47500 return (void *)((wxControl *) ((wxToggleButton *) x));
47501 }
47502 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47503 return (void *)((wxControl *) ((wxRadioButton *) x));
47504 }
47505 static void *_p_wxToolbookTo_p_wxControl(void *x) {
47506 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47507 }
47508 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47509 return (void *)((wxControl *) ((wxToolBarBase *) x));
47510 }
47511 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47512 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47513 }
47514 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47515 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47516 }
47517 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47518 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47519 }
47520 static void *_p_wxPyControlTo_p_wxControl(void *x) {
47521 return (void *)((wxControl *) ((wxPyControl *) x));
47522 }
47523 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47524 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47525 }
47526 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47527 return (void *)((wxControl *) ((wxScrollBar *) x));
47528 }
47529 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47530 return (void *)((wxControl *) ((wxControlWithItems *) x));
47531 }
47532 static void *_p_wxGaugeTo_p_wxControl(void *x) {
47533 return (void *)((wxControl *) ((wxGauge *) x));
47534 }
47535 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47536 return (void *)((wxControl *) ((wxStaticLine *) x));
47537 }
47538 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47539 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47540 }
47541 static void *_p_wxListbookTo_p_wxControl(void *x) {
47542 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47543 }
47544 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47545 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47546 }
47547 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47548 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47549 }
47550 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47551 return (void *)((wxControl *) ((wxCheckBox *) x));
47552 }
47553 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47554 return (void *)((wxControl *) ((wxRadioBox *) x));
47555 }
47556 static void *_p_wxChoiceTo_p_wxControl(void *x) {
47557 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47558 }
47559 static void *_p_wxListBoxTo_p_wxControl(void *x) {
47560 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47561 }
47562 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47563 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47564 }
47565 static void *_p_wxListViewTo_p_wxControl(void *x) {
47566 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47567 }
47568 static void *_p_wxNotebookTo_p_wxControl(void *x) {
47569 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47570 }
47571 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47572 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47573 }
47574 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47575 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47576 }
47577 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47578 return (void *)((wxControl *) ((wxStaticText *) x));
47579 }
47580 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47581 return (void *)((wxControl *) ((wxStaticBox *) x));
47582 }
47583 static void *_p_wxSliderTo_p_wxControl(void *x) {
47584 return (void *)((wxControl *) ((wxSlider *) x));
47585 }
47586 static void *_p_wxTreebookTo_p_wxControl(void *x) {
47587 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47588 }
47589 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47590 return (void *)((wxControl *) ((wxSpinButton *) x));
47591 }
47592 static void *_p_wxButtonTo_p_wxControl(void *x) {
47593 return (void *)((wxControl *) ((wxButton *) x));
47594 }
47595 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47596 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47597 }
47598 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47599 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47600 }
47601 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47602 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47603 }
47604 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47605 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47606 }
47607 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47608 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47609 }
47610 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47611 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47612 }
47613 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47614 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47615 }
47616 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47617 return (void *)((wxControl *) ((wxTextCtrl *) x));
47618 }
47619 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47620 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47621 }
47622 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
47623 return (void *)((wxChoice *) ((wxComboBox *) x));
47624 }
47625 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47626 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47627 }
47628 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47629 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47630 }
47631 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47632 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47633 }
47634 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47635 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47636 }
47637 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47638 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47639 }
47640 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47641 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47642 }
47643 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47644 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47645 }
47646 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47647 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47648 }
47649 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47650 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47651 }
47652 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47653 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47654 }
47655 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47656 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47657 }
47658 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47659 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47660 }
47661 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47662 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47663 }
47664 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47665 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47666 }
47667 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47668 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47669 }
47670 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
47671 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47672 }
47673 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47674 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47675 }
47676 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47677 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47678 }
47679 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47680 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47681 }
47682 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47683 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47684 }
47685 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47686 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47687 }
47688 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47689 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47690 }
47691 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47692 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47693 }
47694 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47695 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47696 }
47697 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47698 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47699 }
47700 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47701 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47702 }
47703 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47704 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47705 }
47706 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47707 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47708 }
47709 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47710 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47711 }
47712 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47713 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47714 }
47715 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47716 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47717 }
47718 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47719 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47720 }
47721 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47722 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47723 }
47724 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47725 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47726 }
47727 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47728 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47729 }
47730 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47731 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47732 }
47733 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47734 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47735 }
47736 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47737 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47738 }
47739 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47740 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47741 }
47742 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47743 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47744 }
47745 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47746 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47747 }
47748 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47749 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47750 }
47751 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47752 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47753 }
47754 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47755 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47756 }
47757 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47758 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47759 }
47760 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47761 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47762 }
47763 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47764 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47765 }
47766 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47767 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47768 }
47769 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47770 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47771 }
47772 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47773 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47774 }
47775 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47776 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47777 }
47778 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47779 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47780 }
47781 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47782 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47783 }
47784 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47785 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47786 }
47787 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47788 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47789 }
47790 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47791 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47792 }
47793 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47794 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47795 }
47796 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47797 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47798 }
47799 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47800 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47801 }
47802 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47803 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47804 }
47805 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47806 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47807 }
47808 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47809 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47810 }
47811 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47812 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47813 }
47814 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47815 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47816 }
47817 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47818 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47819 }
47820 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47821 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47822 }
47823 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47824 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47825 }
47826 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47827 return (void *)((wxButton *) ((wxBitmapButton *) x));
47828 }
47829 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47830 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47831 }
47832 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47833 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47834 }
47835 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47836 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47837 }
47838 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47839 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47840 }
47841 static void *_p_wxToolbookTo_p_wxObject(void *x) {
47842 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47843 }
47844 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47845 return (void *)((wxObject *) ((wxSizerItem *) x));
47846 }
47847 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47848 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47849 }
47850 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47852 }
47853 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47854 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47855 }
47856 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47857 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47858 }
47859 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47860 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47861 }
47862 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47863 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47864 }
47865 static void *_p_wxSizerTo_p_wxObject(void *x) {
47866 return (void *)((wxObject *) ((wxSizer *) x));
47867 }
47868 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47869 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47870 }
47871 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47872 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47873 }
47874 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47876 }
47877 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47878 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47879 }
47880 static void *_p_wxEventTo_p_wxObject(void *x) {
47881 return (void *)((wxObject *) ((wxEvent *) x));
47882 }
47883 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47884 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47885 }
47886 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47887 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47888 }
47889 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47890 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47891 }
47892 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47894 }
47895 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47896 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47897 }
47898 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47899 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47900 }
47901 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47902 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47903 }
47904 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47905 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47906 }
47907 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47908 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47909 }
47910 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47911 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47912 }
47913 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47914 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47915 }
47916 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47917 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47918 }
47919 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47920 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47921 }
47922 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47923 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47924 }
47925 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47927 }
47928 static void *_p_wxControlTo_p_wxObject(void *x) {
47929 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47930 }
47931 static void *_p_wxPyControlTo_p_wxObject(void *x) {
47932 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47933 }
47934 static void *_p_wxGaugeTo_p_wxObject(void *x) {
47935 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47936 }
47937 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47939 }
47940 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47941 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47942 }
47943 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47944 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47945 }
47946 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47947 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47948 }
47949 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47950 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47951 }
47952 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47953 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47954 }
47955 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47956 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47957 }
47958 static void *_p_wxChoiceTo_p_wxObject(void *x) {
47959 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47960 }
47961 static void *_p_wxFSFileTo_p_wxObject(void *x) {
47962 return (void *)((wxObject *) ((wxFSFile *) x));
47963 }
47964 static void *_p_wxPySizerTo_p_wxObject(void *x) {
47965 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47966 }
47967 static void *_p_wxTreebookTo_p_wxObject(void *x) {
47968 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47969 }
47970 static void *_p_wxListViewTo_p_wxObject(void *x) {
47971 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47972 }
47973 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47974 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47975 }
47976 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47978 }
47979 static void *_p_wxNotebookTo_p_wxObject(void *x) {
47980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47981 }
47982 static void *_p_wxPyEventTo_p_wxObject(void *x) {
47983 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47984 }
47985 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47986 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47987 }
47988 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47989 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47990 }
47991 static void *_p_wxListbookTo_p_wxObject(void *x) {
47992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47993 }
47994 static void *_p_wxShowEventTo_p_wxObject(void *x) {
47995 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47996 }
47997 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47999 }
48000 static void *_p_wxSliderTo_p_wxObject(void *x) {
48001 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48002 }
48003 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48004 return (void *)((wxObject *) ((wxMenuItem *) x));
48005 }
48006 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48008 }
48009 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48010 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48011 }
48012 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48013 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48014 }
48015 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48016 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48017 }
48018 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48019 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48020 }
48021 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48022 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48023 }
48024 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48025 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48026 }
48027 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48028 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48029 }
48030 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48031 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48032 }
48033 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48034 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48035 }
48036 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48037 return (void *)((wxObject *) ((wxContextHelp *) x));
48038 }
48039 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48041 }
48042 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48044 }
48045 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48046 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48047 }
48048 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48049 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48050 }
48051 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48052 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48053 }
48054 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48055 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48056 }
48057 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48058 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48059 }
48060 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48061 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48062 }
48063 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48064 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48065 }
48066 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48067 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48068 }
48069 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48070 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48071 }
48072 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48073 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48074 }
48075 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48076 return (void *)((wxObject *) ((wxImageHandler *) x));
48077 }
48078 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48079 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48080 }
48081 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48082 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48083 }
48084 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48085 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48086 }
48087 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48088 return (void *)((wxObject *) ((wxEvtHandler *) x));
48089 }
48090 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48091 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48092 }
48093 static void *_p_wxListEventTo_p_wxObject(void *x) {
48094 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48095 }
48096 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48098 }
48099 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48100 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48101 }
48102 static void *_p_wxButtonTo_p_wxObject(void *x) {
48103 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48104 }
48105 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48106 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48107 }
48108 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48109 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48110 }
48111 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48112 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48113 }
48114 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48115 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48116 }
48117 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48118 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48119 }
48120 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48121 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48122 }
48123 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48124 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48125 }
48126 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48127 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48128 }
48129 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48130 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48131 }
48132 static void *_p_wxListItemTo_p_wxObject(void *x) {
48133 return (void *)((wxObject *) ((wxListItem *) x));
48134 }
48135 static void *_p_wxImageTo_p_wxObject(void *x) {
48136 return (void *)((wxObject *) ((wxImage *) x));
48137 }
48138 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48139 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48140 }
48141 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48142 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48143 }
48144 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48145 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48146 }
48147 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48149 }
48150 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48151 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48152 }
48153 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48155 }
48156 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48157 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48158 }
48159 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48160 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48161 }
48162 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48164 }
48165 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48166 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48167 }
48168 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48169 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48170 }
48171 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48172 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48173 }
48174 static void *_p_wxWindowTo_p_wxObject(void *x) {
48175 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48176 }
48177 static void *_p_wxMenuTo_p_wxObject(void *x) {
48178 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48179 }
48180 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48181 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48182 }
48183 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48184 return (void *)((wxObject *) ((wxFileSystem *) x));
48185 }
48186 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48187 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48188 }
48189 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48190 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48191 }
48192 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48193 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48194 }
48195 static void *_p_wxPyAppTo_p_wxObject(void *x) {
48196 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48197 }
48198 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48199 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48200 }
48201 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48202 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48203 }
48204 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48205 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48206 }
48207 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48208 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48209 }
48210 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48211 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48212 }
48213 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48214 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48215 }
48216 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48217 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48218 }
48219 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48220 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48221 }
48222 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48223 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48224 }
48225 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48226 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48227 }
48228 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48230 }
48231 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48232 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48233 }
48234 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48236 }
48237 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48238 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48239 }
48240 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48241 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48242 }
48243 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48245 }
48246 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48248 }
48249 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48251 }
48252 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48253 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48254 }
48255 static void *_p_wxToolBarTo_p_wxObject(void *x) {
48256 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48257 }
48258 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48259 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48260 }
48261 static void *_p_wxValidatorTo_p_wxObject(void *x) {
48262 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48263 }
48264 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48265 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48266 }
48267 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48268 return (void *)((wxWindow *) ((wxMenuBar *) x));
48269 }
48270 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48271 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48272 }
48273 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48274 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48275 }
48276 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48277 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48278 }
48279 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48280 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48281 }
48282 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48283 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48284 }
48285 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48286 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48287 }
48288 static void *_p_wxControlTo_p_wxWindow(void *x) {
48289 return (void *)((wxWindow *) ((wxControl *) x));
48290 }
48291 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48292 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48293 }
48294 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48295 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48296 }
48297 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48298 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48299 }
48300 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48301 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48302 }
48303 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48304 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48305 }
48306 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48307 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48308 }
48309 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48310 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48311 }
48312 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48313 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48314 }
48315 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48316 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48317 }
48318 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48319 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48320 }
48321 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48322 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48323 }
48324 static void *_p_wxListbookTo_p_wxWindow(void *x) {
48325 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48326 }
48327 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48328 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48329 }
48330 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48331 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48332 }
48333 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48334 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48335 }
48336 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48337 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48338 }
48339 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48340 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48341 }
48342 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48343 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48344 }
48345 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48346 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48347 }
48348 static void *_p_wxListViewTo_p_wxWindow(void *x) {
48349 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48350 }
48351 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48352 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48353 }
48354 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48355 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48356 }
48357 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48358 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48359 }
48360 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48361 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48362 }
48363 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48364 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48365 }
48366 static void *_p_wxSliderTo_p_wxWindow(void *x) {
48367 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48368 }
48369 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48370 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48371 }
48372 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48373 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48374 }
48375 static void *_p_wxButtonTo_p_wxWindow(void *x) {
48376 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48377 }
48378 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48379 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48380 }
48381 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48382 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48383 }
48384 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48385 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48386 }
48387 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48388 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48389 }
48390 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48391 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48392 }
48393 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48394 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48395 }
48396 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48397 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48398 }
48399 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48400 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48401 }
48402 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48403 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48404 }
48405 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48406 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48407 }
48408 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48409 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48410 }
48411 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48412 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48413 }
48414 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48415 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48416 }
48417 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48418 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48419 }
48420 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48421 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48422 }
48423 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48424 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48425 }
48426 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48427 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48428 }
48429 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48430 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48431 }
48432 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48433 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48434 }
48435 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48436 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48437 }
48438 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48439 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48440 }
48441 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48442 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48443 }
48444 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48445 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48446 }
48447 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48448 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48449 }
48450 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48451 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48452 }
48453 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48454 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48455 }
48456 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48457 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48458 }
48459 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48460 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48461 }
48462 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48463 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48464 }
48465 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48466 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48467 }
48468 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48469 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48470 }
48471 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48472 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48473 }
48474 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48475 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48476 }
48477 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48478 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48479 }
48480 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48481 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48482 }
48483 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48484 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48485 }
48486 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48487 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48488 }
48489 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48490 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48491 }
48492 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48493 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48494 }
48495 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
48496 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
48497 }
48498 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48499 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48500 }
48501 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48502 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48503 }
48504 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48505 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48506 }
48507 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48508 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48509 }
48510 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48511 return (void *)((wxValidator *) ((wxPyValidator *) x));
48512 }
48513 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48514 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48515 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};
48516 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48517 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48518 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48519 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48520 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48521 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48522 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48523 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48524 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48525 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48526 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48527 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48528 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48529 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48530 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48531 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48532 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48533 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
48534 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48535 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
48536 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
48537 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48538 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
48539 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48540 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48541 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
48542 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
48543 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48544 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48545 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48546 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48547 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48548 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48549 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48550 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48551 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48552 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48553 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48554 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48555 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48556 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48557 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48558 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
48559 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
48560 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48561 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48562 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48563 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48564 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48565 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48566 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48567 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
48568 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
48569 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48570 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48571 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48572 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48573 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48574 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
48575 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
48576 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48577 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48578 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48579 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48580 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48581 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48582 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48583 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48584 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48585 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48586 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48587 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48588 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48589 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48590 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48591 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
48592 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48593 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
48594 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
48595 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48596 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
48597 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48598 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48599 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48600 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48601 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
48602 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48603 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
48604 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48605 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48606 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48607 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48608 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48609 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48610 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48611 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48612 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48613 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48614 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48615 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48616 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48617 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48618 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48619 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48620 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48621 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
48622 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
48623 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
48624 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48625 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48626 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48627 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48628 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48629 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48630 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48631 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48632 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48633 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
48634 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48635 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48636 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48637 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
48638 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
48639 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48640 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48641 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48642 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
48643 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
48644 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
48645 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48646 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
48647 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
48648 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
48649 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
48650 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48651 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48652 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
48653 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
48654 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48655 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48656 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48657 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48658 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48659 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48660 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48661 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48662 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48663 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48664 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48665 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48666 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48667 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48668 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48669 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48670 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48671 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48672 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48673 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48674 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48675 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48676 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48677 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48678 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48679 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48680 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48681 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48682 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
48683 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48684 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48685 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48686 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48687 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48688 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48689 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
48690 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
48691
48692 static swig_type_info *swig_type_initial[] = {
48693 &_swigt__p_bool,
48694 &_swigt__p_char,
48695 &_swigt__p_form_ops_t,
48696 &_swigt__p_int,
48697 &_swigt__p_long,
48698 &_swigt__p_unsigned_char,
48699 &_swigt__p_unsigned_int,
48700 &_swigt__p_unsigned_long,
48701 &_swigt__p_void,
48702 &_swigt__p_wxANIHandler,
48703 &_swigt__p_wxAcceleratorTable,
48704 &_swigt__p_wxActivateEvent,
48705 &_swigt__p_wxArrayInt,
48706 &_swigt__p_wxArrayString,
48707 &_swigt__p_wxBMPHandler,
48708 &_swigt__p_wxBitmap,
48709 &_swigt__p_wxBitmapButton,
48710 &_swigt__p_wxBookCtrlBase,
48711 &_swigt__p_wxBookCtrlBaseEvent,
48712 &_swigt__p_wxBoxSizer,
48713 &_swigt__p_wxButton,
48714 &_swigt__p_wxCURHandler,
48715 &_swigt__p_wxCheckBox,
48716 &_swigt__p_wxCheckListBox,
48717 &_swigt__p_wxChildFocusEvent,
48718 &_swigt__p_wxChoice,
48719 &_swigt__p_wxChoicebook,
48720 &_swigt__p_wxChoicebookEvent,
48721 &_swigt__p_wxClipboardTextEvent,
48722 &_swigt__p_wxCloseEvent,
48723 &_swigt__p_wxCollapsiblePane,
48724 &_swigt__p_wxCollapsiblePaneEvent,
48725 &_swigt__p_wxColour,
48726 &_swigt__p_wxColourPickerCtrl,
48727 &_swigt__p_wxColourPickerEvent,
48728 &_swigt__p_wxComboBox,
48729 &_swigt__p_wxCommandEvent,
48730 &_swigt__p_wxContextHelp,
48731 &_swigt__p_wxContextHelpButton,
48732 &_swigt__p_wxContextMenuEvent,
48733 &_swigt__p_wxControl,
48734 &_swigt__p_wxControlWithItems,
48735 &_swigt__p_wxCursor,
48736 &_swigt__p_wxDC,
48737 &_swigt__p_wxDateEvent,
48738 &_swigt__p_wxDatePickerCtrl,
48739 &_swigt__p_wxDateTime,
48740 &_swigt__p_wxDirFilterListCtrl,
48741 &_swigt__p_wxDirPickerCtrl,
48742 &_swigt__p_wxDisplayChangedEvent,
48743 &_swigt__p_wxDropFilesEvent,
48744 &_swigt__p_wxDuplexMode,
48745 &_swigt__p_wxEraseEvent,
48746 &_swigt__p_wxEvent,
48747 &_swigt__p_wxEvtHandler,
48748 &_swigt__p_wxFSFile,
48749 &_swigt__p_wxFileDirPickerEvent,
48750 &_swigt__p_wxFilePickerCtrl,
48751 &_swigt__p_wxFileSystem,
48752 &_swigt__p_wxFlexGridSizer,
48753 &_swigt__p_wxFocusEvent,
48754 &_swigt__p_wxFont,
48755 &_swigt__p_wxFontPickerCtrl,
48756 &_swigt__p_wxFontPickerEvent,
48757 &_swigt__p_wxGBSizerItem,
48758 &_swigt__p_wxGIFHandler,
48759 &_swigt__p_wxGauge,
48760 &_swigt__p_wxGenericDirCtrl,
48761 &_swigt__p_wxGenericDragImage,
48762 &_swigt__p_wxGridBagSizer,
48763 &_swigt__p_wxGridSizer,
48764 &_swigt__p_wxHelpEvent,
48765 &_swigt__p_wxHelpProvider,
48766 &_swigt__p_wxHyperlinkCtrl,
48767 &_swigt__p_wxHyperlinkEvent,
48768 &_swigt__p_wxICOHandler,
48769 &_swigt__p_wxIcon,
48770 &_swigt__p_wxIconizeEvent,
48771 &_swigt__p_wxIdleEvent,
48772 &_swigt__p_wxImage,
48773 &_swigt__p_wxImageHandler,
48774 &_swigt__p_wxImageList,
48775 &_swigt__p_wxIndividualLayoutConstraint,
48776 &_swigt__p_wxInitDialogEvent,
48777 &_swigt__p_wxItemContainer,
48778 &_swigt__p_wxJPEGHandler,
48779 &_swigt__p_wxKeyEvent,
48780 &_swigt__p_wxLayoutConstraints,
48781 &_swigt__p_wxListBox,
48782 &_swigt__p_wxListEvent,
48783 &_swigt__p_wxListItem,
48784 &_swigt__p_wxListItemAttr,
48785 &_swigt__p_wxListView,
48786 &_swigt__p_wxListbook,
48787 &_swigt__p_wxListbookEvent,
48788 &_swigt__p_wxMaximizeEvent,
48789 &_swigt__p_wxMemoryDC,
48790 &_swigt__p_wxMenu,
48791 &_swigt__p_wxMenuBar,
48792 &_swigt__p_wxMenuEvent,
48793 &_swigt__p_wxMenuItem,
48794 &_swigt__p_wxMouseCaptureChangedEvent,
48795 &_swigt__p_wxMouseCaptureLostEvent,
48796 &_swigt__p_wxMouseEvent,
48797 &_swigt__p_wxMoveEvent,
48798 &_swigt__p_wxNavigationKeyEvent,
48799 &_swigt__p_wxNcPaintEvent,
48800 &_swigt__p_wxNotebook,
48801 &_swigt__p_wxNotebookEvent,
48802 &_swigt__p_wxNotifyEvent,
48803 &_swigt__p_wxObject,
48804 &_swigt__p_wxPCXHandler,
48805 &_swigt__p_wxPNGHandler,
48806 &_swigt__p_wxPNMHandler,
48807 &_swigt__p_wxPaintEvent,
48808 &_swigt__p_wxPaletteChangedEvent,
48809 &_swigt__p_wxPaperSize,
48810 &_swigt__p_wxPickerBase,
48811 &_swigt__p_wxPoint,
48812 &_swigt__p_wxPyApp,
48813 &_swigt__p_wxPyCommandEvent,
48814 &_swigt__p_wxPyControl,
48815 &_swigt__p_wxPyEvent,
48816 &_swigt__p_wxPyImageHandler,
48817 &_swigt__p_wxPyListCtrl,
48818 &_swigt__p_wxPySizer,
48819 &_swigt__p_wxPyTreeCtrl,
48820 &_swigt__p_wxPyTreeItemData,
48821 &_swigt__p_wxPyValidator,
48822 &_swigt__p_wxQueryNewPaletteEvent,
48823 &_swigt__p_wxRadioBox,
48824 &_swigt__p_wxRadioButton,
48825 &_swigt__p_wxRect,
48826 &_swigt__p_wxScrollBar,
48827 &_swigt__p_wxScrollEvent,
48828 &_swigt__p_wxScrollWinEvent,
48829 &_swigt__p_wxSetCursorEvent,
48830 &_swigt__p_wxShowEvent,
48831 &_swigt__p_wxSimpleHelpProvider,
48832 &_swigt__p_wxSize,
48833 &_swigt__p_wxSizeEvent,
48834 &_swigt__p_wxSizer,
48835 &_swigt__p_wxSizerItem,
48836 &_swigt__p_wxSlider,
48837 &_swigt__p_wxSpinButton,
48838 &_swigt__p_wxSpinCtrl,
48839 &_swigt__p_wxSpinEvent,
48840 &_swigt__p_wxStaticBitmap,
48841 &_swigt__p_wxStaticBox,
48842 &_swigt__p_wxStaticBoxSizer,
48843 &_swigt__p_wxStaticLine,
48844 &_swigt__p_wxStaticText,
48845 &_swigt__p_wxStdDialogButtonSizer,
48846 &_swigt__p_wxString,
48847 &_swigt__p_wxSysColourChangedEvent,
48848 &_swigt__p_wxTGAHandler,
48849 &_swigt__p_wxTIFFHandler,
48850 &_swigt__p_wxTextAttr,
48851 &_swigt__p_wxTextCtrl,
48852 &_swigt__p_wxTextUrlEvent,
48853 &_swigt__p_wxToggleButton,
48854 &_swigt__p_wxToolBar,
48855 &_swigt__p_wxToolBarBase,
48856 &_swigt__p_wxToolBarToolBase,
48857 &_swigt__p_wxToolbook,
48858 &_swigt__p_wxToolbookEvent,
48859 &_swigt__p_wxTreeEvent,
48860 &_swigt__p_wxTreeItemId,
48861 &_swigt__p_wxTreebook,
48862 &_swigt__p_wxTreebookEvent,
48863 &_swigt__p_wxUpdateUIEvent,
48864 &_swigt__p_wxValidator,
48865 &_swigt__p_wxVisualAttributes,
48866 &_swigt__p_wxWindow,
48867 &_swigt__p_wxWindowBase,
48868 &_swigt__p_wxWindowCreateEvent,
48869 &_swigt__p_wxWindowDestroyEvent,
48870 &_swigt__p_wxXPMHandler,
48871 };
48872
48873 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48874 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48875 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48876 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48877 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48878 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48879 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48880 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48881 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48882 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48883 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48884 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48885 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}};
48886 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}};
48887 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}};
48888 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}};
48889 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48890 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48891 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
48892 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48893 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48894 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
48895 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
48896 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
48897 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48898 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48899 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48900 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
48901 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
48902 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48903 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48904 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48905 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48906 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48907 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48908 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
48909 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
48910 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48911 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
48912 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_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}};
48913 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
48914 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48915 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48916 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48917 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48918 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
48919 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48920 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48921 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48922 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48923 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48924 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48925 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48926 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
48927 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
48928 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48929 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48930 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48931 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48932 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48933 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
48934 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
48935 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48936 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48937 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48938 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48939 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48940 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48941 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48942 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48943 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48944 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48945 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
48946 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
48947 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48948 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48949 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48950 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
48951 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
48952 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48953 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48954 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
48955 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48956 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48957 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48958 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48959 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48960 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48961 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}};
48962 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48963 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
48964 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48965 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48966 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}};
48967 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48968 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}};
48969 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48970 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48971 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48972 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48973 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48974 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48975 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48976 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48977 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48978 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48979 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}};
48980 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48981 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48982 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48983 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48984 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48985 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48986 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48987 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48988 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48989 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48990 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48991 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48992 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
48993 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48994 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48995 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48996 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
48997 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48998 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48999 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49000 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49001 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49002 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49003 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49004 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49005 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49006 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49007 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49008 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49009 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49010 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49011 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
49012 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49013 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}};
49014 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49015 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49016 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}};
49017 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49018 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49019 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49020 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49021 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49022 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49023 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49024 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49025 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49026 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49027 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49028 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49029 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49030 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49031 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49032 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49033 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49034 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49035 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
49036 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49037 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49038 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49039 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}};
49040 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49041 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49042 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49043 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49044 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49045 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49046 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49047 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}};
49048 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49049 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
49050 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49051
49052 static swig_cast_info *swig_cast_initial[] = {
49053 _swigc__p_bool,
49054 _swigc__p_char,
49055 _swigc__p_form_ops_t,
49056 _swigc__p_int,
49057 _swigc__p_long,
49058 _swigc__p_unsigned_char,
49059 _swigc__p_unsigned_int,
49060 _swigc__p_unsigned_long,
49061 _swigc__p_void,
49062 _swigc__p_wxANIHandler,
49063 _swigc__p_wxAcceleratorTable,
49064 _swigc__p_wxActivateEvent,
49065 _swigc__p_wxArrayInt,
49066 _swigc__p_wxArrayString,
49067 _swigc__p_wxBMPHandler,
49068 _swigc__p_wxBitmap,
49069 _swigc__p_wxBitmapButton,
49070 _swigc__p_wxBookCtrlBase,
49071 _swigc__p_wxBookCtrlBaseEvent,
49072 _swigc__p_wxBoxSizer,
49073 _swigc__p_wxButton,
49074 _swigc__p_wxCURHandler,
49075 _swigc__p_wxCheckBox,
49076 _swigc__p_wxCheckListBox,
49077 _swigc__p_wxChildFocusEvent,
49078 _swigc__p_wxChoice,
49079 _swigc__p_wxChoicebook,
49080 _swigc__p_wxChoicebookEvent,
49081 _swigc__p_wxClipboardTextEvent,
49082 _swigc__p_wxCloseEvent,
49083 _swigc__p_wxCollapsiblePane,
49084 _swigc__p_wxCollapsiblePaneEvent,
49085 _swigc__p_wxColour,
49086 _swigc__p_wxColourPickerCtrl,
49087 _swigc__p_wxColourPickerEvent,
49088 _swigc__p_wxComboBox,
49089 _swigc__p_wxCommandEvent,
49090 _swigc__p_wxContextHelp,
49091 _swigc__p_wxContextHelpButton,
49092 _swigc__p_wxContextMenuEvent,
49093 _swigc__p_wxControl,
49094 _swigc__p_wxControlWithItems,
49095 _swigc__p_wxCursor,
49096 _swigc__p_wxDC,
49097 _swigc__p_wxDateEvent,
49098 _swigc__p_wxDatePickerCtrl,
49099 _swigc__p_wxDateTime,
49100 _swigc__p_wxDirFilterListCtrl,
49101 _swigc__p_wxDirPickerCtrl,
49102 _swigc__p_wxDisplayChangedEvent,
49103 _swigc__p_wxDropFilesEvent,
49104 _swigc__p_wxDuplexMode,
49105 _swigc__p_wxEraseEvent,
49106 _swigc__p_wxEvent,
49107 _swigc__p_wxEvtHandler,
49108 _swigc__p_wxFSFile,
49109 _swigc__p_wxFileDirPickerEvent,
49110 _swigc__p_wxFilePickerCtrl,
49111 _swigc__p_wxFileSystem,
49112 _swigc__p_wxFlexGridSizer,
49113 _swigc__p_wxFocusEvent,
49114 _swigc__p_wxFont,
49115 _swigc__p_wxFontPickerCtrl,
49116 _swigc__p_wxFontPickerEvent,
49117 _swigc__p_wxGBSizerItem,
49118 _swigc__p_wxGIFHandler,
49119 _swigc__p_wxGauge,
49120 _swigc__p_wxGenericDirCtrl,
49121 _swigc__p_wxGenericDragImage,
49122 _swigc__p_wxGridBagSizer,
49123 _swigc__p_wxGridSizer,
49124 _swigc__p_wxHelpEvent,
49125 _swigc__p_wxHelpProvider,
49126 _swigc__p_wxHyperlinkCtrl,
49127 _swigc__p_wxHyperlinkEvent,
49128 _swigc__p_wxICOHandler,
49129 _swigc__p_wxIcon,
49130 _swigc__p_wxIconizeEvent,
49131 _swigc__p_wxIdleEvent,
49132 _swigc__p_wxImage,
49133 _swigc__p_wxImageHandler,
49134 _swigc__p_wxImageList,
49135 _swigc__p_wxIndividualLayoutConstraint,
49136 _swigc__p_wxInitDialogEvent,
49137 _swigc__p_wxItemContainer,
49138 _swigc__p_wxJPEGHandler,
49139 _swigc__p_wxKeyEvent,
49140 _swigc__p_wxLayoutConstraints,
49141 _swigc__p_wxListBox,
49142 _swigc__p_wxListEvent,
49143 _swigc__p_wxListItem,
49144 _swigc__p_wxListItemAttr,
49145 _swigc__p_wxListView,
49146 _swigc__p_wxListbook,
49147 _swigc__p_wxListbookEvent,
49148 _swigc__p_wxMaximizeEvent,
49149 _swigc__p_wxMemoryDC,
49150 _swigc__p_wxMenu,
49151 _swigc__p_wxMenuBar,
49152 _swigc__p_wxMenuEvent,
49153 _swigc__p_wxMenuItem,
49154 _swigc__p_wxMouseCaptureChangedEvent,
49155 _swigc__p_wxMouseCaptureLostEvent,
49156 _swigc__p_wxMouseEvent,
49157 _swigc__p_wxMoveEvent,
49158 _swigc__p_wxNavigationKeyEvent,
49159 _swigc__p_wxNcPaintEvent,
49160 _swigc__p_wxNotebook,
49161 _swigc__p_wxNotebookEvent,
49162 _swigc__p_wxNotifyEvent,
49163 _swigc__p_wxObject,
49164 _swigc__p_wxPCXHandler,
49165 _swigc__p_wxPNGHandler,
49166 _swigc__p_wxPNMHandler,
49167 _swigc__p_wxPaintEvent,
49168 _swigc__p_wxPaletteChangedEvent,
49169 _swigc__p_wxPaperSize,
49170 _swigc__p_wxPickerBase,
49171 _swigc__p_wxPoint,
49172 _swigc__p_wxPyApp,
49173 _swigc__p_wxPyCommandEvent,
49174 _swigc__p_wxPyControl,
49175 _swigc__p_wxPyEvent,
49176 _swigc__p_wxPyImageHandler,
49177 _swigc__p_wxPyListCtrl,
49178 _swigc__p_wxPySizer,
49179 _swigc__p_wxPyTreeCtrl,
49180 _swigc__p_wxPyTreeItemData,
49181 _swigc__p_wxPyValidator,
49182 _swigc__p_wxQueryNewPaletteEvent,
49183 _swigc__p_wxRadioBox,
49184 _swigc__p_wxRadioButton,
49185 _swigc__p_wxRect,
49186 _swigc__p_wxScrollBar,
49187 _swigc__p_wxScrollEvent,
49188 _swigc__p_wxScrollWinEvent,
49189 _swigc__p_wxSetCursorEvent,
49190 _swigc__p_wxShowEvent,
49191 _swigc__p_wxSimpleHelpProvider,
49192 _swigc__p_wxSize,
49193 _swigc__p_wxSizeEvent,
49194 _swigc__p_wxSizer,
49195 _swigc__p_wxSizerItem,
49196 _swigc__p_wxSlider,
49197 _swigc__p_wxSpinButton,
49198 _swigc__p_wxSpinCtrl,
49199 _swigc__p_wxSpinEvent,
49200 _swigc__p_wxStaticBitmap,
49201 _swigc__p_wxStaticBox,
49202 _swigc__p_wxStaticBoxSizer,
49203 _swigc__p_wxStaticLine,
49204 _swigc__p_wxStaticText,
49205 _swigc__p_wxStdDialogButtonSizer,
49206 _swigc__p_wxString,
49207 _swigc__p_wxSysColourChangedEvent,
49208 _swigc__p_wxTGAHandler,
49209 _swigc__p_wxTIFFHandler,
49210 _swigc__p_wxTextAttr,
49211 _swigc__p_wxTextCtrl,
49212 _swigc__p_wxTextUrlEvent,
49213 _swigc__p_wxToggleButton,
49214 _swigc__p_wxToolBar,
49215 _swigc__p_wxToolBarBase,
49216 _swigc__p_wxToolBarToolBase,
49217 _swigc__p_wxToolbook,
49218 _swigc__p_wxToolbookEvent,
49219 _swigc__p_wxTreeEvent,
49220 _swigc__p_wxTreeItemId,
49221 _swigc__p_wxTreebook,
49222 _swigc__p_wxTreebookEvent,
49223 _swigc__p_wxUpdateUIEvent,
49224 _swigc__p_wxValidator,
49225 _swigc__p_wxVisualAttributes,
49226 _swigc__p_wxWindow,
49227 _swigc__p_wxWindowBase,
49228 _swigc__p_wxWindowCreateEvent,
49229 _swigc__p_wxWindowDestroyEvent,
49230 _swigc__p_wxXPMHandler,
49231 };
49232
49233
49234 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49235
49236 static swig_const_info swig_const_table[] = {
49237 {0, 0, 0, 0.0, 0, 0}};
49238
49239 #ifdef __cplusplus
49240 }
49241 #endif
49242 /* -----------------------------------------------------------------------------
49243 * Type initialization:
49244 * This problem is tough by the requirement that no dynamic
49245 * memory is used. Also, since swig_type_info structures store pointers to
49246 * swig_cast_info structures and swig_cast_info structures store pointers back
49247 * to swig_type_info structures, we need some lookup code at initialization.
49248 * The idea is that swig generates all the structures that are needed.
49249 * The runtime then collects these partially filled structures.
49250 * The SWIG_InitializeModule function takes these initial arrays out of
49251 * swig_module, and does all the lookup, filling in the swig_module.types
49252 * array with the correct data and linking the correct swig_cast_info
49253 * structures together.
49254 *
49255 * The generated swig_type_info structures are assigned staticly to an initial
49256 * array. We just loop though that array, and handle each type individually.
49257 * First we lookup if this type has been already loaded, and if so, use the
49258 * loaded structure instead of the generated one. Then we have to fill in the
49259 * cast linked list. The cast data is initially stored in something like a
49260 * two-dimensional array. Each row corresponds to a type (there are the same
49261 * number of rows as there are in the swig_type_initial array). Each entry in
49262 * a column is one of the swig_cast_info structures for that type.
49263 * The cast_initial array is actually an array of arrays, because each row has
49264 * a variable number of columns. So to actually build the cast linked list,
49265 * we find the array of casts associated with the type, and loop through it
49266 * adding the casts to the list. The one last trick we need to do is making
49267 * sure the type pointer in the swig_cast_info struct is correct.
49268 *
49269 * First off, we lookup the cast->type name to see if it is already loaded.
49270 * There are three cases to handle:
49271 * 1) If the cast->type has already been loaded AND the type we are adding
49272 * casting info to has not been loaded (it is in this module), THEN we
49273 * replace the cast->type pointer with the type pointer that has already
49274 * been loaded.
49275 * 2) If BOTH types (the one we are adding casting info to, and the
49276 * cast->type) are loaded, THEN the cast info has already been loaded by
49277 * the previous module so we just ignore it.
49278 * 3) Finally, if cast->type has not already been loaded, then we add that
49279 * swig_cast_info to the linked list (because the cast->type) pointer will
49280 * be correct.
49281 * ----------------------------------------------------------------------------- */
49282
49283 #ifdef __cplusplus
49284 extern "C" {
49285 #if 0
49286 } /* c-mode */
49287 #endif
49288 #endif
49289
49290 #if 0
49291 #define SWIGRUNTIME_DEBUG
49292 #endif
49293
49294 SWIGRUNTIME void
49295 SWIG_InitializeModule(void *clientdata) {
49296 size_t i;
49297 swig_module_info *module_head;
49298 static int init_run = 0;
49299
49300 clientdata = clientdata;
49301
49302 if (init_run) return;
49303 init_run = 1;
49304
49305 /* Initialize the swig_module */
49306 swig_module.type_initial = swig_type_initial;
49307 swig_module.cast_initial = swig_cast_initial;
49308
49309 /* Try and load any already created modules */
49310 module_head = SWIG_GetModule(clientdata);
49311 if (module_head) {
49312 swig_module.next = module_head->next;
49313 module_head->next = &swig_module;
49314 } else {
49315 /* This is the first module loaded */
49316 swig_module.next = &swig_module;
49317 SWIG_SetModule(clientdata, &swig_module);
49318 }
49319
49320 /* Now work on filling in swig_module.types */
49321 #ifdef SWIGRUNTIME_DEBUG
49322 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49323 #endif
49324 for (i = 0; i < swig_module.size; ++i) {
49325 swig_type_info *type = 0;
49326 swig_type_info *ret;
49327 swig_cast_info *cast;
49328
49329 #ifdef SWIGRUNTIME_DEBUG
49330 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49331 #endif
49332
49333 /* if there is another module already loaded */
49334 if (swig_module.next != &swig_module) {
49335 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
49336 }
49337 if (type) {
49338 /* Overwrite clientdata field */
49339 #ifdef SWIGRUNTIME_DEBUG
49340 printf("SWIG_InitializeModule: found type %s\n", type->name);
49341 #endif
49342 if (swig_module.type_initial[i]->clientdata) {
49343 type->clientdata = swig_module.type_initial[i]->clientdata;
49344 #ifdef SWIGRUNTIME_DEBUG
49345 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49346 #endif
49347 }
49348 } else {
49349 type = swig_module.type_initial[i];
49350 }
49351
49352 /* Insert casting types */
49353 cast = swig_module.cast_initial[i];
49354 while (cast->type) {
49355 /* Don't need to add information already in the list */
49356 ret = 0;
49357 #ifdef SWIGRUNTIME_DEBUG
49358 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49359 #endif
49360 if (swig_module.next != &swig_module) {
49361 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49362 #ifdef SWIGRUNTIME_DEBUG
49363 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49364 #endif
49365 }
49366 if (ret) {
49367 if (type == swig_module.type_initial[i]) {
49368 #ifdef SWIGRUNTIME_DEBUG
49369 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49370 #endif
49371 cast->type = ret;
49372 ret = 0;
49373 } else {
49374 /* Check for casting already in the list */
49375 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49376 #ifdef SWIGRUNTIME_DEBUG
49377 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49378 #endif
49379 if (!ocast) ret = 0;
49380 }
49381 }
49382
49383 if (!ret) {
49384 #ifdef SWIGRUNTIME_DEBUG
49385 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49386 #endif
49387 if (type->cast) {
49388 type->cast->prev = cast;
49389 cast->next = type->cast;
49390 }
49391 type->cast = cast;
49392 }
49393 cast++;
49394 }
49395 /* Set entry in modules->types array equal to the type */
49396 swig_module.types[i] = type;
49397 }
49398 swig_module.types[i] = 0;
49399
49400 #ifdef SWIGRUNTIME_DEBUG
49401 printf("**** SWIG_InitializeModule: Cast List ******\n");
49402 for (i = 0; i < swig_module.size; ++i) {
49403 int j = 0;
49404 swig_cast_info *cast = swig_module.cast_initial[i];
49405 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49406 while (cast->type) {
49407 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49408 cast++;
49409 ++j;
49410 }
49411 printf("---- Total casts: %d\n",j);
49412 }
49413 printf("**** SWIG_InitializeModule: Cast List ******\n");
49414 #endif
49415 }
49416
49417 /* This function will propagate the clientdata field of type to
49418 * any new swig_type_info structures that have been added into the list
49419 * of equivalent types. It is like calling
49420 * SWIG_TypeClientData(type, clientdata) a second time.
49421 */
49422 SWIGRUNTIME void
49423 SWIG_PropagateClientData(void) {
49424 size_t i;
49425 swig_cast_info *equiv;
49426 static int init_run = 0;
49427
49428 if (init_run) return;
49429 init_run = 1;
49430
49431 for (i = 0; i < swig_module.size; i++) {
49432 if (swig_module.types[i]->clientdata) {
49433 equiv = swig_module.types[i]->cast;
49434 while (equiv) {
49435 if (!equiv->converter) {
49436 if (equiv->type && !equiv->type->clientdata)
49437 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49438 }
49439 equiv = equiv->next;
49440 }
49441 }
49442 }
49443 }
49444
49445 #ifdef __cplusplus
49446 #if 0
49447 {
49448 /* c-mode */
49449 #endif
49450 }
49451 #endif
49452
49453
49454
49455 #ifdef __cplusplus
49456 extern "C" {
49457 #endif
49458
49459 /* Python-specific SWIG API */
49460 #define SWIG_newvarlink() SWIG_Python_newvarlink()
49461 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49462 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49463
49464 /* -----------------------------------------------------------------------------
49465 * global variable support code.
49466 * ----------------------------------------------------------------------------- */
49467
49468 typedef struct swig_globalvar {
49469 char *name; /* Name of global variable */
49470 PyObject *(*get_attr)(void); /* Return the current value */
49471 int (*set_attr)(PyObject *); /* Set the value */
49472 struct swig_globalvar *next;
49473 } swig_globalvar;
49474
49475 typedef struct swig_varlinkobject {
49476 PyObject_HEAD
49477 swig_globalvar *vars;
49478 } swig_varlinkobject;
49479
49480 SWIGINTERN PyObject *
49481 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49482 return PyString_FromString("<Swig global variables>");
49483 }
49484
49485 SWIGINTERN PyObject *
49486 swig_varlink_str(swig_varlinkobject *v) {
49487 PyObject *str = PyString_FromString("(");
49488 swig_globalvar *var;
49489 for (var = v->vars; var; var=var->next) {
49490 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49491 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49492 }
49493 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49494 return str;
49495 }
49496
49497 SWIGINTERN int
49498 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49499 PyObject *str = swig_varlink_str(v);
49500 fprintf(fp,"Swig global variables ");
49501 fprintf(fp,"%s\n", PyString_AsString(str));
49502 Py_DECREF(str);
49503 return 0;
49504 }
49505
49506 SWIGINTERN void
49507 swig_varlink_dealloc(swig_varlinkobject *v) {
49508 swig_globalvar *var = v->vars;
49509 while (var) {
49510 swig_globalvar *n = var->next;
49511 free(var->name);
49512 free(var);
49513 var = n;
49514 }
49515 }
49516
49517 SWIGINTERN PyObject *
49518 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49519 PyObject *res = NULL;
49520 swig_globalvar *var = v->vars;
49521 while (var) {
49522 if (strcmp(var->name,n) == 0) {
49523 res = (*var->get_attr)();
49524 break;
49525 }
49526 var = var->next;
49527 }
49528 if (res == NULL && !PyErr_Occurred()) {
49529 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49530 }
49531 return res;
49532 }
49533
49534 SWIGINTERN int
49535 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49536 int res = 1;
49537 swig_globalvar *var = v->vars;
49538 while (var) {
49539 if (strcmp(var->name,n) == 0) {
49540 res = (*var->set_attr)(p);
49541 break;
49542 }
49543 var = var->next;
49544 }
49545 if (res == 1 && !PyErr_Occurred()) {
49546 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49547 }
49548 return res;
49549 }
49550
49551 SWIGINTERN PyTypeObject*
49552 swig_varlink_type(void) {
49553 static char varlink__doc__[] = "Swig var link object";
49554 static PyTypeObject varlink_type;
49555 static int type_init = 0;
49556 if (!type_init) {
49557 const PyTypeObject tmp
49558 = {
49559 PyObject_HEAD_INIT(NULL)
49560 0, /* Number of items in variable part (ob_size) */
49561 (char *)"swigvarlink", /* Type name (tp_name) */
49562 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49563 0, /* Itemsize (tp_itemsize) */
49564 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49565 (printfunc) swig_varlink_print, /* Print (tp_print) */
49566 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49567 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49568 0, /* tp_compare */
49569 (reprfunc) swig_varlink_repr, /* tp_repr */
49570 0, /* tp_as_number */
49571 0, /* tp_as_sequence */
49572 0, /* tp_as_mapping */
49573 0, /* tp_hash */
49574 0, /* tp_call */
49575 (reprfunc)swig_varlink_str, /* tp_str */
49576 0, /* tp_getattro */
49577 0, /* tp_setattro */
49578 0, /* tp_as_buffer */
49579 0, /* tp_flags */
49580 varlink__doc__, /* tp_doc */
49581 0, /* tp_traverse */
49582 0, /* tp_clear */
49583 0, /* tp_richcompare */
49584 0, /* tp_weaklistoffset */
49585 #if PY_VERSION_HEX >= 0x02020000
49586 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49587 #endif
49588 #if PY_VERSION_HEX >= 0x02030000
49589 0, /* tp_del */
49590 #endif
49591 #ifdef COUNT_ALLOCS
49592 0,0,0,0 /* tp_alloc -> tp_next */
49593 #endif
49594 };
49595 varlink_type = tmp;
49596 varlink_type.ob_type = &PyType_Type;
49597 type_init = 1;
49598 }
49599 return &varlink_type;
49600 }
49601
49602 /* Create a variable linking object for use later */
49603 SWIGINTERN PyObject *
49604 SWIG_Python_newvarlink(void) {
49605 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49606 if (result) {
49607 result->vars = 0;
49608 }
49609 return ((PyObject*) result);
49610 }
49611
49612 SWIGINTERN void
49613 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49614 swig_varlinkobject *v = (swig_varlinkobject *) p;
49615 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49616 if (gv) {
49617 size_t size = strlen(name)+1;
49618 gv->name = (char *)malloc(size);
49619 if (gv->name) {
49620 strncpy(gv->name,name,size);
49621 gv->get_attr = get_attr;
49622 gv->set_attr = set_attr;
49623 gv->next = v->vars;
49624 }
49625 }
49626 v->vars = gv;
49627 }
49628
49629 SWIGINTERN PyObject *
49630 SWIG_globals() {
49631 static PyObject *_SWIG_globals = 0;
49632 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49633 return _SWIG_globals;
49634 }
49635
49636 /* -----------------------------------------------------------------------------
49637 * constants/methods manipulation
49638 * ----------------------------------------------------------------------------- */
49639
49640 /* Install Constants */
49641 SWIGINTERN void
49642 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49643 PyObject *obj = 0;
49644 size_t i;
49645 for (i = 0; constants[i].type; ++i) {
49646 switch(constants[i].type) {
49647 case SWIG_PY_POINTER:
49648 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49649 break;
49650 case SWIG_PY_BINARY:
49651 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49652 break;
49653 default:
49654 obj = 0;
49655 break;
49656 }
49657 if (obj) {
49658 PyDict_SetItemString(d, constants[i].name, obj);
49659 Py_DECREF(obj);
49660 }
49661 }
49662 }
49663
49664 /* -----------------------------------------------------------------------------*/
49665 /* Fix SwigMethods to carry the callback ptrs when needed */
49666 /* -----------------------------------------------------------------------------*/
49667
49668 SWIGINTERN void
49669 SWIG_Python_FixMethods(PyMethodDef *methods,
49670 swig_const_info *const_table,
49671 swig_type_info **types,
49672 swig_type_info **types_initial) {
49673 size_t i;
49674 for (i = 0; methods[i].ml_name; ++i) {
49675 const char *c = methods[i].ml_doc;
49676 if (c && (c = strstr(c, "swig_ptr: "))) {
49677 int j;
49678 swig_const_info *ci = 0;
49679 const char *name = c + 10;
49680 for (j = 0; const_table[j].type; ++j) {
49681 if (strncmp(const_table[j].name, name,
49682 strlen(const_table[j].name)) == 0) {
49683 ci = &(const_table[j]);
49684 break;
49685 }
49686 }
49687 if (ci) {
49688 size_t shift = (ci->ptype) - types;
49689 swig_type_info *ty = types_initial[shift];
49690 size_t ldoc = (c - methods[i].ml_doc);
49691 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49692 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49693 if (ndoc) {
49694 char *buff = ndoc;
49695 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49696 if (ptr) {
49697 strncpy(buff, methods[i].ml_doc, ldoc);
49698 buff += ldoc;
49699 strncpy(buff, "swig_ptr: ", 10);
49700 buff += 10;
49701 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49702 methods[i].ml_doc = ndoc;
49703 }
49704 }
49705 }
49706 }
49707 }
49708 }
49709
49710 #ifdef __cplusplus
49711 }
49712 #endif
49713
49714 /* -----------------------------------------------------------------------------*
49715 * Partial Init method
49716 * -----------------------------------------------------------------------------*/
49717
49718 #ifdef __cplusplus
49719 extern "C"
49720 #endif
49721 SWIGEXPORT void SWIG_init(void) {
49722 PyObject *m, *d;
49723
49724 /* Fix SwigMethods to carry the callback ptrs when needed */
49725 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49726
49727 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49728 d = PyModule_GetDict(m);
49729
49730 SWIG_InitializeModule(0);
49731 SWIG_InstallConstants(d,swig_const_table);
49732
49733
49734 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49735 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49736 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49737 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49738 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49739 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49740 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49741 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49742 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49743 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49744 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49745 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49746 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49747 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49748 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49749 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49750 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49751 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49752 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49753 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49754 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49755 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
49756 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49757 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49758 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49759 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49760 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49761 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49762 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49763 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49764 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49765 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49766 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49767 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49768 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49769 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49770 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49771 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49772 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49773 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49774 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49775 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49776 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49777 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49778 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
49779 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49780 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49781 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49782 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49783 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49784 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49785 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49786 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49787 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49788 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49789 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49790 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49791 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49792 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49793 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49794 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49795 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49796 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49797 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49798 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49799 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49800 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49801 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49802 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49803 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49804 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49805 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
49806 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
49807 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49808 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49809 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49810 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49811 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49812 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49813 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49814 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49815 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49816 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49817 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49818 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49819 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49820 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49821 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49822 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49823 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49824 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49825 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49826 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49827 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49828 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49829 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49830 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49831 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49832 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49833 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49834 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49835 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49836 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49837 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49838 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49839 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49840 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49841 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49842 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
49843 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
49844 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49845 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49846 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49847 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49848 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
49849 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49850 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49851 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49852 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49853 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49854 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49855 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49856 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49857 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49858 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49859 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
49860 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
49861 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49862 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49863 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49864 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49865 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49866 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49867 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49868 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49869 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49870 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49871 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49872 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49873 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49874 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49875 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49876 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49877 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49878 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49879 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49880 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49881 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49882 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49883 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49884 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49885 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49886 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49887 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49888 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49889 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
49890 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
49891 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
49892 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
49893 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
49894 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49895 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49896 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49897 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49898 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49899 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49900 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49901 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49902 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
49903 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
49904 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49905 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49906 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49907 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49908 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49909 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49910 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49911 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49912 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49913 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49914 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49915 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49916 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49917 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49918 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49919 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49920 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49921 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49922 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49923 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49924 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49925 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49926 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49927 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49928 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49929 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49930 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49931 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49932 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49933 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49934 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49935 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49936 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49937 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49938 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49939 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49940 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49941 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49942 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49943 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49944 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49945 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49946 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49947 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49948 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49949 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49950 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
49951 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
49952 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49953 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49954 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49955 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49956 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49957 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49958 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49959 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49960 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49961 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49962 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49963 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49964 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49965 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49966 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49967 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49968 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49969 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49970 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49971 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49972 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49973 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49974 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49975 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49976 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49977 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49978 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49979 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49980 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49981 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49982 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49983 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49984 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49985 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49986 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49987 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49988 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49989 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49990 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49991 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49992 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49993 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49994
49995 // Map renamed classes back to their common name for OOR
49996 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49997
49998 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49999 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50000 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50001 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50002 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50003 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50004 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50005 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50006 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50007 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50008 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50009 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50010 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50011 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50012 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50013 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50014 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50015 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50016 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50017 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50018 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50019 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50020 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50021 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50022 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50023 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50024 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50025 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50026 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50027 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50028 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50029 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50030 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50031 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50032 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50033 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50034 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50035 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50036 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50037 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50038 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50039 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50040 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50041 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50042 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50043 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50044 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50045 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50046 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50047 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50048 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50049 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50050 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50051 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50052 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50053 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50054
50055 // Map renamed classes back to their common name for OOR
50056 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50057 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50058
50059 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50060 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50061 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50062 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50063 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50064 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50065 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50066 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50067 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50068 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50069 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50070
50071 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50072
50073 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50074 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50075 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50076 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50077 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50078 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50079 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50080 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50081 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50082 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50083 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50084 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50085 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50086 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50087 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50088 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50089 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50090 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50091 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50092 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50093 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50094 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50095 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50096 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50097 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50098 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50099 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50100 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50101 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50102 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50103 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50104 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50105 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50106 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50107 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50108 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50109 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50110 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50111 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50112 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50113 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50114 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50115 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
50116 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50117 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50118 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50119 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
50120 }
50121